create_store_image_task¶
Operation¶
create_store_image_task
async
¶
create_store_image_task(input: CreateStoreImageTaskInput, plugins: list[Plugin] | None = None) -> CreateStoreImageTaskOutput
Stores an AMI as a single object in an Amazon S3 bucket.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using S3 in the Amazon EC2 User Guide.
For more information, see Store and restore an AMI using S3 in the Amazon EC2 User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateStoreImageTaskInput
|
An instance of |
required |
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
|
Returns:
| Type | Description |
|---|---|
CreateStoreImageTaskOutput
|
An instance of |
Input¶
CreateStoreImageTaskInput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateStoreImageTaskInput structure.
Attributes¶
bucket
class-attribute
instance-attribute
¶
bucket: str | None = ...
The name of the Amazon S3 bucket in which the AMI object will be stored. The bucket must be in the Region in which the request is being made. The AMI object appears in the bucket only after the upload task has completed.
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.
Output¶
CreateStoreImageTaskOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateStoreImageTaskOutput structure.
Attributes¶
object_key
class-attribute
instance-attribute
¶
object_key: str | None = ...
The name of the stored AMI object in the S3 bucket.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.