2024/10/22 - EC2 Image Builder - 21 updated api methods
Changes Add macOS platform and instance placement options
{'platform': {'macOS'}}
Creates a new component that can be used to build, validate, test, and assess your image. The component is based on a YAML document that you specify using exactly one of the following methods:
Inline, using the data property in the request body.
A URL that points to a YAML document file stored in Amazon S3, using the uri property in the request body.
See also: AWS API Documentation
Request Syntax
client.create_component( name='string', semanticVersion='string', description='string', changeDescription='string', platform='Windows'|'Linux'|'macOS', supportedOsVersions=[ 'string', ], data='string', uri='string', kmsKeyId='string', tags={ 'string': 'string' }, clientToken='string' )
string
[REQUIRED]
The name of the component.
string
[REQUIRED]
The semantic version of the component. This version follows the semantic version syntax.
string
Describes the contents of the component.
string
The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of the component.
string
[REQUIRED]
The operating system platform of the component.
list
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
(string) --
string
Component data contains inline YAML document content for the component. Alternatively, you can specify the uri of a YAML document file stored in Amazon S3. However, you cannot specify both properties.
string
The uri of a YAML component document file. This must be an S3 URL ( s3://bucket/key), and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can specify component content up to your service quota.
Alternatively, you can specify the YAML document inline, using the component data property. You cannot specify both properties.
string
The ID of the KMS key that is used to encrypt this component.
dict
The tags that apply to the component.
(string) --
(string) --
string
[REQUIRED]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'clientToken': 'string', 'componentBuildVersionArn': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
clientToken (string) --
The client token that uniquely identifies the request.
componentBuildVersionArn (string) --
The Amazon Resource Name (ARN) of the component that the request created.
{'platformOverride': {'macOS'}}
Creates a new container recipe. Container recipes define how images are configured, tested, and assessed.
See also: AWS API Documentation
Request Syntax
client.create_container_recipe( containerType='DOCKER', name='string', description='string', semanticVersion='string', components=[ { 'componentArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ] }, ], instanceConfiguration={ 'image': 'string', 'blockDeviceMappings': [ { 'deviceName': 'string', 'ebs': { 'encrypted': True|False, 'deleteOnTermination': True|False, 'iops': 123, 'kmsKeyId': 'string', 'snapshotId': 'string', 'volumeSize': 123, 'volumeType': 'standard'|'io1'|'io2'|'gp2'|'gp3'|'sc1'|'st1', 'throughput': 123 }, 'virtualName': 'string', 'noDevice': 'string' }, ] }, dockerfileTemplateData='string', dockerfileTemplateUri='string', platformOverride='Windows'|'Linux'|'macOS', imageOsVersionOverride='string', parentImage='string', tags={ 'string': 'string' }, workingDirectory='string', targetRepository={ 'service': 'ECR', 'repositoryName': 'string' }, kmsKeyId='string', clientToken='string' )
string
[REQUIRED]
The type of container to create.
string
[REQUIRED]
The name of the container recipe.
string
The description of the container recipe.
string
[REQUIRED]
The semantic version of the container recipe. This version follows the semantic version syntax.
list
[REQUIRED]
Components for build and test that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
(dict) --
Configuration details of the component.
componentArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the component.
parameters (list) --
A group of parameter settings that Image Builder uses to configure the component for a specific recipe.
(dict) --
Contains a key/value pair that sets the named component parameter.
name (string) -- [REQUIRED]
The name of the component parameter to set.
value (list) -- [REQUIRED]
Sets the value for the named component parameter.
(string) --
dict
A group of options that can be used to configure an instance for building and testing container images.
image (string) --
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
blockDeviceMappings (list) --
Defines the block devices to attach for building an instance from this Image Builder AMI.
(dict) --
Defines block device mappings for the instance used to configure your image.
deviceName (string) --
The device to which these mappings apply.
ebs (dict) --
Use to manage Amazon EBS-specific configuration for this mapping.
encrypted (boolean) --
Use to configure device encryption.
deleteOnTermination (boolean) --
Use to configure delete on termination of the associated device.
iops (integer) --
Use to configure device IOPS.
kmsKeyId (string) --
Use to configure the KMS key to use when encrypting the device.
snapshotId (string) --
The snapshot that defines the device contents.
volumeSize (integer) --
Use to override the device's volume size.
volumeType (string) --
Use to override the device's volume type.
throughput (integer) --
For GP3 volumes only – The throughput in MiB/s that the volume supports.
virtualName (string) --
Use to manage instance ephemeral devices.
noDevice (string) --
Use to remove a mapping from the base image.
string
The Dockerfile template used to build your image as an inline data blob.
string
The Amazon S3 URI for the Dockerfile that will be used to build your container image.
string
Specifies the operating system platform when you use a custom base image.
string
Specifies the operating system version for the base image.
string
[REQUIRED]
The base image for the container recipe.
dict
Tags that are attached to the container recipe.
(string) --
(string) --
string
The working directory for use during build and test workflows.
dict
[REQUIRED]
The destination repository for the container image.
service (string) -- [REQUIRED]
Specifies the service in which this image was registered.
repositoryName (string) -- [REQUIRED]
The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
string
Identifies which KMS key is used to encrypt the Dockerfile template.
string
[REQUIRED]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'clientToken': 'string', 'containerRecipeArn': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
clientToken (string) --
The client token that uniquely identifies the request.
containerRecipeArn (string) --
Returns the Amazon Resource Name (ARN) of the container recipe that the request created.
{'placement': {'availabilityZone': 'string', 'hostId': 'string', 'hostResourceGroupArn': 'string', 'tenancy': 'default | dedicated | host'}}
Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
See also: AWS API Documentation
Request Syntax
client.create_infrastructure_configuration( name='string', description='string', instanceTypes=[ 'string', ], instanceProfileName='string', securityGroupIds=[ 'string', ], subnetId='string', logging={ 's3Logs': { 's3BucketName': 'string', 's3KeyPrefix': 'string' } }, keyPair='string', terminateInstanceOnFailure=True|False, snsTopicArn='string', resourceTags={ 'string': 'string' }, instanceMetadataOptions={ 'httpTokens': 'string', 'httpPutResponseHopLimit': 123 }, tags={ 'string': 'string' }, placement={ 'availabilityZone': 'string', 'tenancy': 'default'|'dedicated'|'host', 'hostId': 'string', 'hostResourceGroupArn': 'string' }, clientToken='string' )
string
[REQUIRED]
The name of the infrastructure configuration.
string
The description of the infrastructure configuration.
list
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
(string) --
string
[REQUIRED]
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
list
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
(string) --
string
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
dict
The logging configuration of the infrastructure configuration.
s3Logs (dict) --
The Amazon S3 logging configuration.
s3BucketName (string) --
The S3 bucket in which to store the logs.
s3KeyPrefix (string) --
The Amazon S3 path to the bucket where the logs are stored.
string
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
boolean
The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
string
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
dict
The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs.
(string) --
(string) --
dict
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
httpTokens (string) --
Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.
optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.
The default setting is optional.
httpPutResponseHopLimit (integer) --
Limit the number of hops that an instance metadata request can traverse to reach its destination. The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.
dict
The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. Tags are formatted as key value pairs.
(string) --
(string) --
dict
The instance placement settings that define where the instances that are launched from your image will run.
availabilityZone (string) --
The Availability Zone where your build and test instances will launch.
tenancy (string) --
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.
If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.
hostId (string) --
The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.
hostResourceGroupArn (string) --
The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.
string
[REQUIRED]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'clientToken': 'string', 'infrastructureConfigurationArn': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
clientToken (string) --
The client token that uniquely identifies the request.
infrastructureConfigurationArn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration that was created by this request.
{'component': {'platform': {'macOS'}}}
Gets a component object.
See also: AWS API Documentation
Request Syntax
client.get_component( componentBuildVersionArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the component that you want to get. Regex requires the suffix /\d+$.
dict
Response Syntax
{ 'requestId': 'string', 'component': { 'arn': 'string', 'name': 'string', 'version': 'string', 'description': 'string', 'changeDescription': 'string', 'type': 'BUILD'|'TEST', 'platform': 'Windows'|'Linux'|'macOS', 'supportedOsVersions': [ 'string', ], 'state': { 'status': 'DEPRECATED', 'reason': 'string' }, 'parameters': [ { 'name': 'string', 'type': 'string', 'defaultValue': [ 'string', ], 'description': 'string' }, ], 'owner': 'string', 'data': 'string', 'kmsKeyId': 'string', 'encrypted': True|False, 'dateCreated': 'string', 'tags': { 'string': 'string' }, 'publisher': 'string', 'obfuscate': True|False } }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
component (dict) --
The component object specified in the request.
arn (string) --
The Amazon Resource Name (ARN) of the component.
name (string) --
The name of the component.
version (string) --
The version of the component.
description (string) --
The description of the component.
changeDescription (string) --
Describes what change has been made in this version of the component, or what makes this version different from other versions of the component.
type (string) --
The component type specifies whether Image Builder uses the component to build the image or only to test it.
platform (string) --
The operating system platform of the component.
supportedOsVersions (list) --
The operating system (OS) version supported by the component. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
(string) --
state (dict) --
Describes the current status of the component. This is used for components that are no longer active.
status (string) --
The current state of the component.
reason (string) --
Describes how or why the component changed state.
parameters (list) --
Contains parameter details for each of the parameters that the component document defined for the component.
(dict) --
Defines a parameter that is used to provide configuration details for the component.
name (string) --
The name of this input parameter.
type (string) --
The type of input this parameter provides. The currently supported value is "string".
defaultValue (list) --
The default value of this parameter if no input is provided.
(string) --
description (string) --
Describes this parameter.
owner (string) --
The owner of the component.
data (string) --
Component data contains the YAML document content for the component.
kmsKeyId (string) --
The KMS key identifier used to encrypt the component.
encrypted (boolean) --
The encryption status of the component.
dateCreated (string) --
The date that Image Builder created the component.
tags (dict) --
The tags that apply to the component.
(string) --
(string) --
publisher (string) --
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
obfuscate (boolean) --
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
{'containerRecipe': {'platform': {'macOS'}}}
Retrieves a container recipe.
See also: AWS API Documentation
Request Syntax
client.get_container_recipe( containerRecipeArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the container recipe to retrieve.
dict
Response Syntax
{ 'requestId': 'string', 'containerRecipe': { 'arn': 'string', 'containerType': 'DOCKER', 'name': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'owner': 'string', 'version': 'string', 'components': [ { 'componentArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ] }, ], 'instanceConfiguration': { 'image': 'string', 'blockDeviceMappings': [ { 'deviceName': 'string', 'ebs': { 'encrypted': True|False, 'deleteOnTermination': True|False, 'iops': 123, 'kmsKeyId': 'string', 'snapshotId': 'string', 'volumeSize': 123, 'volumeType': 'standard'|'io1'|'io2'|'gp2'|'gp3'|'sc1'|'st1', 'throughput': 123 }, 'virtualName': 'string', 'noDevice': 'string' }, ] }, 'dockerfileTemplateData': 'string', 'kmsKeyId': 'string', 'encrypted': True|False, 'parentImage': 'string', 'dateCreated': 'string', 'tags': { 'string': 'string' }, 'workingDirectory': 'string', 'targetRepository': { 'service': 'ECR', 'repositoryName': 'string' } } }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
containerRecipe (dict) --
The container recipe object that is returned.
arn (string) --
The Amazon Resource Name (ARN) of the container recipe.
containerType (string) --
Specifies the type of container, such as Docker.
name (string) --
The name of the container recipe.
description (string) --
The description of the container recipe.
platform (string) --
The system platform for the container, such as Windows or Linux.
owner (string) --
The owner of the container recipe.
version (string) --
The semantic version of the container recipe.
components (list) --
Build and test components that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
(dict) --
Configuration details of the component.
componentArn (string) --
The Amazon Resource Name (ARN) of the component.
parameters (list) --
A group of parameter settings that Image Builder uses to configure the component for a specific recipe.
(dict) --
Contains a key/value pair that sets the named component parameter.
name (string) --
The name of the component parameter to set.
value (list) --
Sets the value for the named component parameter.
(string) --
instanceConfiguration (dict) --
A group of options that can be used to configure an instance for building and testing container images.
image (string) --
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
blockDeviceMappings (list) --
Defines the block devices to attach for building an instance from this Image Builder AMI.
(dict) --
Defines block device mappings for the instance used to configure your image.
deviceName (string) --
The device to which these mappings apply.
ebs (dict) --
Use to manage Amazon EBS-specific configuration for this mapping.
encrypted (boolean) --
Use to configure device encryption.
deleteOnTermination (boolean) --
Use to configure delete on termination of the associated device.
iops (integer) --
Use to configure device IOPS.
kmsKeyId (string) --
Use to configure the KMS key to use when encrypting the device.
snapshotId (string) --
The snapshot that defines the device contents.
volumeSize (integer) --
Use to override the device's volume size.
volumeType (string) --
Use to override the device's volume type.
throughput (integer) --
For GP3 volumes only – The throughput in MiB/s that the volume supports.
virtualName (string) --
Use to manage instance ephemeral devices.
noDevice (string) --
Use to remove a mapping from the base image.
dockerfileTemplateData (string) --
Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.
kmsKeyId (string) --
Identifies which KMS key is used to encrypt the container image for distribution to the target Region.
encrypted (boolean) --
A flag that indicates if the target container is encrypted.
parentImage (string) --
The base image for the container recipe.
dateCreated (string) --
The date when this container recipe was created.
tags (dict) --
Tags that are attached to the container recipe.
(string) --
(string) --
workingDirectory (string) --
The working directory for use during build and test workflows.
targetRepository (dict) --
The destination repository for the container image.
service (string) --
Specifies the service in which this image was registered.
repositoryName (string) --
The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
{'image': {'containerRecipe': {'platform': {'macOS'}}, 'imageRecipe': {'platform': {'macOS'}}, 'infrastructureConfiguration': {'placement': {'availabilityZone': 'string', 'hostId': 'string', 'hostResourceGroupArn': 'string', 'tenancy': 'default | ' 'dedicated ' '| host'}}, 'platform': {'macOS'}}}
Gets an image.
See also: AWS API Documentation
Request Syntax
client.get_image( imageBuildVersionArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the image that you want to get.
dict
Response Syntax
{ 'requestId': 'string', 'image': { 'arn': 'string', 'type': 'AMI'|'DOCKER', 'name': 'string', 'version': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'enhancedImageMetadataEnabled': True|False, 'osVersion': 'string', 'state': { 'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED'|'DISABLED', 'reason': 'string' }, 'imageRecipe': { 'arn': 'string', 'type': 'AMI'|'DOCKER', 'name': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'owner': 'string', 'version': 'string', 'components': [ { 'componentArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ] }, ], 'parentImage': 'string', 'blockDeviceMappings': [ { 'deviceName': 'string', 'ebs': { 'encrypted': True|False, 'deleteOnTermination': True|False, 'iops': 123, 'kmsKeyId': 'string', 'snapshotId': 'string', 'volumeSize': 123, 'volumeType': 'standard'|'io1'|'io2'|'gp2'|'gp3'|'sc1'|'st1', 'throughput': 123 }, 'virtualName': 'string', 'noDevice': 'string' }, ], 'dateCreated': 'string', 'tags': { 'string': 'string' }, 'workingDirectory': 'string', 'additionalInstanceConfiguration': { 'systemsManagerAgent': { 'uninstallAfterBuild': True|False }, 'userDataOverride': 'string' } }, 'containerRecipe': { 'arn': 'string', 'containerType': 'DOCKER', 'name': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'owner': 'string', 'version': 'string', 'components': [ { 'componentArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ] }, ], 'instanceConfiguration': { 'image': 'string', 'blockDeviceMappings': [ { 'deviceName': 'string', 'ebs': { 'encrypted': True|False, 'deleteOnTermination': True|False, 'iops': 123, 'kmsKeyId': 'string', 'snapshotId': 'string', 'volumeSize': 123, 'volumeType': 'standard'|'io1'|'io2'|'gp2'|'gp3'|'sc1'|'st1', 'throughput': 123 }, 'virtualName': 'string', 'noDevice': 'string' }, ] }, 'dockerfileTemplateData': 'string', 'kmsKeyId': 'string', 'encrypted': True|False, 'parentImage': 'string', 'dateCreated': 'string', 'tags': { 'string': 'string' }, 'workingDirectory': 'string', 'targetRepository': { 'service': 'ECR', 'repositoryName': 'string' } }, 'sourcePipelineName': 'string', 'sourcePipelineArn': 'string', 'infrastructureConfiguration': { 'arn': 'string', 'name': 'string', 'description': 'string', 'instanceTypes': [ 'string', ], 'instanceProfileName': 'string', 'securityGroupIds': [ 'string', ], 'subnetId': 'string', 'logging': { 's3Logs': { 's3BucketName': 'string', 's3KeyPrefix': 'string' } }, 'keyPair': 'string', 'terminateInstanceOnFailure': True|False, 'snsTopicArn': 'string', 'dateCreated': 'string', 'dateUpdated': 'string', 'resourceTags': { 'string': 'string' }, 'instanceMetadataOptions': { 'httpTokens': 'string', 'httpPutResponseHopLimit': 123 }, 'tags': { 'string': 'string' }, 'placement': { 'availabilityZone': 'string', 'tenancy': 'default'|'dedicated'|'host', 'hostId': 'string', 'hostResourceGroupArn': 'string' } }, 'distributionConfiguration': { 'arn': 'string', 'name': 'string', 'description': 'string', 'distributions': [ { 'region': 'string', 'amiDistributionConfiguration': { 'name': 'string', 'description': 'string', 'targetAccountIds': [ 'string', ], 'amiTags': { 'string': 'string' }, 'kmsKeyId': 'string', 'launchPermission': { 'userIds': [ 'string', ], 'userGroups': [ 'string', ], 'organizationArns': [ 'string', ], 'organizationalUnitArns': [ 'string', ] } }, 'containerDistributionConfiguration': { 'description': 'string', 'containerTags': [ 'string', ], 'targetRepository': { 'service': 'ECR', 'repositoryName': 'string' } }, 'licenseConfigurationArns': [ 'string', ], 'launchTemplateConfigurations': [ { 'launchTemplateId': 'string', 'accountId': 'string', 'setDefaultVersion': True|False }, ], 's3ExportConfiguration': { 'roleName': 'string', 'diskImageFormat': 'VMDK'|'RAW'|'VHD', 's3Bucket': 'string', 's3Prefix': 'string' }, 'fastLaunchConfigurations': [ { 'enabled': True|False, 'snapshotConfiguration': { 'targetResourceCount': 123 }, 'maxParallelLaunches': 123, 'launchTemplate': { 'launchTemplateId': 'string', 'launchTemplateName': 'string', 'launchTemplateVersion': 'string' }, 'accountId': 'string' }, ] }, ], 'timeoutMinutes': 123, 'dateCreated': 'string', 'dateUpdated': 'string', 'tags': { 'string': 'string' } }, 'imageTestsConfiguration': { 'imageTestsEnabled': True|False, 'timeoutMinutes': 123 }, 'dateCreated': 'string', 'outputResources': { 'amis': [ { 'region': 'string', 'image': 'string', 'name': 'string', 'description': 'string', 'state': { 'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED'|'DISABLED', 'reason': 'string' }, 'accountId': 'string' }, ], 'containers': [ { 'region': 'string', 'imageUris': [ 'string', ] }, ] }, 'tags': { 'string': 'string' }, 'buildType': 'USER_INITIATED'|'SCHEDULED'|'IMPORT', 'imageSource': 'AMAZON_MANAGED'|'AWS_MARKETPLACE'|'IMPORTED'|'CUSTOM', 'scanState': { 'status': 'PENDING'|'SCANNING'|'COLLECTING'|'COMPLETED'|'ABANDONED'|'FAILED'|'TIMED_OUT', 'reason': 'string' }, 'imageScanningConfiguration': { 'imageScanningEnabled': True|False, 'ecrConfiguration': { 'repositoryName': 'string', 'containerTags': [ 'string', ] } }, 'deprecationTime': datetime(2015, 1, 1), 'lifecycleExecutionId': 'string', 'executionRole': 'string', 'workflows': [ { 'workflowArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ], 'parallelGroup': 'string', 'onFailure': 'CONTINUE'|'ABORT' }, ] } }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
image (dict) --
The image object.
arn (string) --
The Amazon Resource Name (ARN) of the image.
type (string) --
Specifies whether this image produces an AMI or a container image.
name (string) --
The name of the image.
version (string) --
The semantic version of the image.
platform (string) --
The image operating system platform, such as Linux or Windows.
enhancedImageMetadataEnabled (boolean) --
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
osVersion (string) --
The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
state (dict) --
The state of the image.
status (string) --
The status of the image.
reason (string) --
The reason for the status of the image.
imageRecipe (dict) --
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.
arn (string) --
The Amazon Resource Name (ARN) of the image recipe.
type (string) --
Specifies which type of image is created by the recipe - an AMI or a container image.
name (string) --
The name of the image recipe.
description (string) --
The description of the image recipe.
platform (string) --
The platform of the image recipe.
owner (string) --
The owner of the image recipe.
version (string) --
The version of the image recipe.
components (list) --
The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
(dict) --
Configuration details of the component.
componentArn (string) --
The Amazon Resource Name (ARN) of the component.
parameters (list) --
A group of parameter settings that Image Builder uses to configure the component for a specific recipe.
(dict) --
Contains a key/value pair that sets the named component parameter.
name (string) --
The name of the component parameter to set.
value (list) --
Sets the value for the named component parameter.
(string) --
parentImage (string) --
The base image of the image recipe.
blockDeviceMappings (list) --
The block device mappings to apply when creating images from this recipe.
(dict) --
Defines block device mappings for the instance used to configure your image.
deviceName (string) --
The device to which these mappings apply.
ebs (dict) --
Use to manage Amazon EBS-specific configuration for this mapping.
encrypted (boolean) --
Use to configure device encryption.
deleteOnTermination (boolean) --
Use to configure delete on termination of the associated device.
iops (integer) --
Use to configure device IOPS.
kmsKeyId (string) --
Use to configure the KMS key to use when encrypting the device.
snapshotId (string) --
The snapshot that defines the device contents.
volumeSize (integer) --
Use to override the device's volume size.
volumeType (string) --
Use to override the device's volume type.
throughput (integer) --
For GP3 volumes only – The throughput in MiB/s that the volume supports.
virtualName (string) --
Use to manage instance ephemeral devices.
noDevice (string) --
Use to remove a mapping from the base image.
dateCreated (string) --
The date on which this image recipe was created.
tags (dict) --
The tags of the image recipe.
(string) --
(string) --
workingDirectory (string) --
The working directory to be used during build and test workflows.
additionalInstanceConfiguration (dict) --
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
systemsManagerAgent (dict) --
Contains settings for the Systems Manager agent on your build instance.
uninstallAfterBuild (boolean) --
Controls whether the Systems Manager agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
userDataOverride (string) --
Use this property to provide commands or a command script to run when you launch your build instance.
The userDataOverride property replaces any commands that Image Builder might have added to ensure that Systems Manager is installed on your Linux build instance. If you override the user data, make sure that you add commands to install Systems Manager, if it is not pre-installed on your base image.
containerRecipe (dict) --
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.
arn (string) --
The Amazon Resource Name (ARN) of the container recipe.
containerType (string) --
Specifies the type of container, such as Docker.
name (string) --
The name of the container recipe.
description (string) --
The description of the container recipe.
platform (string) --
The system platform for the container, such as Windows or Linux.
owner (string) --
The owner of the container recipe.
version (string) --
The semantic version of the container recipe.
components (list) --
Build and test components that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
(dict) --
Configuration details of the component.
componentArn (string) --
The Amazon Resource Name (ARN) of the component.
parameters (list) --
A group of parameter settings that Image Builder uses to configure the component for a specific recipe.
(dict) --
Contains a key/value pair that sets the named component parameter.
name (string) --
The name of the component parameter to set.
value (list) --
Sets the value for the named component parameter.
(string) --
instanceConfiguration (dict) --
A group of options that can be used to configure an instance for building and testing container images.
image (string) --
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
blockDeviceMappings (list) --
Defines the block devices to attach for building an instance from this Image Builder AMI.
(dict) --
Defines block device mappings for the instance used to configure your image.
deviceName (string) --
The device to which these mappings apply.
ebs (dict) --
Use to manage Amazon EBS-specific configuration for this mapping.
encrypted (boolean) --
Use to configure device encryption.
deleteOnTermination (boolean) --
Use to configure delete on termination of the associated device.
iops (integer) --
Use to configure device IOPS.
kmsKeyId (string) --
Use to configure the KMS key to use when encrypting the device.
snapshotId (string) --
The snapshot that defines the device contents.
volumeSize (integer) --
Use to override the device's volume size.
volumeType (string) --
Use to override the device's volume type.
throughput (integer) --
For GP3 volumes only – The throughput in MiB/s that the volume supports.
virtualName (string) --
Use to manage instance ephemeral devices.
noDevice (string) --
Use to remove a mapping from the base image.
dockerfileTemplateData (string) --
Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.
kmsKeyId (string) --
Identifies which KMS key is used to encrypt the container image for distribution to the target Region.
encrypted (boolean) --
A flag that indicates if the target container is encrypted.
parentImage (string) --
The base image for the container recipe.
dateCreated (string) --
The date when this container recipe was created.
tags (dict) --
Tags that are attached to the container recipe.
(string) --
(string) --
workingDirectory (string) --
The working directory for use during build and test workflows.
targetRepository (dict) --
The destination repository for the container image.
service (string) --
Specifies the service in which this image was registered.
repositoryName (string) --
The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
sourcePipelineName (string) --
The name of the image pipeline that created this image.
sourcePipelineArn (string) --
The Amazon Resource Name (ARN) of the image pipeline that created this image.
infrastructureConfiguration (dict) --
The infrastructure that Image Builder used to create this image.
arn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration.
name (string) --
The name of the infrastructure configuration.
description (string) --
The description of the infrastructure configuration.
instanceTypes (list) --
The instance types of the infrastructure configuration.
(string) --
instanceProfileName (string) --
The instance profile of the infrastructure configuration.
securityGroupIds (list) --
The security group IDs of the infrastructure configuration.
(string) --
subnetId (string) --
The subnet ID of the infrastructure configuration.
logging (dict) --
The logging configuration of the infrastructure configuration.
s3Logs (dict) --
The Amazon S3 logging configuration.
s3BucketName (string) --
The S3 bucket in which to store the logs.
s3KeyPrefix (string) --
The Amazon S3 path to the bucket where the logs are stored.
keyPair (string) --
The Amazon EC2 key pair of the infrastructure configuration.
terminateInstanceOnFailure (boolean) --
The terminate instance on failure configuration of the infrastructure configuration.
snsTopicArn (string) --
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
dateCreated (string) --
The date on which the infrastructure configuration was created.
dateUpdated (string) --
The date on which the infrastructure configuration was last updated.
resourceTags (dict) --
The tags attached to the resource created by Image Builder.
(string) --
(string) --
instanceMetadataOptions (dict) --
The instance metadata option settings for the infrastructure configuration.
httpTokens (string) --
Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.
optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.
The default setting is optional.
httpPutResponseHopLimit (integer) --
Limit the number of hops that an instance metadata request can traverse to reach its destination. The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.
tags (dict) --
The tags of the infrastructure configuration.
(string) --
(string) --
placement (dict) --
The instance placement settings that define where the instances that are launched from your image will run.
availabilityZone (string) --
The Availability Zone where your build and test instances will launch.
tenancy (string) --
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.
If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.
hostId (string) --
The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.
hostResourceGroupArn (string) --
The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.
distributionConfiguration (dict) --
The distribution configuration that Image Builder used to create this image.
arn (string) --
The Amazon Resource Name (ARN) of the distribution configuration.
name (string) --
The name of the distribution configuration.
description (string) --
The description of the distribution configuration.
distributions (list) --
The distribution objects that apply Region-specific settings for the deployment of the image to targeted Regions.
(dict) --
Defines the settings for a specific Region.
region (string) --
The target Region.
amiDistributionConfiguration (dict) --
The specific AMI settings; for example, launch permissions or AMI tags.
name (string) --
The name of the output AMI.
description (string) --
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
targetAccountIds (list) --
The ID of an account to which you want to distribute an image.
(string) --
amiTags (dict) --
The tags to apply to AMIs distributed to this Region.
(string) --
(string) --
kmsKeyId (string) --
The KMS key identifier used to encrypt the distributed image.
launchPermission (dict) --
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
userIds (list) --
The Amazon Web Services account ID.
(string) --
userGroups (list) --
The name of the group.
(string) --
organizationArns (list) --
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
(string) --
organizationalUnitArns (list) --
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
(string) --
containerDistributionConfiguration (dict) --
Container distribution settings for encryption, licensing, and sharing in a specific Region.
description (string) --
The description of the container distribution configuration.
containerTags (list) --
Tags that are attached to the container distribution configuration.
(string) --
targetRepository (dict) --
The destination repository for the container distribution configuration.
service (string) --
Specifies the service in which this image was registered.
repositoryName (string) --
The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
licenseConfigurationArns (list) --
The License Manager Configuration to associate with the AMI in the specified Region.
(string) --
launchTemplateConfigurations (list) --
A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts.
(dict) --
Identifies an Amazon EC2 launch template to use for a specific account.
launchTemplateId (string) --
Identifies the Amazon EC2 launch template to use.
accountId (string) --
The account ID that this configuration applies to.
setDefaultVersion (boolean) --
Set the specified Amazon EC2 launch template as the default launch template for the specified account.
s3ExportConfiguration (dict) --
Configure export settings to deliver disk images created from your image build, using a file format that is compatible with your VMs in that Region.
roleName (string) --
The name of the role that grants VM Import/Export permission to export images to your S3 bucket.
diskImageFormat (string) --
Export the updated image to one of the following supported disk image formats:
Virtual Hard Disk (VHD) – Compatible with Citrix Xen and Microsoft Hyper-V virtualization products.
Stream-optimized ESX Virtual Machine Disk (VMDK) – Compatible with VMware ESX and VMware vSphere versions 4, 5, and 6.
Raw – Raw format.
s3Bucket (string) --
The S3 bucket in which to store the output disk images for your VM.
s3Prefix (string) --
The Amazon S3 path for the bucket where the output disk images for your VM are stored.
fastLaunchConfigurations (list) --
The Windows faster-launching configurations to use for AMI distribution.
(dict) --
Define and configure faster launching for output Windows AMIs.
enabled (boolean) --
A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it.
snapshotConfiguration (dict) --
Configuration settings for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled.
targetResourceCount (integer) --
The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.
maxParallelLaunches (integer) --
The maximum number of parallel instances that are launched for creating resources.
launchTemplate (dict) --
The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots.
launchTemplateId (string) --
The ID of the launch template to use for faster launching for a Windows AMI.
launchTemplateName (string) --
The name of the launch template to use for faster launching for a Windows AMI.
launchTemplateVersion (string) --
The version of the launch template to use for faster launching for a Windows AMI.
accountId (string) --
The owner account ID for the fast-launch enabled Windows AMI.
timeoutMinutes (integer) --
The maximum duration in minutes for this distribution configuration.
dateCreated (string) --
The date on which this distribution configuration was created.
dateUpdated (string) --
The date on which this distribution configuration was last updated.
tags (dict) --
The tags of the distribution configuration.
(string) --
(string) --
imageTestsConfiguration (dict) --
The image tests that ran when that Image Builder created this image.
imageTestsEnabled (boolean) --
Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.
timeoutMinutes (integer) --
The maximum time in minutes that tests are permitted to run.
dateCreated (string) --
The date on which Image Builder created this image.
outputResources (dict) --
The output resources that Image Builder produces for this image.
amis (list) --
The Amazon EC2 AMIs created by this image.
(dict) --
Details of an Amazon EC2 AMI.
region (string) --
The Amazon Web Services Region of the Amazon EC2 AMI.
image (string) --
The AMI ID of the Amazon EC2 AMI.
name (string) --
The name of the Amazon EC2 AMI.
description (string) --
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
state (dict) --
Image status and the reason for that status.
status (string) --
The status of the image.
reason (string) --
The reason for the status of the image.
accountId (string) --
The account ID of the owner of the AMI.
containers (list) --
Container images that the pipeline has generated and stored in the output repository.
(dict) --
A container encapsulates the runtime environment for an application.
region (string) --
Containers and container images are Region-specific. This is the Region context for the container.
imageUris (list) --
A list of URIs for containers created in the context Region.
(string) --
tags (dict) --
The tags that apply to this image.
(string) --
(string) --
buildType (string) --
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.
imageSource (string) --
The origin of the base image that Image Builder used to build this image.
scanState (dict) --
Contains information about the current state of scans for this image.
status (string) --
The current state of vulnerability scans for the image.
reason (string) --
The reason for the scan status for the image.
imageScanningConfiguration (dict) --
Contains settings for vulnerability scans.
imageScanningEnabled (boolean) --
A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
ecrConfiguration (dict) --
Contains Amazon ECR settings for vulnerability scans.
repositoryName (string) --
The name of the container repository that Amazon Inspector scans to identify findings for your container images. The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named image-builder-image-scanning-repository for vulnerability scans of your output container images.
containerTags (list) --
Tags for Image Builder to apply to the output container image that Amazon Inspector scans. Tags can help you identify and manage your scanned images.
(string) --
deprecationTime (datetime) --
The time when deprecation occurs for an image resource. This can be a past or future date.
lifecycleExecutionId (string) --
Identifies the last runtime instance of the lifecycle policy to take action on the image.
executionRole (string) --
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
workflows (list) --
Contains the build and test workflows that are associated with the image.
(dict) --
Contains control settings and configurable inputs for a workflow resource.
workflowArn (string) --
The Amazon Resource Name (ARN) of the workflow resource.
parameters (list) --
Contains parameter values for each of the parameters that the workflow document defined for the workflow resource.
(dict) --
Contains a key/value pair that sets the named workflow parameter.
name (string) --
The name of the workflow parameter to set.
value (list) --
Sets the value for the named workflow parameter.
(string) --
parallelGroup (string) --
Test workflows are defined within named runtime groups called parallel groups. The parallel group is the named group that contains this test workflow. Test workflows within a parallel group can run at the same time. Image Builder starts up to five test workflows in the group at the same time, and starts additional workflows as others complete, until all workflows in the group have completed. This field only applies for test workflows.
onFailure (string) --
The action to take if the workflow fails.
{'imagePipeline': {'platform': {'macOS'}}}
Gets an image pipeline.
See also: AWS API Documentation
Request Syntax
client.get_image_pipeline( imagePipelineArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the image pipeline that you want to retrieve.
dict
Response Syntax
{ 'requestId': 'string', 'imagePipeline': { 'arn': 'string', 'name': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'enhancedImageMetadataEnabled': True|False, 'imageRecipeArn': 'string', 'containerRecipeArn': 'string', 'infrastructureConfigurationArn': 'string', 'distributionConfigurationArn': 'string', 'imageTestsConfiguration': { 'imageTestsEnabled': True|False, 'timeoutMinutes': 123 }, 'schedule': { 'scheduleExpression': 'string', 'timezone': 'string', 'pipelineExecutionStartCondition': 'EXPRESSION_MATCH_ONLY'|'EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE' }, 'status': 'DISABLED'|'ENABLED', 'dateCreated': 'string', 'dateUpdated': 'string', 'dateLastRun': 'string', 'dateNextRun': 'string', 'tags': { 'string': 'string' }, 'imageScanningConfiguration': { 'imageScanningEnabled': True|False, 'ecrConfiguration': { 'repositoryName': 'string', 'containerTags': [ 'string', ] } }, 'executionRole': 'string', 'workflows': [ { 'workflowArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ], 'parallelGroup': 'string', 'onFailure': 'CONTINUE'|'ABORT' }, ] } }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imagePipeline (dict) --
The image pipeline object.
arn (string) --
The Amazon Resource Name (ARN) of the image pipeline.
name (string) --
The name of the image pipeline.
description (string) --
The description of the image pipeline.
platform (string) --
The platform of the image pipeline.
enhancedImageMetadataEnabled (boolean) --
Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
imageRecipeArn (string) --
The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.
containerRecipeArn (string) --
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.
infrastructureConfigurationArn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
distributionConfigurationArn (string) --
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.
imageTestsConfiguration (dict) --
The image tests configuration of the image pipeline.
imageTestsEnabled (boolean) --
Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.
timeoutMinutes (integer) --
The maximum time in minutes that tests are permitted to run.
schedule (dict) --
The schedule of the image pipeline.
scheduleExpression (string) --
The cron expression determines how often EC2 Image Builder evaluates your pipelineExecutionStartCondition.
For information on how to format a cron expression in Image Builder, see Use cron expressions in EC2 Image Builder.
timezone (string) --
The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the IANA timezone format. If not specified this defaults to UTC.
pipelineExecutionStartCondition (string) --
The condition configures when the pipeline should trigger a new image build. When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, and you use semantic version filters on the base image or components in your image recipe, EC2 Image Builder will build a new image only when there are new versions of the image or components in your recipe that match the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY, it will build a new image every time the CRON expression matches the current time. For semantic version syntax, see CreateComponent in the EC2 Image Builder API Reference.
status (string) --
The status of the image pipeline.
dateCreated (string) --
The date on which this image pipeline was created.
dateUpdated (string) --
The date on which this image pipeline was last updated.
dateLastRun (string) --
This is no longer supported, and does not return a value.
dateNextRun (string) --
The next date when the pipeline is scheduled to run.
tags (dict) --
The tags of this image pipeline.
(string) --
(string) --
imageScanningConfiguration (dict) --
Contains settings for vulnerability scans.
imageScanningEnabled (boolean) --
A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
ecrConfiguration (dict) --
Contains Amazon ECR settings for vulnerability scans.
repositoryName (string) --
The name of the container repository that Amazon Inspector scans to identify findings for your container images. The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named image-builder-image-scanning-repository for vulnerability scans of your output container images.
containerTags (list) --
Tags for Image Builder to apply to the output container image that Amazon Inspector scans. Tags can help you identify and manage your scanned images.
(string) --
executionRole (string) --
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
workflows (list) --
Contains the workflows that run for the image pipeline.
(dict) --
Contains control settings and configurable inputs for a workflow resource.
workflowArn (string) --
The Amazon Resource Name (ARN) of the workflow resource.
parameters (list) --
Contains parameter values for each of the parameters that the workflow document defined for the workflow resource.
(dict) --
Contains a key/value pair that sets the named workflow parameter.
name (string) --
The name of the workflow parameter to set.
value (list) --
Sets the value for the named workflow parameter.
(string) --
parallelGroup (string) --
Test workflows are defined within named runtime groups called parallel groups. The parallel group is the named group that contains this test workflow. Test workflows within a parallel group can run at the same time. Image Builder starts up to five test workflows in the group at the same time, and starts additional workflows as others complete, until all workflows in the group have completed. This field only applies for test workflows.
onFailure (string) --
The action to take if the workflow fails.
{'imageRecipe': {'platform': {'macOS'}}}
Gets an image recipe.
See also: AWS API Documentation
Request Syntax
client.get_image_recipe( imageRecipeArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the image recipe that you want to retrieve.
dict
Response Syntax
{ 'requestId': 'string', 'imageRecipe': { 'arn': 'string', 'type': 'AMI'|'DOCKER', 'name': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'owner': 'string', 'version': 'string', 'components': [ { 'componentArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ] }, ], 'parentImage': 'string', 'blockDeviceMappings': [ { 'deviceName': 'string', 'ebs': { 'encrypted': True|False, 'deleteOnTermination': True|False, 'iops': 123, 'kmsKeyId': 'string', 'snapshotId': 'string', 'volumeSize': 123, 'volumeType': 'standard'|'io1'|'io2'|'gp2'|'gp3'|'sc1'|'st1', 'throughput': 123 }, 'virtualName': 'string', 'noDevice': 'string' }, ], 'dateCreated': 'string', 'tags': { 'string': 'string' }, 'workingDirectory': 'string', 'additionalInstanceConfiguration': { 'systemsManagerAgent': { 'uninstallAfterBuild': True|False }, 'userDataOverride': 'string' } } }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imageRecipe (dict) --
The image recipe object.
arn (string) --
The Amazon Resource Name (ARN) of the image recipe.
type (string) --
Specifies which type of image is created by the recipe - an AMI or a container image.
name (string) --
The name of the image recipe.
description (string) --
The description of the image recipe.
platform (string) --
The platform of the image recipe.
owner (string) --
The owner of the image recipe.
version (string) --
The version of the image recipe.
components (list) --
The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
(dict) --
Configuration details of the component.
componentArn (string) --
The Amazon Resource Name (ARN) of the component.
parameters (list) --
A group of parameter settings that Image Builder uses to configure the component for a specific recipe.
(dict) --
Contains a key/value pair that sets the named component parameter.
name (string) --
The name of the component parameter to set.
value (list) --
Sets the value for the named component parameter.
(string) --
parentImage (string) --
The base image of the image recipe.
blockDeviceMappings (list) --
The block device mappings to apply when creating images from this recipe.
(dict) --
Defines block device mappings for the instance used to configure your image.
deviceName (string) --
The device to which these mappings apply.
ebs (dict) --
Use to manage Amazon EBS-specific configuration for this mapping.
encrypted (boolean) --
Use to configure device encryption.
deleteOnTermination (boolean) --
Use to configure delete on termination of the associated device.
iops (integer) --
Use to configure device IOPS.
kmsKeyId (string) --
Use to configure the KMS key to use when encrypting the device.
snapshotId (string) --
The snapshot that defines the device contents.
volumeSize (integer) --
Use to override the device's volume size.
volumeType (string) --
Use to override the device's volume type.
throughput (integer) --
For GP3 volumes only – The throughput in MiB/s that the volume supports.
virtualName (string) --
Use to manage instance ephemeral devices.
noDevice (string) --
Use to remove a mapping from the base image.
dateCreated (string) --
The date on which this image recipe was created.
tags (dict) --
The tags of the image recipe.
(string) --
(string) --
workingDirectory (string) --
The working directory to be used during build and test workflows.
additionalInstanceConfiguration (dict) --
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
systemsManagerAgent (dict) --
Contains settings for the Systems Manager agent on your build instance.
uninstallAfterBuild (boolean) --
Controls whether the Systems Manager agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
userDataOverride (string) --
Use this property to provide commands or a command script to run when you launch your build instance.
The userDataOverride property replaces any commands that Image Builder might have added to ensure that Systems Manager is installed on your Linux build instance. If you override the user data, make sure that you add commands to install Systems Manager, if it is not pre-installed on your base image.
{'infrastructureConfiguration': {'placement': {'availabilityZone': 'string', 'hostId': 'string', 'hostResourceGroupArn': 'string', 'tenancy': 'default | dedicated ' '| host'}}}
Gets an infrastructure configuration.
See also: AWS API Documentation
Request Syntax
client.get_infrastructure_configuration( infrastructureConfigurationArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the infrastructure configuration that you want to retrieve.
dict
Response Syntax
{ 'requestId': 'string', 'infrastructureConfiguration': { 'arn': 'string', 'name': 'string', 'description': 'string', 'instanceTypes': [ 'string', ], 'instanceProfileName': 'string', 'securityGroupIds': [ 'string', ], 'subnetId': 'string', 'logging': { 's3Logs': { 's3BucketName': 'string', 's3KeyPrefix': 'string' } }, 'keyPair': 'string', 'terminateInstanceOnFailure': True|False, 'snsTopicArn': 'string', 'dateCreated': 'string', 'dateUpdated': 'string', 'resourceTags': { 'string': 'string' }, 'instanceMetadataOptions': { 'httpTokens': 'string', 'httpPutResponseHopLimit': 123 }, 'tags': { 'string': 'string' }, 'placement': { 'availabilityZone': 'string', 'tenancy': 'default'|'dedicated'|'host', 'hostId': 'string', 'hostResourceGroupArn': 'string' } } }
Response Structure
(dict) --
GetInfrastructureConfiguration response object.
requestId (string) --
The request ID that uniquely identifies this request.
infrastructureConfiguration (dict) --
The infrastructure configuration object.
arn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration.
name (string) --
The name of the infrastructure configuration.
description (string) --
The description of the infrastructure configuration.
instanceTypes (list) --
The instance types of the infrastructure configuration.
(string) --
instanceProfileName (string) --
The instance profile of the infrastructure configuration.
securityGroupIds (list) --
The security group IDs of the infrastructure configuration.
(string) --
subnetId (string) --
The subnet ID of the infrastructure configuration.
logging (dict) --
The logging configuration of the infrastructure configuration.
s3Logs (dict) --
The Amazon S3 logging configuration.
s3BucketName (string) --
The S3 bucket in which to store the logs.
s3KeyPrefix (string) --
The Amazon S3 path to the bucket where the logs are stored.
keyPair (string) --
The Amazon EC2 key pair of the infrastructure configuration.
terminateInstanceOnFailure (boolean) --
The terminate instance on failure configuration of the infrastructure configuration.
snsTopicArn (string) --
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
dateCreated (string) --
The date on which the infrastructure configuration was created.
dateUpdated (string) --
The date on which the infrastructure configuration was last updated.
resourceTags (dict) --
The tags attached to the resource created by Image Builder.
(string) --
(string) --
instanceMetadataOptions (dict) --
The instance metadata option settings for the infrastructure configuration.
httpTokens (string) --
Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.
optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.
The default setting is optional.
httpPutResponseHopLimit (integer) --
Limit the number of hops that an instance metadata request can traverse to reach its destination. The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.
tags (dict) --
The tags of the infrastructure configuration.
(string) --
(string) --
placement (dict) --
The instance placement settings that define where the instances that are launched from your image will run.
availabilityZone (string) --
The Availability Zone where your build and test instances will launch.
tenancy (string) --
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.
If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.
hostId (string) --
The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.
hostResourceGroupArn (string) --
The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.
{'platform': {'macOS'}}
Imports a component and transforms its data into a component document.
See also: AWS API Documentation
Request Syntax
client.import_component( name='string', semanticVersion='string', description='string', changeDescription='string', type='BUILD'|'TEST', format='SHELL', platform='Windows'|'Linux'|'macOS', data='string', uri='string', kmsKeyId='string', tags={ 'string': 'string' }, clientToken='string' )
string
[REQUIRED]
The name of the component.
string
[REQUIRED]
The semantic version of the component. This version follows the semantic version syntax.
string
The description of the component. Describes the contents of the component.
string
The change description of the component. This description indicates the change that has been made in this version, or what makes this version different from other versions of the component.
string
[REQUIRED]
The type of the component denotes whether the component is used to build the image, or only to test it.
string
[REQUIRED]
The format of the resource that you want to import as a component.
string
[REQUIRED]
The platform of the component.
string
The data of the component. Used to specify the data inline. Either data or uri can be used to specify the data within the component.
string
The uri of the component. Must be an Amazon S3 URL and the requester must have permission to access the Amazon S3 bucket. If you use Amazon S3, you can specify component content up to your service quota. Either data or uri can be used to specify the data within the component.
string
The ID of the KMS key that should be used to encrypt this component.
dict
The tags of the component.
(string) --
(string) --
string
[REQUIRED]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'clientToken': 'string', 'componentBuildVersionArn': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
clientToken (string) --
The client token that uniquely identifies the request.
componentBuildVersionArn (string) --
The Amazon Resource Name (ARN) of the imported component.
{'platform': {'macOS'}}
When you export your virtual machine (VM) from its virtualization environment, that process creates a set of one or more disk container files that act as snapshots of your VM’s environment, settings, and data. The Amazon EC2 API ImportImage action uses those files to import your VM and create an AMI. To import using the CLI command, see import-image
You can reference the task ID from the VM import to pull in the AMI that the import created as the base image for your Image Builder recipe.
See also: AWS API Documentation
Request Syntax
client.import_vm_image( name='string', semanticVersion='string', description='string', platform='Windows'|'Linux'|'macOS', osVersion='string', vmImportTaskId='string', tags={ 'string': 'string' }, clientToken='string' )
string
[REQUIRED]
The name of the base image that is created by the import process.
string
[REQUIRED]
The semantic version to attach to the base image that was created during the import process. This version follows the semantic version syntax.
string
The description for the base image that is created by the import process.
string
[REQUIRED]
The operating system platform for the imported VM.
string
The operating system version for the imported VM.
string
[REQUIRED]
The importTaskId (API) or ImportTaskId (CLI) from the Amazon EC2 VM import process. Image Builder retrieves information from the import process to pull in the AMI that is created from the VM source as the base image for your recipe.
dict
Tags that are attached to the import resources.
(string) --
(string) --
string
[REQUIRED]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'imageArn': 'string', 'clientToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imageArn (string) --
The Amazon Resource Name (ARN) of the AMI that was created during the VM import process. This AMI is used as the base image for the recipe that imported the VM.
clientToken (string) --
The client token that uniquely identifies the request.
{'componentSummaryList': {'platform': {'macOS'}}}
Returns the list of component build versions for the specified component version Amazon Resource Name (ARN).
See also: AWS API Documentation
Request Syntax
client.list_component_build_versions( componentVersionArn='string', maxResults=123, nextToken='string' )
string
[REQUIRED]
The component version Amazon Resource Name (ARN) whose versions you want to list.
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'componentSummaryList': [ { 'arn': 'string', 'name': 'string', 'version': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'supportedOsVersions': [ 'string', ], 'state': { 'status': 'DEPRECATED', 'reason': 'string' }, 'type': 'BUILD'|'TEST', 'owner': 'string', 'description': 'string', 'changeDescription': 'string', 'dateCreated': 'string', 'tags': { 'string': 'string' }, 'publisher': 'string', 'obfuscate': True|False }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
componentSummaryList (list) --
The list of component summaries for the specified semantic version.
(dict) --
A high-level summary of a component.
arn (string) --
The Amazon Resource Name (ARN) of the component.
name (string) --
The name of the component.
version (string) --
The version of the component.
platform (string) --
The operating system platform of the component.
supportedOsVersions (list) --
The operating system (OS) version that the component supports. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
(string) --
state (dict) --
Describes the current status of the component.
status (string) --
The current state of the component.
reason (string) --
Describes how or why the component changed state.
type (string) --
The component type specifies whether Image Builder uses the component to build the image or only to test it.
owner (string) --
The owner of the component.
description (string) --
The description of the component.
changeDescription (string) --
The change description for the current version of the component.
dateCreated (string) --
The original creation date of the component.
tags (dict) --
The tags that apply to the component.
(string) --
(string) --
publisher (string) --
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
obfuscate (boolean) --
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'componentVersionList': {'platform': {'macOS'}}}
Returns the list of components that can be filtered by name, or by using the listed filters to streamline results. Newly created components can take up to two minutes to appear in the ListComponents API Results.
See also: AWS API Documentation
Request Syntax
client.list_components( owner='Self'|'Shared'|'Amazon'|'ThirdParty', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], byName=True|False, maxResults=123, nextToken='string' )
string
Filters results based on the type of owner for the component. By default, this request returns a list of components that your account owns. To see results for other types of owners, you can specify components that Amazon manages, third party components, or components that other accounts have shared with you.
list
Use the following filters to streamline results:
description
name
platform
supportedOsVersion
type
version
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
boolean
Returns the list of components for the specified name.
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'componentVersionList': [ { 'arn': 'string', 'name': 'string', 'version': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'supportedOsVersions': [ 'string', ], 'type': 'BUILD'|'TEST', 'owner': 'string', 'dateCreated': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
componentVersionList (list) --
The list of component semantic versions.
(dict) --
The defining characteristics of a specific version of an Amazon Web Services TOE component.
arn (string) --
The Amazon Resource Name (ARN) of the component.
name (string) --
The name of the component.
version (string) --
The semantic version of the component.
description (string) --
The description of the component.
platform (string) --
The platform of the component.
supportedOsVersions (list) --
he operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.
(string) --
type (string) --
The type of the component denotes whether the component is used to build the image or only to test it.
owner (string) --
The owner of the component.
dateCreated (string) --
The date that the component was created.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'containerRecipeSummaryList': {'platform': {'macOS'}}}
Returns a list of container recipes.
See also: AWS API Documentation
Request Syntax
client.list_container_recipes( owner='Self'|'Shared'|'Amazon'|'ThirdParty', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
string
Returns container recipes belonging to the specified owner, that have been shared with you. You can omit this field to return container recipes belonging to your account.
list
Use the following filters to streamline results:
containerType
name
parentImage
platform
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'containerRecipeSummaryList': [ { 'arn': 'string', 'containerType': 'DOCKER', 'name': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'owner': 'string', 'parentImage': 'string', 'dateCreated': 'string', 'tags': { 'string': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
containerRecipeSummaryList (list) --
The list of container recipes returned for the request.
(dict) --
A summary of a container recipe
arn (string) --
The Amazon Resource Name (ARN) of the container recipe.
containerType (string) --
Specifies the type of container, such as "Docker".
name (string) --
The name of the container recipe.
platform (string) --
The system platform for the container, such as Windows or Linux.
owner (string) --
The owner of the container recipe.
parentImage (string) --
The base image for the container recipe.
dateCreated (string) --
The date when this container recipe was created.
tags (dict) --
Tags that are attached to the container recipe.
(string) --
(string) --
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'imageSummaryList': {'platform': {'macOS'}}}
Returns a list of image build versions.
See also: AWS API Documentation
Request Syntax
client.list_image_build_versions( imageVersionArn='string', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the image whose build versions you want to retrieve.
list
Use the following filters to streamline results:
name
osVersion
platform
type
version
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'imageSummaryList': [ { 'arn': 'string', 'name': 'string', 'type': 'AMI'|'DOCKER', 'version': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'osVersion': 'string', 'state': { 'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED'|'DISABLED', 'reason': 'string' }, 'owner': 'string', 'dateCreated': 'string', 'outputResources': { 'amis': [ { 'region': 'string', 'image': 'string', 'name': 'string', 'description': 'string', 'state': { 'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED'|'DISABLED', 'reason': 'string' }, 'accountId': 'string' }, ], 'containers': [ { 'region': 'string', 'imageUris': [ 'string', ] }, ] }, 'tags': { 'string': 'string' }, 'buildType': 'USER_INITIATED'|'SCHEDULED'|'IMPORT', 'imageSource': 'AMAZON_MANAGED'|'AWS_MARKETPLACE'|'IMPORTED'|'CUSTOM', 'deprecationTime': datetime(2015, 1, 1), 'lifecycleExecutionId': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imageSummaryList (list) --
The list of image build versions.
(dict) --
An image summary.
arn (string) --
The Amazon Resource Name (ARN) of the image.
name (string) --
The name of the image.
type (string) --
Specifies whether this image produces an AMI or a container image.
version (string) --
The version of the image.
platform (string) --
The image operating system platform, such as Linux or Windows.
osVersion (string) --
The operating system version of the instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
state (dict) --
The state of the image.
status (string) --
The status of the image.
reason (string) --
The reason for the status of the image.
owner (string) --
The owner of the image.
dateCreated (string) --
The date on which Image Builder created this image.
outputResources (dict) --
The output resources that Image Builder produced when it created this image.
amis (list) --
The Amazon EC2 AMIs created by this image.
(dict) --
Details of an Amazon EC2 AMI.
region (string) --
The Amazon Web Services Region of the Amazon EC2 AMI.
image (string) --
The AMI ID of the Amazon EC2 AMI.
name (string) --
The name of the Amazon EC2 AMI.
description (string) --
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
state (dict) --
Image status and the reason for that status.
status (string) --
The status of the image.
reason (string) --
The reason for the status of the image.
accountId (string) --
The account ID of the owner of the AMI.
containers (list) --
Container images that the pipeline has generated and stored in the output repository.
(dict) --
A container encapsulates the runtime environment for an application.
region (string) --
Containers and container images are Region-specific. This is the Region context for the container.
imageUris (list) --
A list of URIs for containers created in the context Region.
(string) --
tags (dict) --
The tags that apply to this image.
(string) --
(string) --
buildType (string) --
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.
imageSource (string) --
The origin of the base image that Image Builder used to build this image.
deprecationTime (datetime) --
The time when deprecation occurs for an image resource. This can be a past or future date.
lifecycleExecutionId (string) --
Identifies the last runtime instance of the lifecycle policy to take action on the image.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'imageSummaryList': {'platform': {'macOS'}}}
Returns a list of images created by the specified pipeline.
See also: AWS API Documentation
Request Syntax
client.list_image_pipeline_images( imagePipelineArn='string', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the image pipeline whose images you want to view.
list
Use the following filters to streamline results:
name
version
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'imageSummaryList': [ { 'arn': 'string', 'name': 'string', 'type': 'AMI'|'DOCKER', 'version': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'osVersion': 'string', 'state': { 'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED'|'DISABLED', 'reason': 'string' }, 'owner': 'string', 'dateCreated': 'string', 'outputResources': { 'amis': [ { 'region': 'string', 'image': 'string', 'name': 'string', 'description': 'string', 'state': { 'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED'|'DISABLED', 'reason': 'string' }, 'accountId': 'string' }, ], 'containers': [ { 'region': 'string', 'imageUris': [ 'string', ] }, ] }, 'tags': { 'string': 'string' }, 'buildType': 'USER_INITIATED'|'SCHEDULED'|'IMPORT', 'imageSource': 'AMAZON_MANAGED'|'AWS_MARKETPLACE'|'IMPORTED'|'CUSTOM', 'deprecationTime': datetime(2015, 1, 1), 'lifecycleExecutionId': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imageSummaryList (list) --
The list of images built by this pipeline.
(dict) --
An image summary.
arn (string) --
The Amazon Resource Name (ARN) of the image.
name (string) --
The name of the image.
type (string) --
Specifies whether this image produces an AMI or a container image.
version (string) --
The version of the image.
platform (string) --
The image operating system platform, such as Linux or Windows.
osVersion (string) --
The operating system version of the instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
state (dict) --
The state of the image.
status (string) --
The status of the image.
reason (string) --
The reason for the status of the image.
owner (string) --
The owner of the image.
dateCreated (string) --
The date on which Image Builder created this image.
outputResources (dict) --
The output resources that Image Builder produced when it created this image.
amis (list) --
The Amazon EC2 AMIs created by this image.
(dict) --
Details of an Amazon EC2 AMI.
region (string) --
The Amazon Web Services Region of the Amazon EC2 AMI.
image (string) --
The AMI ID of the Amazon EC2 AMI.
name (string) --
The name of the Amazon EC2 AMI.
description (string) --
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
state (dict) --
Image status and the reason for that status.
status (string) --
The status of the image.
reason (string) --
The reason for the status of the image.
accountId (string) --
The account ID of the owner of the AMI.
containers (list) --
Container images that the pipeline has generated and stored in the output repository.
(dict) --
A container encapsulates the runtime environment for an application.
region (string) --
Containers and container images are Region-specific. This is the Region context for the container.
imageUris (list) --
A list of URIs for containers created in the context Region.
(string) --
tags (dict) --
The tags that apply to this image.
(string) --
(string) --
buildType (string) --
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.
imageSource (string) --
The origin of the base image that Image Builder used to build this image.
deprecationTime (datetime) --
The time when deprecation occurs for an image resource. This can be a past or future date.
lifecycleExecutionId (string) --
Identifies the last runtime instance of the lifecycle policy to take action on the image.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'imagePipelineList': {'platform': {'macOS'}}}
Returns a list of image pipelines.
See also: AWS API Documentation
Request Syntax
client.list_image_pipelines( filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
list
Use the following filters to streamline results:
description
distributionConfigurationArn
imageRecipeArn
infrastructureConfigurationArn
name
status
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'imagePipelineList': [ { 'arn': 'string', 'name': 'string', 'description': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'enhancedImageMetadataEnabled': True|False, 'imageRecipeArn': 'string', 'containerRecipeArn': 'string', 'infrastructureConfigurationArn': 'string', 'distributionConfigurationArn': 'string', 'imageTestsConfiguration': { 'imageTestsEnabled': True|False, 'timeoutMinutes': 123 }, 'schedule': { 'scheduleExpression': 'string', 'timezone': 'string', 'pipelineExecutionStartCondition': 'EXPRESSION_MATCH_ONLY'|'EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE' }, 'status': 'DISABLED'|'ENABLED', 'dateCreated': 'string', 'dateUpdated': 'string', 'dateLastRun': 'string', 'dateNextRun': 'string', 'tags': { 'string': 'string' }, 'imageScanningConfiguration': { 'imageScanningEnabled': True|False, 'ecrConfiguration': { 'repositoryName': 'string', 'containerTags': [ 'string', ] } }, 'executionRole': 'string', 'workflows': [ { 'workflowArn': 'string', 'parameters': [ { 'name': 'string', 'value': [ 'string', ] }, ], 'parallelGroup': 'string', 'onFailure': 'CONTINUE'|'ABORT' }, ] }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imagePipelineList (list) --
The list of image pipelines.
(dict) --
Details of an image pipeline.
arn (string) --
The Amazon Resource Name (ARN) of the image pipeline.
name (string) --
The name of the image pipeline.
description (string) --
The description of the image pipeline.
platform (string) --
The platform of the image pipeline.
enhancedImageMetadataEnabled (boolean) --
Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
imageRecipeArn (string) --
The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.
containerRecipeArn (string) --
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.
infrastructureConfigurationArn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
distributionConfigurationArn (string) --
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.
imageTestsConfiguration (dict) --
The image tests configuration of the image pipeline.
imageTestsEnabled (boolean) --
Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.
timeoutMinutes (integer) --
The maximum time in minutes that tests are permitted to run.
schedule (dict) --
The schedule of the image pipeline.
scheduleExpression (string) --
The cron expression determines how often EC2 Image Builder evaluates your pipelineExecutionStartCondition.
For information on how to format a cron expression in Image Builder, see Use cron expressions in EC2 Image Builder.
timezone (string) --
The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the IANA timezone format. If not specified this defaults to UTC.
pipelineExecutionStartCondition (string) --
The condition configures when the pipeline should trigger a new image build. When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, and you use semantic version filters on the base image or components in your image recipe, EC2 Image Builder will build a new image only when there are new versions of the image or components in your recipe that match the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY, it will build a new image every time the CRON expression matches the current time. For semantic version syntax, see CreateComponent in the EC2 Image Builder API Reference.
status (string) --
The status of the image pipeline.
dateCreated (string) --
The date on which this image pipeline was created.
dateUpdated (string) --
The date on which this image pipeline was last updated.
dateLastRun (string) --
This is no longer supported, and does not return a value.
dateNextRun (string) --
The next date when the pipeline is scheduled to run.
tags (dict) --
The tags of this image pipeline.
(string) --
(string) --
imageScanningConfiguration (dict) --
Contains settings for vulnerability scans.
imageScanningEnabled (boolean) --
A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
ecrConfiguration (dict) --
Contains Amazon ECR settings for vulnerability scans.
repositoryName (string) --
The name of the container repository that Amazon Inspector scans to identify findings for your container images. The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named image-builder-image-scanning-repository for vulnerability scans of your output container images.
containerTags (list) --
Tags for Image Builder to apply to the output container image that Amazon Inspector scans. Tags can help you identify and manage your scanned images.
(string) --
executionRole (string) --
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
workflows (list) --
Contains the workflows that run for the image pipeline.
(dict) --
Contains control settings and configurable inputs for a workflow resource.
workflowArn (string) --
The Amazon Resource Name (ARN) of the workflow resource.
parameters (list) --
Contains parameter values for each of the parameters that the workflow document defined for the workflow resource.
(dict) --
Contains a key/value pair that sets the named workflow parameter.
name (string) --
The name of the workflow parameter to set.
value (list) --
Sets the value for the named workflow parameter.
(string) --
parallelGroup (string) --
Test workflows are defined within named runtime groups called parallel groups. The parallel group is the named group that contains this test workflow. Test workflows within a parallel group can run at the same time. Image Builder starts up to five test workflows in the group at the same time, and starts additional workflows as others complete, until all workflows in the group have completed. This field only applies for test workflows.
onFailure (string) --
The action to take if the workflow fails.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'imageRecipeSummaryList': {'platform': {'macOS'}}}
Returns a list of image recipes.
See also: AWS API Documentation
Request Syntax
client.list_image_recipes( owner='Self'|'Shared'|'Amazon'|'ThirdParty', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
string
The owner defines which image recipes you want to list. By default, this request will only show image recipes owned by your account. You can use this field to specify if you want to view image recipes owned by yourself, by Amazon, or those image recipes that have been shared with you by other customers.
list
Use the following filters to streamline results:
name
parentImage
platform
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'imageRecipeSummaryList': [ { 'arn': 'string', 'name': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'owner': 'string', 'parentImage': 'string', 'dateCreated': 'string', 'tags': { 'string': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imageRecipeSummaryList (list) --
The list of image pipelines.
(dict) --
A summary of an image recipe.
arn (string) --
The Amazon Resource Name (ARN) of the image recipe.
name (string) --
The name of the image recipe.
platform (string) --
The platform of the image recipe.
owner (string) --
The owner of the image recipe.
parentImage (string) --
The base image of the image recipe.
dateCreated (string) --
The date on which this image recipe was created.
tags (dict) --
The tags of the image recipe.
(string) --
(string) --
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'imageVersionList': {'platform': {'macOS'}}}
Returns the list of images that you have access to. Newly created images can take up to two minutes to appear in the ListImages API Results.
See also: AWS API Documentation
Request Syntax
client.list_images( owner='Self'|'Shared'|'Amazon'|'ThirdParty', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], byName=True|False, maxResults=123, nextToken='string', includeDeprecated=True|False )
string
The owner defines which images you want to list. By default, this request will only show images owned by your account. You can use this field to specify if you want to view images owned by yourself, by Amazon, or those images that have been shared with you by other customers.
list
Use the following filters to streamline results:
name
osVersion
platform
type
version
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
boolean
Requests a list of images with a specific recipe name.
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
boolean
Includes deprecated images in the response list.
dict
Response Syntax
{ 'requestId': 'string', 'imageVersionList': [ { 'arn': 'string', 'name': 'string', 'type': 'AMI'|'DOCKER', 'version': 'string', 'platform': 'Windows'|'Linux'|'macOS', 'osVersion': 'string', 'owner': 'string', 'dateCreated': 'string', 'buildType': 'USER_INITIATED'|'SCHEDULED'|'IMPORT', 'imageSource': 'AMAZON_MANAGED'|'AWS_MARKETPLACE'|'IMPORTED'|'CUSTOM' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
imageVersionList (list) --
The list of image semantic versions.
(dict) --
The defining characteristics of a specific version of an Image Builder image.
arn (string) --
The Amazon Resource Name (ARN) of a specific version of an Image Builder image.
name (string) --
The name of this specific version of an Image Builder image.
type (string) --
Specifies whether this image produces an AMI or a container image.
version (string) --
Details for a specific version of an Image Builder image. This version follows the semantic version syntax.
platform (string) --
The operating system platform of the image version, for example "Windows" or "Linux".
osVersion (string) --
The operating system version of the Amazon EC2 build instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
owner (string) --
The owner of the image version.
dateCreated (string) --
The date on which this specific version of the Image Builder image was created.
buildType (string) --
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.
imageSource (string) --
The origin of the base image that Image Builder used to build this image.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'infrastructureConfigurationSummaryList': {'placement': {'availabilityZone': 'string', 'hostId': 'string', 'hostResourceGroupArn': 'string', 'tenancy': 'default ' '| ' 'dedicated ' '| host'}}}
Returns a list of infrastructure configurations.
See also: AWS API Documentation
Request Syntax
client.list_infrastructure_configurations( filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
list
You can filter on name to streamline results.
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the nextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'infrastructureConfigurationSummaryList': [ { 'arn': 'string', 'name': 'string', 'description': 'string', 'dateCreated': 'string', 'dateUpdated': 'string', 'resourceTags': { 'string': 'string' }, 'tags': { 'string': 'string' }, 'instanceTypes': [ 'string', ], 'instanceProfileName': 'string', 'placement': { 'availabilityZone': 'string', 'tenancy': 'default'|'dedicated'|'host', 'hostId': 'string', 'hostResourceGroupArn': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
infrastructureConfigurationSummaryList (list) --
The list of infrastructure configurations.
(dict) --
The infrastructure used when building Amazon EC2 AMIs.
arn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration.
name (string) --
The name of the infrastructure configuration.
description (string) --
The description of the infrastructure configuration.
dateCreated (string) --
The date on which the infrastructure configuration was created.
dateUpdated (string) --
The date on which the infrastructure configuration was last updated.
resourceTags (dict) --
The tags attached to the image created by Image Builder.
(string) --
(string) --
tags (dict) --
The tags of the infrastructure configuration.
(string) --
(string) --
instanceTypes (list) --
The instance types of the infrastructure configuration.
(string) --
instanceProfileName (string) --
The instance profile of the infrastructure configuration.
placement (dict) --
The instance placement settings that define where the instances that are launched from your image will run.
availabilityZone (string) --
The Availability Zone where your build and test instances will launch.
tenancy (string) --
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.
If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.
hostId (string) --
The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.
hostResourceGroupArn (string) --
The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.
nextToken (string) --
The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.
{'placement': {'availabilityZone': 'string', 'hostId': 'string', 'hostResourceGroupArn': 'string', 'tenancy': 'default | dedicated | host'}}
Updates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.
See also: AWS API Documentation
Request Syntax
client.update_infrastructure_configuration( infrastructureConfigurationArn='string', description='string', instanceTypes=[ 'string', ], instanceProfileName='string', securityGroupIds=[ 'string', ], subnetId='string', logging={ 's3Logs': { 's3BucketName': 'string', 's3KeyPrefix': 'string' } }, keyPair='string', terminateInstanceOnFailure=True|False, snsTopicArn='string', resourceTags={ 'string': 'string' }, instanceMetadataOptions={ 'httpTokens': 'string', 'httpPutResponseHopLimit': 123 }, placement={ 'availabilityZone': 'string', 'tenancy': 'default'|'dedicated'|'host', 'hostId': 'string', 'hostResourceGroupArn': 'string' }, clientToken='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
string
The description of the infrastructure configuration.
list
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
(string) --
string
[REQUIRED]
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
list
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
(string) --
string
The subnet ID to place the instance used to customize your Amazon EC2 AMI in.
dict
The logging configuration of the infrastructure configuration.
s3Logs (dict) --
The Amazon S3 logging configuration.
s3BucketName (string) --
The S3 bucket in which to store the logs.
s3KeyPrefix (string) --
The Amazon S3 path to the bucket where the logs are stored.
string
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
boolean
The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
string
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
dict
The tags attached to the resource created by Image Builder.
(string) --
(string) --
dict
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances. For more information about instance metadata options, see one of the following links:
Configure the instance metadata options in the Amazon EC2 User Guide for Linux instances.
Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows instances.
httpTokens (string) --
Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.
optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.
The default setting is optional.
httpPutResponseHopLimit (integer) --
Limit the number of hops that an instance metadata request can traverse to reach its destination. The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.
dict
The instance placement settings that define where the instances that are launched from your image will run.
availabilityZone (string) --
The Availability Zone where your build and test instances will launch.
tenancy (string) --
The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware. An instance with a tenancy of host runs on a Dedicated Host.
If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.
hostId (string) --
The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.
hostResourceGroupArn (string) --
The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.
string
[REQUIRED]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'clientToken': 'string', 'infrastructureConfigurationArn': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
clientToken (string) --
The client token that uniquely identifies the request.
infrastructureConfigurationArn (string) --
The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by this request.