imagebuilder / Paginator / ListInfrastructureConfigurations

ListInfrastructureConfigurations

class imagebuilder.Paginator.ListInfrastructureConfigurations
paginator = client.get_paginator('list_infrastructure_configurations')
paginate(**kwargs)

Creates an iterator that will paginate through responses from imagebuilder.Client.list_infrastructure_configurations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    filters=[
        {
            'name': 'string',
            'values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • filters (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) –

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

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

Return type:

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',
            '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) –

      A token to resume pagination.