Skip to content

ImageCriterionRequest

Source code in docs_src/capo_ec2/types/image_criterion_request.py
class ImageCriterionRequest(TypedDict, closed=True):
    image_providers: NotRequired[
        "capo_ec2.types.image_provider_request_list.ImageProviderRequestList"
    ]
    """<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 the specified accounts. One or more account IDs can be specified.</p> </li> <li> <p> <code>none</code>: Allow AMIs created by your own account only. When <code>none</code> is specified, no other values can be specified.</p> </li> </ul> <p>Maximum: 200 values</p>"""
    marketplace_product_codes: NotRequired[
        "capo_ec2.types.marketplace_product_code_request_list.MarketplaceProductCodeRequestList"
    ]
    """<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_criteria_request_list.ImageNameCriteriaRequestList"
    ]
    """<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_request.DeprecationTimeConditionRequest"
    ]
    """<p>The maximum period since deprecation for allowed images.</p>"""
    creation_date_condition: NotRequired[
        "capo_ec2.types.creation_date_condition_request.CreationDateConditionRequest"
    ]
    """<p>The maximum age for allowed images.</p>"""
    image_watermarks: NotRequired[
        "capo_ec2.types.image_watermark_filter_request_list.ImageWatermarkFilterRequestList"
    ]
    """<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[CreationDateConditionRequest]

The maximum age for allowed images.

deprecation_time_condition instance-attribute

deprecation_time_condition: NotRequired[DeprecationTimeConditionRequest]

The maximum period since deprecation for allowed images.

image_names instance-attribute

image_names: NotRequired[ImageNameCriteriaRequestList]

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[ImageProviderRequestList]

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 the specified accounts. One or more account IDs can be specified.

  • none: Allow AMIs created by your own account only. When none is specified, no other values can be specified.

Maximum: 200 values

image_watermarks instance-attribute

image_watermarks: NotRequired[ImageWatermarkFilterRequestList]

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[MarketplaceProductCodeRequestList]

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