@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Image extends Object implements Serializable, Cloneable, StructuredPojo
An Image Builder image. You must specify exactly one recipe for the image – either a container recipe (
containerRecipe
), which creates a container image, or an image recipe (imageRecipe
), which
creates an AMI.
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
Image |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Image |
clearTagsEntries()
Removes all the entries added into Tags.
|
Image |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the image.
|
String |
getBuildType()
Indicates the type of build that created this image.
|
ContainerRecipe |
getContainerRecipe()
For container images, this is the container recipe that Image Builder used to create the image.
|
String |
getDateCreated()
The date on which Image Builder created this image.
|
Date |
getDeprecationTime()
The time when deprecation occurs for an image resource.
|
DistributionConfiguration |
getDistributionConfiguration()
The distribution configuration that Image Builder used to create this image.
|
Boolean |
getEnhancedImageMetadataEnabled()
Indicates whether Image Builder collects additional information about the image, such as the operating system
(OS) version and package list.
|
String |
getExecutionRole()
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform
workflow actions.
|
ImageRecipe |
getImageRecipe()
For images that distribute an AMI, this is the image recipe that Image Builder used to create the image.
|
ImageScanningConfiguration |
getImageScanningConfiguration()
Contains settings for vulnerability scans.
|
String |
getImageSource()
The origin of the base image that Image Builder used to build this image.
|
ImageTestsConfiguration |
getImageTestsConfiguration()
The image tests that ran when that Image Builder created this image.
|
InfrastructureConfiguration |
getInfrastructureConfiguration()
The infrastructure that Image Builder used to create this image.
|
String |
getLifecycleExecutionId()
Identifies the last runtime instance of the lifecycle policy to take action on the image.
|
String |
getName()
The name of the image.
|
String |
getOsVersion()
The operating system version for instances that launch from this image.
|
OutputResources |
getOutputResources()
The output resources that Image Builder produces for this image.
|
String |
getPlatform()
The image operating system platform, such as Linux or Windows.
|
ImageScanState |
getScanState()
Contains information about the current state of scans for this image.
|
String |
getSourcePipelineArn()
The Amazon Resource Name (ARN) of the image pipeline that created this image.
|
String |
getSourcePipelineName()
The name of the image pipeline that created this image.
|
ImageState |
getState()
The state of the image.
|
Map<String,String> |
getTags()
The tags that apply to this image.
|
String |
getType()
Specifies whether this image produces an AMI or a container image.
|
String |
getVersion()
The semantic version of the image.
|
List<WorkflowConfiguration> |
getWorkflows()
Contains the build and test workflows that are associated with the image.
|
int |
hashCode() |
Boolean |
isEnhancedImageMetadataEnabled()
Indicates whether Image Builder collects additional information about the image, such as the operating system
(OS) version and package list.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the image.
|
void |
setBuildType(String buildType)
Indicates the type of build that created this image.
|
void |
setContainerRecipe(ContainerRecipe containerRecipe)
For container images, this is the container recipe that Image Builder used to create the image.
|
void |
setDateCreated(String dateCreated)
The date on which Image Builder created this image.
|
void |
setDeprecationTime(Date deprecationTime)
The time when deprecation occurs for an image resource.
|
void |
setDistributionConfiguration(DistributionConfiguration distributionConfiguration)
The distribution configuration that Image Builder used to create this image.
|
void |
setEnhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled)
Indicates whether Image Builder collects additional information about the image, such as the operating system
(OS) version and package list.
|
void |
setExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform
workflow actions.
|
void |
setImageRecipe(ImageRecipe imageRecipe)
For images that distribute an AMI, this is the image recipe that Image Builder used to create the image.
|
void |
setImageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration)
Contains settings for vulnerability scans.
|
void |
setImageSource(String imageSource)
The origin of the base image that Image Builder used to build this image.
|
void |
setImageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration)
The image tests that ran when that Image Builder created this image.
|
void |
setInfrastructureConfiguration(InfrastructureConfiguration infrastructureConfiguration)
The infrastructure that Image Builder used to create this image.
|
void |
setLifecycleExecutionId(String lifecycleExecutionId)
Identifies the last runtime instance of the lifecycle policy to take action on the image.
|
void |
setName(String name)
The name of the image.
|
void |
setOsVersion(String osVersion)
The operating system version for instances that launch from this image.
|
void |
setOutputResources(OutputResources outputResources)
The output resources that Image Builder produces for this image.
|
void |
setPlatform(String platform)
The image operating system platform, such as Linux or Windows.
|
void |
setScanState(ImageScanState scanState)
Contains information about the current state of scans for this image.
|
void |
setSourcePipelineArn(String sourcePipelineArn)
The Amazon Resource Name (ARN) of the image pipeline that created this image.
|
void |
setSourcePipelineName(String sourcePipelineName)
The name of the image pipeline that created this image.
|
void |
setState(ImageState state)
The state of the image.
|
void |
setTags(Map<String,String> tags)
The tags that apply to this image.
|
void |
setType(String type)
Specifies whether this image produces an AMI or a container image.
|
void |
setVersion(String version)
The semantic version of the image.
|
void |
setWorkflows(Collection<WorkflowConfiguration> workflows)
Contains the build and test workflows that are associated with the image.
|
String |
toString()
Returns a string representation of this object.
|
Image |
withArn(String arn)
The Amazon Resource Name (ARN) of the image.
|
Image |
withBuildType(BuildType buildType)
Indicates the type of build that created this image.
|
Image |
withBuildType(String buildType)
Indicates the type of build that created this image.
|
Image |
withContainerRecipe(ContainerRecipe containerRecipe)
For container images, this is the container recipe that Image Builder used to create the image.
|
Image |
withDateCreated(String dateCreated)
The date on which Image Builder created this image.
|
Image |
withDeprecationTime(Date deprecationTime)
The time when deprecation occurs for an image resource.
|
Image |
withDistributionConfiguration(DistributionConfiguration distributionConfiguration)
The distribution configuration that Image Builder used to create this image.
|
Image |
withEnhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled)
Indicates whether Image Builder collects additional information about the image, such as the operating system
(OS) version and package list.
|
Image |
withExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform
workflow actions.
|
Image |
withImageRecipe(ImageRecipe imageRecipe)
For images that distribute an AMI, this is the image recipe that Image Builder used to create the image.
|
Image |
withImageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration)
Contains settings for vulnerability scans.
|
Image |
withImageSource(ImageSource imageSource)
The origin of the base image that Image Builder used to build this image.
|
Image |
withImageSource(String imageSource)
The origin of the base image that Image Builder used to build this image.
|
Image |
withImageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration)
The image tests that ran when that Image Builder created this image.
|
Image |
withInfrastructureConfiguration(InfrastructureConfiguration infrastructureConfiguration)
The infrastructure that Image Builder used to create this image.
|
Image |
withLifecycleExecutionId(String lifecycleExecutionId)
Identifies the last runtime instance of the lifecycle policy to take action on the image.
|
Image |
withName(String name)
The name of the image.
|
Image |
withOsVersion(String osVersion)
The operating system version for instances that launch from this image.
|
Image |
withOutputResources(OutputResources outputResources)
The output resources that Image Builder produces for this image.
|
Image |
withPlatform(Platform platform)
The image operating system platform, such as Linux or Windows.
|
Image |
withPlatform(String platform)
The image operating system platform, such as Linux or Windows.
|
Image |
withScanState(ImageScanState scanState)
Contains information about the current state of scans for this image.
|
Image |
withSourcePipelineArn(String sourcePipelineArn)
The Amazon Resource Name (ARN) of the image pipeline that created this image.
|
Image |
withSourcePipelineName(String sourcePipelineName)
The name of the image pipeline that created this image.
|
Image |
withState(ImageState state)
The state of the image.
|
Image |
withTags(Map<String,String> tags)
The tags that apply to this image.
|
Image |
withType(ImageType type)
Specifies whether this image produces an AMI or a container image.
|
Image |
withType(String type)
Specifies whether this image produces an AMI or a container image.
|
Image |
withVersion(String version)
The semantic version of the image.
|
Image |
withWorkflows(Collection<WorkflowConfiguration> workflows)
Contains the build and test workflows that are associated with the image.
|
Image |
withWorkflows(WorkflowConfiguration... workflows)
Contains the build and test workflows that are associated with the image.
|
public void setArn(String 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.
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.
public String getArn()
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.
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.
public Image withArn(String 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.
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.
public void setType(String type)
Specifies whether this image produces an AMI or a container image.
type
- Specifies whether this image produces an AMI or a container image.ImageType
public String getType()
Specifies whether this image produces an AMI or a container image.
ImageType
public Image withType(String type)
Specifies whether this image produces an AMI or a container image.
type
- Specifies whether this image produces an AMI or a container image.ImageType
public Image withType(ImageType type)
Specifies whether this image produces an AMI or a container image.
type
- Specifies whether this image produces an AMI or a container image.ImageType
public void setName(String name)
The name of the image.
name
- The name of the image.public String getName()
The name of the image.
public Image withName(String name)
The name of the image.
name
- The name of the image.public void setVersion(String 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.
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.
public String getVersion()
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.
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.
public Image withVersion(String 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.
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.
public void setPlatform(String platform)
The image operating system platform, such as Linux or Windows.
platform
- The image operating system platform, such as Linux or Windows.Platform
public String getPlatform()
The image operating system platform, such as Linux or Windows.
Platform
public Image withPlatform(String platform)
The image operating system platform, such as Linux or Windows.
platform
- The image operating system platform, such as Linux or Windows.Platform
public Image withPlatform(Platform platform)
The image operating system platform, such as Linux or Windows.
platform
- The image operating system platform, such as Linux or Windows.Platform
public void setEnhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled)
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
enhancedImageMetadataEnabled
- Indicates whether Image Builder collects additional information about the image, such as the operating
system (OS) version and package list.public Boolean getEnhancedImageMetadataEnabled()
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
public Image withEnhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled)
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
enhancedImageMetadataEnabled
- Indicates whether Image Builder collects additional information about the image, such as the operating
system (OS) version and package list.public Boolean isEnhancedImageMetadataEnabled()
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
public void setOsVersion(String osVersion)
The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
osVersion
- The operating system version for instances that launch from this image. For example, Amazon Linux 2,
Ubuntu 18, or Microsoft Windows Server 2019.public String getOsVersion()
The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
public Image withOsVersion(String osVersion)
The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
osVersion
- The operating system version for instances that launch from this image. For example, Amazon Linux 2,
Ubuntu 18, or Microsoft Windows Server 2019.public void setState(ImageState state)
The state of the image.
state
- The state of the image.public ImageState getState()
The state of the image.
public Image withState(ImageState state)
The state of the image.
state
- The state of the image.public void setImageRecipe(ImageRecipe 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.
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.public ImageRecipe getImageRecipe()
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.
public Image withImageRecipe(ImageRecipe 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.
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.public void setContainerRecipe(ContainerRecipe 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.
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.public ContainerRecipe getContainerRecipe()
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.
public Image withContainerRecipe(ContainerRecipe 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.
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.public void setSourcePipelineName(String sourcePipelineName)
The name of the image pipeline that created this image.
sourcePipelineName
- The name of the image pipeline that created this image.public String getSourcePipelineName()
The name of the image pipeline that created this image.
public Image withSourcePipelineName(String sourcePipelineName)
The name of the image pipeline that created this image.
sourcePipelineName
- The name of the image pipeline that created this image.public void setSourcePipelineArn(String sourcePipelineArn)
The Amazon Resource Name (ARN) of the image pipeline that created this image.
sourcePipelineArn
- The Amazon Resource Name (ARN) of the image pipeline that created this image.public String getSourcePipelineArn()
The Amazon Resource Name (ARN) of the image pipeline that created this image.
public Image withSourcePipelineArn(String sourcePipelineArn)
The Amazon Resource Name (ARN) of the image pipeline that created this image.
sourcePipelineArn
- The Amazon Resource Name (ARN) of the image pipeline that created this image.public void setInfrastructureConfiguration(InfrastructureConfiguration infrastructureConfiguration)
The infrastructure that Image Builder used to create this image.
infrastructureConfiguration
- The infrastructure that Image Builder used to create this image.public InfrastructureConfiguration getInfrastructureConfiguration()
The infrastructure that Image Builder used to create this image.
public Image withInfrastructureConfiguration(InfrastructureConfiguration infrastructureConfiguration)
The infrastructure that Image Builder used to create this image.
infrastructureConfiguration
- The infrastructure that Image Builder used to create this image.public void setDistributionConfiguration(DistributionConfiguration distributionConfiguration)
The distribution configuration that Image Builder used to create this image.
distributionConfiguration
- The distribution configuration that Image Builder used to create this image.public DistributionConfiguration getDistributionConfiguration()
The distribution configuration that Image Builder used to create this image.
public Image withDistributionConfiguration(DistributionConfiguration distributionConfiguration)
The distribution configuration that Image Builder used to create this image.
distributionConfiguration
- The distribution configuration that Image Builder used to create this image.public void setImageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration)
The image tests that ran when that Image Builder created this image.
imageTestsConfiguration
- The image tests that ran when that Image Builder created this image.public ImageTestsConfiguration getImageTestsConfiguration()
The image tests that ran when that Image Builder created this image.
public Image withImageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration)
The image tests that ran when that Image Builder created this image.
imageTestsConfiguration
- The image tests that ran when that Image Builder created this image.public void setDateCreated(String dateCreated)
The date on which Image Builder created this image.
dateCreated
- The date on which Image Builder created this image.public String getDateCreated()
The date on which Image Builder created this image.
public Image withDateCreated(String dateCreated)
The date on which Image Builder created this image.
dateCreated
- The date on which Image Builder created this image.public void setOutputResources(OutputResources outputResources)
The output resources that Image Builder produces for this image.
outputResources
- The output resources that Image Builder produces for this image.public OutputResources getOutputResources()
The output resources that Image Builder produces for this image.
public Image withOutputResources(OutputResources outputResources)
The output resources that Image Builder produces for this image.
outputResources
- The output resources that Image Builder produces for this image.public Map<String,String> getTags()
The tags that apply to this image.
public void setTags(Map<String,String> tags)
The tags that apply to this image.
tags
- The tags that apply to this image.public Image withTags(Map<String,String> tags)
The tags that apply to this image.
tags
- The tags that apply to this image.public Image clearTagsEntries()
public void setBuildType(String 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.
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.
BuildType
public String getBuildType()
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.
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.
BuildType
public Image withBuildType(String 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.
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.
BuildType
public Image withBuildType(BuildType 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.
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.
BuildType
public void setImageSource(String imageSource)
The origin of the base image that Image Builder used to build this image.
imageSource
- The origin of the base image that Image Builder used to build this image.ImageSource
public String getImageSource()
The origin of the base image that Image Builder used to build this image.
ImageSource
public Image withImageSource(String imageSource)
The origin of the base image that Image Builder used to build this image.
imageSource
- The origin of the base image that Image Builder used to build this image.ImageSource
public Image withImageSource(ImageSource imageSource)
The origin of the base image that Image Builder used to build this image.
imageSource
- The origin of the base image that Image Builder used to build this image.ImageSource
public void setScanState(ImageScanState scanState)
Contains information about the current state of scans for this image.
scanState
- Contains information about the current state of scans for this image.public ImageScanState getScanState()
Contains information about the current state of scans for this image.
public Image withScanState(ImageScanState scanState)
Contains information about the current state of scans for this image.
scanState
- Contains information about the current state of scans for this image.public void setImageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration)
Contains settings for vulnerability scans.
imageScanningConfiguration
- Contains settings for vulnerability scans.public ImageScanningConfiguration getImageScanningConfiguration()
Contains settings for vulnerability scans.
public Image withImageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration)
Contains settings for vulnerability scans.
imageScanningConfiguration
- Contains settings for vulnerability scans.public void setDeprecationTime(Date deprecationTime)
The time when deprecation occurs for an image resource. This can be a past or future date.
deprecationTime
- The time when deprecation occurs for an image resource. This can be a past or future date.public Date getDeprecationTime()
The time when deprecation occurs for an image resource. This can be a past or future date.
public Image withDeprecationTime(Date deprecationTime)
The time when deprecation occurs for an image resource. This can be a past or future date.
deprecationTime
- The time when deprecation occurs for an image resource. This can be a past or future date.public void setLifecycleExecutionId(String lifecycleExecutionId)
Identifies the last runtime instance of the lifecycle policy to take action on the image.
lifecycleExecutionId
- Identifies the last runtime instance of the lifecycle policy to take action on the image.public String getLifecycleExecutionId()
Identifies the last runtime instance of the lifecycle policy to take action on the image.
public Image withLifecycleExecutionId(String lifecycleExecutionId)
Identifies the last runtime instance of the lifecycle policy to take action on the image.
lifecycleExecutionId
- Identifies the last runtime instance of the lifecycle policy to take action on the image.public void setExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
executionRole
- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to
perform workflow actions.public String getExecutionRole()
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
public Image withExecutionRole(String executionRole)
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
executionRole
- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to
perform workflow actions.public List<WorkflowConfiguration> getWorkflows()
Contains the build and test workflows that are associated with the image.
public void setWorkflows(Collection<WorkflowConfiguration> workflows)
Contains the build and test workflows that are associated with the image.
workflows
- Contains the build and test workflows that are associated with the image.public Image withWorkflows(WorkflowConfiguration... workflows)
Contains the build and test workflows that are associated with the image.
NOTE: This method appends the values to the existing list (if any). Use
setWorkflows(java.util.Collection)
or withWorkflows(java.util.Collection)
if you want to
override the existing values.
workflows
- Contains the build and test workflows that are associated with the image.public Image withWorkflows(Collection<WorkflowConfiguration> workflows)
Contains the build and test workflows that are associated with the image.
workflows
- Contains the build and test workflows that are associated with the image.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.