Interface Image.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Image.Builder,
,Image> SdkBuilder<Image.Builder,
,Image> SdkPojo
- Enclosing class:
Image
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the image.Indicates the type of build that created this image.Indicates the type of build that created this image.default Image.Builder
containerRecipe
(Consumer<ContainerRecipe.Builder> containerRecipe) For container images, this is the container recipe that Image Builder used to create the image.containerRecipe
(ContainerRecipe containerRecipe) For container images, this is the container recipe that Image Builder used to create the image.dateCreated
(String dateCreated) The date on which Image Builder created this image.deprecationTime
(Instant deprecationTime) The time when deprecation occurs for an image resource.default Image.Builder
distributionConfiguration
(Consumer<DistributionConfiguration.Builder> distributionConfiguration) The distribution configuration that Image Builder used to create this image.distributionConfiguration
(DistributionConfiguration distributionConfiguration) The distribution configuration that Image Builder used to create this image.enhancedImageMetadataEnabled
(Boolean enhancedImageMetadataEnabled) Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.executionRole
(String executionRole) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.default Image.Builder
imageRecipe
(Consumer<ImageRecipe.Builder> imageRecipe) For images that distribute an AMI, this is the image recipe that Image Builder used to create the image.imageRecipe
(ImageRecipe imageRecipe) For images that distribute an AMI, this is the image recipe that Image Builder used to create the image.default Image.Builder
imageScanningConfiguration
(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration) Contains settings for vulnerability scans.imageScanningConfiguration
(ImageScanningConfiguration imageScanningConfiguration) Contains settings for vulnerability scans.imageSource
(String imageSource) The origin of the base image that Image Builder used to build this image.imageSource
(ImageSource imageSource) The origin of the base image that Image Builder used to build this image.default Image.Builder
imageTestsConfiguration
(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration) The image tests that ran when that Image Builder created this image.imageTestsConfiguration
(ImageTestsConfiguration imageTestsConfiguration) The image tests that ran when that Image Builder created this image.default Image.Builder
infrastructureConfiguration
(Consumer<InfrastructureConfiguration.Builder> infrastructureConfiguration) The infrastructure that Image Builder used to create this image.infrastructureConfiguration
(InfrastructureConfiguration infrastructureConfiguration) The infrastructure that Image Builder used to create this image.lifecycleExecutionId
(String lifecycleExecutionId) Identifies the last runtime instance of the lifecycle policy to take action on the image.The name of the image.The operating system version for instances that launch from this image.default Image.Builder
outputResources
(Consumer<OutputResources.Builder> outputResources) The output resources that Image Builder produces for this image.outputResources
(OutputResources outputResources) The output resources that Image Builder produces for this image.The image operating system platform, such as Linux or Windows.The image operating system platform, such as Linux or Windows.default Image.Builder
scanState
(Consumer<ImageScanState.Builder> scanState) Contains information about the current state of scans for this image.scanState
(ImageScanState scanState) Contains information about the current state of scans for this image.sourcePipelineArn
(String sourcePipelineArn) The Amazon Resource Name (ARN) of the image pipeline that created this image.sourcePipelineName
(String sourcePipelineName) The name of the image pipeline that created this image.default Image.Builder
state
(Consumer<ImageState.Builder> state) The state of the image.state
(ImageState state) The state of the image.The tags that apply to this image.Specifies whether this image produces an AMI or a container image.Specifies whether this image produces an AMI or a container image.The semantic version of the image.workflows
(Collection<WorkflowConfiguration> workflows) Contains the build and test workflows that are associated with the image.workflows
(Consumer<WorkflowConfiguration.Builder>... workflows) Contains the build and test workflows that are associated with the image.workflows
(WorkflowConfiguration... workflows) Contains the build and test workflows that are associated with the image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
arn
The Amazon Resource Name (ARN) of the image.
Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows:
-
Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x.
-
Version ARNs have only the first three nodes: <major>.<minor>.<patch>
-
Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the image.Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows:
-
Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x.
-
Version ARNs have only the first three nodes: <major>.<minor>.<patch>
-
Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
type
Specifies whether this image produces an AMI or a container image.
- Parameters:
type
- Specifies whether this image produces an AMI or a container image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Specifies whether this image produces an AMI or a container image.
- Parameters:
type
- Specifies whether this image produces an AMI or a container image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the image.
- Parameters:
name
- The name of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The semantic version of the image.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
- Parameters:
version
- The semantic version of the image.The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platform
The image operating system platform, such as Linux or Windows.
- Parameters:
platform
- The image operating system platform, such as Linux or Windows.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The image operating system platform, such as Linux or Windows.
- Parameters:
platform
- The image operating system platform, such as Linux or Windows.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
- Parameters:
enhancedImageMetadataEnabled
- Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
osVersion
The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
- Parameters:
osVersion
- The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the image.
- Parameters:
state
- The state of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the image.
This is a convenience method that creates an instance of theImageState.Builder
avoiding the need to create one manually viaImageState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(ImageState)
.- Parameters:
state
- a consumer that will call methods onImageState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageRecipe
For images that distribute an AMI, this is the image recipe that Image Builder used to create the image. For container images, this is empty.
- Parameters:
imageRecipe
- For images that distribute an AMI, this is the image recipe that Image Builder used to create the image. For container images, this is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageRecipe
For images that distribute an AMI, this is the image recipe that Image Builder used to create the image. For container images, this is empty.
This is a convenience method that creates an instance of theImageRecipe.Builder
avoiding the need to create one manually viaImageRecipe.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageRecipe(ImageRecipe)
.- Parameters:
imageRecipe
- a consumer that will call methods onImageRecipe.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
containerRecipe
For container images, this is the container recipe that Image Builder used to create the image. For images that distribute an AMI, this is empty.
- Parameters:
containerRecipe
- For container images, this is the container recipe that Image Builder used to create the image. For images that distribute an AMI, this is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerRecipe
For container images, this is the container recipe that Image Builder used to create the image. For images that distribute an AMI, this is empty.
This is a convenience method that creates an instance of theContainerRecipe.Builder
avoiding the need to create one manually viaContainerRecipe.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerRecipe(ContainerRecipe)
.- Parameters:
containerRecipe
- a consumer that will call methods onContainerRecipe.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourcePipelineName
The name of the image pipeline that created this image.
- Parameters:
sourcePipelineName
- The name of the image pipeline that created this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourcePipelineArn
The Amazon Resource Name (ARN) of the image pipeline that created this image.
- Parameters:
sourcePipelineArn
- The Amazon Resource Name (ARN) of the image pipeline that created this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureConfiguration
The infrastructure that Image Builder used to create this image.
- Parameters:
infrastructureConfiguration
- The infrastructure that Image Builder used to create this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureConfiguration
default Image.Builder infrastructureConfiguration(Consumer<InfrastructureConfiguration.Builder> infrastructureConfiguration) The infrastructure that Image Builder used to create this image.
This is a convenience method that creates an instance of theInfrastructureConfiguration.Builder
avoiding the need to create one manually viaInfrastructureConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinfrastructureConfiguration(InfrastructureConfiguration)
.- Parameters:
infrastructureConfiguration
- a consumer that will call methods onInfrastructureConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distributionConfiguration
The distribution configuration that Image Builder used to create this image.
- Parameters:
distributionConfiguration
- The distribution configuration that Image Builder used to create this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributionConfiguration
default Image.Builder distributionConfiguration(Consumer<DistributionConfiguration.Builder> distributionConfiguration) The distribution configuration that Image Builder used to create this image.
This is a convenience method that creates an instance of theDistributionConfiguration.Builder
avoiding the need to create one manually viaDistributionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todistributionConfiguration(DistributionConfiguration)
.- Parameters:
distributionConfiguration
- a consumer that will call methods onDistributionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageTestsConfiguration
The image tests that ran when that Image Builder created this image.
- Parameters:
imageTestsConfiguration
- The image tests that ran when that Image Builder created this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageTestsConfiguration
default Image.Builder imageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration) The image tests that ran when that Image Builder created this image.
This is a convenience method that creates an instance of theImageTestsConfiguration.Builder
avoiding the need to create one manually viaImageTestsConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageTestsConfiguration(ImageTestsConfiguration)
.- Parameters:
imageTestsConfiguration
- a consumer that will call methods onImageTestsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dateCreated
The date on which Image Builder created this image.
- Parameters:
dateCreated
- The date on which Image Builder created this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputResources
The output resources that Image Builder produces for this image.
- Parameters:
outputResources
- The output resources that Image Builder produces for this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputResources
The output resources that Image Builder produces for this image.
This is a convenience method that creates an instance of theOutputResources.Builder
avoiding the need to create one manually viaOutputResources.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputResources(OutputResources)
.- Parameters:
outputResources
- a consumer that will call methods onOutputResources.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags that apply to this image.
- Parameters:
tags
- The tags that apply to this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildType
Indicates the type of build that created this image. The build can be initiated in the following ways:
-
USER_INITIATED – A manual pipeline build request.
-
SCHEDULED – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge.
-
IMPORT – A VM import created the image to use as the base image for the recipe.
- Parameters:
buildType
- Indicates the type of build that created this image. The build can be initiated in the following ways:-
USER_INITIATED – A manual pipeline build request.
-
SCHEDULED – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge.
-
IMPORT – A VM import created the image to use as the base image for the recipe.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
buildType
Indicates the type of build that created this image. The build can be initiated in the following ways:
-
USER_INITIATED – A manual pipeline build request.
-
SCHEDULED – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge.
-
IMPORT – A VM import created the image to use as the base image for the recipe.
- Parameters:
buildType
- Indicates the type of build that created this image. The build can be initiated in the following ways:-
USER_INITIATED – A manual pipeline build request.
-
SCHEDULED – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge.
-
IMPORT – A VM import created the image to use as the base image for the recipe.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
imageSource
The origin of the base image that Image Builder used to build this image.
- Parameters:
imageSource
- The origin of the base image that Image Builder used to build this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageSource
The origin of the base image that Image Builder used to build this image.
- Parameters:
imageSource
- The origin of the base image that Image Builder used to build this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanState
Contains information about the current state of scans for this image.
- Parameters:
scanState
- Contains information about the current state of scans for this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanState
Contains information about the current state of scans for this image.
This is a convenience method that creates an instance of theImageScanState.Builder
avoiding the need to create one manually viaImageScanState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscanState(ImageScanState)
.- Parameters:
scanState
- a consumer that will call methods onImageScanState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageScanningConfiguration
Contains settings for vulnerability scans.
- Parameters:
imageScanningConfiguration
- Contains settings for vulnerability scans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanningConfiguration
default Image.Builder imageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration) Contains settings for vulnerability scans.
This is a convenience method that creates an instance of theImageScanningConfiguration.Builder
avoiding the need to create one manually viaImageScanningConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageScanningConfiguration(ImageScanningConfiguration)
.- Parameters:
imageScanningConfiguration
- a consumer that will call methods onImageScanningConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deprecationTime
The time when deprecation occurs for an image resource. This can be a past or future date.
- Parameters:
deprecationTime
- The time when deprecation occurs for an image resource. This can be a past or future date.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleExecutionId
Identifies the last runtime instance of the lifecycle policy to take action on the image.
- Parameters:
lifecycleExecutionId
- Identifies the last runtime instance of the lifecycle policy to take action on the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
- Parameters:
executionRole
- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflows
Contains the build and test workflows that are associated with the image.
- Parameters:
workflows
- Contains the build and test workflows that are associated with the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflows
Contains the build and test workflows that are associated with the image.
- Parameters:
workflows
- Contains the build and test workflows that are associated with the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflows
Contains the build and test workflows that are associated with the image.
This is a convenience method that creates an instance of theWorkflowConfiguration.Builder
avoiding the need to create one manually viaWorkflowConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkflows(List<WorkflowConfiguration>)
.- Parameters:
workflows
- a consumer that will call methods onWorkflowConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-