Interface InstanceConfiguration.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<InstanceConfiguration.Builder,,- InstanceConfiguration> - SdkBuilder<InstanceConfiguration.Builder,,- InstanceConfiguration> - SdkPojo
- Enclosing class:
- InstanceConfiguration
- 
Method SummaryModifier and TypeMethodDescriptionblockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) Defines the block devices to attach for building an instance from this Image Builder AMI.blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings) Defines the block devices to attach for building an instance from this Image Builder AMI.blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings) Defines the block devices to attach for building an instance from this Image Builder AMI.The base image for a container build and test instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
imageThe base image for a container build and test instance. This can contain an AMI ID or it can specify an Amazon Web Services Systems Manager (SSM) Parameter Store Parameter, prefixed by ssm:, followed by the parameter name or ARN.If not specified, Image Builder uses the appropriate ECS-optimized AMI as a base image. - Parameters:
- image- The base image for a container build and test instance. This can contain an AMI ID or it can specify an Amazon Web Services Systems Manager (SSM) Parameter Store Parameter, prefixed by- ssm:, followed by the parameter name or ARN.- If not specified, Image Builder uses the appropriate ECS-optimized AMI as a base image. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
blockDeviceMappingsInstanceConfiguration.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) Defines the block devices to attach for building an instance from this Image Builder AMI. - Parameters:
- blockDeviceMappings- Defines the block devices to attach for building an instance from this Image Builder AMI.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
blockDeviceMappingsInstanceConfiguration.Builder blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings) Defines the block devices to attach for building an instance from this Image Builder AMI. - Parameters:
- blockDeviceMappings- Defines the block devices to attach for building an instance from this Image Builder AMI.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
blockDeviceMappingsInstanceConfiguration.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings) Defines the block devices to attach for building an instance from this Image Builder AMI. This is a convenience method that creates an instance of theInstanceBlockDeviceMapping.Builderavoiding the need to create one manually viaInstanceBlockDeviceMapping.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblockDeviceMappings(List<InstanceBlockDeviceMapping>).- Parameters:
- blockDeviceMappings- a consumer that will call methods on- InstanceBlockDeviceMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-