Skip to content

ImageCriterion

Source code in docs_src/capo_ec2/types/image_criterion.py
class ImageCriterion(TypedDict, closed=True):
    image_providers: NotRequired["capo_ec2.types.image_provider_list.ImageProviderList"]
    """<p>The image providers whose images are allowed.</p> <p>Possible values:</p> <ul> <li> <p> <code>amazon</code>: Allow AMIs created by Amazon or verified providers.</p> </li> <li> <p> <code>aws-marketplace</code>: Allow AMIs created by verified providers in the Amazon Web Services Marketplace.</p> </li> <li> <p> <code>aws-backup-vault</code>: Allow AMIs created by Amazon Web Services Backup. </p> </li> <li> <p>12-digit account ID: Allow AMIs created by this account. One or more account IDs can be specified.</p> </li> <li> <p> <code>none</code>: Allow AMIs created by your own account only.</p> </li> </ul> <p>Maximum: 200 values</p>"""
    marketplace_product_codes: NotRequired[
        "capo_ec2.types.marketplace_product_code_list.MarketplaceProductCodeList"
    ]
    """<p>The Amazon Web Services Marketplace product codes for allowed images.</p> <p>Length: 1-25 characters</p> <p>Valid characters: Letters (<code>A–Z, a–z</code>) and numbers (<code>0–9</code>)</p> <p>Maximum: 50 values</p>"""
    image_names: NotRequired["capo_ec2.types.image_name_list.ImageNameList"]
    """<p>The names of allowed images. Names can include wildcards (<code>?</code> and <code>*</code>).</p> <p>Length: 1–128 characters. With <code>?</code>, the minimum is 3 characters.</p> <p>Valid characters:</p> <ul> <li> <p>Letters: <code>A–Z, a–z</code> </p> </li> <li> <p>Numbers: <code>0–9</code> </p> </li> <li> <p>Special characters: <code>( ) [ ] . / - ' @ _ * ?</code> </p> </li> <li> <p>Spaces</p> </li> </ul> <p>Maximum: 50 values</p>"""
    deprecation_time_condition: NotRequired[
        "capo_ec2.types.deprecation_time_condition.DeprecationTimeCondition"
    ]
    """<p>The maximum period since deprecation for allowed images.</p>"""
    creation_date_condition: NotRequired[
        "capo_ec2.types.creation_date_condition.CreationDateCondition"
    ]
    """<p>The maximum age for allowed images.</p>"""
    image_watermarks: NotRequired[
        "capo_ec2.types.image_watermark_filter_response_list.ImageWatermarkFilterResponseList"
    ]
    """<p>The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.</p> <p>Maximum: 50 values</p>"""

creation_date_condition instance-attribute

creation_date_condition: NotRequired[CreationDateCondition]

The maximum age for allowed images.

deprecation_time_condition instance-attribute

deprecation_time_condition: NotRequired[DeprecationTimeCondition]

The maximum period since deprecation for allowed images.

image_names instance-attribute

image_names: NotRequired[ImageNameList]

The names of allowed images. Names can include wildcards (? and *).

Length: 1–128 characters. With ?, the minimum is 3 characters.

Valid characters:

  • Letters: A–Z, a–z

  • Numbers: 0–9

  • Special characters: ( ) [ ] . / - ' @ _ * ?

  • Spaces

Maximum: 50 values

image_providers instance-attribute

image_providers: NotRequired[ImageProviderList]

The image providers whose images are allowed.

Possible values:

  • amazon: Allow AMIs created by Amazon or verified providers.

  • aws-marketplace: Allow AMIs created by verified providers in the Amazon Web Services Marketplace.

  • aws-backup-vault: Allow AMIs created by Amazon Web Services Backup.

  • 12-digit account ID: Allow AMIs created by this account. One or more account IDs can be specified.

  • none: Allow AMIs created by your own account only.

Maximum: 200 values

image_watermarks instance-attribute

image_watermarks: NotRequired[ImageWatermarkFilterResponseList]

The watermark criteria that an AMI must match to be allowed. An AMI is allowed if it carries at least one watermark that satisfies an ImageWatermarkFilter. A watermark satisfies a filter when all specified fields in the ImageWatermarkFilter match the corresponding values on the watermark of the AMI.

Maximum: 50 values

marketplace_product_codes instance-attribute

marketplace_product_codes: NotRequired[MarketplaceProductCodeList]

The Amazon Web Services Marketplace product codes for allowed images.

Length: 1-25 characters

Valid characters: Letters (A–Z, a–z) and numbers (0–9)

Maximum: 50 values