@aws-sdk/client-verifiedpermissions 3.971.0 → 3.972.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/dist-cjs/index.js CHANGED
@@ -341,6 +341,8 @@ const _EIn = "EntityIdentifier";
341
341
  const _EInt = "EntityItem";
342
342
  const _EL = "EntityList";
343
343
  const _ER = "EntityReference";
344
+ const _ES = "EncryptionSettings";
345
+ const _ESn = "EncryptionState";
344
346
  const _ET = "EntityType";
345
347
  const _GET = "GroupEntityType";
346
348
  const _GIS = "GetIdentitySource";
@@ -373,6 +375,8 @@ const _ISF = "IdentitySourceFilter";
373
375
  const _ISFd = "IdentitySourceFilters";
374
376
  const _ISI = "IdentitySourceItem";
375
377
  const _ISID = "IdentitySourceItemDetails";
378
+ const _KES = "KmsEncryptionSettings";
379
+ const _KESm = "KmsEncryptionState";
376
380
  const _LA = "LongAttribute";
377
381
  const _LIS = "ListIdentitySources";
378
382
  const _LISI = "ListIdentitySourcesInput";
@@ -503,15 +507,19 @@ const _dU = "discoveryUrl";
503
507
  const _da = "datetime";
504
508
  const _de = "decision";
505
509
  const _dec = "decimal";
510
+ const _def = "default";
506
511
  const _des = "description";
507
512
  const _det = "details";
508
513
  const _du = "duration";
509
514
  const _e = "error";
515
+ const _eC = "encryptionContext";
510
516
  const _eD = "errorDescription";
511
517
  const _eI = "entityId";
512
518
  const _eIP = "entityIdPrefix";
513
519
  const _eIn = "entityIdentifier";
514
520
  const _eL = "entityList";
521
+ const _eS = "encryptionSettings";
522
+ const _eSn = "encryptionState";
515
523
  const _eT = "entityType";
516
524
  const _ef = "effect";
517
525
  const _en = "entities";
@@ -530,6 +538,9 @@ const _iT = "identityToken";
530
538
  const _iTO = "identityTokenOnly";
531
539
  const _id = "identifier";
532
540
  const _ip = "ipaddr";
541
+ const _k = "key";
542
+ const _kES = "kmsEncryptionSettings";
543
+ const _kESm = "kmsEncryptionState";
533
544
  const _l = "long";
534
545
  const _lUD = "lastUpdatedDate";
535
546
  const _m = "message";
@@ -737,8 +748,8 @@ var CreatePolicyOutput$ = [3, n0, _CPO,
737
748
  ];
738
749
  var CreatePolicyStoreInput$ = [3, n0, _CPSI,
739
750
  0,
740
- [_vS, _cT, _des, _dPe, _t],
741
- [() => ValidationSettings$, [0, 4], [() => PolicyStoreDescription, 0], 0, 128 | 0], 1
751
+ [_vS, _cT, _des, _dPe, _eS, _t],
752
+ [() => ValidationSettings$, [0, 4], [() => PolicyStoreDescription, 0], 0, () => EncryptionSettings$, 128 | 0], 1
742
753
  ];
743
754
  var CreatePolicyStoreOutput$ = [3, n0, _CPSO,
744
755
  0,
@@ -842,8 +853,8 @@ var GetPolicyStoreInput$ = [3, n0, _GPSI,
842
853
  ];
843
854
  var GetPolicyStoreOutput$ = [3, n0, _GPSO,
844
855
  0,
845
- [_pSI, _ar, _vS, _cD, _lUD, _des, _dPe, _cV, _t],
846
- [0, 0, () => ValidationSettings$, 5, 5, [() => PolicyStoreDescription, 0], 0, 0, 128 | 0], 5
856
+ [_pSI, _ar, _vS, _cD, _lUD, _des, _dPe, _eSn, _cV, _t],
857
+ [0, 0, () => ValidationSettings$, 5, 5, [() => PolicyStoreDescription, 0], 0, () => EncryptionState$, 0, 128 | 0], 5
847
858
  ];
848
859
  var GetPolicyTemplateInput$ = [3, n0, _GPTI,
849
860
  0,
@@ -917,6 +928,16 @@ var IsAuthorizedWithTokenOutput$ = [3, n0, _IAWTO,
917
928
  [_de, _dP, _er, _p],
918
929
  [0, () => DeterminingPolicyList, [() => EvaluationErrorList, 0], [() => EntityIdentifier$, 0]], 3
919
930
  ];
931
+ var KmsEncryptionSettings$ = [3, n0, _KES,
932
+ 0,
933
+ [_k, _eC],
934
+ [0, 128 | 0], 1
935
+ ];
936
+ var KmsEncryptionState$ = [3, n0, _KESm,
937
+ 0,
938
+ [_k, _eC],
939
+ [0, 128 | 0], 2
940
+ ];
920
941
  var ListIdentitySourcesInput$ = [3, n0, _LISI,
921
942
  0,
922
943
  [_pSI, _nT, _mR, _f],
@@ -1179,7 +1200,7 @@ var UpdateOpenIdConnectIdentityTokenConfiguration$ = [3, n0, _UOICITC,
1179
1200
  var UpdatePolicyInput$ = [3, n0, _UPI,
1180
1201
  0,
1181
1202
  [_pSI, _pI, _d],
1182
- [0, 0, [() => UpdatePolicyDefinition$, 0]], 3
1203
+ [0, 0, [() => UpdatePolicyDefinition$, 0]], 2
1183
1204
  ];
1184
1205
  var UpdatePolicyOutput$ = [3, n0, _UPO,
1185
1206
  0,
@@ -1227,6 +1248,7 @@ var ValidationSettings$ = [3, n0, _VS,
1227
1248
  [_mo],
1228
1249
  [0], 1
1229
1250
  ];
1251
+ var __Unit = "unit";
1230
1252
  var VerifiedPermissionsServiceException$ = [-3, _sm, "VerifiedPermissionsServiceException", 0, [], []];
1231
1253
  schema.TypeRegistry.for(_sm).registerError(VerifiedPermissionsServiceException$, VerifiedPermissionsServiceException);
1232
1254
  var ActionIdentifierList = [1, n0, _AIL,
@@ -1376,6 +1398,16 @@ var ContextDefinition$ = [4, n0, _CDo,
1376
1398
  [_cM, _cJ],
1377
1399
  [[() => ContextMap, 0], [() => CedarJson, 0]]
1378
1400
  ];
1401
+ var EncryptionSettings$ = [4, n0, _ES,
1402
+ 0,
1403
+ [_kES, _def],
1404
+ [() => KmsEncryptionSettings$, () => __Unit]
1405
+ ];
1406
+ var EncryptionState$ = [4, n0, _ESn,
1407
+ 0,
1408
+ [_kESm, _def],
1409
+ [() => KmsEncryptionState$, () => __Unit]
1410
+ ];
1379
1411
  var EntitiesDefinition$ = [4, n0, _ED,
1380
1412
  0,
1381
1413
  [_eL, _cJ],
@@ -2051,6 +2083,8 @@ exports.DeletePolicyTemplateInput$ = DeletePolicyTemplateInput$;
2051
2083
  exports.DeletePolicyTemplateOutput$ = DeletePolicyTemplateOutput$;
2052
2084
  exports.DeletionProtection = DeletionProtection;
2053
2085
  exports.DeterminingPolicyItem$ = DeterminingPolicyItem$;
2086
+ exports.EncryptionSettings$ = EncryptionSettings$;
2087
+ exports.EncryptionState$ = EncryptionState$;
2054
2088
  exports.EntitiesDefinition$ = EntitiesDefinition$;
2055
2089
  exports.EntityIdentifier$ = EntityIdentifier$;
2056
2090
  exports.EntityItem$ = EntityItem$;
@@ -2092,6 +2126,8 @@ exports.IsAuthorizedWithToken$ = IsAuthorizedWithToken$;
2092
2126
  exports.IsAuthorizedWithTokenCommand = IsAuthorizedWithTokenCommand;
2093
2127
  exports.IsAuthorizedWithTokenInput$ = IsAuthorizedWithTokenInput$;
2094
2128
  exports.IsAuthorizedWithTokenOutput$ = IsAuthorizedWithTokenOutput$;
2129
+ exports.KmsEncryptionSettings$ = KmsEncryptionSettings$;
2130
+ exports.KmsEncryptionState$ = KmsEncryptionState$;
2095
2131
  exports.ListIdentitySources$ = ListIdentitySources$;
2096
2132
  exports.ListIdentitySourcesCommand = ListIdentitySourcesCommand;
2097
2133
  exports.ListIdentitySourcesInput$ = ListIdentitySourcesInput$;
@@ -87,6 +87,8 @@ const _EIn = "EntityIdentifier";
87
87
  const _EInt = "EntityItem";
88
88
  const _EL = "EntityList";
89
89
  const _ER = "EntityReference";
90
+ const _ES = "EncryptionSettings";
91
+ const _ESn = "EncryptionState";
90
92
  const _ET = "EntityType";
91
93
  const _GET = "GroupEntityType";
92
94
  const _GIS = "GetIdentitySource";
@@ -119,6 +121,8 @@ const _ISF = "IdentitySourceFilter";
119
121
  const _ISFd = "IdentitySourceFilters";
120
122
  const _ISI = "IdentitySourceItem";
121
123
  const _ISID = "IdentitySourceItemDetails";
124
+ const _KES = "KmsEncryptionSettings";
125
+ const _KESm = "KmsEncryptionState";
122
126
  const _LA = "LongAttribute";
123
127
  const _LIS = "ListIdentitySources";
124
128
  const _LISI = "ListIdentitySourcesInput";
@@ -249,15 +253,19 @@ const _dU = "discoveryUrl";
249
253
  const _da = "datetime";
250
254
  const _de = "decision";
251
255
  const _dec = "decimal";
256
+ const _def = "default";
252
257
  const _des = "description";
253
258
  const _det = "details";
254
259
  const _du = "duration";
255
260
  const _e = "error";
261
+ const _eC = "encryptionContext";
256
262
  const _eD = "errorDescription";
257
263
  const _eI = "entityId";
258
264
  const _eIP = "entityIdPrefix";
259
265
  const _eIn = "entityIdentifier";
260
266
  const _eL = "entityList";
267
+ const _eS = "encryptionSettings";
268
+ const _eSn = "encryptionState";
261
269
  const _eT = "entityType";
262
270
  const _ef = "effect";
263
271
  const _en = "entities";
@@ -276,6 +284,9 @@ const _iT = "identityToken";
276
284
  const _iTO = "identityTokenOnly";
277
285
  const _id = "identifier";
278
286
  const _ip = "ipaddr";
287
+ const _k = "key";
288
+ const _kES = "kmsEncryptionSettings";
289
+ const _kESm = "kmsEncryptionState";
279
290
  const _l = "long";
280
291
  const _lUD = "lastUpdatedDate";
281
292
  const _m = "message";
@@ -486,8 +497,8 @@ export var CreatePolicyOutput$ = [3, n0, _CPO,
486
497
  ];
487
498
  export var CreatePolicyStoreInput$ = [3, n0, _CPSI,
488
499
  0,
489
- [_vS, _cT, _des, _dPe, _t],
490
- [() => ValidationSettings$, [0, 4], [() => PolicyStoreDescription, 0], 0, 128 | 0], 1
500
+ [_vS, _cT, _des, _dPe, _eS, _t],
501
+ [() => ValidationSettings$, [0, 4], [() => PolicyStoreDescription, 0], 0, () => EncryptionSettings$, 128 | 0], 1
491
502
  ];
492
503
  export var CreatePolicyStoreOutput$ = [3, n0, _CPSO,
493
504
  0,
@@ -591,8 +602,8 @@ export var GetPolicyStoreInput$ = [3, n0, _GPSI,
591
602
  ];
592
603
  export var GetPolicyStoreOutput$ = [3, n0, _GPSO,
593
604
  0,
594
- [_pSI, _ar, _vS, _cD, _lUD, _des, _dPe, _cV, _t],
595
- [0, 0, () => ValidationSettings$, 5, 5, [() => PolicyStoreDescription, 0], 0, 0, 128 | 0], 5
605
+ [_pSI, _ar, _vS, _cD, _lUD, _des, _dPe, _eSn, _cV, _t],
606
+ [0, 0, () => ValidationSettings$, 5, 5, [() => PolicyStoreDescription, 0], 0, () => EncryptionState$, 0, 128 | 0], 5
596
607
  ];
597
608
  export var GetPolicyTemplateInput$ = [3, n0, _GPTI,
598
609
  0,
@@ -666,6 +677,16 @@ export var IsAuthorizedWithTokenOutput$ = [3, n0, _IAWTO,
666
677
  [_de, _dP, _er, _p],
667
678
  [0, () => DeterminingPolicyList, [() => EvaluationErrorList, 0], [() => EntityIdentifier$, 0]], 3
668
679
  ];
680
+ export var KmsEncryptionSettings$ = [3, n0, _KES,
681
+ 0,
682
+ [_k, _eC],
683
+ [0, 128 | 0], 1
684
+ ];
685
+ export var KmsEncryptionState$ = [3, n0, _KESm,
686
+ 0,
687
+ [_k, _eC],
688
+ [0, 128 | 0], 2
689
+ ];
669
690
  export var ListIdentitySourcesInput$ = [3, n0, _LISI,
670
691
  0,
671
692
  [_pSI, _nT, _mR, _f],
@@ -928,7 +949,7 @@ export var UpdateOpenIdConnectIdentityTokenConfiguration$ = [3, n0, _UOICITC,
928
949
  export var UpdatePolicyInput$ = [3, n0, _UPI,
929
950
  0,
930
951
  [_pSI, _pI, _d],
931
- [0, 0, [() => UpdatePolicyDefinition$, 0]], 3
952
+ [0, 0, [() => UpdatePolicyDefinition$, 0]], 2
932
953
  ];
933
954
  export var UpdatePolicyOutput$ = [3, n0, _UPO,
934
955
  0,
@@ -976,6 +997,7 @@ export var ValidationSettings$ = [3, n0, _VS,
976
997
  [_mo],
977
998
  [0], 1
978
999
  ];
1000
+ var __Unit = "unit";
979
1001
  export var VerifiedPermissionsServiceException$ = [-3, _sm, "VerifiedPermissionsServiceException", 0, [], []];
980
1002
  TypeRegistry.for(_sm).registerError(VerifiedPermissionsServiceException$, VerifiedPermissionsServiceException);
981
1003
  var ActionIdentifierList = [1, n0, _AIL,
@@ -1079,6 +1101,7 @@ var ContextMap = [2, n0, _CM,
1079
1101
  [() => AttributeValue$,
1080
1102
  0]
1081
1103
  ];
1104
+ var EncryptionContext = 128 | 0;
1082
1105
  var EntityAttributes = [2, n0, _EA,
1083
1106
  0, [0,
1084
1107
  0],
@@ -1128,6 +1151,16 @@ export var ContextDefinition$ = [4, n0, _CDo,
1128
1151
  [_cM, _cJ],
1129
1152
  [[() => ContextMap, 0], [() => CedarJson, 0]]
1130
1153
  ];
1154
+ export var EncryptionSettings$ = [4, n0, _ES,
1155
+ 0,
1156
+ [_kES, _def],
1157
+ [() => KmsEncryptionSettings$, () => __Unit]
1158
+ ];
1159
+ export var EncryptionState$ = [4, n0, _ESn,
1160
+ 0,
1161
+ [_kESm, _def],
1162
+ [() => KmsEncryptionState$, () => __Unit]
1163
+ ];
1131
1164
  export var EntitiesDefinition$ = [4, n0, _ED,
1132
1165
  0,
1133
1166
  [_eL, _cJ],
@@ -43,6 +43,15 @@ declare const CreatePolicyStoreCommand_base: {
43
43
  * },
44
44
  * description: "STRING_VALUE",
45
45
  * deletionProtection: "ENABLED" || "DISABLED",
46
+ * encryptionSettings: { // EncryptionSettings Union: only one key present
47
+ * kmsEncryptionSettings: { // KmsEncryptionSettings
48
+ * key: "STRING_VALUE", // required
49
+ * encryptionContext: { // EncryptionContext
50
+ * "<keys>": "STRING_VALUE",
51
+ * },
52
+ * },
53
+ * default: {},
54
+ * },
46
55
  * tags: { // TagMap
47
56
  * "<keys>": "STRING_VALUE",
48
57
  * },
@@ -107,6 +116,35 @@ declare const CreatePolicyStoreCommand_base: {
107
116
  * *\/
108
117
  * ```
109
118
  *
119
+ * @example To create an encrypted policy store
120
+ * ```javascript
121
+ * // The following example creates a new policy store with encryption settings based on a provided KMS key.
122
+ * const input = {
123
+ * clientToken: "a1b2c3d4-e5f6-a1b2-c3d4-TOKEN1111111",
124
+ * encryptionSettings: {
125
+ * kmsEncryptionSettings: {
126
+ * encryptionContext: {
127
+ * policy_store_owner: "Tim"
128
+ * },
129
+ * key: "arn:aws:kms:us-east-1:123456789012:key/abcdefgh-ijkl-mnop-qrst-uvwxyz123456"
130
+ * }
131
+ * },
132
+ * validationSettings: {
133
+ * mode: "STRICT"
134
+ * }
135
+ * };
136
+ * const command = new CreatePolicyStoreCommand(input);
137
+ * const response = await client.send(command);
138
+ * /* response is
139
+ * {
140
+ * arn: "arn:aws:verifiedpermissions::123456789012:policy-store/C7v5xMplfFH3i3e4Jrzb1a",
141
+ * createdDate: "2024-08-12T18:20:50.99Z",
142
+ * lastUpdatedDate: "2024-08-12T18:20:50.99Z",
143
+ * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a"
144
+ * }
145
+ * *\/
146
+ * ```
147
+ *
110
148
  * @public
111
149
  */
112
150
  export declare class CreatePolicyStoreCommand extends CreatePolicyStoreCommand_base {
@@ -52,6 +52,15 @@ declare const GetPolicyStoreCommand_base: {
52
52
  * // lastUpdatedDate: new Date("TIMESTAMP"), // required
53
53
  * // description: "STRING_VALUE",
54
54
  * // deletionProtection: "ENABLED" || "DISABLED",
55
+ * // encryptionState: { // EncryptionState Union: only one key present
56
+ * // kmsEncryptionState: { // KmsEncryptionState
57
+ * // key: "STRING_VALUE", // required
58
+ * // encryptionContext: { // EncryptionContext // required
59
+ * // "<keys>": "STRING_VALUE",
60
+ * // },
61
+ * // },
62
+ * // default: {},
63
+ * // },
55
64
  * // cedarVersion: "CEDAR_2" || "CEDAR_4",
56
65
  * // tags: { // TagMap
57
66
  * // "<keys>": "STRING_VALUE",
@@ -97,6 +106,38 @@ declare const GetPolicyStoreCommand_base: {
97
106
  * {
98
107
  * arn: "arn:aws:verifiedpermissions::123456789012:policy-store/C7v5xMplfFH3i3e4Jrzb1a",
99
108
  * createdDate: "2024-08-12T18:20:50.99Z",
109
+ * encryptionState: {
110
+ * default: { /* empty *\/ }
111
+ * },
112
+ * lastUpdatedDate: "2024-08-12T18:20:50.99Z",
113
+ * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a",
114
+ * validationSettings: {
115
+ * mode: "STRICT"
116
+ * }
117
+ * }
118
+ * *\/
119
+ * ```
120
+ *
121
+ * @example GetPolicyStore that is encrypted
122
+ * ```javascript
123
+ * // The following example retrieves details about the specified encrypted policy store.
124
+ * const input = {
125
+ * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a"
126
+ * };
127
+ * const command = new GetPolicyStoreCommand(input);
128
+ * const response = await client.send(command);
129
+ * /* response is
130
+ * {
131
+ * arn: "arn:aws:verifiedpermissions::123456789012:policy-store/C7v5xMplfFH3i3e4Jrzb1a",
132
+ * createdDate: "2024-08-12T18:20:50.99Z",
133
+ * encryptionState: {
134
+ * kmsEncryptionState: {
135
+ * encryptionContext: {
136
+ * policy_store_owner: "Tim"
137
+ * },
138
+ * key: "arn:aws:kms:us-east-1:123456789012:key/abcdefgh-ijkl-mnop-qrst-uvwxyz123456"
139
+ * }
140
+ * },
100
141
  * lastUpdatedDate: "2024-08-12T18:20:50.99Z",
101
142
  * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a",
102
143
  * validationSettings: {
@@ -1070,6 +1070,72 @@ export interface CreatePolicyOutput {
1070
1070
  */
1071
1071
  effect?: PolicyEffect | undefined;
1072
1072
  }
1073
+ /**
1074
+ * @public
1075
+ */
1076
+ export interface Unit {
1077
+ }
1078
+ /**
1079
+ * <p>A structure that contains the KMS encryption configuration for the policy store. The encryption settings determine what customer-managed KMS key will be used to encrypt all resources within the policy store, and any user-defined context key-value pairs to append during encryption processes.</p> <p>This data type is used as a field that is part of the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_EncryptionSettings.html">EncryptionSettings</a> type.</p>
1080
+ * @public
1081
+ */
1082
+ export interface KmsEncryptionSettings {
1083
+ /**
1084
+ * <p>The customer-managed KMS key <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a>, alias or ID to be used for encryption processes. </p> <p>Users can provide the full KMS key ARN, a KMS key alias, or a KMS key ID, but it will be mapped to the full KMS key ARN after policy store creation, and referenced when encrypting child resources. </p>
1085
+ * @public
1086
+ */
1087
+ key: string | undefined;
1088
+ /**
1089
+ * <p>User-defined, additional context to be added to encryption processes. </p>
1090
+ * @public
1091
+ */
1092
+ encryptionContext?: Record<string, string> | undefined;
1093
+ }
1094
+ /**
1095
+ * <p>A structure that contains the encryption configuration for the policy store and child resources. </p> <p>This data type is used as a request parameter in the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicyStore.html">CreatePolicyStore</a> operation.</p>
1096
+ * @public
1097
+ */
1098
+ export type EncryptionSettings = EncryptionSettings.DefaultMember | EncryptionSettings.KmsEncryptionSettingsMember | EncryptionSettings.$UnknownMember;
1099
+ /**
1100
+ * @public
1101
+ */
1102
+ export declare namespace EncryptionSettings {
1103
+ /**
1104
+ * <p>The KMS encryption settings for this policy store to encrypt data with. It will contain the customer-managed KMS key, and a user-defined encryption context. </p>
1105
+ * @public
1106
+ */
1107
+ interface KmsEncryptionSettingsMember {
1108
+ kmsEncryptionSettings: KmsEncryptionSettings;
1109
+ default?: never;
1110
+ $unknown?: never;
1111
+ }
1112
+ /**
1113
+ * Use AWS owned encryption keys for encrypting policy store data.
1114
+ * @public
1115
+ */
1116
+ interface DefaultMember {
1117
+ kmsEncryptionSettings?: never;
1118
+ default: Unit;
1119
+ $unknown?: never;
1120
+ }
1121
+ /**
1122
+ * @public
1123
+ */
1124
+ interface $UnknownMember {
1125
+ kmsEncryptionSettings?: never;
1126
+ default?: never;
1127
+ $unknown: [string, any];
1128
+ }
1129
+ /**
1130
+ * @deprecated unused in schema-serde mode.
1131
+ *
1132
+ */
1133
+ interface Visitor<T> {
1134
+ kmsEncryptionSettings: (value: KmsEncryptionSettings) => T;
1135
+ default: (value: Unit) => T;
1136
+ _: (name: string, value: any) => T;
1137
+ }
1138
+ }
1073
1139
  /**
1074
1140
  * <p>A structure that contains Cedar policy validation settings for the policy store. The validation mode determines which validation failures that Cedar considers serious enough to block acceptance of a new or edited static policy or policy template. </p> <p>This data type is used as a request parameter in the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicyStore.html">CreatePolicyStore</a> and <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_UpdatePolicyStore.html">UpdatePolicyStore</a> operations.</p>
1075
1141
  * @public
@@ -1105,6 +1171,11 @@ export interface CreatePolicyStoreInput {
1105
1171
  * @public
1106
1172
  */
1107
1173
  deletionProtection?: DeletionProtection | undefined;
1174
+ /**
1175
+ * <p>Specifies the encryption settings used to encrypt the policy store and their child resources. Allows for the ability to use a customer owned KMS key for encryption of data.</p> <p>This is an optional field to be used when providing a customer-managed KMS key for encryption.</p>
1176
+ * @public
1177
+ */
1178
+ encryptionSettings?: EncryptionSettings | undefined;
1108
1179
  /**
1109
1180
  * <p>The list of key-value pairs to associate with the policy store.</p>
1110
1181
  * @public
@@ -1261,6 +1332,67 @@ export interface DeletePolicyTemplateInput {
1261
1332
  */
1262
1333
  export interface DeletePolicyTemplateOutput {
1263
1334
  }
1335
+ /**
1336
+ * <p>A structure that contains the KMS encryption configuration for the policy store. The encryption state shows what customer-managed KMS key is being used to encrypt all resources within the policy store, and any user-defined context key-value pairs added during encryption processes.</p> <p>This data type is used as a field that is part of the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_EncryptionState.html">EncryptionState</a> type.</p>
1337
+ * @public
1338
+ */
1339
+ export interface KmsEncryptionState {
1340
+ /**
1341
+ * <p>The customer-managed KMS key <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> being used for encryption processes. </p>
1342
+ * @public
1343
+ */
1344
+ key: string | undefined;
1345
+ /**
1346
+ * <p>User-defined, additional context added to encryption processes. </p>
1347
+ * @public
1348
+ */
1349
+ encryptionContext: Record<string, string> | undefined;
1350
+ }
1351
+ /**
1352
+ * <p>A structure that contains the encryption configuration for the policy store and child resources.</p> <p>This data type is used as a response parameter field for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicyStore.html">GetPolicyStore</a> operation.</p>
1353
+ * @public
1354
+ */
1355
+ export type EncryptionState = EncryptionState.DefaultMember | EncryptionState.KmsEncryptionStateMember | EncryptionState.$UnknownMember;
1356
+ /**
1357
+ * @public
1358
+ */
1359
+ export declare namespace EncryptionState {
1360
+ /**
1361
+ * <p>The KMS encryption settings currently configured for this policy store to encrypt data with. It contains the customer-managed KMS key, and a user-defined encryption context. </p>
1362
+ * @public
1363
+ */
1364
+ interface KmsEncryptionStateMember {
1365
+ kmsEncryptionState: KmsEncryptionState;
1366
+ default?: never;
1367
+ $unknown?: never;
1368
+ }
1369
+ /**
1370
+ * Policy store data is encrypted using AWS owned encryption keys.
1371
+ * @public
1372
+ */
1373
+ interface DefaultMember {
1374
+ kmsEncryptionState?: never;
1375
+ default: Unit;
1376
+ $unknown?: never;
1377
+ }
1378
+ /**
1379
+ * @public
1380
+ */
1381
+ interface $UnknownMember {
1382
+ kmsEncryptionState?: never;
1383
+ default?: never;
1384
+ $unknown: [string, any];
1385
+ }
1386
+ /**
1387
+ * @deprecated unused in schema-serde mode.
1388
+ *
1389
+ */
1390
+ interface Visitor<T> {
1391
+ kmsEncryptionState: (value: KmsEncryptionState) => T;
1392
+ default: (value: Unit) => T;
1393
+ _: (name: string, value: any) => T;
1394
+ }
1395
+ }
1264
1396
  /**
1265
1397
  * <p>Contains information about a principal or resource that can be referenced in a Cedar policy.</p> <p>This data type is used as part of the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_PolicyFilter.html">PolicyFilter</a> structure that is used as a request parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListPolicies.html">ListPolicies</a> operation..</p>
1266
1398
  * @public
@@ -1523,6 +1655,11 @@ export interface GetPolicyStoreOutput {
1523
1655
  * @public
1524
1656
  */
1525
1657
  deletionProtection?: DeletionProtection | undefined;
1658
+ /**
1659
+ * <p>A structure that contains the encryption configuration for the policy store.</p>
1660
+ * @public
1661
+ */
1662
+ encryptionState?: EncryptionState | undefined;
1526
1663
  /**
1527
1664
  * <p>The version of the Cedar language used with policies, policy templates, and schemas in this policy store. For more information, see <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/cedar4-faq.html">Amazon Verified Permissions upgrade to Cedar v4 FAQ</a>.</p>
1528
1665
  * @public
@@ -2458,7 +2595,7 @@ export interface UpdatePolicyInput {
2458
2595
  * <p>Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.</p> <p>You can change only the following elements from the policy definition:</p> <ul> <li> <p>The <code>action</code> referenced by the policy.</p> </li> <li> <p>Any conditional clauses, such as <code>when</code> or <code>unless</code> clauses.</p> </li> </ul> <p>You <b>can't</b> change the following elements:</p> <ul> <li> <p>Changing from <code>static</code> to <code>templateLinked</code>.</p> </li> <li> <p>Changing the effect of the policy from <code>permit</code> or <code>forbid</code>.</p> </li> <li> <p>The <code>principal</code> referenced by the policy.</p> </li> <li> <p>The <code>resource</code> referenced by the policy.</p> </li> </ul>
2459
2596
  * @public
2460
2597
  */
2461
- definition: UpdatePolicyDefinition | undefined;
2598
+ definition?: UpdatePolicyDefinition | undefined;
2462
2599
  }
2463
2600
  /**
2464
2601
  * @public
@@ -61,6 +61,8 @@ export declare var IsAuthorizedInput$: StaticStructureSchema;
61
61
  export declare var IsAuthorizedOutput$: StaticStructureSchema;
62
62
  export declare var IsAuthorizedWithTokenInput$: StaticStructureSchema;
63
63
  export declare var IsAuthorizedWithTokenOutput$: StaticStructureSchema;
64
+ export declare var KmsEncryptionSettings$: StaticStructureSchema;
65
+ export declare var KmsEncryptionState$: StaticStructureSchema;
64
66
  export declare var ListIdentitySourcesInput$: StaticStructureSchema;
65
67
  export declare var ListIdentitySourcesOutput$: StaticStructureSchema;
66
68
  export declare var ListPoliciesInput$: StaticStructureSchema;
@@ -129,6 +131,8 @@ export declare var Configuration$: StaticUnionSchema;
129
131
  export declare var ConfigurationDetail$: StaticUnionSchema;
130
132
  export declare var ConfigurationItem$: StaticUnionSchema;
131
133
  export declare var ContextDefinition$: StaticUnionSchema;
134
+ export declare var EncryptionSettings$: StaticUnionSchema;
135
+ export declare var EncryptionState$: StaticUnionSchema;
132
136
  export declare var EntitiesDefinition$: StaticUnionSchema;
133
137
  export declare var EntityReference$: StaticUnionSchema;
134
138
  export declare var OpenIdConnectTokenSelection$: StaticUnionSchema;
@@ -398,6 +398,37 @@ export interface CreatePolicyOutput {
398
398
  lastUpdatedDate: Date | undefined;
399
399
  effect?: PolicyEffect | undefined;
400
400
  }
401
+ export interface Unit {}
402
+ export interface KmsEncryptionSettings {
403
+ key: string | undefined;
404
+ encryptionContext?: Record<string, string> | undefined;
405
+ }
406
+ export type EncryptionSettings =
407
+ | EncryptionSettings.DefaultMember
408
+ | EncryptionSettings.KmsEncryptionSettingsMember
409
+ | EncryptionSettings.$UnknownMember;
410
+ export declare namespace EncryptionSettings {
411
+ interface KmsEncryptionSettingsMember {
412
+ kmsEncryptionSettings: KmsEncryptionSettings;
413
+ default?: never;
414
+ $unknown?: never;
415
+ }
416
+ interface DefaultMember {
417
+ kmsEncryptionSettings?: never;
418
+ default: Unit;
419
+ $unknown?: never;
420
+ }
421
+ interface $UnknownMember {
422
+ kmsEncryptionSettings?: never;
423
+ default?: never;
424
+ $unknown: [string, any];
425
+ }
426
+ interface Visitor<T> {
427
+ kmsEncryptionSettings: (value: KmsEncryptionSettings) => T;
428
+ default: (value: Unit) => T;
429
+ _: (name: string, value: any) => T;
430
+ }
431
+ }
401
432
  export interface ValidationSettings {
402
433
  mode: ValidationMode | undefined;
403
434
  }
@@ -406,6 +437,7 @@ export interface CreatePolicyStoreInput {
406
437
  validationSettings: ValidationSettings | undefined;
407
438
  description?: string | undefined;
408
439
  deletionProtection?: DeletionProtection | undefined;
440
+ encryptionSettings?: EncryptionSettings | undefined;
409
441
  tags?: Record<string, string> | undefined;
410
442
  }
411
443
  export interface CreatePolicyStoreOutput {
@@ -445,6 +477,36 @@ export interface DeletePolicyTemplateInput {
445
477
  policyTemplateId: string | undefined;
446
478
  }
447
479
  export interface DeletePolicyTemplateOutput {}
480
+ export interface KmsEncryptionState {
481
+ key: string | undefined;
482
+ encryptionContext: Record<string, string> | undefined;
483
+ }
484
+ export type EncryptionState =
485
+ | EncryptionState.DefaultMember
486
+ | EncryptionState.KmsEncryptionStateMember
487
+ | EncryptionState.$UnknownMember;
488
+ export declare namespace EncryptionState {
489
+ interface KmsEncryptionStateMember {
490
+ kmsEncryptionState: KmsEncryptionState;
491
+ default?: never;
492
+ $unknown?: never;
493
+ }
494
+ interface DefaultMember {
495
+ kmsEncryptionState?: never;
496
+ default: Unit;
497
+ $unknown?: never;
498
+ }
499
+ interface $UnknownMember {
500
+ kmsEncryptionState?: never;
501
+ default?: never;
502
+ $unknown: [string, any];
503
+ }
504
+ interface Visitor<T> {
505
+ kmsEncryptionState: (value: KmsEncryptionState) => T;
506
+ default: (value: Unit) => T;
507
+ _: (name: string, value: any) => T;
508
+ }
509
+ }
448
510
  export type EntityReference =
449
511
  | EntityReference.IdentifierMember
450
512
  | EntityReference.UnspecifiedMember
@@ -518,6 +580,7 @@ export interface GetPolicyStoreOutput {
518
580
  lastUpdatedDate: Date | undefined;
519
581
  description?: string | undefined;
520
582
  deletionProtection?: DeletionProtection | undefined;
583
+ encryptionState?: EncryptionState | undefined;
521
584
  cedarVersion?: CedarVersion | undefined;
522
585
  tags?: Record<string, string> | undefined;
523
586
  }
@@ -799,7 +862,7 @@ export declare namespace UpdatePolicyDefinition {
799
862
  export interface UpdatePolicyInput {
800
863
  policyStoreId: string | undefined;
801
864
  policyId: string | undefined;
802
- definition: UpdatePolicyDefinition | undefined;
865
+ definition?: UpdatePolicyDefinition | undefined;
803
866
  }
804
867
  export interface UpdatePolicyOutput {
805
868
  policyStoreId: string | undefined;
@@ -66,6 +66,8 @@ export declare var IsAuthorizedInput$: StaticStructureSchema;
66
66
  export declare var IsAuthorizedOutput$: StaticStructureSchema;
67
67
  export declare var IsAuthorizedWithTokenInput$: StaticStructureSchema;
68
68
  export declare var IsAuthorizedWithTokenOutput$: StaticStructureSchema;
69
+ export declare var KmsEncryptionSettings$: StaticStructureSchema;
70
+ export declare var KmsEncryptionState$: StaticStructureSchema;
69
71
  export declare var ListIdentitySourcesInput$: StaticStructureSchema;
70
72
  export declare var ListIdentitySourcesOutput$: StaticStructureSchema;
71
73
  export declare var ListPoliciesInput$: StaticStructureSchema;
@@ -134,6 +136,8 @@ export declare var Configuration$: StaticUnionSchema;
134
136
  export declare var ConfigurationDetail$: StaticUnionSchema;
135
137
  export declare var ConfigurationItem$: StaticUnionSchema;
136
138
  export declare var ContextDefinition$: StaticUnionSchema;
139
+ export declare var EncryptionSettings$: StaticUnionSchema;
140
+ export declare var EncryptionState$: StaticUnionSchema;
137
141
  export declare var EntitiesDefinition$: StaticUnionSchema;
138
142
  export declare var EntityReference$: StaticUnionSchema;
139
143
  export declare var OpenIdConnectTokenSelection$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-verifiedpermissions",
3
3
  "description": "AWS SDK for JavaScript Verifiedpermissions Client for Node.js, Browser and React Native",
4
- "version": "3.971.0",
4
+ "version": "3.972.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-verifiedpermissions",
@@ -9,7 +9,7 @@
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
14
14
  "generate:client": "node ../../scripts/generate-clients/single-service --solo verifiedpermissions",
15
15
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.970.0",
25
- "@aws-sdk/credential-provider-node": "3.971.0",
26
- "@aws-sdk/middleware-host-header": "3.969.0",
27
- "@aws-sdk/middleware-logger": "3.969.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.969.0",
29
- "@aws-sdk/middleware-user-agent": "3.970.0",
30
- "@aws-sdk/region-config-resolver": "3.969.0",
31
- "@aws-sdk/types": "3.969.0",
32
- "@aws-sdk/util-endpoints": "3.970.0",
33
- "@aws-sdk/util-user-agent-browser": "3.969.0",
34
- "@aws-sdk/util-user-agent-node": "3.971.0",
24
+ "@aws-sdk/core": "3.972.0",
25
+ "@aws-sdk/credential-provider-node": "3.972.0",
26
+ "@aws-sdk/middleware-host-header": "3.972.0",
27
+ "@aws-sdk/middleware-logger": "3.972.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.972.0",
29
+ "@aws-sdk/middleware-user-agent": "3.972.0",
30
+ "@aws-sdk/region-config-resolver": "3.972.0",
31
+ "@aws-sdk/types": "3.972.0",
32
+ "@aws-sdk/util-endpoints": "3.972.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.972.0",
34
+ "@aws-sdk/util-user-agent-node": "3.972.0",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
36
  "@smithy/core": "^3.20.6",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
@@ -64,7 +64,7 @@
64
64
  "@types/node": "^20.14.8",
65
65
  "concurrently": "7.0.0",
66
66
  "downlevel-dts": "0.10.1",
67
- "rimraf": "5.0.10",
67
+ "premove": "4.0.0",
68
68
  "typescript": "~5.8.3"
69
69
  },
70
70
  "engines": {