分享

cancel_bundle_task

 进分法 2023-02-15 发布于广东



cancel_bundle_task(kwargs)
Cancels a bundling operation for an instance store-backed Windows instance.
See also: AWS API Documentation
Request Syntax
response = client.cancel_bundle_task(
    BundleId='string',
    DryRun=True|False
)



Parameters
BundleId (string) -- [REQUIRED]
The ID of the bundle task.

DryRun (boolean) -- 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 .


Return typedict

ReturnsResponse Syntax
{
    'BundleTask': {
        'BundleId': 'string',
        'BundleTaskError': {
            'Code': 'string',
            'Message': 'string'
        },
        'InstanceId': 'string',
        'Progress': 'string',
        'StartTime': datetime(2015, 1, 1),
        'State': 'pending'|'waiting-for-shutdown'|'bundling'|'storing'|'cancelling'|'complete'|'failed',
        'Storage': {
            'S3': {
                'AWSAccessKeyId': 'string',
                'Bucket': 'string',
                'Prefix': 'string',
                'UploadPolicy': b'bytes',
                'UploadPolicySignature': 'string'
            }
        },
        'UpdateTime': datetime(2015, 1, 1)
    }
}


Response Structure

(dict) --
Contains the output of CancelBundleTask.

BundleTask (dict) --
Information about the bundle task.

BundleId (string) --
The ID of the bundle task.

BundleTaskError (dict) --
If the task fails, a description of the error.

Code (string) --
The error code.

Message (string) --
The error message.



InstanceId (string) --
The ID of the instance associated with this bundle task.

Progress (string) --
The level of task completion, as a percent (for example, 20%).

StartTime (datetime) --
The time this task started.

State (string) --
The state of the task.

Storage (dict) --
The Amazon S3 storage locations.

S3 (dict) --
An Amazon S3 storage location.

AWSAccessKeyId (string) --
The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best practices for managing Amazon Web Services access keys.

Bucket (string) --
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

Prefix (string) --
The beginning of the file name of the AMI.

UploadPolicy (bytes) --
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.

UploadPolicySignature (string) --
The signature of the JSON document.





UpdateTime (datetime) --
The time of the most recent update for the task.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多