@aws-sdk/client-cloudhsm-v2 3.606.0 → 3.609.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -1
- package/dist-cjs/index.js +115 -0
- package/dist-es/CloudHSMV2.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +24 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +24 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +58 -0
- package/dist-types/CloudHSMV2.d.ts +25 -1
- package/dist-types/CloudHSMV2Client.d.ts +6 -3
- package/dist-types/commands/CopyBackupToRegionCommand.d.ts +4 -2
- package/dist-types/commands/CreateClusterCommand.d.ts +5 -2
- package/dist-types/commands/CreateHsmCommand.d.ts +4 -2
- package/dist-types/commands/DeleteBackupCommand.d.ts +5 -2
- package/dist-types/commands/DeleteClusterCommand.d.ts +4 -2
- package/dist-types/commands/DeleteHsmCommand.d.ts +3 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +83 -0
- package/dist-types/commands/DescribeBackupsCommand.d.ts +6 -2
- package/dist-types/commands/DescribeClustersCommand.d.ts +4 -2
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +80 -0
- package/dist-types/commands/InitializeClusterCommand.d.ts +4 -2
- package/dist-types/commands/ListTagsCommand.d.ts +4 -2
- package/dist-types/commands/ModifyBackupAttributesCommand.d.ts +5 -2
- package/dist-types/commands/ModifyClusterCommand.d.ts +4 -2
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +99 -0
- package/dist-types/commands/RestoreBackupCommand.d.ts +6 -3
- package/dist-types/commands/TagResourceCommand.d.ts +4 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +104 -10
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/CloudHSMV2.d.ts +54 -0
- package/dist-types/ts3.4/CloudHSMV2Client.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +35 -35
|
@@ -43,7 +43,7 @@ export interface Tag {
|
|
|
43
43
|
Value: string | undefined;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* <p>Contains information about a backup of an
|
|
46
|
+
* <p>Contains information about a backup of an CloudHSM cluster. All backup objects
|
|
47
47
|
* contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and
|
|
48
48
|
* <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region
|
|
49
49
|
* additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>,
|
|
@@ -57,6 +57,11 @@ export interface Backup {
|
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
59
|
BackupId: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* <p>The Amazon Resource Name (ARN) of the backup.</p>
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
BackupArn?: string;
|
|
60
65
|
/**
|
|
61
66
|
* <p>The state of the backup.</p>
|
|
62
67
|
* @public
|
|
@@ -112,7 +117,7 @@ export interface Backup {
|
|
|
112
117
|
*/
|
|
113
118
|
TagList?: Tag[];
|
|
114
119
|
/**
|
|
115
|
-
* <p>The HSM type
|
|
120
|
+
* <p>The HSM type used to create the backup.</p>
|
|
116
121
|
* @public
|
|
117
122
|
*/
|
|
118
123
|
HsmType?: string;
|
|
@@ -176,7 +181,7 @@ export declare class CloudHsmAccessDeniedException extends __BaseException {
|
|
|
176
181
|
constructor(opts: __ExceptionOptionType<CloudHsmAccessDeniedException, __BaseException>);
|
|
177
182
|
}
|
|
178
183
|
/**
|
|
179
|
-
* <p>The request was rejected because of an
|
|
184
|
+
* <p>The request was rejected because of an CloudHSM internal failure. The request can
|
|
180
185
|
* be retried.</p>
|
|
181
186
|
* @public
|
|
182
187
|
*/
|
|
@@ -319,8 +324,9 @@ export interface CreateClusterRequest {
|
|
|
319
324
|
*/
|
|
320
325
|
HsmType: string | undefined;
|
|
321
326
|
/**
|
|
322
|
-
* <p>The identifier (ID) of the cluster backup to restore. Use this value to restore the
|
|
323
|
-
* cluster from a backup instead of creating a new cluster. To find the backup ID, use <a>DescribeBackups</a
|
|
327
|
+
* <p>The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore. Use this value to restore the
|
|
328
|
+
* cluster from a backup instead of creating a new cluster. To find the backup ID or ARN, use <a>DescribeBackups</a>. <i>If using a backup in another account, the full ARN must be supplied.</i>
|
|
329
|
+
* </p>
|
|
324
330
|
* @public
|
|
325
331
|
*/
|
|
326
332
|
SourceBackupId?: string;
|
|
@@ -368,7 +374,7 @@ export interface Certificates {
|
|
|
368
374
|
*/
|
|
369
375
|
HsmCertificate?: string;
|
|
370
376
|
/**
|
|
371
|
-
* <p>The HSM hardware certificate issued (signed) by
|
|
377
|
+
* <p>The HSM hardware certificate issued (signed) by CloudHSM.</p>
|
|
372
378
|
* @public
|
|
373
379
|
*/
|
|
374
380
|
AwsHardwareCertificate?: string;
|
|
@@ -400,7 +406,7 @@ export declare const HsmState: {
|
|
|
400
406
|
*/
|
|
401
407
|
export type HsmState = (typeof HsmState)[keyof typeof HsmState];
|
|
402
408
|
/**
|
|
403
|
-
* <p>Contains information about a hardware security module (HSM) in an
|
|
409
|
+
* <p>Contains information about a hardware security module (HSM) in an CloudHSM
|
|
404
410
|
* cluster.</p>
|
|
405
411
|
* @public
|
|
406
412
|
*/
|
|
@@ -466,7 +472,7 @@ export declare const ClusterState: {
|
|
|
466
472
|
*/
|
|
467
473
|
export type ClusterState = (typeof ClusterState)[keyof typeof ClusterState];
|
|
468
474
|
/**
|
|
469
|
-
* <p>Contains information about an
|
|
475
|
+
* <p>Contains information about an CloudHSM cluster.</p>
|
|
470
476
|
* @public
|
|
471
477
|
*/
|
|
472
478
|
export interface Cluster {
|
|
@@ -675,6 +681,31 @@ export interface DeleteHsmResponse {
|
|
|
675
681
|
*/
|
|
676
682
|
HsmId?: string;
|
|
677
683
|
}
|
|
684
|
+
/**
|
|
685
|
+
* @public
|
|
686
|
+
*/
|
|
687
|
+
export interface DeleteResourcePolicyRequest {
|
|
688
|
+
/**
|
|
689
|
+
* <p>Amazon Resource Name (ARN) of the resource from which the policy will be removed. </p>
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
ResourceArn?: string;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* @public
|
|
696
|
+
*/
|
|
697
|
+
export interface DeleteResourcePolicyResponse {
|
|
698
|
+
/**
|
|
699
|
+
* <p>Amazon Resource Name (ARN) of the resource from which the policy was deleted. </p>
|
|
700
|
+
* @public
|
|
701
|
+
*/
|
|
702
|
+
ResourceArn?: string;
|
|
703
|
+
/**
|
|
704
|
+
* <p>The policy previously attached to the resource.</p>
|
|
705
|
+
* @public
|
|
706
|
+
*/
|
|
707
|
+
Policy?: string;
|
|
708
|
+
}
|
|
678
709
|
/**
|
|
679
710
|
* @public
|
|
680
711
|
*/
|
|
@@ -708,6 +739,18 @@ export interface DescribeBackupsRequest {
|
|
|
708
739
|
* @public
|
|
709
740
|
*/
|
|
710
741
|
Filters?: Record<string, string[]>;
|
|
742
|
+
/**
|
|
743
|
+
* <p>Describe backups that are shared with you.</p>
|
|
744
|
+
* <note>
|
|
745
|
+
* <p>By default when using this option, the command returns backups that have been shared using a standard Resource Access Manager
|
|
746
|
+
* resource share. In order for a backup that was shared using the PutResourcePolicy command to be returned, the share must be promoted to a
|
|
747
|
+
* standard resource share using the RAM <a href="https://docs.aws.amazon.com/cli/latest/reference/ram/promote-resource-share-created-from-policy.html">PromoteResourceShareCreatedFromPolicy</a> API operation.
|
|
748
|
+
*
|
|
749
|
+
* For more information about sharing backups, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html"> Working with shared backups</a> in the CloudHSM User Guide.</p>
|
|
750
|
+
* </note>
|
|
751
|
+
* @public
|
|
752
|
+
*/
|
|
753
|
+
Shared?: boolean;
|
|
711
754
|
/**
|
|
712
755
|
* <p>Designates whether or not to sort the return backups by ascending chronological order
|
|
713
756
|
* of generation.</p>
|
|
@@ -777,6 +820,26 @@ export interface DescribeClustersResponse {
|
|
|
777
820
|
*/
|
|
778
821
|
NextToken?: string;
|
|
779
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
export interface GetResourcePolicyRequest {
|
|
827
|
+
/**
|
|
828
|
+
* <p>Amazon Resource Name (ARN) of the resource to which a policy is attached.</p>
|
|
829
|
+
* @public
|
|
830
|
+
*/
|
|
831
|
+
ResourceArn?: string;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* @public
|
|
835
|
+
*/
|
|
836
|
+
export interface GetResourcePolicyResponse {
|
|
837
|
+
/**
|
|
838
|
+
* <p>The policy attached to a resource.</p>
|
|
839
|
+
* @public
|
|
840
|
+
*/
|
|
841
|
+
Policy?: string;
|
|
842
|
+
}
|
|
780
843
|
/**
|
|
781
844
|
* @public
|
|
782
845
|
*/
|
|
@@ -877,7 +940,7 @@ export interface ModifyBackupAttributesRequest {
|
|
|
877
940
|
*/
|
|
878
941
|
export interface ModifyBackupAttributesResponse {
|
|
879
942
|
/**
|
|
880
|
-
* <p>Contains information about a backup of an
|
|
943
|
+
* <p>Contains information about a backup of an CloudHSM cluster. All backup objects
|
|
881
944
|
* contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and
|
|
882
945
|
* <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region
|
|
883
946
|
* additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>,
|
|
@@ -908,11 +971,42 @@ export interface ModifyClusterRequest {
|
|
|
908
971
|
*/
|
|
909
972
|
export interface ModifyClusterResponse {
|
|
910
973
|
/**
|
|
911
|
-
* <p>Contains information about an
|
|
974
|
+
* <p>Contains information about an CloudHSM cluster.</p>
|
|
912
975
|
* @public
|
|
913
976
|
*/
|
|
914
977
|
Cluster?: Cluster;
|
|
915
978
|
}
|
|
979
|
+
/**
|
|
980
|
+
* @public
|
|
981
|
+
*/
|
|
982
|
+
export interface PutResourcePolicyRequest {
|
|
983
|
+
/**
|
|
984
|
+
* <p>Amazon Resource Name (ARN) of the resource to which you want to attach a policy. </p>
|
|
985
|
+
* @public
|
|
986
|
+
*/
|
|
987
|
+
ResourceArn?: string;
|
|
988
|
+
/**
|
|
989
|
+
* <p>The policy you want to associate with a resource. </p>
|
|
990
|
+
* <p>For an example policy, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html"> Working with shared backups</a> in the CloudHSM User Guide</p>
|
|
991
|
+
* @public
|
|
992
|
+
*/
|
|
993
|
+
Policy?: string;
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* @public
|
|
997
|
+
*/
|
|
998
|
+
export interface PutResourcePolicyResponse {
|
|
999
|
+
/**
|
|
1000
|
+
* <p>Amazon Resource Name (ARN) of the resource to which a policy is attached.</p>
|
|
1001
|
+
* @public
|
|
1002
|
+
*/
|
|
1003
|
+
ResourceArn?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* <p>The policy attached to a resource.</p>
|
|
1006
|
+
* @public
|
|
1007
|
+
*/
|
|
1008
|
+
Policy?: string;
|
|
1009
|
+
}
|
|
916
1010
|
/**
|
|
917
1011
|
* @public
|
|
918
1012
|
*/
|
|
@@ -6,12 +6,15 @@ import { CreateHsmCommandInput, CreateHsmCommandOutput } from "../commands/Creat
|
|
|
6
6
|
import { DeleteBackupCommandInput, DeleteBackupCommandOutput } from "../commands/DeleteBackupCommand";
|
|
7
7
|
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "../commands/DeleteClusterCommand";
|
|
8
8
|
import { DeleteHsmCommandInput, DeleteHsmCommandOutput } from "../commands/DeleteHsmCommand";
|
|
9
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "../commands/DeleteResourcePolicyCommand";
|
|
9
10
|
import { DescribeBackupsCommandInput, DescribeBackupsCommandOutput } from "../commands/DescribeBackupsCommand";
|
|
10
11
|
import { DescribeClustersCommandInput, DescribeClustersCommandOutput } from "../commands/DescribeClustersCommand";
|
|
12
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "../commands/GetResourcePolicyCommand";
|
|
11
13
|
import { InitializeClusterCommandInput, InitializeClusterCommandOutput } from "../commands/InitializeClusterCommand";
|
|
12
14
|
import { ListTagsCommandInput, ListTagsCommandOutput } from "../commands/ListTagsCommand";
|
|
13
15
|
import { ModifyBackupAttributesCommandInput, ModifyBackupAttributesCommandOutput } from "../commands/ModifyBackupAttributesCommand";
|
|
14
16
|
import { ModifyClusterCommandInput, ModifyClusterCommandOutput } from "../commands/ModifyClusterCommand";
|
|
17
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
|
|
15
18
|
import { RestoreBackupCommandInput, RestoreBackupCommandOutput } from "../commands/RestoreBackupCommand";
|
|
16
19
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
17
20
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
@@ -39,6 +42,10 @@ export declare const se_DeleteClusterCommand: (input: DeleteClusterCommandInput,
|
|
|
39
42
|
* serializeAws_json1_1DeleteHsmCommand
|
|
40
43
|
*/
|
|
41
44
|
export declare const se_DeleteHsmCommand: (input: DeleteHsmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
+
/**
|
|
46
|
+
* serializeAws_json1_1DeleteResourcePolicyCommand
|
|
47
|
+
*/
|
|
48
|
+
export declare const se_DeleteResourcePolicyCommand: (input: DeleteResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
49
|
/**
|
|
43
50
|
* serializeAws_json1_1DescribeBackupsCommand
|
|
44
51
|
*/
|
|
@@ -47,6 +54,10 @@ export declare const se_DescribeBackupsCommand: (input: DescribeBackupsCommandIn
|
|
|
47
54
|
* serializeAws_json1_1DescribeClustersCommand
|
|
48
55
|
*/
|
|
49
56
|
export declare const se_DescribeClustersCommand: (input: DescribeClustersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
|
+
/**
|
|
58
|
+
* serializeAws_json1_1GetResourcePolicyCommand
|
|
59
|
+
*/
|
|
60
|
+
export declare const se_GetResourcePolicyCommand: (input: GetResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
50
61
|
/**
|
|
51
62
|
* serializeAws_json1_1InitializeClusterCommand
|
|
52
63
|
*/
|
|
@@ -63,6 +74,10 @@ export declare const se_ModifyBackupAttributesCommand: (input: ModifyBackupAttri
|
|
|
63
74
|
* serializeAws_json1_1ModifyClusterCommand
|
|
64
75
|
*/
|
|
65
76
|
export declare const se_ModifyClusterCommand: (input: ModifyClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
77
|
+
/**
|
|
78
|
+
* serializeAws_json1_1PutResourcePolicyCommand
|
|
79
|
+
*/
|
|
80
|
+
export declare const se_PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
66
81
|
/**
|
|
67
82
|
* serializeAws_json1_1RestoreBackupCommand
|
|
68
83
|
*/
|
|
@@ -99,6 +114,10 @@ export declare const de_DeleteClusterCommand: (output: __HttpResponse, context:
|
|
|
99
114
|
* deserializeAws_json1_1DeleteHsmCommand
|
|
100
115
|
*/
|
|
101
116
|
export declare const de_DeleteHsmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteHsmCommandOutput>;
|
|
117
|
+
/**
|
|
118
|
+
* deserializeAws_json1_1DeleteResourcePolicyCommand
|
|
119
|
+
*/
|
|
120
|
+
export declare const de_DeleteResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteResourcePolicyCommandOutput>;
|
|
102
121
|
/**
|
|
103
122
|
* deserializeAws_json1_1DescribeBackupsCommand
|
|
104
123
|
*/
|
|
@@ -107,6 +126,10 @@ export declare const de_DescribeBackupsCommand: (output: __HttpResponse, context
|
|
|
107
126
|
* deserializeAws_json1_1DescribeClustersCommand
|
|
108
127
|
*/
|
|
109
128
|
export declare const de_DescribeClustersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeClustersCommandOutput>;
|
|
129
|
+
/**
|
|
130
|
+
* deserializeAws_json1_1GetResourcePolicyCommand
|
|
131
|
+
*/
|
|
132
|
+
export declare const de_GetResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourcePolicyCommandOutput>;
|
|
110
133
|
/**
|
|
111
134
|
* deserializeAws_json1_1InitializeClusterCommand
|
|
112
135
|
*/
|
|
@@ -123,6 +146,10 @@ export declare const de_ModifyBackupAttributesCommand: (output: __HttpResponse,
|
|
|
123
146
|
* deserializeAws_json1_1ModifyClusterCommand
|
|
124
147
|
*/
|
|
125
148
|
export declare const de_ModifyClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyClusterCommandOutput>;
|
|
149
|
+
/**
|
|
150
|
+
* deserializeAws_json1_1PutResourcePolicyCommand
|
|
151
|
+
*/
|
|
152
|
+
export declare const de_PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutResourcePolicyCommandOutput>;
|
|
126
153
|
/**
|
|
127
154
|
* deserializeAws_json1_1RestoreBackupCommand
|
|
128
155
|
*/
|
|
@@ -24,6 +24,10 @@ import {
|
|
|
24
24
|
DeleteHsmCommandInput,
|
|
25
25
|
DeleteHsmCommandOutput,
|
|
26
26
|
} from "./commands/DeleteHsmCommand";
|
|
27
|
+
import {
|
|
28
|
+
DeleteResourcePolicyCommandInput,
|
|
29
|
+
DeleteResourcePolicyCommandOutput,
|
|
30
|
+
} from "./commands/DeleteResourcePolicyCommand";
|
|
27
31
|
import {
|
|
28
32
|
DescribeBackupsCommandInput,
|
|
29
33
|
DescribeBackupsCommandOutput,
|
|
@@ -32,6 +36,10 @@ import {
|
|
|
32
36
|
DescribeClustersCommandInput,
|
|
33
37
|
DescribeClustersCommandOutput,
|
|
34
38
|
} from "./commands/DescribeClustersCommand";
|
|
39
|
+
import {
|
|
40
|
+
GetResourcePolicyCommandInput,
|
|
41
|
+
GetResourcePolicyCommandOutput,
|
|
42
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
35
43
|
import {
|
|
36
44
|
InitializeClusterCommandInput,
|
|
37
45
|
InitializeClusterCommandOutput,
|
|
@@ -48,6 +56,10 @@ import {
|
|
|
48
56
|
ModifyClusterCommandInput,
|
|
49
57
|
ModifyClusterCommandOutput,
|
|
50
58
|
} from "./commands/ModifyClusterCommand";
|
|
59
|
+
import {
|
|
60
|
+
PutResourcePolicyCommandInput,
|
|
61
|
+
PutResourcePolicyCommandOutput,
|
|
62
|
+
} from "./commands/PutResourcePolicyCommand";
|
|
51
63
|
import {
|
|
52
64
|
RestoreBackupCommandInput,
|
|
53
65
|
RestoreBackupCommandOutput,
|
|
@@ -139,6 +151,20 @@ export interface CloudHSMV2 {
|
|
|
139
151
|
options: __HttpHandlerOptions,
|
|
140
152
|
cb: (err: any, data?: DeleteHsmCommandOutput) => void
|
|
141
153
|
): void;
|
|
154
|
+
deleteResourcePolicy(): Promise<DeleteResourcePolicyCommandOutput>;
|
|
155
|
+
deleteResourcePolicy(
|
|
156
|
+
args: DeleteResourcePolicyCommandInput,
|
|
157
|
+
options?: __HttpHandlerOptions
|
|
158
|
+
): Promise<DeleteResourcePolicyCommandOutput>;
|
|
159
|
+
deleteResourcePolicy(
|
|
160
|
+
args: DeleteResourcePolicyCommandInput,
|
|
161
|
+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
|
|
162
|
+
): void;
|
|
163
|
+
deleteResourcePolicy(
|
|
164
|
+
args: DeleteResourcePolicyCommandInput,
|
|
165
|
+
options: __HttpHandlerOptions,
|
|
166
|
+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
|
|
167
|
+
): void;
|
|
142
168
|
describeBackups(): Promise<DescribeBackupsCommandOutput>;
|
|
143
169
|
describeBackups(
|
|
144
170
|
args: DescribeBackupsCommandInput,
|
|
@@ -167,6 +193,20 @@ export interface CloudHSMV2 {
|
|
|
167
193
|
options: __HttpHandlerOptions,
|
|
168
194
|
cb: (err: any, data?: DescribeClustersCommandOutput) => void
|
|
169
195
|
): void;
|
|
196
|
+
getResourcePolicy(): Promise<GetResourcePolicyCommandOutput>;
|
|
197
|
+
getResourcePolicy(
|
|
198
|
+
args: GetResourcePolicyCommandInput,
|
|
199
|
+
options?: __HttpHandlerOptions
|
|
200
|
+
): Promise<GetResourcePolicyCommandOutput>;
|
|
201
|
+
getResourcePolicy(
|
|
202
|
+
args: GetResourcePolicyCommandInput,
|
|
203
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
|
|
204
|
+
): void;
|
|
205
|
+
getResourcePolicy(
|
|
206
|
+
args: GetResourcePolicyCommandInput,
|
|
207
|
+
options: __HttpHandlerOptions,
|
|
208
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
|
|
209
|
+
): void;
|
|
170
210
|
initializeCluster(
|
|
171
211
|
args: InitializeClusterCommandInput,
|
|
172
212
|
options?: __HttpHandlerOptions
|
|
@@ -219,6 +259,20 @@ export interface CloudHSMV2 {
|
|
|
219
259
|
options: __HttpHandlerOptions,
|
|
220
260
|
cb: (err: any, data?: ModifyClusterCommandOutput) => void
|
|
221
261
|
): void;
|
|
262
|
+
putResourcePolicy(): Promise<PutResourcePolicyCommandOutput>;
|
|
263
|
+
putResourcePolicy(
|
|
264
|
+
args: PutResourcePolicyCommandInput,
|
|
265
|
+
options?: __HttpHandlerOptions
|
|
266
|
+
): Promise<PutResourcePolicyCommandOutput>;
|
|
267
|
+
putResourcePolicy(
|
|
268
|
+
args: PutResourcePolicyCommandInput,
|
|
269
|
+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
|
|
270
|
+
): void;
|
|
271
|
+
putResourcePolicy(
|
|
272
|
+
args: PutResourcePolicyCommandInput,
|
|
273
|
+
options: __HttpHandlerOptions,
|
|
274
|
+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
|
|
275
|
+
): void;
|
|
222
276
|
restoreBackup(
|
|
223
277
|
args: RestoreBackupCommandInput,
|
|
224
278
|
options?: __HttpHandlerOptions
|
|
@@ -69,6 +69,10 @@ import {
|
|
|
69
69
|
DeleteHsmCommandInput,
|
|
70
70
|
DeleteHsmCommandOutput,
|
|
71
71
|
} from "./commands/DeleteHsmCommand";
|
|
72
|
+
import {
|
|
73
|
+
DeleteResourcePolicyCommandInput,
|
|
74
|
+
DeleteResourcePolicyCommandOutput,
|
|
75
|
+
} from "./commands/DeleteResourcePolicyCommand";
|
|
72
76
|
import {
|
|
73
77
|
DescribeBackupsCommandInput,
|
|
74
78
|
DescribeBackupsCommandOutput,
|
|
@@ -77,6 +81,10 @@ import {
|
|
|
77
81
|
DescribeClustersCommandInput,
|
|
78
82
|
DescribeClustersCommandOutput,
|
|
79
83
|
} from "./commands/DescribeClustersCommand";
|
|
84
|
+
import {
|
|
85
|
+
GetResourcePolicyCommandInput,
|
|
86
|
+
GetResourcePolicyCommandOutput,
|
|
87
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
80
88
|
import {
|
|
81
89
|
InitializeClusterCommandInput,
|
|
82
90
|
InitializeClusterCommandOutput,
|
|
@@ -93,6 +101,10 @@ import {
|
|
|
93
101
|
ModifyClusterCommandInput,
|
|
94
102
|
ModifyClusterCommandOutput,
|
|
95
103
|
} from "./commands/ModifyClusterCommand";
|
|
104
|
+
import {
|
|
105
|
+
PutResourcePolicyCommandInput,
|
|
106
|
+
PutResourcePolicyCommandOutput,
|
|
107
|
+
} from "./commands/PutResourcePolicyCommand";
|
|
96
108
|
import {
|
|
97
109
|
RestoreBackupCommandInput,
|
|
98
110
|
RestoreBackupCommandOutput,
|
|
@@ -119,12 +131,15 @@ export type ServiceInputTypes =
|
|
|
119
131
|
| DeleteBackupCommandInput
|
|
120
132
|
| DeleteClusterCommandInput
|
|
121
133
|
| DeleteHsmCommandInput
|
|
134
|
+
| DeleteResourcePolicyCommandInput
|
|
122
135
|
| DescribeBackupsCommandInput
|
|
123
136
|
| DescribeClustersCommandInput
|
|
137
|
+
| GetResourcePolicyCommandInput
|
|
124
138
|
| InitializeClusterCommandInput
|
|
125
139
|
| ListTagsCommandInput
|
|
126
140
|
| ModifyBackupAttributesCommandInput
|
|
127
141
|
| ModifyClusterCommandInput
|
|
142
|
+
| PutResourcePolicyCommandInput
|
|
128
143
|
| RestoreBackupCommandInput
|
|
129
144
|
| TagResourceCommandInput
|
|
130
145
|
| UntagResourceCommandInput;
|
|
@@ -135,12 +150,15 @@ export type ServiceOutputTypes =
|
|
|
135
150
|
| DeleteBackupCommandOutput
|
|
136
151
|
| DeleteClusterCommandOutput
|
|
137
152
|
| DeleteHsmCommandOutput
|
|
153
|
+
| DeleteResourcePolicyCommandOutput
|
|
138
154
|
| DescribeBackupsCommandOutput
|
|
139
155
|
| DescribeClustersCommandOutput
|
|
156
|
+
| GetResourcePolicyCommandOutput
|
|
140
157
|
| InitializeClusterCommandOutput
|
|
141
158
|
| ListTagsCommandOutput
|
|
142
159
|
| ModifyBackupAttributesCommandOutput
|
|
143
160
|
| ModifyClusterCommandOutput
|
|
161
|
+
| PutResourcePolicyCommandOutput
|
|
144
162
|
| RestoreBackupCommandOutput
|
|
145
163
|
| TagResourceCommandOutput
|
|
146
164
|
| UntagResourceCommandOutput;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
CloudHSMV2ClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../CloudHSMV2Client";
|
|
8
|
+
import {
|
|
9
|
+
DeleteResourcePolicyRequest,
|
|
10
|
+
DeleteResourcePolicyResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface DeleteResourcePolicyCommandInput
|
|
15
|
+
extends DeleteResourcePolicyRequest {}
|
|
16
|
+
export interface DeleteResourcePolicyCommandOutput
|
|
17
|
+
extends DeleteResourcePolicyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: DeleteResourcePolicyCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
DeleteResourcePolicyCommandInput,
|
|
24
|
+
DeleteResourcePolicyCommandOutput,
|
|
25
|
+
CloudHSMV2ClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [DeleteResourcePolicyCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
DeleteResourcePolicyCommandInput,
|
|
33
|
+
DeleteResourcePolicyCommandOutput,
|
|
34
|
+
CloudHSMV2ClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
CloudHSMV2ClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../CloudHSMV2Client";
|
|
8
|
+
import {
|
|
9
|
+
GetResourcePolicyRequest,
|
|
10
|
+
GetResourcePolicyResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetResourcePolicyCommandInput
|
|
15
|
+
extends GetResourcePolicyRequest {}
|
|
16
|
+
export interface GetResourcePolicyCommandOutput
|
|
17
|
+
extends GetResourcePolicyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetResourcePolicyCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetResourcePolicyCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetResourcePolicyCommandInput,
|
|
24
|
+
GetResourcePolicyCommandOutput,
|
|
25
|
+
CloudHSMV2ClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [GetResourcePolicyCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetResourcePolicyCommandInput,
|
|
33
|
+
GetResourcePolicyCommandOutput,
|
|
34
|
+
CloudHSMV2ClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
CloudHSMV2ClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../CloudHSMV2Client";
|
|
8
|
+
import {
|
|
9
|
+
PutResourcePolicyRequest,
|
|
10
|
+
PutResourcePolicyResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface PutResourcePolicyCommandInput
|
|
15
|
+
extends PutResourcePolicyRequest {}
|
|
16
|
+
export interface PutResourcePolicyCommandOutput
|
|
17
|
+
extends PutResourcePolicyResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const PutResourcePolicyCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: PutResourcePolicyCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
PutResourcePolicyCommandInput,
|
|
24
|
+
PutResourcePolicyCommandOutput,
|
|
25
|
+
CloudHSMV2ClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
...[input]: [] | [PutResourcePolicyCommandInput]
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
PutResourcePolicyCommandInput,
|
|
33
|
+
PutResourcePolicyCommandOutput,
|
|
34
|
+
CloudHSMV2ClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {}
|
|
@@ -4,12 +4,15 @@ export * from "./CreateHsmCommand";
|
|
|
4
4
|
export * from "./DeleteBackupCommand";
|
|
5
5
|
export * from "./DeleteClusterCommand";
|
|
6
6
|
export * from "./DeleteHsmCommand";
|
|
7
|
+
export * from "./DeleteResourcePolicyCommand";
|
|
7
8
|
export * from "./DescribeBackupsCommand";
|
|
8
9
|
export * from "./DescribeClustersCommand";
|
|
10
|
+
export * from "./GetResourcePolicyCommand";
|
|
9
11
|
export * from "./InitializeClusterCommand";
|
|
10
12
|
export * from "./ListTagsCommand";
|
|
11
13
|
export * from "./ModifyBackupAttributesCommand";
|
|
12
14
|
export * from "./ModifyClusterCommand";
|
|
15
|
+
export * from "./PutResourcePolicyCommand";
|
|
13
16
|
export * from "./RestoreBackupCommand";
|
|
14
17
|
export * from "./TagResourceCommand";
|
|
15
18
|
export * from "./UntagResourceCommand";
|
|
@@ -18,6 +18,7 @@ export interface Tag {
|
|
|
18
18
|
}
|
|
19
19
|
export interface Backup {
|
|
20
20
|
BackupId: string | undefined;
|
|
21
|
+
BackupArn?: string;
|
|
21
22
|
BackupState?: BackupState;
|
|
22
23
|
ClusterId?: string;
|
|
23
24
|
CreateTimestamp?: Date;
|
|
@@ -210,10 +211,18 @@ export interface DeleteHsmRequest {
|
|
|
210
211
|
export interface DeleteHsmResponse {
|
|
211
212
|
HsmId?: string;
|
|
212
213
|
}
|
|
214
|
+
export interface DeleteResourcePolicyRequest {
|
|
215
|
+
ResourceArn?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface DeleteResourcePolicyResponse {
|
|
218
|
+
ResourceArn?: string;
|
|
219
|
+
Policy?: string;
|
|
220
|
+
}
|
|
213
221
|
export interface DescribeBackupsRequest {
|
|
214
222
|
NextToken?: string;
|
|
215
223
|
MaxResults?: number;
|
|
216
224
|
Filters?: Record<string, string[]>;
|
|
225
|
+
Shared?: boolean;
|
|
217
226
|
SortAscending?: boolean;
|
|
218
227
|
}
|
|
219
228
|
export interface DescribeBackupsResponse {
|
|
@@ -229,6 +238,12 @@ export interface DescribeClustersResponse {
|
|
|
229
238
|
Clusters?: Cluster[];
|
|
230
239
|
NextToken?: string;
|
|
231
240
|
}
|
|
241
|
+
export interface GetResourcePolicyRequest {
|
|
242
|
+
ResourceArn?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface GetResourcePolicyResponse {
|
|
245
|
+
Policy?: string;
|
|
246
|
+
}
|
|
232
247
|
export interface InitializeClusterRequest {
|
|
233
248
|
ClusterId: string | undefined;
|
|
234
249
|
SignedCert: string | undefined;
|
|
@@ -261,6 +276,14 @@ export interface ModifyClusterRequest {
|
|
|
261
276
|
export interface ModifyClusterResponse {
|
|
262
277
|
Cluster?: Cluster;
|
|
263
278
|
}
|
|
279
|
+
export interface PutResourcePolicyRequest {
|
|
280
|
+
ResourceArn?: string;
|
|
281
|
+
Policy?: string;
|
|
282
|
+
}
|
|
283
|
+
export interface PutResourcePolicyResponse {
|
|
284
|
+
ResourceArn?: string;
|
|
285
|
+
Policy?: string;
|
|
286
|
+
}
|
|
264
287
|
export interface RestoreBackupRequest {
|
|
265
288
|
BackupId: string | undefined;
|
|
266
289
|
}
|