forked from TencentCloud/tencentcloud-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
670 lines (588 loc) · 21.1 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20190118
import (
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2019-01-18"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewCancelKeyDeletionRequest() (request *CancelKeyDeletionRequest) {
request = &CancelKeyDeletionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "CancelKeyDeletion")
return
}
func NewCancelKeyDeletionResponse() (response *CancelKeyDeletionResponse) {
response = &CancelKeyDeletionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 取消CMK的计划删除操作
func (c *Client) CancelKeyDeletion(request *CancelKeyDeletionRequest) (response *CancelKeyDeletionResponse, err error) {
if request == nil {
request = NewCancelKeyDeletionRequest()
}
response = NewCancelKeyDeletionResponse()
err = c.Send(request, response)
return
}
func NewCreateKeyRequest() (request *CreateKeyRequest) {
request = &CreateKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "CreateKey")
return
}
func NewCreateKeyResponse() (response *CreateKeyResponse) {
response = &CreateKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 创建用户管理数据密钥的主密钥CMK(Custom Master Key)。
func (c *Client) CreateKey(request *CreateKeyRequest) (response *CreateKeyResponse, err error) {
if request == nil {
request = NewCreateKeyRequest()
}
response = NewCreateKeyResponse()
err = c.Send(request, response)
return
}
func NewDecryptRequest() (request *DecryptRequest) {
request = &DecryptRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "Decrypt")
return
}
func NewDecryptResponse() (response *DecryptResponse) {
response = &DecryptResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 本接口用于解密密文,得到明文数据。
func (c *Client) Decrypt(request *DecryptRequest) (response *DecryptResponse, err error) {
if request == nil {
request = NewDecryptRequest()
}
response = NewDecryptResponse()
err = c.Send(request, response)
return
}
func NewDeleteImportedKeyMaterialRequest() (request *DeleteImportedKeyMaterialRequest) {
request = &DeleteImportedKeyMaterialRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "DeleteImportedKeyMaterial")
return
}
func NewDeleteImportedKeyMaterialResponse() (response *DeleteImportedKeyMaterialResponse) {
response = &DeleteImportedKeyMaterialResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 用于删除导入的密钥材料,仅对EXTERNAL类型的CMK有效,该接口将CMK设置为PendingImport 状态,并不会删除CMK,在重新进行密钥导入后可继续使用。彻底删除CMK请使用 ScheduleKeyDeletion 接口。
func (c *Client) DeleteImportedKeyMaterial(request *DeleteImportedKeyMaterialRequest) (response *DeleteImportedKeyMaterialResponse, err error) {
if request == nil {
request = NewDeleteImportedKeyMaterialRequest()
}
response = NewDeleteImportedKeyMaterialResponse()
err = c.Send(request, response)
return
}
func NewDescribeKeyRequest() (request *DescribeKeyRequest) {
request = &DescribeKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "DescribeKey")
return
}
func NewDescribeKeyResponse() (response *DescribeKeyResponse) {
response = &DescribeKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 用于获取指定KeyId的主密钥属性详情信息。
func (c *Client) DescribeKey(request *DescribeKeyRequest) (response *DescribeKeyResponse, err error) {
if request == nil {
request = NewDescribeKeyRequest()
}
response = NewDescribeKeyResponse()
err = c.Send(request, response)
return
}
func NewDescribeKeysRequest() (request *DescribeKeysRequest) {
request = &DescribeKeysRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "DescribeKeys")
return
}
func NewDescribeKeysResponse() (response *DescribeKeysResponse) {
response = &DescribeKeysResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 该接口用于批量获取主密钥属性信息。
func (c *Client) DescribeKeys(request *DescribeKeysRequest) (response *DescribeKeysResponse, err error) {
if request == nil {
request = NewDescribeKeysRequest()
}
response = NewDescribeKeysResponse()
err = c.Send(request, response)
return
}
func NewDisableKeyRequest() (request *DisableKeyRequest) {
request = &DisableKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "DisableKey")
return
}
func NewDisableKeyResponse() (response *DisableKeyResponse) {
response = &DisableKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 本接口用于禁用一个主密钥,处于禁用状态的Key无法用于加密、解密操作。
func (c *Client) DisableKey(request *DisableKeyRequest) (response *DisableKeyResponse, err error) {
if request == nil {
request = NewDisableKeyRequest()
}
response = NewDisableKeyResponse()
err = c.Send(request, response)
return
}
func NewDisableKeyRotationRequest() (request *DisableKeyRotationRequest) {
request = &DisableKeyRotationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "DisableKeyRotation")
return
}
func NewDisableKeyRotationResponse() (response *DisableKeyRotationResponse) {
response = &DisableKeyRotationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 对指定的CMK禁止密钥轮换功能。
func (c *Client) DisableKeyRotation(request *DisableKeyRotationRequest) (response *DisableKeyRotationResponse, err error) {
if request == nil {
request = NewDisableKeyRotationRequest()
}
response = NewDisableKeyRotationResponse()
err = c.Send(request, response)
return
}
func NewDisableKeysRequest() (request *DisableKeysRequest) {
request = &DisableKeysRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "DisableKeys")
return
}
func NewDisableKeysResponse() (response *DisableKeysResponse) {
response = &DisableKeysResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 该接口用于批量禁止CMK的使用。
func (c *Client) DisableKeys(request *DisableKeysRequest) (response *DisableKeysResponse, err error) {
if request == nil {
request = NewDisableKeysRequest()
}
response = NewDisableKeysResponse()
err = c.Send(request, response)
return
}
func NewEnableKeyRequest() (request *EnableKeyRequest) {
request = &EnableKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "EnableKey")
return
}
func NewEnableKeyResponse() (response *EnableKeyResponse) {
response = &EnableKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 用于启用一个指定的CMK。
func (c *Client) EnableKey(request *EnableKeyRequest) (response *EnableKeyResponse, err error) {
if request == nil {
request = NewEnableKeyRequest()
}
response = NewEnableKeyResponse()
err = c.Send(request, response)
return
}
func NewEnableKeyRotationRequest() (request *EnableKeyRotationRequest) {
request = &EnableKeyRotationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "EnableKeyRotation")
return
}
func NewEnableKeyRotationResponse() (response *EnableKeyRotationResponse) {
response = &EnableKeyRotationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 对指定的CMK开启密钥轮换功能。
func (c *Client) EnableKeyRotation(request *EnableKeyRotationRequest) (response *EnableKeyRotationResponse, err error) {
if request == nil {
request = NewEnableKeyRotationRequest()
}
response = NewEnableKeyRotationResponse()
err = c.Send(request, response)
return
}
func NewEnableKeysRequest() (request *EnableKeysRequest) {
request = &EnableKeysRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "EnableKeys")
return
}
func NewEnableKeysResponse() (response *EnableKeysResponse) {
response = &EnableKeysResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 该接口用于批量启用CMK。
func (c *Client) EnableKeys(request *EnableKeysRequest) (response *EnableKeysResponse, err error) {
if request == nil {
request = NewEnableKeysRequest()
}
response = NewEnableKeysResponse()
err = c.Send(request, response)
return
}
func NewEncryptRequest() (request *EncryptRequest) {
request = &EncryptRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "Encrypt")
return
}
func NewEncryptResponse() (response *EncryptResponse) {
response = &EncryptResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 本接口用于加密最多为4KB任意数据,可用于加密数据库密码,RSA Key,或其它较小的敏感信息。对于应用的数据加密,使用GenerateDataKey生成的DataKey进行本地数据的加解密操作
func (c *Client) Encrypt(request *EncryptRequest) (response *EncryptResponse, err error) {
if request == nil {
request = NewEncryptRequest()
}
response = NewEncryptResponse()
err = c.Send(request, response)
return
}
func NewGenerateDataKeyRequest() (request *GenerateDataKeyRequest) {
request = &GenerateDataKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "GenerateDataKey")
return
}
func NewGenerateDataKeyResponse() (response *GenerateDataKeyResponse) {
response = &GenerateDataKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 本接口生成一个数据密钥,您可以用这个密钥进行本地数据的加密。
func (c *Client) GenerateDataKey(request *GenerateDataKeyRequest) (response *GenerateDataKeyResponse, err error) {
if request == nil {
request = NewGenerateDataKeyRequest()
}
response = NewGenerateDataKeyResponse()
err = c.Send(request, response)
return
}
func NewGenerateRandomRequest() (request *GenerateRandomRequest) {
request = &GenerateRandomRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "GenerateRandom")
return
}
func NewGenerateRandomResponse() (response *GenerateRandomResponse) {
response = &GenerateRandomResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 随机数生成接口。
func (c *Client) GenerateRandom(request *GenerateRandomRequest) (response *GenerateRandomResponse, err error) {
if request == nil {
request = NewGenerateRandomRequest()
}
response = NewGenerateRandomResponse()
err = c.Send(request, response)
return
}
func NewGetKeyRotationStatusRequest() (request *GetKeyRotationStatusRequest) {
request = &GetKeyRotationStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "GetKeyRotationStatus")
return
}
func NewGetKeyRotationStatusResponse() (response *GetKeyRotationStatusResponse) {
response = &GetKeyRotationStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 查询指定的CMK是否开启了密钥轮换功能。
func (c *Client) GetKeyRotationStatus(request *GetKeyRotationStatusRequest) (response *GetKeyRotationStatusResponse, err error) {
if request == nil {
request = NewGetKeyRotationStatusRequest()
}
response = NewGetKeyRotationStatusResponse()
err = c.Send(request, response)
return
}
func NewGetParametersForImportRequest() (request *GetParametersForImportRequest) {
request = &GetParametersForImportRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "GetParametersForImport")
return
}
func NewGetParametersForImportResponse() (response *GetParametersForImportResponse) {
response = &GetParametersForImportResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 获取导入主密钥(CMK)材料的参数,返回的Token作为执行ImportKeyMaterial的参数之一,返回的PublicKey用于对自主导入密钥材料进行加密。返回的Token和PublicKey 24小时后失效,失效后如需重新导入,需要再次调用该接口获取新的Token和PublicKey。
func (c *Client) GetParametersForImport(request *GetParametersForImportRequest) (response *GetParametersForImportResponse, err error) {
if request == nil {
request = NewGetParametersForImportRequest()
}
response = NewGetParametersForImportResponse()
err = c.Send(request, response)
return
}
func NewGetServiceStatusRequest() (request *GetServiceStatusRequest) {
request = &GetServiceStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "GetServiceStatus")
return
}
func NewGetServiceStatusResponse() (response *GetServiceStatusResponse) {
response = &GetServiceStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 用于查询该用户是否已开通KMS服务
func (c *Client) GetServiceStatus(request *GetServiceStatusRequest) (response *GetServiceStatusResponse, err error) {
if request == nil {
request = NewGetServiceStatusRequest()
}
response = NewGetServiceStatusResponse()
err = c.Send(request, response)
return
}
func NewImportKeyMaterialRequest() (request *ImportKeyMaterialRequest) {
request = &ImportKeyMaterialRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "ImportKeyMaterial")
return
}
func NewImportKeyMaterialResponse() (response *ImportKeyMaterialResponse) {
response = &ImportKeyMaterialResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 用于导入密钥材料。只有类型为EXTERNAL 的CMK 才可以导入,导入的密钥材料使用 GetParametersForImport 获取的密钥进行加密。可以为指定的 CMK 重新导入密钥材料,并重新指定过期时间,但必须导入相同的密钥材料。CMK 密钥材料导入后不可以更换密钥材料。导入的密钥材料过期或者被删除后,指定的CMK将无法使用,需要再次导入相同的密钥材料才能正常使用。CMK是独立的,同样的密钥材料可导入不同的 CMK 中,但使用其中一个 CMK 加密的数据无法使用另一个 CMK解密。
// 只有Enabled 和 PendingImport状态的CMK可以导入密钥材料。
func (c *Client) ImportKeyMaterial(request *ImportKeyMaterialRequest) (response *ImportKeyMaterialResponse, err error) {
if request == nil {
request = NewImportKeyMaterialRequest()
}
response = NewImportKeyMaterialResponse()
err = c.Send(request, response)
return
}
func NewListKeyDetailRequest() (request *ListKeyDetailRequest) {
request = &ListKeyDetailRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "ListKeyDetail")
return
}
func NewListKeyDetailResponse() (response *ListKeyDetailResponse) {
response = &ListKeyDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 根据指定Offset和Limit获取主密钥列表详情。
func (c *Client) ListKeyDetail(request *ListKeyDetailRequest) (response *ListKeyDetailResponse, err error) {
if request == nil {
request = NewListKeyDetailRequest()
}
response = NewListKeyDetailResponse()
err = c.Send(request, response)
return
}
func NewListKeysRequest() (request *ListKeysRequest) {
request = &ListKeysRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "ListKeys")
return
}
func NewListKeysResponse() (response *ListKeysResponse) {
response = &ListKeysResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 列出账号下面状态为Enabled, Disabled 和 PendingImport 的CMK KeyId 列表
func (c *Client) ListKeys(request *ListKeysRequest) (response *ListKeysResponse, err error) {
if request == nil {
request = NewListKeysRequest()
}
response = NewListKeysResponse()
err = c.Send(request, response)
return
}
func NewReEncryptRequest() (request *ReEncryptRequest) {
request = &ReEncryptRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "ReEncrypt")
return
}
func NewReEncryptResponse() (response *ReEncryptResponse) {
response = &ReEncryptResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 使用指定CMK对密文重新加密。
func (c *Client) ReEncrypt(request *ReEncryptRequest) (response *ReEncryptResponse, err error) {
if request == nil {
request = NewReEncryptRequest()
}
response = NewReEncryptResponse()
err = c.Send(request, response)
return
}
func NewScheduleKeyDeletionRequest() (request *ScheduleKeyDeletionRequest) {
request = &ScheduleKeyDeletionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "ScheduleKeyDeletion")
return
}
func NewScheduleKeyDeletionResponse() (response *ScheduleKeyDeletionResponse) {
response = &ScheduleKeyDeletionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CMK计划删除接口,用于指定CMK删除的时间,可选时间区间为[7,30]天
func (c *Client) ScheduleKeyDeletion(request *ScheduleKeyDeletionRequest) (response *ScheduleKeyDeletionResponse, err error) {
if request == nil {
request = NewScheduleKeyDeletionRequest()
}
response = NewScheduleKeyDeletionResponse()
err = c.Send(request, response)
return
}
func NewUpdateAliasRequest() (request *UpdateAliasRequest) {
request = &UpdateAliasRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "UpdateAlias")
return
}
func NewUpdateAliasResponse() (response *UpdateAliasResponse) {
response = &UpdateAliasResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 用于修改CMK的别名。对于处于PendingDelete状态的CMK禁止修改。
func (c *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error) {
if request == nil {
request = NewUpdateAliasRequest()
}
response = NewUpdateAliasResponse()
err = c.Send(request, response)
return
}
func NewUpdateKeyDescriptionRequest() (request *UpdateKeyDescriptionRequest) {
request = &UpdateKeyDescriptionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("kms", APIVersion, "UpdateKeyDescription")
return
}
func NewUpdateKeyDescriptionResponse() (response *UpdateKeyDescriptionResponse) {
response = &UpdateKeyDescriptionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// 该接口用于对指定的cmk修改描述信息。对于处于PendingDelete状态的CMK禁止修改。
func (c *Client) UpdateKeyDescription(request *UpdateKeyDescriptionRequest) (response *UpdateKeyDescriptionResponse, err error) {
if request == nil {
request = NewUpdateKeyDescriptionRequest()
}
response = NewUpdateKeyDescriptionResponse()
err = c.Send(request, response)
return
}