AmiContextQuery

class aws_cdk.cloud_assembly_schema.AmiContextQuery(*, account, filters, region, lookup_role_arn=None, owners=None)

Bases: object

Query to AMI context provider.

Parameters
  • account (str) – Account to query.

  • filters (Mapping[str, Sequence[str]]) – Filters to DescribeImages call.

  • region (str) – Region to query.

  • lookup_role_arn (Optional[str]) – The ARN of the role that should be used to look up the missing values. Default: - None

  • owners (Optional[Sequence[str]]) – Owners to DescribeImages call. Default: - All owners

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cloud_assembly_schema as cloud_assembly_schema

ami_context_query = cloud_assembly_schema.AmiContextQuery(
    account="account",
    filters={
        "filters_key": ["filters"]
    },
    region="region",

    # the properties below are optional
    lookup_role_arn="lookupRoleArn",
    owners=["owners"]
)

Attributes

account

Account to query.

Return type

str

filters

Filters to DescribeImages call.

Return type

Mapping[str, List[str]]

lookup_role_arn

The ARN of the role that should be used to look up the missing values.

Default
  • None

Return type

Optional[str]

owners

Owners to DescribeImages call.

Default
  • All owners

Return type

Optional[List[str]]

region

Region to query.

Return type

str