Skip to content

/AWS1/CL_EC2IMAGECRITERIONREQ

The criteria that are evaluated to determine which AMIs are discoverable and usable in your account for the specified Amazon Web Services Region.

The ImageCriteria can include up to:

  • 10 ImageCriterion

Each ImageCriterion can include up to:

  • 200 values for ImageProviders

  • 50 values for ImageNames

  • 50 values for MarketplaceProductCodes

For more information, see How Allowed AMIs works in the Amazon EC2 User Guide.

CONSTRUCTOR

IMPORTING

Optional arguments:

it_imageproviders TYPE /AWS1/CL_EC2IMAGEPVDRREQLIST_W=>TT_IMAGEPROVIDERREQUESTLIST TT_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

it_marketplaceproductcodes TYPE /AWS1/CL_EC2MPPRDCODEREQLIST_W=>TT_MKTPLCPRODCODEREQUESTLIST TT_MKTPLCPRODCODEREQUESTLIST

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

it_imagenames TYPE /AWS1/CL_EC2IMAGENAMEREQLIST_W=>TT_IMAGENAMEREQUESTLIST TT_IMAGENAMEREQUESTLIST

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

io_deprecationtimecondition TYPE REF TO /AWS1/CL_EC2DEPRECATIONTIMEC01 /AWS1/CL_EC2DEPRECATIONTIMEC01

The maximum period since deprecation for allowed images.

io_creationdatecondition TYPE REF TO /AWS1/CL_EC2CREATIONDATECOND00 /AWS1/CL_EC2CREATIONDATECOND00

The maximum age for allowed images.


Queryable Attributes

ImageProviders

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

Accessible with the following methods

Method Description
GET_IMAGEPROVIDERS() Getter for IMAGEPROVIDERS, with configurable default
ASK_IMAGEPROVIDERS() Getter for IMAGEPROVIDERS w/ exceptions if field has no valu
HAS_IMAGEPROVIDERS() Determine if IMAGEPROVIDERS has a value

MarketplaceProductCodes

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

Accessible with the following methods

Method Description
GET_MARKETPLACEPRODUCTCODES() Getter for MARKETPLACEPRODUCTCODES, with configurable defaul
ASK_MARKETPLACEPRODUCTCODES() Getter for MARKETPLACEPRODUCTCODES w/ exceptions if field ha
HAS_MARKETPLACEPRODUCTCODES() Determine if MARKETPLACEPRODUCTCODES has a value

ImageNames

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

Accessible with the following methods

Method Description
GET_IMAGENAMES() Getter for IMAGENAMES, with configurable default
ASK_IMAGENAMES() Getter for IMAGENAMES w/ exceptions if field has no value
HAS_IMAGENAMES() Determine if IMAGENAMES has a value

DeprecationTimeCondition

The maximum period since deprecation for allowed images.

Accessible with the following methods

Method Description
GET_DEPRECATIONTIMECONDITION() Getter for DEPRECATIONTIMECONDITION

CreationDateCondition

The maximum age for allowed images.

Accessible with the following methods

Method Description
GET_CREATIONDATECONDITION() Getter for CREATIONDATECONDITION

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_IMAGECRITERIONREQUESTLIST

TYPES TT_IMAGECRITERIONREQUESTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_EC2IMAGECRITERIONREQ WITH DEFAULT KEY
.