@aws-sdk/client-secrets-manager 3.1166.0 → 3.1168.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 +21 -0
- package/dist-cjs/index.js +187 -65
- package/dist-es/SecretsManager.js +8 -0
- package/dist-es/commands/AssociateCrossAccountReplicaCommand.js +4 -0
- package/dist-es/commands/DisassociateCrossAccountReplicaCommand.js +4 -0
- package/dist-es/commands/ListResourcePoliciesCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +11 -5
- package/dist-es/models/errors.js +40 -40
- package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +103 -19
- package/dist-types/SecretsManager.d.ts +28 -0
- package/dist-types/SecretsManagerClient.d.ts +5 -2
- package/dist-types/commands/AssociateCrossAccountReplicaCommand.d.ts +148 -0
- package/dist-types/commands/CancelRotateSecretCommand.d.ts +1 -1
- package/dist-types/commands/CreateSecretCommand.d.ts +33 -9
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +4 -1
- package/dist-types/commands/DeleteSecretCommand.d.ts +6 -0
- package/dist-types/commands/DescribeSecretCommand.d.ts +21 -1
- package/dist-types/commands/DisassociateCrossAccountReplicaCommand.d.ts +135 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -0
- package/dist-types/commands/ListResourcePoliciesCommand.d.ts +138 -0
- package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +7 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +4 -1
- package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +1 -1
- package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +1 -1
- package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +36 -5
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +23 -9
- package/dist-types/models/errors.d.ts +38 -38
- package/dist-types/models/models_0.d.ts +351 -5
- package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +12 -0
- package/dist-types/ts3.4/SecretsManager.d.ts +58 -0
- package/dist-types/ts3.4/SecretsManagerClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/AssociateCrossAccountReplicaCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateCrossAccountReplicaCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +14 -6
- package/dist-types/ts3.4/models/errors.d.ts +20 -20
- package/dist-types/ts3.4/models/models_0.d.ts +58 -1
- package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FilterNameStringType, SortByType, SortOrderType, StatusType } from "./enums";
|
|
1
|
+
import type { FilterNameStringType, ReplicaRestrictionType, SortByType, SortOrderType, StatusType } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>A custom type that specifies a <code>Region</code> and the <code>KmsKeyId</code> for a
|
|
4
4
|
* replica secret.</p>
|
|
@@ -42,6 +42,98 @@ export interface APIErrorType {
|
|
|
42
42
|
*/
|
|
43
43
|
Message?: string | undefined;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export interface AssociateCrossAccountReplicaRequest {
|
|
49
|
+
/**
|
|
50
|
+
* <p>The ARN or name of the primary secret in your account to replicate.</p>
|
|
51
|
+
* <p>For an ARN, we recommend that you specify a complete ARN rather
|
|
52
|
+
* than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
SecretId: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* <p>The ARN of the replica secret in the other Amazon Web Services account. The replica secret must be
|
|
58
|
+
* in the same Region and partition as the primary secret. Additionally, the replica account owner
|
|
59
|
+
* must have created the replica secret as a cross-account replica of the primary secret.
|
|
60
|
+
* For more information see <a>CreateSecret</a>.</p>
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
CrossAccountReplicaARN: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* <p>Whether the replica account must belong to the same Amazon Web Services organization as the primary
|
|
66
|
+
* account:</p>
|
|
67
|
+
* <ul>
|
|
68
|
+
* <li>
|
|
69
|
+
* <p>
|
|
70
|
+
* <code>SameOrg</code>, which requires the replica account to be in the same
|
|
71
|
+
* organization as the primary account. This is the default.</p>
|
|
72
|
+
* </li>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>
|
|
75
|
+
* <code>NoRestriction</code>, which allows the replica account to be in any
|
|
76
|
+
* organization.</p>
|
|
77
|
+
* </li>
|
|
78
|
+
* </ul>
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
ReplicaRestriction?: ReplicaRestrictionType | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* <p>The ARN of an IAM role in the primary account that Secrets Manager assumes to perform
|
|
84
|
+
* replication. If you don't include this field, Secrets Manager replicates using the credentials
|
|
85
|
+
* of caller who updates the primary secret. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/cross-account-replicate-permissions.html">
|
|
86
|
+
* Cross-account replication permissions</a>.</p>
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
ReplicationRoleARN?: string | undefined;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export interface AssociateCrossAccountReplicaResponse {
|
|
95
|
+
/**
|
|
96
|
+
* <p>The ARN of the primary secret.</p>
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
ARN?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* <p>The ARN of the replica secret in the other account.</p>
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
CrossAccountReplicaARN?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* <p>The status of replication to the replica secret. Possible values:</p>
|
|
107
|
+
* <ul>
|
|
108
|
+
* <li>
|
|
109
|
+
* <p>
|
|
110
|
+
* <code>InSync</code>, which indicates that replication to the replica completed
|
|
111
|
+
* successfully and the replica is up to date.</p>
|
|
112
|
+
* </li>
|
|
113
|
+
* <li>
|
|
114
|
+
* <p>
|
|
115
|
+
* <code>Failed</code>, which indicates that replication to the replica did not
|
|
116
|
+
* succeed.</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>
|
|
120
|
+
* <code>InProgress</code>, which indicates that Secrets Manager is replicating to the
|
|
121
|
+
* replica.</p>
|
|
122
|
+
* </li>
|
|
123
|
+
* <li>
|
|
124
|
+
* <p>
|
|
125
|
+
* <code>Pending</code>, which indicates that replication has not yet started.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>
|
|
129
|
+
* <code>Detached</code>, which indicates that primary secret is no longer linked to
|
|
130
|
+
* the replica secret.</p>
|
|
131
|
+
* </li>
|
|
132
|
+
* </ul>
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
ReplicationStatus?: StatusType | undefined;
|
|
136
|
+
}
|
|
45
137
|
/**
|
|
46
138
|
* <p>Allows you to add filters when you use the search function in Secrets Manager. For more
|
|
47
139
|
* information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_search-secret.html">Find secrets in
|
|
@@ -381,6 +473,16 @@ export interface CreateSecretRequest {
|
|
|
381
473
|
* @public
|
|
382
474
|
*/
|
|
383
475
|
Type?: string | undefined;
|
|
476
|
+
/**
|
|
477
|
+
* <p>The ARN of a primary secret in another Amazon Web Services account. Include this field to create a
|
|
478
|
+
* cross-account replica secret that receives replicated data from that primary secret. The
|
|
479
|
+
* primary secret must be in the same Amazon Web Services Region and partition as the replica, and you must
|
|
480
|
+
* specify a customer managed KMS key in <code>KmsKeyId</code>. You can't include
|
|
481
|
+
* <code>SecretString</code>, <code>SecretBinary</code>, <code>Description</code>,
|
|
482
|
+
* <code>AddReplicaRegions</code>, or <code>Type</code>.</p>
|
|
483
|
+
* @public
|
|
484
|
+
*/
|
|
485
|
+
CrossAccountPrimaryARN?: string | undefined;
|
|
384
486
|
}
|
|
385
487
|
/**
|
|
386
488
|
* <p>A replication object consisting of a <code>RegionReplicationStatus</code> object and
|
|
@@ -460,6 +562,99 @@ export interface CreateSecretResponse {
|
|
|
460
562
|
*/
|
|
461
563
|
ReplicationStatus?: ReplicationStatusType[] | undefined;
|
|
462
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* <p>Contains information about the primary secret that a cross-account replica secret
|
|
567
|
+
* replicates from, including its ARN and replication status. This information is only
|
|
568
|
+
* available for cross-account replica secrets.</p>
|
|
569
|
+
* @public
|
|
570
|
+
*/
|
|
571
|
+
export interface CrossAccountPrimaryType {
|
|
572
|
+
/**
|
|
573
|
+
* <p>The ARN of the primary secret replicating into this replica secret.</p>
|
|
574
|
+
* @public
|
|
575
|
+
*/
|
|
576
|
+
PrimarySecretARN?: string | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* <p>The status of replication from the primary secret to this replica. The status can be:</p>
|
|
579
|
+
* <ul>
|
|
580
|
+
* <li>
|
|
581
|
+
* <p>
|
|
582
|
+
* <code>InSync</code>: Replication to the replica secret is complete.</p>
|
|
583
|
+
* </li>
|
|
584
|
+
* <li>
|
|
585
|
+
* <p>
|
|
586
|
+
* <code>Failed</code>: Replication to the replica secret was unable to be completed.</p>
|
|
587
|
+
* </li>
|
|
588
|
+
* <li>
|
|
589
|
+
* <p>
|
|
590
|
+
* <code>InProgress</code>: Replication to the replica secret has started but is not complete.</p>
|
|
591
|
+
* </li>
|
|
592
|
+
* <li>
|
|
593
|
+
* <p>
|
|
594
|
+
* <code>Pending</code>: Replication has not yet started for the replica secret.</p>
|
|
595
|
+
* </li>
|
|
596
|
+
* <li>
|
|
597
|
+
* <p>
|
|
598
|
+
* <code>Detached</code>: Replication to the replica secret was stopped by the primary.</p>
|
|
599
|
+
* </li>
|
|
600
|
+
* </ul>
|
|
601
|
+
* @public
|
|
602
|
+
*/
|
|
603
|
+
ReplicationStatus?: StatusType | undefined;
|
|
604
|
+
/**
|
|
605
|
+
* <p>A message that describes the replication status, if Secrets Manager has more information to
|
|
606
|
+
* provide.</p>
|
|
607
|
+
* @public
|
|
608
|
+
*/
|
|
609
|
+
StatusMessage?: string | undefined;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* <p>Information about a cross-account replica secret. This information is only
|
|
613
|
+
* available for cross-account primary secrets.</p>
|
|
614
|
+
* @public
|
|
615
|
+
*/
|
|
616
|
+
export interface CrossAccountReplicaEntry {
|
|
617
|
+
/**
|
|
618
|
+
* <p>The ARN of the replica secret.</p>
|
|
619
|
+
* @public
|
|
620
|
+
*/
|
|
621
|
+
ReplicaSecretARN?: string | undefined;
|
|
622
|
+
/**
|
|
623
|
+
* <p>The ARN of the IAM role that Secrets Manager assumes to replicate to this replica, if one was
|
|
624
|
+
* specified when the replica was associated.</p>
|
|
625
|
+
* @public
|
|
626
|
+
*/
|
|
627
|
+
ReplicationRoleARN?: string | undefined;
|
|
628
|
+
/**
|
|
629
|
+
* <p>The status of replication from this primary secret. The status can be:</p>
|
|
630
|
+
* <ul>
|
|
631
|
+
* <li>
|
|
632
|
+
* <p>
|
|
633
|
+
* <code>InSync</code>: Replication from the primary secret is complete.</p>
|
|
634
|
+
* </li>
|
|
635
|
+
* <li>
|
|
636
|
+
* <p>
|
|
637
|
+
* <code>Failed</code>: Replication from the primary secret was unable to be completed.</p>
|
|
638
|
+
* </li>
|
|
639
|
+
* <li>
|
|
640
|
+
* <p>
|
|
641
|
+
* <code>InProgress</code>: Replication from the primary secret has started but is not complete.</p>
|
|
642
|
+
* </li>
|
|
643
|
+
* <li>
|
|
644
|
+
* <p>
|
|
645
|
+
* <code>Detached</code>: Replication from the primary secret was stopped by the replica.</p>
|
|
646
|
+
* </li>
|
|
647
|
+
* </ul>
|
|
648
|
+
* @public
|
|
649
|
+
*/
|
|
650
|
+
ReplicationStatus?: StatusType | undefined;
|
|
651
|
+
/**
|
|
652
|
+
* <p>A message that describes the replication status, if Secrets Manager has more information to
|
|
653
|
+
* provide.</p>
|
|
654
|
+
* @public
|
|
655
|
+
*/
|
|
656
|
+
StatusMessage?: string | undefined;
|
|
657
|
+
}
|
|
463
658
|
/**
|
|
464
659
|
* @public
|
|
465
660
|
*/
|
|
@@ -471,6 +666,14 @@ export interface DeleteResourcePolicyRequest {
|
|
|
471
666
|
* @public
|
|
472
667
|
*/
|
|
473
668
|
SecretId: string | undefined;
|
|
669
|
+
/**
|
|
670
|
+
* <p>The name of the resource policy to delete. If you don't specify this field, Secrets Manager uses
|
|
671
|
+
* <code>default</code>. You can only delete the <code>default</code> policy; if you
|
|
672
|
+
* specify any other name, the operation returns an
|
|
673
|
+
* <code>InvalidParameterException</code>.</p>
|
|
674
|
+
* @public
|
|
675
|
+
*/
|
|
676
|
+
PolicyName?: string | undefined;
|
|
474
677
|
}
|
|
475
678
|
/**
|
|
476
679
|
* @public
|
|
@@ -486,6 +689,12 @@ export interface DeleteResourcePolicyResponse {
|
|
|
486
689
|
* @public
|
|
487
690
|
*/
|
|
488
691
|
Name?: string | undefined;
|
|
692
|
+
/**
|
|
693
|
+
* <p>The name of the deleted resource policy. If you didn't specify <code>PolicyName</code> in the
|
|
694
|
+
* request, this is <code>default</code>.</p>
|
|
695
|
+
* @public
|
|
696
|
+
*/
|
|
697
|
+
PolicyName?: string | undefined;
|
|
489
698
|
}
|
|
490
699
|
/**
|
|
491
700
|
* @public
|
|
@@ -818,6 +1027,53 @@ export interface DescribeSecretResponse {
|
|
|
818
1027
|
* @public
|
|
819
1028
|
*/
|
|
820
1029
|
ReplicationStatus?: ReplicationStatusType[] | undefined;
|
|
1030
|
+
/**
|
|
1031
|
+
* <p>Information about the primary secret in the other Amazon Web Services account that this
|
|
1032
|
+
* cross-account replica secret replicates from, including the primary secret ARN and the
|
|
1033
|
+
* replication status. This field is omitted if the secret is not a cross-account
|
|
1034
|
+
* replica.</p>
|
|
1035
|
+
* @public
|
|
1036
|
+
*/
|
|
1037
|
+
CrossAccountPrimary?: CrossAccountPrimaryType | undefined;
|
|
1038
|
+
/**
|
|
1039
|
+
* <p>A list of this secret's cross-account replica secrets and their replication status, if
|
|
1040
|
+
* this secret is the primary for cross-account replication. This field is omitted if the
|
|
1041
|
+
* secret has no cross-account replicas.</p>
|
|
1042
|
+
* @public
|
|
1043
|
+
*/
|
|
1044
|
+
CrossAccountReplicas?: CrossAccountReplicaEntry[] | undefined;
|
|
1045
|
+
}
|
|
1046
|
+
/**
|
|
1047
|
+
* @public
|
|
1048
|
+
*/
|
|
1049
|
+
export interface DisassociateCrossAccountReplicaRequest {
|
|
1050
|
+
/**
|
|
1051
|
+
* <p>The ARN or name of the primary secret in your account.</p>
|
|
1052
|
+
* <p>For an ARN, we recommend that you specify a complete ARN rather
|
|
1053
|
+
* than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
|
|
1054
|
+
* @public
|
|
1055
|
+
*/
|
|
1056
|
+
SecretId: string | undefined;
|
|
1057
|
+
/**
|
|
1058
|
+
* <p>The ARN of the cross-account replica secret to unlink from the primary secret.</p>
|
|
1059
|
+
* @public
|
|
1060
|
+
*/
|
|
1061
|
+
CrossAccountReplicaARN: string | undefined;
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* @public
|
|
1065
|
+
*/
|
|
1066
|
+
export interface DisassociateCrossAccountReplicaResponse {
|
|
1067
|
+
/**
|
|
1068
|
+
* <p>The ARN of the primary secret.</p>
|
|
1069
|
+
* @public
|
|
1070
|
+
*/
|
|
1071
|
+
ARN?: string | undefined;
|
|
1072
|
+
/**
|
|
1073
|
+
* <p>The ARN of the replica secret that was unlinked from the primary secret.</p>
|
|
1074
|
+
* @public
|
|
1075
|
+
*/
|
|
1076
|
+
CrossAccountReplicaARN?: string | undefined;
|
|
821
1077
|
}
|
|
822
1078
|
/**
|
|
823
1079
|
* @public
|
|
@@ -896,6 +1152,14 @@ export interface GetResourcePolicyRequest {
|
|
|
896
1152
|
* @public
|
|
897
1153
|
*/
|
|
898
1154
|
SecretId: string | undefined;
|
|
1155
|
+
/**
|
|
1156
|
+
* <p>The name of the resource policy to retrieve. If you don't specify this field, Secrets Manager
|
|
1157
|
+
* uses <code>default</code>. If you specify a name other than <code>default</code> and no
|
|
1158
|
+
* policy with that name exists, the operation returns a
|
|
1159
|
+
* <code>ResourceNotFoundException</code>.</p>
|
|
1160
|
+
* @public
|
|
1161
|
+
*/
|
|
1162
|
+
PolicyName?: string | undefined;
|
|
899
1163
|
}
|
|
900
1164
|
/**
|
|
901
1165
|
* @public
|
|
@@ -918,6 +1182,12 @@ export interface GetResourcePolicyResponse {
|
|
|
918
1182
|
* @public
|
|
919
1183
|
*/
|
|
920
1184
|
ResourcePolicy?: string | undefined;
|
|
1185
|
+
/**
|
|
1186
|
+
* <p>The name of the resource policy. If you didn't specify <code>PolicyName</code> in the
|
|
1187
|
+
* request, this is <code>default</code>.</p>
|
|
1188
|
+
* @public
|
|
1189
|
+
*/
|
|
1190
|
+
PolicyName?: string | undefined;
|
|
921
1191
|
}
|
|
922
1192
|
/**
|
|
923
1193
|
* @public
|
|
@@ -1007,6 +1277,65 @@ export interface GetSecretValueResponse {
|
|
|
1007
1277
|
*/
|
|
1008
1278
|
CreatedDate?: Date | undefined;
|
|
1009
1279
|
}
|
|
1280
|
+
/**
|
|
1281
|
+
* @public
|
|
1282
|
+
*/
|
|
1283
|
+
export interface ListResourcePoliciesRequest {
|
|
1284
|
+
/**
|
|
1285
|
+
* <p>The ARN or name of the secret.</p>
|
|
1286
|
+
* <p>For an ARN, we recommend that you specify a complete ARN rather
|
|
1287
|
+
* than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
|
|
1288
|
+
* @public
|
|
1289
|
+
*/
|
|
1290
|
+
SecretId: string | undefined;
|
|
1291
|
+
/**
|
|
1292
|
+
* <p>The number of results to include in the response. If you don't specify this value,
|
|
1293
|
+
* the service returns up to 100 results.</p>
|
|
1294
|
+
* <p>If there are more results available, in the response, Secrets Manager includes
|
|
1295
|
+
* <code>NextToken</code>. To get the next results, call
|
|
1296
|
+
* <code>ListResourcePolicies</code> again with the value from
|
|
1297
|
+
* <code>NextToken</code>.</p>
|
|
1298
|
+
* @public
|
|
1299
|
+
*/
|
|
1300
|
+
MaxResults?: number | undefined;
|
|
1301
|
+
/**
|
|
1302
|
+
* <p>A token that indicates where the output should continue from, if a previous call did
|
|
1303
|
+
* not show all results. To get the next results, call
|
|
1304
|
+
* <code>ListResourcePolicies</code> again with this value.</p>
|
|
1305
|
+
* @public
|
|
1306
|
+
*/
|
|
1307
|
+
NextToken?: string | undefined;
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* <p>A structure that contains details about a resource policy attached to a secret. It does
|
|
1311
|
+
* not contain the contents of the resource policy. To view the contents of the policy, use
|
|
1312
|
+
* <a href="https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetResourcePolicy.html">GetResourcePolicy</a> .</p>
|
|
1313
|
+
* @public
|
|
1314
|
+
*/
|
|
1315
|
+
export interface ResourcePolicySummary {
|
|
1316
|
+
/**
|
|
1317
|
+
* <p>The name of the resource policy.</p>
|
|
1318
|
+
* @public
|
|
1319
|
+
*/
|
|
1320
|
+
PolicyName?: string | undefined;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* @public
|
|
1324
|
+
*/
|
|
1325
|
+
export interface ListResourcePoliciesResponse {
|
|
1326
|
+
/**
|
|
1327
|
+
* <p>A list of the resource policies attached to the secret.</p>
|
|
1328
|
+
* @public
|
|
1329
|
+
*/
|
|
1330
|
+
ResourcePolicies: ResourcePolicySummary[] | undefined;
|
|
1331
|
+
/**
|
|
1332
|
+
* <p>Secrets Manager includes this value if there's more output available than what is included in
|
|
1333
|
+
* the current response. To get the next results, call
|
|
1334
|
+
* <code>ListResourcePolicies</code> again with this value.</p>
|
|
1335
|
+
* @public
|
|
1336
|
+
*/
|
|
1337
|
+
NextToken?: string | undefined;
|
|
1338
|
+
}
|
|
1010
1339
|
/**
|
|
1011
1340
|
* @public
|
|
1012
1341
|
*/
|
|
@@ -1318,6 +1647,14 @@ export interface PutResourcePolicyRequest {
|
|
|
1318
1647
|
* @public
|
|
1319
1648
|
*/
|
|
1320
1649
|
ResourcePolicy: string | undefined;
|
|
1650
|
+
/**
|
|
1651
|
+
* <p>The name of the resource policy to attach. If you don't specify this field, Secrets Manager uses
|
|
1652
|
+
* <code>default</code>. You can only attach the <code>default</code> policy; if you
|
|
1653
|
+
* specify any other name, the operation returns an
|
|
1654
|
+
* <code>InvalidParameterException</code>.</p>
|
|
1655
|
+
* @public
|
|
1656
|
+
*/
|
|
1657
|
+
PolicyName?: string | undefined;
|
|
1321
1658
|
/**
|
|
1322
1659
|
* <p>Specifies whether to block resource-based policies that allow broad access to the
|
|
1323
1660
|
* secret, for example those that use a wildcard for the principal. By default, public
|
|
@@ -1359,6 +1696,12 @@ export interface PutResourcePolicyResponse {
|
|
|
1359
1696
|
* @public
|
|
1360
1697
|
*/
|
|
1361
1698
|
Name?: string | undefined;
|
|
1699
|
+
/**
|
|
1700
|
+
* <p>The name of the resource policy. If you didn't specify <code>PolicyName</code> in the
|
|
1701
|
+
* request, this is <code>default</code>.</p>
|
|
1702
|
+
* @public
|
|
1703
|
+
*/
|
|
1704
|
+
PolicyName?: string | undefined;
|
|
1362
1705
|
}
|
|
1363
1706
|
/**
|
|
1364
1707
|
* @public
|
|
@@ -1688,8 +2031,10 @@ export interface RotateSecretResponse {
|
|
|
1688
2031
|
*/
|
|
1689
2032
|
export interface StopReplicationToReplicaRequest {
|
|
1690
2033
|
/**
|
|
1691
|
-
* <p>The name of the
|
|
1692
|
-
*
|
|
2034
|
+
* <p>The ARN or name of the replica secret.</p>
|
|
2035
|
+
* <p>For a cross-region replica, the replica ARN is the same as the original primary secret
|
|
2036
|
+
* ARN except that the Region is changed to the replica Region. For a cross-account
|
|
2037
|
+
* replica, this is the ARN or name of the replica secret in your account.</p>
|
|
1693
2038
|
* @public
|
|
1694
2039
|
*/
|
|
1695
2040
|
SecretId: string | undefined;
|
|
@@ -1699,8 +2044,9 @@ export interface StopReplicationToReplicaRequest {
|
|
|
1699
2044
|
*/
|
|
1700
2045
|
export interface StopReplicationToReplicaResponse {
|
|
1701
2046
|
/**
|
|
1702
|
-
* <p>The ARN of the promoted secret.
|
|
1703
|
-
* except the Region is changed
|
|
2047
|
+
* <p>The ARN of the promoted secret. For a cross-region replica, this ARN is the same as the
|
|
2048
|
+
* original primary secret's ARN except that the Region is changed. For a cross-account
|
|
2049
|
+
* replica, this is the ARN of the promoted secret in your account.</p>
|
|
1704
2050
|
* @public
|
|
1705
2051
|
*/
|
|
1706
2052
|
ARN?: string | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListResourcePoliciesCommandInput, ListResourcePoliciesCommandOutput } from "../commands/ListResourcePoliciesCommand";
|
|
3
|
+
import type { SecretsManagerPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListResourcePolicies: (config: SecretsManagerPaginationConfiguration, input: ListResourcePoliciesCommandInput, ...rest: any[]) => Paginator<ListResourcePoliciesCommandOutput>;
|
|
@@ -20,18 +20,24 @@ export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const errorTypeRegistries: TypeRegistry[];
|
|
22
22
|
export declare var APIErrorType$: StaticStructureSchema;
|
|
23
|
+
export declare var AssociateCrossAccountReplicaRequest$: StaticStructureSchema;
|
|
24
|
+
export declare var AssociateCrossAccountReplicaResponse$: StaticStructureSchema;
|
|
23
25
|
export declare var BatchGetSecretValueRequest$: StaticStructureSchema;
|
|
24
26
|
export declare var BatchGetSecretValueResponse$: StaticStructureSchema;
|
|
25
27
|
export declare var CancelRotateSecretRequest$: StaticStructureSchema;
|
|
26
28
|
export declare var CancelRotateSecretResponse$: StaticStructureSchema;
|
|
27
29
|
export declare var CreateSecretRequest$: StaticStructureSchema;
|
|
28
30
|
export declare var CreateSecretResponse$: StaticStructureSchema;
|
|
31
|
+
export declare var CrossAccountPrimaryType$: StaticStructureSchema;
|
|
32
|
+
export declare var CrossAccountReplicaEntry$: StaticStructureSchema;
|
|
29
33
|
export declare var DeleteResourcePolicyRequest$: StaticStructureSchema;
|
|
30
34
|
export declare var DeleteResourcePolicyResponse$: StaticStructureSchema;
|
|
31
35
|
export declare var DeleteSecretRequest$: StaticStructureSchema;
|
|
32
36
|
export declare var DeleteSecretResponse$: StaticStructureSchema;
|
|
33
37
|
export declare var DescribeSecretRequest$: StaticStructureSchema;
|
|
34
38
|
export declare var DescribeSecretResponse$: StaticStructureSchema;
|
|
39
|
+
export declare var DisassociateCrossAccountReplicaRequest$: StaticStructureSchema;
|
|
40
|
+
export declare var DisassociateCrossAccountReplicaResponse$: StaticStructureSchema;
|
|
35
41
|
export declare var ExternalSecretRotationMetadataItem$: StaticStructureSchema;
|
|
36
42
|
export declare var Filter$: StaticStructureSchema;
|
|
37
43
|
export declare var GetRandomPasswordRequest$: StaticStructureSchema;
|
|
@@ -40,6 +46,8 @@ export declare var GetResourcePolicyRequest$: StaticStructureSchema;
|
|
|
40
46
|
export declare var GetResourcePolicyResponse$: StaticStructureSchema;
|
|
41
47
|
export declare var GetSecretValueRequest$: StaticStructureSchema;
|
|
42
48
|
export declare var GetSecretValueResponse$: StaticStructureSchema;
|
|
49
|
+
export declare var ListResourcePoliciesRequest$: StaticStructureSchema;
|
|
50
|
+
export declare var ListResourcePoliciesResponse$: StaticStructureSchema;
|
|
43
51
|
export declare var ListSecretsRequest$: StaticStructureSchema;
|
|
44
52
|
export declare var ListSecretsResponse$: StaticStructureSchema;
|
|
45
53
|
export declare var ListSecretVersionIdsRequest$: StaticStructureSchema;
|
|
@@ -54,6 +62,7 @@ export declare var ReplicaRegionType$: StaticStructureSchema;
|
|
|
54
62
|
export declare var ReplicateSecretToRegionsRequest$: StaticStructureSchema;
|
|
55
63
|
export declare var ReplicateSecretToRegionsResponse$: StaticStructureSchema;
|
|
56
64
|
export declare var ReplicationStatusType$: StaticStructureSchema;
|
|
65
|
+
export declare var ResourcePolicySummary$: StaticStructureSchema;
|
|
57
66
|
export declare var RestoreSecretRequest$: StaticStructureSchema;
|
|
58
67
|
export declare var RestoreSecretResponse$: StaticStructureSchema;
|
|
59
68
|
export declare var RotateSecretRequest$: StaticStructureSchema;
|
|
@@ -74,15 +83,18 @@ export declare var UpdateSecretVersionStageResponse$: StaticStructureSchema;
|
|
|
74
83
|
export declare var ValidateResourcePolicyRequest$: StaticStructureSchema;
|
|
75
84
|
export declare var ValidateResourcePolicyResponse$: StaticStructureSchema;
|
|
76
85
|
export declare var ValidationErrorsEntry$: StaticStructureSchema;
|
|
86
|
+
export declare var AssociateCrossAccountReplica$: StaticOperationSchema;
|
|
77
87
|
export declare var BatchGetSecretValue$: StaticOperationSchema;
|
|
78
88
|
export declare var CancelRotateSecret$: StaticOperationSchema;
|
|
79
89
|
export declare var CreateSecret$: StaticOperationSchema;
|
|
80
90
|
export declare var DeleteResourcePolicy$: StaticOperationSchema;
|
|
81
91
|
export declare var DeleteSecret$: StaticOperationSchema;
|
|
82
92
|
export declare var DescribeSecret$: StaticOperationSchema;
|
|
93
|
+
export declare var DisassociateCrossAccountReplica$: StaticOperationSchema;
|
|
83
94
|
export declare var GetRandomPassword$: StaticOperationSchema;
|
|
84
95
|
export declare var GetResourcePolicy$: StaticOperationSchema;
|
|
85
96
|
export declare var GetSecretValue$: StaticOperationSchema;
|
|
97
|
+
export declare var ListResourcePolicies$: StaticOperationSchema;
|
|
86
98
|
export declare var ListSecrets$: StaticOperationSchema;
|
|
87
99
|
export declare var ListSecretVersionIds$: StaticOperationSchema;
|
|
88
100
|
export declare var PutResourcePolicy$: StaticOperationSchema;
|
|
@@ -4,6 +4,10 @@ import {
|
|
|
4
4
|
PaginationConfiguration,
|
|
5
5
|
Paginator,
|
|
6
6
|
} from "@smithy/types";
|
|
7
|
+
import {
|
|
8
|
+
AssociateCrossAccountReplicaCommandInput,
|
|
9
|
+
AssociateCrossAccountReplicaCommandOutput,
|
|
10
|
+
} from "./commands/AssociateCrossAccountReplicaCommand";
|
|
7
11
|
import {
|
|
8
12
|
BatchGetSecretValueCommandInput,
|
|
9
13
|
BatchGetSecretValueCommandOutput,
|
|
@@ -28,6 +32,10 @@ import {
|
|
|
28
32
|
DescribeSecretCommandInput,
|
|
29
33
|
DescribeSecretCommandOutput,
|
|
30
34
|
} from "./commands/DescribeSecretCommand";
|
|
35
|
+
import {
|
|
36
|
+
DisassociateCrossAccountReplicaCommandInput,
|
|
37
|
+
DisassociateCrossAccountReplicaCommandOutput,
|
|
38
|
+
} from "./commands/DisassociateCrossAccountReplicaCommand";
|
|
31
39
|
import {
|
|
32
40
|
GetRandomPasswordCommandInput,
|
|
33
41
|
GetRandomPasswordCommandOutput,
|
|
@@ -40,6 +48,10 @@ import {
|
|
|
40
48
|
GetSecretValueCommandInput,
|
|
41
49
|
GetSecretValueCommandOutput,
|
|
42
50
|
} from "./commands/GetSecretValueCommand";
|
|
51
|
+
import {
|
|
52
|
+
ListResourcePoliciesCommandInput,
|
|
53
|
+
ListResourcePoliciesCommandOutput,
|
|
54
|
+
} from "./commands/ListResourcePoliciesCommand";
|
|
43
55
|
import { ListSecretsCommandInput, ListSecretsCommandOutput } from "./commands/ListSecretsCommand";
|
|
44
56
|
import {
|
|
45
57
|
ListSecretVersionIdsCommandInput,
|
|
@@ -95,6 +107,19 @@ export interface SecretsManagerRequestOptions extends __HttpHandlerOptions {
|
|
|
95
107
|
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
96
108
|
}
|
|
97
109
|
export interface SecretsManager {
|
|
110
|
+
associateCrossAccountReplica(
|
|
111
|
+
args: AssociateCrossAccountReplicaCommandInput,
|
|
112
|
+
options?: SecretsManagerRequestOptions,
|
|
113
|
+
): Promise<AssociateCrossAccountReplicaCommandOutput>;
|
|
114
|
+
associateCrossAccountReplica(
|
|
115
|
+
args: AssociateCrossAccountReplicaCommandInput,
|
|
116
|
+
cb: (err: any, data?: AssociateCrossAccountReplicaCommandOutput) => void,
|
|
117
|
+
): void;
|
|
118
|
+
associateCrossAccountReplica(
|
|
119
|
+
args: AssociateCrossAccountReplicaCommandInput,
|
|
120
|
+
options: SecretsManagerRequestOptions,
|
|
121
|
+
cb: (err: any, data?: AssociateCrossAccountReplicaCommandOutput) => void,
|
|
122
|
+
): void;
|
|
98
123
|
batchGetSecretValue(): Promise<BatchGetSecretValueCommandOutput>;
|
|
99
124
|
batchGetSecretValue(
|
|
100
125
|
args: BatchGetSecretValueCommandInput,
|
|
@@ -174,6 +199,19 @@ export interface SecretsManager {
|
|
|
174
199
|
options: SecretsManagerRequestOptions,
|
|
175
200
|
cb: (err: any, data?: DescribeSecretCommandOutput) => void,
|
|
176
201
|
): void;
|
|
202
|
+
disassociateCrossAccountReplica(
|
|
203
|
+
args: DisassociateCrossAccountReplicaCommandInput,
|
|
204
|
+
options?: SecretsManagerRequestOptions,
|
|
205
|
+
): Promise<DisassociateCrossAccountReplicaCommandOutput>;
|
|
206
|
+
disassociateCrossAccountReplica(
|
|
207
|
+
args: DisassociateCrossAccountReplicaCommandInput,
|
|
208
|
+
cb: (err: any, data?: DisassociateCrossAccountReplicaCommandOutput) => void,
|
|
209
|
+
): void;
|
|
210
|
+
disassociateCrossAccountReplica(
|
|
211
|
+
args: DisassociateCrossAccountReplicaCommandInput,
|
|
212
|
+
options: SecretsManagerRequestOptions,
|
|
213
|
+
cb: (err: any, data?: DisassociateCrossAccountReplicaCommandOutput) => void,
|
|
214
|
+
): void;
|
|
177
215
|
getRandomPassword(): Promise<GetRandomPasswordCommandOutput>;
|
|
178
216
|
getRandomPassword(
|
|
179
217
|
args: GetRandomPasswordCommandInput,
|
|
@@ -214,6 +252,19 @@ export interface SecretsManager {
|
|
|
214
252
|
options: SecretsManagerRequestOptions,
|
|
215
253
|
cb: (err: any, data?: GetSecretValueCommandOutput) => void,
|
|
216
254
|
): void;
|
|
255
|
+
listResourcePolicies(
|
|
256
|
+
args: ListResourcePoliciesCommandInput,
|
|
257
|
+
options?: SecretsManagerRequestOptions,
|
|
258
|
+
): Promise<ListResourcePoliciesCommandOutput>;
|
|
259
|
+
listResourcePolicies(
|
|
260
|
+
args: ListResourcePoliciesCommandInput,
|
|
261
|
+
cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void,
|
|
262
|
+
): void;
|
|
263
|
+
listResourcePolicies(
|
|
264
|
+
args: ListResourcePoliciesCommandInput,
|
|
265
|
+
options: SecretsManagerRequestOptions,
|
|
266
|
+
cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void,
|
|
267
|
+
): void;
|
|
217
268
|
listSecrets(): Promise<ListSecretsCommandOutput>;
|
|
218
269
|
listSecrets(
|
|
219
270
|
args: ListSecretsCommandInput,
|
|
@@ -404,6 +455,13 @@ export interface SecretsManager {
|
|
|
404
455
|
Exclude<keyof PaginationConfiguration, "client">
|
|
405
456
|
>,
|
|
406
457
|
): Paginator<BatchGetSecretValueCommandOutput>;
|
|
458
|
+
paginateListResourcePolicies(
|
|
459
|
+
args: ListResourcePoliciesCommandInput,
|
|
460
|
+
paginationConfig?: Pick<
|
|
461
|
+
PaginationConfiguration,
|
|
462
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
463
|
+
>,
|
|
464
|
+
): Paginator<ListResourcePoliciesCommandOutput>;
|
|
407
465
|
paginateListSecrets(
|
|
408
466
|
args?: ListSecretsCommandInput,
|
|
409
467
|
paginationConfig?: Pick<
|