打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
cancel_bundle_task
userphoto

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.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Amazon云计算服务EC2、S3介绍|IT168 云计算
腾讯云COS对象存储的简单使用
best practice to cancel a task in Excutor framework use Future
iOS开发企业版ipa分发(In
【Go实战 | 电商平台】(7) 图片上传到七牛云
修改,8.3和8.4的系统精简瘦身,IOS8.4 8.3精简进程和无用程序
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服