@aws-sdk/client-verifiedpermissions 3.572.0 → 3.573.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
@@ -109,6 +109,7 @@ __export(src_exports, {
109
109
  PolicyDefinitionFilterSensitiveLog: () => PolicyDefinitionFilterSensitiveLog,
110
110
  PolicyDefinitionItem: () => PolicyDefinitionItem,
111
111
  PolicyDefinitionItemFilterSensitiveLog: () => PolicyDefinitionItemFilterSensitiveLog,
112
+ PolicyEffect: () => PolicyEffect,
112
113
  PolicyFilterFilterSensitiveLog: () => PolicyFilterFilterSensitiveLog,
113
114
  PolicyItemFilterSensitiveLog: () => PolicyItemFilterSensitiveLog,
114
115
  PolicyStoreItemFilterSensitiveLog: () => PolicyStoreItemFilterSensitiveLog,
@@ -506,6 +507,10 @@ var PolicyDefinition;
506
507
  return visitor._(value.$unknown[0], value.$unknown[1]);
507
508
  }, "visit");
508
509
  })(PolicyDefinition || (PolicyDefinition = {}));
510
+ var PolicyEffect = {
511
+ FORBID: "Forbid",
512
+ PERMIT: "Permit"
513
+ };
509
514
  var PolicyType = {
510
515
  STATIC: "STATIC",
511
516
  TEMPLATE_LINKED: "TEMPLATE_LINKED"
@@ -709,7 +714,8 @@ var CreatePolicyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
709
714
  var CreatePolicyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
710
715
  ...obj,
711
716
  ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
712
- ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
717
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
718
+ ...obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }
713
719
  }), "CreatePolicyOutputFilterSensitiveLog");
714
720
  var CreatePolicyStoreInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
715
721
  ...obj,
@@ -760,6 +766,7 @@ var GetPolicyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
760
766
  ...obj,
761
767
  ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
762
768
  ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
769
+ ...obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) },
763
770
  ...obj.definition && { definition: PolicyDefinitionDetailFilterSensitiveLog(obj.definition) }
764
771
  }), "GetPolicyOutputFilterSensitiveLog");
765
772
  var GetPolicyStoreOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -867,6 +874,7 @@ var PolicyItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
867
874
  ...obj,
868
875
  ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
869
876
  ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
877
+ ...obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) },
870
878
  ...obj.definition && { definition: PolicyDefinitionItemFilterSensitiveLog(obj.definition) }
871
879
  }), "PolicyItemFilterSensitiveLog");
872
880
  var ListPoliciesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -909,7 +917,8 @@ var UpdatePolicyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
909
917
  var UpdatePolicyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
910
918
  ...obj,
911
919
  ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
912
- ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
920
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
921
+ ...obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }
913
922
  }), "UpdatePolicyOutputFilterSensitiveLog");
914
923
  var UpdatePolicyTemplateInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
915
924
  ...obj,
@@ -1915,7 +1924,9 @@ var de_CreateIdentitySourceOutput = /* @__PURE__ */ __name((output, context) =>
1915
1924
  }, "de_CreateIdentitySourceOutput");
1916
1925
  var de_CreatePolicyOutput = /* @__PURE__ */ __name((output, context) => {
1917
1926
  return (0, import_smithy_client.take)(output, {
1927
+ actions: import_smithy_client._json,
1918
1928
  createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1929
+ effect: import_smithy_client.expectString,
1919
1930
  lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1920
1931
  policyId: import_smithy_client.expectString,
1921
1932
  policyStoreId: import_smithy_client.expectString,
@@ -1953,8 +1964,10 @@ var de_GetIdentitySourceOutput = /* @__PURE__ */ __name((output, context) => {
1953
1964
  }, "de_GetIdentitySourceOutput");
1954
1965
  var de_GetPolicyOutput = /* @__PURE__ */ __name((output, context) => {
1955
1966
  return (0, import_smithy_client.take)(output, {
1967
+ actions: import_smithy_client._json,
1956
1968
  createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1957
1969
  definition: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1970
+ effect: import_smithy_client.expectString,
1958
1971
  lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1959
1972
  policyId: import_smithy_client.expectString,
1960
1973
  policyStoreId: import_smithy_client.expectString,
@@ -2035,8 +2048,10 @@ var de_ListPolicyTemplatesOutput = /* @__PURE__ */ __name((output, context) => {
2035
2048
  }, "de_ListPolicyTemplatesOutput");
2036
2049
  var de_PolicyItem = /* @__PURE__ */ __name((output, context) => {
2037
2050
  return (0, import_smithy_client.take)(output, {
2051
+ actions: import_smithy_client._json,
2038
2052
  createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2039
2053
  definition: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
2054
+ effect: import_smithy_client.expectString,
2040
2055
  lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2041
2056
  policyId: import_smithy_client.expectString,
2042
2057
  policyStoreId: import_smithy_client.expectString,
@@ -2114,7 +2129,9 @@ var de_UpdateIdentitySourceOutput = /* @__PURE__ */ __name((output, context) =>
2114
2129
  }, "de_UpdateIdentitySourceOutput");
2115
2130
  var de_UpdatePolicyOutput = /* @__PURE__ */ __name((output, context) => {
2116
2131
  return (0, import_smithy_client.take)(output, {
2132
+ actions: import_smithy_client._json,
2117
2133
  createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2134
+ effect: import_smithy_client.expectString,
2118
2135
  lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2119
2136
  policyId: import_smithy_client.expectString,
2120
2137
  policyStoreId: import_smithy_client.expectString,
@@ -2711,6 +2728,7 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
2711
2728
  ConflictException,
2712
2729
  ServiceQuotaExceededException,
2713
2730
  PolicyDefinition,
2731
+ PolicyEffect,
2714
2732
  PolicyType,
2715
2733
  ValidationMode,
2716
2734
  EntityReference,
@@ -143,6 +143,10 @@ export var PolicyDefinition;
143
143
  return visitor._(value.$unknown[0], value.$unknown[1]);
144
144
  };
145
145
  })(PolicyDefinition || (PolicyDefinition = {}));
146
+ export const PolicyEffect = {
147
+ FORBID: "Forbid",
148
+ PERMIT: "Permit",
149
+ };
146
150
  export const PolicyType = {
147
151
  STATIC: "STATIC",
148
152
  TEMPLATE_LINKED: "TEMPLATE_LINKED",
@@ -343,6 +347,7 @@ export const CreatePolicyOutputFilterSensitiveLog = (obj) => ({
343
347
  ...obj,
344
348
  ...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
345
349
  ...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
350
+ ...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
346
351
  });
347
352
  export const CreatePolicyStoreInputFilterSensitiveLog = (obj) => ({
348
353
  ...obj,
@@ -393,6 +398,7 @@ export const GetPolicyOutputFilterSensitiveLog = (obj) => ({
393
398
  ...obj,
394
399
  ...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
395
400
  ...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
401
+ ...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
396
402
  ...(obj.definition && { definition: PolicyDefinitionDetailFilterSensitiveLog(obj.definition) }),
397
403
  });
398
404
  export const GetPolicyStoreOutputFilterSensitiveLog = (obj) => ({
@@ -498,6 +504,7 @@ export const PolicyItemFilterSensitiveLog = (obj) => ({
498
504
  ...obj,
499
505
  ...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
500
506
  ...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
507
+ ...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
501
508
  ...(obj.definition && { definition: PolicyDefinitionItemFilterSensitiveLog(obj.definition) }),
502
509
  });
503
510
  export const ListPoliciesOutputFilterSensitiveLog = (obj) => ({
@@ -541,6 +548,7 @@ export const UpdatePolicyOutputFilterSensitiveLog = (obj) => ({
541
548
  ...obj,
542
549
  ...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
543
550
  ...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
551
+ ...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
544
552
  });
545
553
  export const UpdatePolicyTemplateInputFilterSensitiveLog = (obj) => ({
546
554
  ...obj,
@@ -877,7 +877,9 @@ const de_CreateIdentitySourceOutput = (output, context) => {
877
877
  };
878
878
  const de_CreatePolicyOutput = (output, context) => {
879
879
  return take(output, {
880
+ actions: _json,
880
881
  createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
882
+ effect: __expectString,
881
883
  lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
882
884
  policyId: __expectString,
883
885
  policyStoreId: __expectString,
@@ -915,8 +917,10 @@ const de_GetIdentitySourceOutput = (output, context) => {
915
917
  };
916
918
  const de_GetPolicyOutput = (output, context) => {
917
919
  return take(output, {
920
+ actions: _json,
918
921
  createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
919
922
  definition: (_) => _json(__expectUnion(_)),
923
+ effect: __expectString,
920
924
  lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
921
925
  policyId: __expectString,
922
926
  policyStoreId: __expectString,
@@ -999,8 +1003,10 @@ const de_ListPolicyTemplatesOutput = (output, context) => {
999
1003
  };
1000
1004
  const de_PolicyItem = (output, context) => {
1001
1005
  return take(output, {
1006
+ actions: _json,
1002
1007
  createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1003
1008
  definition: (_) => _json(__expectUnion(_)),
1009
+ effect: __expectString,
1004
1010
  lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1005
1011
  policyId: __expectString,
1006
1012
  policyStoreId: __expectString,
@@ -1086,7 +1092,9 @@ const de_UpdateIdentitySourceOutput = (output, context) => {
1086
1092
  };
1087
1093
  const de_UpdatePolicyOutput = (output, context) => {
1088
1094
  return take(output, {
1095
+ actions: _json,
1089
1096
  createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1097
+ effect: __expectString,
1090
1098
  lastUpdatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1091
1099
  policyId: __expectString,
1092
1100
  policyStoreId: __expectString,
@@ -94,8 +94,15 @@ declare const CreatePolicyCommand_base: {
94
94
  * // entityType: "STRING_VALUE", // required
95
95
  * // entityId: "STRING_VALUE", // required
96
96
  * // },
97
+ * // actions: [ // ActionIdentifierList
98
+ * // { // ActionIdentifier
99
+ * // actionType: "STRING_VALUE", // required
100
+ * // actionId: "STRING_VALUE", // required
101
+ * // },
102
+ * // ],
97
103
  * // createdDate: new Date("TIMESTAMP"), // required
98
104
  * // lastUpdatedDate: new Date("TIMESTAMP"), // required
105
+ * // effect: "Permit" || "Forbid",
99
106
  * // };
100
107
  *
101
108
  * ```
@@ -51,6 +51,12 @@ declare const GetPolicyCommand_base: {
51
51
  * // entityType: "STRING_VALUE", // required
52
52
  * // entityId: "STRING_VALUE", // required
53
53
  * // },
54
+ * // actions: [ // ActionIdentifierList
55
+ * // { // ActionIdentifier
56
+ * // actionType: "STRING_VALUE", // required
57
+ * // actionId: "STRING_VALUE", // required
58
+ * // },
59
+ * // ],
54
60
  * // definition: { // PolicyDefinitionDetail Union: only one key present
55
61
  * // static: { // StaticPolicyDefinitionDetail
56
62
  * // description: "STRING_VALUE",
@@ -70,6 +76,7 @@ declare const GetPolicyCommand_base: {
70
76
  * // },
71
77
  * // createdDate: new Date("TIMESTAMP"), // required
72
78
  * // lastUpdatedDate: new Date("TIMESTAMP"), // required
79
+ * // effect: "Permit" || "Forbid",
73
80
  * // };
74
81
  *
75
82
  * ```
@@ -73,6 +73,12 @@ declare const ListPoliciesCommand_base: {
73
73
  * // entityType: "STRING_VALUE", // required
74
74
  * // entityId: "STRING_VALUE", // required
75
75
  * // },
76
+ * // actions: [ // ActionIdentifierList
77
+ * // { // ActionIdentifier
78
+ * // actionType: "STRING_VALUE", // required
79
+ * // actionId: "STRING_VALUE", // required
80
+ * // },
81
+ * // ],
76
82
  * // definition: { // PolicyDefinitionItem Union: only one key present
77
83
  * // static: { // StaticPolicyDefinitionItem
78
84
  * // description: "STRING_VALUE",
@@ -91,6 +97,7 @@ declare const ListPoliciesCommand_base: {
91
97
  * // },
92
98
  * // createdDate: new Date("TIMESTAMP"), // required
93
99
  * // lastUpdatedDate: new Date("TIMESTAMP"), // required
100
+ * // effect: "Permit" || "Forbid",
94
101
  * // },
95
102
  * // ],
96
103
  * // };
@@ -107,8 +107,15 @@ declare const UpdatePolicyCommand_base: {
107
107
  * // entityType: "STRING_VALUE", // required
108
108
  * // entityId: "STRING_VALUE", // required
109
109
  * // },
110
+ * // actions: [ // ActionIdentifierList
111
+ * // { // ActionIdentifier
112
+ * // actionType: "STRING_VALUE", // required
113
+ * // actionId: "STRING_VALUE", // required
114
+ * // },
115
+ * // ],
110
116
  * // createdDate: new Date("TIMESTAMP"), // required
111
117
  * // lastUpdatedDate: new Date("TIMESTAMP"), // required
118
+ * // effect: "Permit" || "Forbid",
112
119
  * // };
113
120
  *
114
121
  * ```
@@ -293,8 +293,8 @@ export declare class ValidationException extends __BaseException {
293
293
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
294
294
  }
295
295
  /**
296
- * <p>A list of user groups and entities from an Amazon Cognito user pool identity
297
- * source.</p>
296
+ * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
297
+ * pool identity source.</p>
298
298
  * <p>This data type is part of a <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfiguration.html">CognitoUserPoolConfiguration</a> structure and is a request parameter in <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html">CreateIdentitySource</a>.</p>
299
299
  * @public
300
300
  */
@@ -307,8 +307,8 @@ export interface CognitoGroupConfiguration {
307
307
  groupEntityType: string | undefined;
308
308
  }
309
309
  /**
310
- * <p>A list of user groups and entities from an Amazon Cognito user pool identity
311
- * source.</p>
310
+ * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
311
+ * pool identity source.</p>
312
312
  * <p>This data type is part of an <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfigurationItem.html">CognitoUserPoolConfigurationDetail</a> structure and is a response parameter to
313
313
  * <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html">GetIdentitySource</a>.</p>
314
314
  * @public
@@ -322,8 +322,8 @@ export interface CognitoGroupConfigurationDetail {
322
322
  groupEntityType?: string;
323
323
  }
324
324
  /**
325
- * <p>A list of user groups and entities from an Amazon Cognito user pool identity
326
- * source.</p>
325
+ * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
326
+ * pool identity source.</p>
327
327
  * <p>This data type is part of an <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfigurationDetail.html">CognitoUserPoolConfigurationItem</a> structure and is a response parameter to
328
328
  * <a href="http://forums.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>.</p>
329
329
  * @public
@@ -342,7 +342,7 @@ export interface CognitoGroupConfigurationItem {
342
342
  * <p>This data type is used as a field that is part of an <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_Configuration.html">Configuration</a> structure that is
343
343
  * used as a parameter to <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html">CreateIdentitySource</a>.</p>
344
344
  * <p>Example:<code>"CognitoUserPoolConfiguration":\{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds":
345
- * ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}</code>
345
+ * ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": \{"groupEntityType": "MyCorp::Group"\}\}</code>
346
346
  * </p>
347
347
  * @public
348
348
  */
@@ -365,8 +365,8 @@ export interface CognitoUserPoolConfiguration {
365
365
  */
366
366
  clientIds?: string[];
367
367
  /**
368
- * <p>The configuration of the user groups from an Amazon Cognito user pool identity
369
- * source.</p>
368
+ * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
369
+ * pool identity source.</p>
370
370
  * @public
371
371
  */
372
372
  groupConfiguration?: CognitoGroupConfiguration;
@@ -377,7 +377,7 @@ export interface CognitoUserPoolConfiguration {
377
377
  * <p>This data type is used as a field that is part of an <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationDetail.html">ConfigurationDetail</a> structure that is
378
378
  * part of the response to <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html">GetIdentitySource</a>.</p>
379
379
  * <p>Example:<code>"CognitoUserPoolConfiguration":\{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds":
380
- * ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}</code>
380
+ * ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": \{"groupEntityType": "MyCorp::Group"\}\}</code>
381
381
  * </p>
382
382
  * @public
383
383
  */
@@ -409,8 +409,8 @@ export interface CognitoUserPoolConfigurationDetail {
409
409
  */
410
410
  issuer: string | undefined;
411
411
  /**
412
- * <p>The configuration of the user groups from an Amazon Cognito user pool identity
413
- * source.</p>
412
+ * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
413
+ * pool identity source.</p>
414
414
  * @public
415
415
  */
416
416
  groupConfiguration?: CognitoGroupConfigurationDetail;
@@ -421,7 +421,7 @@ export interface CognitoUserPoolConfigurationDetail {
421
421
  * <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_ConfigurationItem.html">ConfigurationItem</a> structure that is
422
422
  * part of the response to <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>.</p>
423
423
  * <p>Example:<code>"CognitoUserPoolConfiguration":\{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds":
424
- * ["a1b2c3d4e5f6g7h8i9j0kalbmc"]\}</code>
424
+ * ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": \{"groupEntityType": "MyCorp::Group"\}\}</code>
425
425
  * </p>
426
426
  * @public
427
427
  */
@@ -453,8 +453,8 @@ export interface CognitoUserPoolConfigurationItem {
453
453
  */
454
454
  issuer: string | undefined;
455
455
  /**
456
- * <p>The configuration of the user groups from an Amazon Cognito user pool identity
457
- * source.</p>
456
+ * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
457
+ * pool identity source.</p>
458
458
  * @public
459
459
  */
460
460
  groupConfiguration?: CognitoGroupConfigurationItem;
@@ -464,7 +464,7 @@ export interface CognitoUserPoolConfigurationItem {
464
464
  * <note>
465
465
  * <p>At this time, the only valid member of this structure is a Amazon Cognito user pool
466
466
  * configuration.</p>
467
- * <p>You must specify a <code>userPoolArn</code>, and optionally, a
467
+ * <p>Specifies a <code>userPoolArn</code>, a <code>groupConfiguration</code>, and a
468
468
  * <code>ClientId</code>.</p>
469
469
  * </note>
470
470
  * <p>This data type is used as a request parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html">CreateIdentitySource</a>
@@ -516,7 +516,8 @@ export type ConfigurationDetail = ConfigurationDetail.CognitoUserPoolConfigurati
516
516
  export declare namespace ConfigurationDetail {
517
517
  /**
518
518
  * <p>Contains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of
519
- * authenticated identities as entities. It specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of a Amazon Cognito user pool
519
+ * authenticated identities as entities. It specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of a Amazon Cognito user pool,
520
+ * the policy store entity that you want to assign to user groups,
520
521
  * and one or more application client IDs.</p>
521
522
  * <p>Example:
522
523
  * <code>"configuration":\{"cognitoUserPoolConfiguration":\{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds":
@@ -554,7 +555,8 @@ export type ConfigurationItem = ConfigurationItem.CognitoUserPoolConfigurationMe
554
555
  export declare namespace ConfigurationItem {
555
556
  /**
556
557
  * <p>Contains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of
557
- * authenticated identities as entities. It specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of a Amazon Cognito user pool
558
+ * authenticated identities as entities. It specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of a Amazon Cognito user pool,
559
+ * the policy store entity that you want to assign to user groups,
558
560
  * and one or more application client IDs.</p>
559
561
  * <p>Example:
560
562
  * <code>"configuration":\{"cognitoUserPoolConfiguration":\{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds":
@@ -848,6 +850,18 @@ export interface CreatePolicyInput {
848
850
  */
849
851
  definition: PolicyDefinition | undefined;
850
852
  }
853
+ /**
854
+ * @public
855
+ * @enum
856
+ */
857
+ export declare const PolicyEffect: {
858
+ readonly FORBID: "Forbid";
859
+ readonly PERMIT: "Permit";
860
+ };
861
+ /**
862
+ * @public
863
+ */
864
+ export type PolicyEffect = (typeof PolicyEffect)[keyof typeof PolicyEffect];
851
865
  /**
852
866
  * @public
853
867
  * @enum
@@ -891,6 +905,13 @@ export interface CreatePolicyOutput {
891
905
  * @public
892
906
  */
893
907
  resource?: EntityIdentifier;
908
+ /**
909
+ * <p>The action that a policy permits or forbids. For example,
910
+ * <code>\{"actions": [\{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"\}, \{"entityID": "SharePhoto",
911
+ * "entityType": "PhotoFlash::Action"\}]\}</code>.</p>
912
+ * @public
913
+ */
914
+ actions?: ActionIdentifier[];
894
915
  /**
895
916
  * <p>The date and time the policy was originally created.</p>
896
917
  * @public
@@ -901,6 +922,12 @@ export interface CreatePolicyOutput {
901
922
  * @public
902
923
  */
903
924
  lastUpdatedDate: Date | undefined;
925
+ /**
926
+ * <p>The effect of the decision that a policy returns to an authorization
927
+ * request. For example, <code>"effect": "Permit"</code>.</p>
928
+ * @public
929
+ */
930
+ effect?: PolicyEffect;
904
931
  }
905
932
  /**
906
933
  * @public
@@ -1452,6 +1479,13 @@ export interface GetPolicyOutput {
1452
1479
  * @public
1453
1480
  */
1454
1481
  resource?: EntityIdentifier;
1482
+ /**
1483
+ * <p>The action that a policy permits or forbids. For example,
1484
+ * <code>\{"actions": [\{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"\}, \{"entityID": "SharePhoto",
1485
+ * "entityType": "PhotoFlash::Action"\}]\}</code>.</p>
1486
+ * @public
1487
+ */
1488
+ actions?: ActionIdentifier[];
1455
1489
  /**
1456
1490
  * <p>The definition of the requested policy.</p>
1457
1491
  * @public
@@ -1467,6 +1501,12 @@ export interface GetPolicyOutput {
1467
1501
  * @public
1468
1502
  */
1469
1503
  lastUpdatedDate: Date | undefined;
1504
+ /**
1505
+ * <p>The effect of the decision that a policy returns to an authorization
1506
+ * request. For example, <code>"effect": "Permit"</code>.</p>
1507
+ * @public
1508
+ */
1509
+ effect?: PolicyEffect;
1470
1510
  }
1471
1511
  /**
1472
1512
  * @public
@@ -1648,7 +1688,7 @@ export interface ListIdentitySourcesInput {
1648
1688
  * <code>NextToken</code> after every operation to ensure that you receive all of the
1649
1689
  * results.</p>
1650
1690
  * <p>If you do not specify this parameter, the operation defaults to 10 identity sources per response.
1651
- * You can specify a maximum of 200 identity sources per response.</p>
1691
+ * You can specify a maximum of 50 identity sources per response.</p>
1652
1692
  * @public
1653
1693
  */
1654
1694
  maxResults?: number;
@@ -1772,7 +1812,7 @@ export interface ListIdentitySourcesOutput {
1772
1812
  identitySources: IdentitySourceItem[] | undefined;
1773
1813
  }
1774
1814
  /**
1775
- * <p>A list of user groups and entities from an Amazon Cognito user pool identity
1815
+ * <p>The user group entities from an Amazon Cognito user pool identity
1776
1816
  * source.</p>
1777
1817
  * @public
1778
1818
  */
@@ -2159,6 +2199,13 @@ export interface PolicyItem {
2159
2199
  * @public
2160
2200
  */
2161
2201
  resource?: EntityIdentifier;
2202
+ /**
2203
+ * <p>The action that a policy permits or forbids. For example,
2204
+ * <code>\{"actions": [\{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"\}, \{"entityID": "SharePhoto",
2205
+ * "entityType": "PhotoFlash::Action"\}]\}</code>.</p>
2206
+ * @public
2207
+ */
2208
+ actions?: ActionIdentifier[];
2162
2209
  /**
2163
2210
  * <p>The policy definition of an item in the list of policies returned.</p>
2164
2211
  * @public
@@ -2174,6 +2221,12 @@ export interface PolicyItem {
2174
2221
  * @public
2175
2222
  */
2176
2223
  lastUpdatedDate: Date | undefined;
2224
+ /**
2225
+ * <p>The effect of the decision that a policy returns to an authorization
2226
+ * request. For example, <code>"effect": "Permit"</code>.</p>
2227
+ * @public
2228
+ */
2229
+ effect?: PolicyEffect;
2177
2230
  }
2178
2231
  /**
2179
2232
  * @public
@@ -2515,6 +2568,13 @@ export interface UpdatePolicyOutput {
2515
2568
  * @public
2516
2569
  */
2517
2570
  resource?: EntityIdentifier;
2571
+ /**
2572
+ * <p>The action that a policy permits or forbids. For example,
2573
+ * <code>\{"actions": [\{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"\}, \{"entityID": "SharePhoto",
2574
+ * "entityType": "PhotoFlash::Action"\}]\}</code>.</p>
2575
+ * @public
2576
+ */
2577
+ actions?: ActionIdentifier[];
2518
2578
  /**
2519
2579
  * <p>The date and time that the policy was originally created.</p>
2520
2580
  * @public
@@ -2525,6 +2585,12 @@ export interface UpdatePolicyOutput {
2525
2585
  * @public
2526
2586
  */
2527
2587
  lastUpdatedDate: Date | undefined;
2588
+ /**
2589
+ * <p>The effect of the decision that a policy returns to an authorization
2590
+ * request. For example, <code>"effect": "Permit"</code>.</p>
2591
+ * @public
2592
+ */
2593
+ effect?: PolicyEffect;
2528
2594
  }
2529
2595
  /**
2530
2596
  * @public
@@ -233,6 +233,11 @@ export interface CreatePolicyInput {
233
233
  policyStoreId: string | undefined;
234
234
  definition: PolicyDefinition | undefined;
235
235
  }
236
+ export declare const PolicyEffect: {
237
+ readonly FORBID: "Forbid";
238
+ readonly PERMIT: "Permit";
239
+ };
240
+ export type PolicyEffect = (typeof PolicyEffect)[keyof typeof PolicyEffect];
236
241
  export declare const PolicyType: {
237
242
  readonly STATIC: "STATIC";
238
243
  readonly TEMPLATE_LINKED: "TEMPLATE_LINKED";
@@ -244,8 +249,10 @@ export interface CreatePolicyOutput {
244
249
  policyType: PolicyType | undefined;
245
250
  principal?: EntityIdentifier;
246
251
  resource?: EntityIdentifier;
252
+ actions?: ActionIdentifier[];
247
253
  createdDate: Date | undefined;
248
254
  lastUpdatedDate: Date | undefined;
255
+ effect?: PolicyEffect;
249
256
  }
250
257
  export declare const ValidationMode: {
251
258
  readonly OFF: "OFF";
@@ -394,9 +401,11 @@ export interface GetPolicyOutput {
394
401
  policyType: PolicyType | undefined;
395
402
  principal?: EntityIdentifier;
396
403
  resource?: EntityIdentifier;
404
+ actions?: ActionIdentifier[];
397
405
  definition: PolicyDefinitionDetail | undefined;
398
406
  createdDate: Date | undefined;
399
407
  lastUpdatedDate: Date | undefined;
408
+ effect?: PolicyEffect;
400
409
  }
401
410
  export interface GetPolicyStoreInput {
402
411
  policyStoreId: string | undefined;
@@ -563,9 +572,11 @@ export interface PolicyItem {
563
572
  policyType: PolicyType | undefined;
564
573
  principal?: EntityIdentifier;
565
574
  resource?: EntityIdentifier;
575
+ actions?: ActionIdentifier[];
566
576
  definition: PolicyDefinitionItem | undefined;
567
577
  createdDate: Date | undefined;
568
578
  lastUpdatedDate: Date | undefined;
579
+ effect?: PolicyEffect;
569
580
  }
570
581
  export interface ListPoliciesOutput {
571
582
  nextToken?: string;
@@ -635,8 +646,10 @@ export interface UpdatePolicyOutput {
635
646
  policyType: PolicyType | undefined;
636
647
  principal?: EntityIdentifier;
637
648
  resource?: EntityIdentifier;
649
+ actions?: ActionIdentifier[];
638
650
  createdDate: Date | undefined;
639
651
  lastUpdatedDate: Date | undefined;
652
+ effect?: PolicyEffect;
640
653
  }
641
654
  export interface UpdatePolicyTemplateInput {
642
655
  policyStoreId: string | undefined;
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.572.0",
4
+ "version": "3.573.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-verifiedpermissions",