replace_image_criteria_in_allowed_images_settings¶
Operation¶
replace_image_criteria_in_allowed_images_settings
¶
replace_image_criteria_in_allowed_images_settings(request: ReplaceImageCriteriaInAllowedImagesSettingsInput | ReplaceImageCriteriaInAllowedImagesSettingsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ReplaceImageCriteriaInAllowedImagesSettingsInputDict]) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput
Sets or replaces the criteria for Allowed AMIs.
The ImageCriteria can include up to:
- 10
ImageCriterion
Note
The Allowed AMIs feature does not restrict the AMIs owned by your account. Regardless of the criteria you set, the AMIs created by your account will always be discoverable and usable by users in your account.
For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
ReplaceImageCriteriaInAllowedImagesSettingsInput | ReplaceImageCriteriaInAllowedImagesSettingsInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[ReplaceImageCriteriaInAllowedImagesSettingsInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
ReplaceImageCriteriaInAllowedImagesSettingsOutput
|
An instance of |
replace_image_criteria_in_allowed_images_settings
async
¶
replace_image_criteria_in_allowed_images_settings(request: ReplaceImageCriteriaInAllowedImagesSettingsInput | ReplaceImageCriteriaInAllowedImagesSettingsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ReplaceImageCriteriaInAllowedImagesSettingsInputDict]) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput
Sets or replaces the criteria for Allowed AMIs.
The ImageCriteria can include up to:
- 10
ImageCriterion
Note
The Allowed AMIs feature does not restrict the AMIs owned by your account. Regardless of the criteria you set, the AMIs created by your account will always be discoverable and usable by users in your account.
For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
ReplaceImageCriteriaInAllowedImagesSettingsInput | ReplaceImageCriteriaInAllowedImagesSettingsInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[ReplaceImageCriteriaInAllowedImagesSettingsInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
ReplaceImageCriteriaInAllowedImagesSettingsOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
ReplaceImageCriteriaInAllowedImagesSettingsInputDict
¶
Bases: TypedDict
Dictionary form of ReplaceImageCriteriaInAllowedImagesSettingsInput.
Attributes¶
dry_run
instance-attribute
¶
dry_run: bool | None
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation.
Otherwise, it is UnauthorizedOperation.
image_criteria
instance-attribute
¶
image_criteria: Sequence[ImageCriterionRequest | ImageCriterionRequestDict] | None
The list of criteria that are evaluated to determine whether AMIs are discoverable and usable in the account in the specified Amazon Web Services Region.
ReplaceImageCriteriaInAllowedImagesSettingsInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ReplaceImageCriteriaInAllowedImagesSettingsInput structure.
Attributes¶
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation.
Otherwise, it is UnauthorizedOperation.
image_criteria
class-attribute
instance-attribute
¶
image_criteria: list[ImageCriterionRequest] | None = ...
The list of criteria that are evaluated to determine whether AMIs are discoverable and usable in the account in the specified Amazon Web Services Region.
Output¶
ReplaceImageCriteriaInAllowedImagesSettingsOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ReplaceImageCriteriaInAllowedImagesSettingsOutput structure.