EC2 Image Builder

2021/02/25 - EC2 Image Builder - 1 new 8 updated api methods

Changes  This release introduces a new API (ListImagePackages) for listing packages installed on an image, and adds support for GP3 volume types, and for specifying a time zone in an image pipeline schedule.

ListImagePackages (new) Link ¶

List the Packages that are associated with an Image Build Version, as determined by AWS Systems Manager Inventory at build time.

See also: AWS API Documentation

Request Syntax

client.list_image_packages(
    imageBuildVersionArn='string',
    maxResults=123,
    nextToken='string'
)
type imageBuildVersionArn

string

param imageBuildVersionArn

[REQUIRED]

Filter results for the ListImagePackages request by the Image Build Version ARN

type maxResults

integer

param maxResults

The maxiumum number of results to return from the ListImagePackages request.

type nextToken

string

param nextToken

A token to specify where to start paginating. This is the NextToken from a previously truncated response.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'imagePackageList': [
        {
            'packageName': 'string',
            'packageVersion': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • requestId (string) --

      The request ID that uniquely identifies this request.

    • imagePackageList (list) --

      The list of Image Packages returned in the response.

      • (dict) --

        Represents a package installed on an Image Builder image.

        • packageName (string) --

          The name of the package as reported to the operating system package manager.

        • packageVersion (string) --

          The version of the package as reported to the operating system package manager.

    • nextToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

CreateImagePipeline (updated) Link ¶
Changes (request)
{'schedule': {'timezone': 'string'}}

Creates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.

See also: AWS API Documentation

Request Syntax

client.create_image_pipeline(
    name='string',
    description='string',
    imageRecipeArn='string',
    containerRecipeArn='string',
    infrastructureConfigurationArn='string',
    distributionConfigurationArn='string',
    imageTestsConfiguration={
        'imageTestsEnabled': True|False,
        'timeoutMinutes': 123
    },
    enhancedImageMetadataEnabled=True|False,
    schedule={
        'scheduleExpression': 'string',
        'timezone': 'string',
        'pipelineExecutionStartCondition': 'EXPRESSION_MATCH_ONLY'|'EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE'
    },
    status='DISABLED'|'ENABLED',
    tags={
        'string': 'string'
    },
    clientToken='string'
)
type name

string

param name

[REQUIRED]

The name of the image pipeline.

type description

string

param description

The description of the image pipeline.

type imageRecipeArn

string

param imageRecipeArn

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images created by this image pipeline.

type containerRecipeArn

string

param containerRecipeArn

The Amazon Resource Name (ARN) of the container recipe that is used to configure images created by this container pipeline.

type infrastructureConfigurationArn

string

param infrastructureConfigurationArn

[REQUIRED]

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to build images created by this image pipeline.

type distributionConfigurationArn

string

param distributionConfigurationArn

The Amazon Resource Name (ARN) of the distribution configuration that will be used to configure and distribute images created by this image pipeline.

type imageTestsConfiguration

dict

param imageTestsConfiguration

The image test configuration of the image pipeline.

  • imageTestsEnabled (boolean) --

    Defines if tests should be executed when building this image.

  • timeoutMinutes (integer) --

    The maximum time in minutes that tests are permitted to run.

type enhancedImageMetadataEnabled

boolean

param enhancedImageMetadataEnabled

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.

type schedule

dict

param schedule

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 source 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 .

type status

string

param status

The status of the image pipeline.

type tags

dict

param tags

The tags of the image pipeline.

  • (string) --

    • (string) --

type clientToken

string

param clientToken

[REQUIRED]

The idempotency token used to make this request idempotent.

This field is autopopulated if not provided.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'clientToken': 'string',
    'imagePipelineArn': 'string'
}

Response Structure

  • (dict) --

    • requestId (string) --

      The request ID that uniquely identifies this request.

    • clientToken (string) --

      The idempotency token used to make this request idempotent.

    • imagePipelineArn (string) --

      The Amazon Resource Name (ARN) of the image pipeline that was created by this request.

CreateImageRecipe (updated) Link ¶
Changes (request)
{'blockDeviceMappings': {'ebs': {'volumeType': {'gp3'}}}}

Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.

See also: AWS API Documentation

Request Syntax

client.create_image_recipe(
    name='string',
    description='string',
    semanticVersion='string',
    components=[
        {
            'componentArn': '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'
            },
            'virtualName': 'string',
            'noDevice': 'string'
        },
    ],
    tags={
        'string': 'string'
    },
    workingDirectory='string',
    clientToken='string'
)
type name

string

param name

[REQUIRED]

The name of the image recipe.

type description

string

param description

The description of the image recipe.

type semanticVersion

string

param semanticVersion

[REQUIRED]

The semantic version of the image recipe.

type components

list

param components

[REQUIRED]

The components of the image recipe.

  • (dict) --

    Configuration details of the component.

    • componentArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the component.

type parentImage

string

param parentImage

[REQUIRED]

The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI ID. The format for the ARN follows this example: arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/xxxx.x.x . You can provide the specific version that you want to use, or you can use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must be in the same Region in which you are using Image Builder.

type blockDeviceMappings

list

param blockDeviceMappings

The block device mappings of the image 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.

    • virtualName (string) --

      Use to manage instance ephemeral devices.

    • noDevice (string) --

      Use to remove a mapping from the parent image.

type tags

dict

param tags

The tags of the image recipe.

  • (string) --

    • (string) --

type workingDirectory

string

param workingDirectory

The working directory to be used during build and test workflows.

type clientToken

string

param clientToken

[REQUIRED]

The idempotency token used to make this request idempotent.

This field is autopopulated if not provided.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'clientToken': 'string',
    'imageRecipeArn': 'string'
}

Response Structure

  • (dict) --

    • requestId (string) --

      The request ID that uniquely identifies this request.

    • clientToken (string) --

      The idempotency token used to make this request idempotent.

    • imageRecipeArn (string) --

      The Amazon Resource Name (ARN) of the image recipe that was created by this request.

GetImage (updated) Link ¶
Changes (response)
{'image': {'imageRecipe': {'blockDeviceMappings': {'ebs': {'volumeType': {'gp3'}}}}}}

Gets an image.

See also: AWS API Documentation

Request Syntax

client.get_image(
    imageBuildVersionArn='string'
)
type imageBuildVersionArn

string

param imageBuildVersionArn

[REQUIRED]

The Amazon Resource Name (ARN) of the image that you want to retrieve.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'image': {
        'arn': 'string',
        'type': 'AMI'|'DOCKER',
        'name': 'string',
        'version': 'string',
        'platform': 'Windows'|'Linux',
        'enhancedImageMetadataEnabled': True|False,
        'osVersion': 'string',
        'state': {
            'status': 'PENDING'|'CREATING'|'BUILDING'|'TESTING'|'DISTRIBUTING'|'INTEGRATING'|'AVAILABLE'|'CANCELLED'|'FAILED'|'DEPRECATED'|'DELETED',
            'reason': 'string'
        },
        'imageRecipe': {
            'arn': 'string',
            'type': 'AMI'|'DOCKER',
            'name': 'string',
            'description': 'string',
            'platform': 'Windows'|'Linux',
            'owner': 'string',
            'version': 'string',
            'components': [
                {
                    'componentArn': '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'
                    },
                    'virtualName': 'string',
                    'noDevice': 'string'
                },
            ],
            'dateCreated': 'string',
            'tags': {
                'string': 'string'
            },
            'workingDirectory': 'string'
        },
        'containerRecipe': {
            'arn': 'string',
            'containerType': 'DOCKER',
            'name': 'string',
            'description': 'string',
            'platform': 'Windows'|'Linux',
            'owner': 'string',
            'version': 'string',
            'components': [
                {
                    'componentArn': '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'
            },
            'tags': {
                'string': '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',
                            ]
                        }
                    },
                    'containerDistributionConfiguration': {
                        'description': 'string',
                        'containerTags': [
                            'string',
                        ],
                        'targetRepository': {
                            'service': 'ECR',
                            'repositoryName': 'string'
                        }
                    },
                    'licenseConfigurationArns': [
                        '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',
                        'reason': 'string'
                    },
                    'accountId': 'string'
                },
            ],
            'containers': [
                {
                    'region': 'string',
                    'imageUris': [
                        'string',
                    ]
                },
            ]
        },
        'tags': {
            'string': 'string'
        }
    }
}

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 is an AMI or container image.

      • name (string) --

        The name of the image.

      • version (string) --

        The semantic version of the image.

      • platform (string) --

        The platform of the image.

      • 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.

      • osVersion (string) --

        The operating system version of the instance. 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 image's status.

      • imageRecipe (dict) --

        The image recipe used when creating the image.

        • 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 of the image recipe.

          • (dict) --

            Configuration details of the component.

            • componentArn (string) --

              The Amazon Resource Name (ARN) of the component.

        • parentImage (string) --

          The parent 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.

            • virtualName (string) --

              Use to manage instance ephemeral devices.

            • noDevice (string) --

              Use to remove a mapping from the parent 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.

      • containerRecipe (dict) --

        The container recipe used to create the container image type.

        • 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 (<major>.<minor>.<patch>).

        • components (list) --

          Components for build and test that are included in the container recipe.

          • (dict) --

            Configuration details of the component.

            • componentArn (string) --

              The Amazon Resource Name (ARN) of the component.

        • 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 source 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 used when creating 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 Amazon S3 bucket in which to store the logs.

            • s3KeyPrefix (string) --

              The Amazon S3 path in which to store the logs.

        • keyPair (string) --

          The EC2 key pair of the infrastructure configuration.

        • terminateInstanceOnFailure (boolean) --

          The terminate instance on failure configuration of the infrastructure configuration.

        • snsTopicArn (string) --

          The SNS topic Amazon Resource Name (ARN) 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 resource created by Image Builder.

          • (string) --

            • (string) --

        • tags (dict) --

          The tags of the infrastructure configuration.

          • (string) --

            • (string) --

      • distributionConfiguration (dict) --

        The distribution configuration used when creating 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 distributions of the distribution configuration.

          • (dict) --

            Defines the settings for a specific Region.

            • region (string) --

              The target Region.

            • amiDistributionConfiguration (dict) --

              The specific AMI settings (for example, launch permissions, AMI tags).

              • name (string) --

                The name of the distribution configuration.

              • description (string) --

                The description of the 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 AWS accounts can use the AMI to launch instances.

                • userIds (list) --

                  The AWS account ID.

                  • (string) --

                • userGroups (list) --

                  The name of the group.

                  • (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) --

        • 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 configuration used when creating this image.

        • imageTestsEnabled (boolean) --

          Defines if tests should be executed when building this image.

        • timeoutMinutes (integer) --

          The maximum time in minutes that tests are permitted to run.

      • dateCreated (string) --

        The date on which this image was created.

      • outputResources (dict) --

        The output resources produced when creating this image.

        • amis (list) --

          The EC2 AMIs created by this image.

          • (dict) --

            Details of an EC2 AMI.

            • region (string) --

              The AWS Region of the EC2 AMI.

            • image (string) --

              The AMI ID of the EC2 AMI.

            • name (string) --

              The name of the EC2 AMI.

            • description (string) --

              The description of the EC2 AMI. Minimum and maximum length are in characters.

            • state (dict) --

              Image state shows the image status and the reason for that status.

              • status (string) --

                The status of the image.

              • reason (string) --

                The reason for the image's status.

            • 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 of the image.

        • (string) --

          • (string) --

GetImagePipeline (updated) Link ¶
Changes (response)
{'imagePipeline': {'schedule': {'timezone': 'string'}}}

Gets an image pipeline.

See also: AWS API Documentation

Request Syntax

client.get_image_pipeline(
    imagePipelineArn='string'
)
type imagePipelineArn

string

param imagePipelineArn

[REQUIRED]

The Amazon Resource Name (ARN) of the image pipeline that you want to retrieve.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'imagePipeline': {
        'arn': 'string',
        'name': 'string',
        'description': 'string',
        'platform': 'Windows'|'Linux',
        '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'
        }
    }
}

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) --

          Defines if tests should be executed when building this image.

        • 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 source 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) --

        The date on which this image pipeline was last run.

      • dateNextRun (string) --

        The date on which this image pipeline will next be run.

      • tags (dict) --

        The tags of this image pipeline.

        • (string) --

          • (string) --

GetImageRecipe (updated) Link ¶
Changes (response)
{'imageRecipe': {'blockDeviceMappings': {'ebs': {'volumeType': {'gp3'}}}}}

Gets an image recipe.

See also: AWS API Documentation

Request Syntax

client.get_image_recipe(
    imageRecipeArn='string'
)
type imageRecipeArn

string

param imageRecipeArn

[REQUIRED]

The Amazon Resource Name (ARN) of the image recipe that you want to retrieve.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'imageRecipe': {
        'arn': 'string',
        'type': 'AMI'|'DOCKER',
        'name': 'string',
        'description': 'string',
        'platform': 'Windows'|'Linux',
        'owner': 'string',
        'version': 'string',
        'components': [
            {
                'componentArn': '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'
                },
                'virtualName': 'string',
                'noDevice': 'string'
            },
        ],
        'dateCreated': 'string',
        'tags': {
            'string': 'string'
        },
        'workingDirectory': '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 of the image recipe.

        • (dict) --

          Configuration details of the component.

          • componentArn (string) --

            The Amazon Resource Name (ARN) of the component.

      • parentImage (string) --

        The parent 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.

          • virtualName (string) --

            Use to manage instance ephemeral devices.

          • noDevice (string) --

            Use to remove a mapping from the parent 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.

ListImagePipelines (updated) Link ¶
Changes (response)
{'imagePipelineList': {'schedule': {'timezone': 'string'}}}

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'
)
type filters

list

param filters

The filters.

  • (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) --

type maxResults

integer

param maxResults

The maximum items to return in a request.

type nextToken

string

param nextToken

A token to specify where to start paginating. This is the NextToken from a previously truncated response.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'imagePipelineList': [
        {
            'arn': 'string',
            'name': 'string',
            'description': 'string',
            'platform': 'Windows'|'Linux',
            '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'
            }
        },
    ],
    '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) --

            Defines if tests should be executed when building this image.

          • 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 source 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) --

          The date on which this image pipeline was last run.

        • dateNextRun (string) --

          The date on which this image pipeline will next be run.

        • tags (dict) --

          The tags of this image pipeline.

          • (string) --

            • (string) --

    • nextToken (string) --

      The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

ListInfrastructureConfigurations (updated) Link ¶
Changes (response)
{'infrastructureConfigurationSummaryList': {'instanceProfileName': 'string',
                                            'instanceTypes': ['string']}}

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'
)
type filters

list

param filters

The filters.

  • (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) --

type maxResults

integer

param maxResults

The maximum items to return in a request.

type nextToken

string

param nextToken

A token to specify where to start paginating. This is the NextToken from a previously truncated response.

rtype

dict

returns

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'
        },
    ],
    '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 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.

    • nextToken (string) --

      The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

UpdateImagePipeline (updated) Link ¶
Changes (request)
{'schedule': {'timezone': 'string'}}

Updates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.

See also: AWS API Documentation

Request Syntax

client.update_image_pipeline(
    imagePipelineArn='string',
    description='string',
    imageRecipeArn='string',
    containerRecipeArn='string',
    infrastructureConfigurationArn='string',
    distributionConfigurationArn='string',
    imageTestsConfiguration={
        'imageTestsEnabled': True|False,
        'timeoutMinutes': 123
    },
    enhancedImageMetadataEnabled=True|False,
    schedule={
        'scheduleExpression': 'string',
        'timezone': 'string',
        'pipelineExecutionStartCondition': 'EXPRESSION_MATCH_ONLY'|'EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE'
    },
    status='DISABLED'|'ENABLED',
    clientToken='string'
)
type imagePipelineArn

string

param imagePipelineArn

[REQUIRED]

The Amazon Resource Name (ARN) of the image pipeline that you want to update.

type description

string

param description

The description of the image pipeline.

type imageRecipeArn

string

param imageRecipeArn

The Amazon Resource Name (ARN) of the image recipe that will be used to configure images updated by this image pipeline.

type containerRecipeArn

string

param containerRecipeArn

The Amazon Resource Name (ARN) of the container pipeline to update.

type infrastructureConfigurationArn

string

param infrastructureConfigurationArn

[REQUIRED]

The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to build images updated by this image pipeline.

type distributionConfigurationArn

string

param distributionConfigurationArn

The Amazon Resource Name (ARN) of the distribution configuration that will be used to configure and distribute images updated by this image pipeline.

type imageTestsConfiguration

dict

param imageTestsConfiguration

The image test configuration of the image pipeline.

  • imageTestsEnabled (boolean) --

    Defines if tests should be executed when building this image.

  • timeoutMinutes (integer) --

    The maximum time in minutes that tests are permitted to run.

type enhancedImageMetadataEnabled

boolean

param enhancedImageMetadataEnabled

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.

type schedule

dict

param schedule

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 source 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 .

type status

string

param status

The status of the image pipeline.

type clientToken

string

param clientToken

[REQUIRED]

The idempotency token used to make this request idempotent.

This field is autopopulated if not provided.

rtype

dict

returns

Response Syntax

{
    'requestId': 'string',
    'clientToken': 'string',
    'imagePipelineArn': 'string'
}

Response Structure

  • (dict) --

    • requestId (string) --

      The request ID that uniquely identifies this request.

    • clientToken (string) --

      The idempotency token used to make this request idempotent.

    • imagePipelineArn (string) --

      The Amazon Resource Name (ARN) of the image pipeline that was updated by this request.