Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 Amazon S3 in the Amazon EC2 User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.
Synopsis
- data CreateStoreImageTask = CreateStoreImageTask' {
- dryRun :: Maybe Bool
- s3ObjectTags :: Maybe [S3ObjectTag]
- imageId :: Text
- bucket :: Text
- newCreateStoreImageTask :: Text -> Text -> CreateStoreImageTask
- createStoreImageTask_dryRun :: Lens' CreateStoreImageTask (Maybe Bool)
- createStoreImageTask_s3ObjectTags :: Lens' CreateStoreImageTask (Maybe [S3ObjectTag])
- createStoreImageTask_imageId :: Lens' CreateStoreImageTask Text
- createStoreImageTask_bucket :: Lens' CreateStoreImageTask Text
- data CreateStoreImageTaskResponse = CreateStoreImageTaskResponse' {
- objectKey :: Maybe Text
- httpStatus :: Int
- newCreateStoreImageTaskResponse :: Int -> CreateStoreImageTaskResponse
- createStoreImageTaskResponse_objectKey :: Lens' CreateStoreImageTaskResponse (Maybe Text)
- createStoreImageTaskResponse_httpStatus :: Lens' CreateStoreImageTaskResponse Int
Creating a Request
data CreateStoreImageTask Source #
See: newCreateStoreImageTask
smart constructor.
CreateStoreImageTask' | |
|
Instances
newCreateStoreImageTask Source #
Create a value of CreateStoreImageTask
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:CreateStoreImageTask'
, createStoreImageTask_dryRun
- 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
.
$sel:s3ObjectTags:CreateStoreImageTask'
, createStoreImageTask_s3ObjectTags
- The tags to apply to the AMI object that will be stored in the Amazon S3
bucket.
CreateStoreImageTask
, createStoreImageTask_imageId
- The ID of the AMI.
CreateStoreImageTask
, createStoreImageTask_bucket
- 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.
Request Lenses
createStoreImageTask_dryRun :: Lens' CreateStoreImageTask (Maybe Bool) Source #
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
.
createStoreImageTask_s3ObjectTags :: Lens' CreateStoreImageTask (Maybe [S3ObjectTag]) Source #
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.
createStoreImageTask_imageId :: Lens' CreateStoreImageTask Text Source #
The ID of the AMI.
createStoreImageTask_bucket :: Lens' CreateStoreImageTask Text Source #
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.
Destructuring the Response
data CreateStoreImageTaskResponse Source #
See: newCreateStoreImageTaskResponse
smart constructor.
CreateStoreImageTaskResponse' | |
|
Instances
newCreateStoreImageTaskResponse Source #
Create a value of CreateStoreImageTaskResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:objectKey:CreateStoreImageTaskResponse'
, createStoreImageTaskResponse_objectKey
- The name of the stored AMI object in the S3 bucket.
$sel:httpStatus:CreateStoreImageTaskResponse'
, createStoreImageTaskResponse_httpStatus
- The response's http status code.
Response Lenses
createStoreImageTaskResponse_objectKey :: Lens' CreateStoreImageTaskResponse (Maybe Text) Source #
The name of the stored AMI object in the S3 bucket.
createStoreImageTaskResponse_httpStatus :: Lens' CreateStoreImageTaskResponse Int Source #
The response's http status code.