@aws-sdk/client-verifiedpermissions 3.799.0 → 3.803.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.
Files changed (54) hide show
  1. package/README.md +25 -65
  2. package/dist-cjs/index.js +158 -0
  3. package/dist-es/VerifiedPermissions.js +6 -0
  4. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  5. package/dist-es/commands/TagResourceCommand.js +22 -0
  6. package/dist-es/commands/UntagResourceCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +18 -0
  9. package/dist-es/protocols/Aws_json1_0.js +73 -1
  10. package/dist-types/VerifiedPermissions.d.ts +22 -65
  11. package/dist-types/VerifiedPermissionsClient.d.ts +6 -67
  12. package/dist-types/commands/BatchGetPolicyCommand.d.ts +2 -88
  13. package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +2 -103
  14. package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +2 -101
  15. package/dist-types/commands/CreateIdentitySourceCommand.d.ts +3 -121
  16. package/dist-types/commands/CreatePolicyCommand.d.ts +3 -111
  17. package/dist-types/commands/CreatePolicyStoreCommand.d.ts +6 -95
  18. package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +3 -97
  19. package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +3 -88
  20. package/dist-types/commands/DeletePolicyCommand.d.ts +3 -87
  21. package/dist-types/commands/DeletePolicyStoreCommand.d.ts +2 -85
  22. package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +3 -90
  23. package/dist-types/commands/GetIdentitySourceCommand.d.ts +1 -82
  24. package/dist-types/commands/GetPolicyCommand.d.ts +1 -82
  25. package/dist-types/commands/GetPolicyStoreCommand.d.ts +6 -82
  26. package/dist-types/commands/GetPolicyTemplateCommand.d.ts +1 -82
  27. package/dist-types/commands/GetSchemaCommand.d.ts +1 -82
  28. package/dist-types/commands/IsAuthorizedCommand.d.ts +2 -88
  29. package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +2 -96
  30. package/dist-types/commands/ListIdentitySourcesCommand.d.ts +1 -82
  31. package/dist-types/commands/ListPoliciesCommand.d.ts +1 -82
  32. package/dist-types/commands/ListPolicyStoresCommand.d.ts +1 -82
  33. package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +1 -82
  34. package/dist-types/commands/ListTagsForResourceCommand.d.ts +107 -0
  35. package/dist-types/commands/PutSchemaCommand.d.ts +3 -95
  36. package/dist-types/commands/TagResourceCommand.d.ts +108 -0
  37. package/dist-types/commands/UntagResourceCommand.d.ts +105 -0
  38. package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +3 -92
  39. package/dist-types/commands/UpdatePolicyCommand.d.ts +3 -135
  40. package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +3 -91
  41. package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +3 -97
  42. package/dist-types/commands/index.d.ts +3 -0
  43. package/dist-types/index.d.ts +1 -65
  44. package/dist-types/models/models_0.d.ts +385 -1235
  45. package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
  46. package/dist-types/ts3.4/VerifiedPermissions.d.ts +51 -0
  47. package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +18 -0
  48. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  50. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  52. package/dist-types/ts3.4/models/models_0.d.ts +33 -0
  53. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  54. package/package.json +4 -4
package/README.md CHANGED
@@ -6,71 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript VerifiedPermissions Client for Node.js, Browser and React Native.
8
8
 
9
- <p>Amazon Verified Permissions is a permissions management service from Amazon Web Services. You can use Verified Permissions to manage
10
- permissions for your application, and authorize user access based on those permissions.
11
- Using Verified Permissions, application developers can grant access based on information about the
12
- users, resources, and requested actions. You can also evaluate additional information
13
- like group membership, attributes of the resources, and session context, such as time of
14
- request and IP addresses. Verified Permissions manages these permissions by letting you create and
15
- store authorization policies for your applications, such as consumer-facing web sites
16
- and enterprise business systems.</p>
17
- <p>Verified Permissions uses Cedar as the policy language to express your permission requirements.
18
- Cedar supports both role-based access control (RBAC) and attribute-based access
19
- control (ABAC) authorization models.</p>
20
- <p>For more information about configuring, administering, and using Amazon Verified Permissions in your
21
- applications, see the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/">Amazon Verified Permissions User Guide</a>.</p>
22
- <p>For more information about the Cedar policy language, see the <a href="https://docs.cedarpolicy.com/">Cedar Policy Language Guide</a>.</p>
23
- <important>
24
- <p>When you write Cedar policies that reference principals, resources and actions,
25
- you can define the unique identifiers used for each of those elements. We strongly
26
- recommend that you follow these best practices:</p>
27
- <ul>
28
- <li>
29
- <p>
30
- <b>Use values like universally unique identifiers
31
- (UUIDs) for all principal and resource identifiers.</b>
32
- </p>
33
- <p>For example, if user <code>jane</code> leaves the company, and you later
34
- let someone else use the name <code>jane</code>, then that new user
35
- automatically gets access to everything granted by policies that still
36
- reference <code>User::"jane"</code>. Cedar can’t distinguish between the
37
- new user and the old. This applies to both principal and resource
38
- identifiers. Always use identifiers that are guaranteed unique and never
39
- reused to ensure that you don’t unintentionally grant access because of the
40
- presence of an old identifier in a policy.</p>
41
- <p>Where you use a UUID for an entity, we recommend that you follow it with
42
- the // comment specifier and the ‘friendly’ name of your entity. This helps
43
- to make your policies easier to understand. For example: principal ==
44
- User::"a1b2c3d4-e5f6-a1b2-c3d4-EXAMPLE11111", // alice</p>
45
- </li>
46
- <li>
47
- <p>
48
- <b>Do not include personally identifying, confidential,
49
- or sensitive information as part of the unique identifier for your
50
- principals or resources.</b> These identifiers are included in
51
- log entries shared in CloudTrail trails.</p>
52
- </li>
53
- </ul>
54
- </important>
55
- <p>Several operations return structures that appear similar, but have different purposes.
56
- As new functionality is added to the product, the structure used in a parameter of one
57
- operation might need to change in a way that wouldn't make sense for the same parameter
58
- in a different operation. To help you understand the purpose of each, the following
59
- naming convention is used for the structures:</p>
60
- <ul>
61
- <li>
62
- <p>Parameter type structures that end in <code>Detail</code> are used in
63
- <code>Get</code> operations.</p>
64
- </li>
65
- <li>
66
- <p>Parameter type structures that end in <code>Item</code> are used in
67
- <code>List</code> operations.</p>
68
- </li>
69
- <li>
70
- <p>Parameter type structures that use neither suffix are used in the mutating
71
- (create and update) operations.</p>
72
- </li>
73
- </ul>
9
+ <p>Amazon Verified Permissions is a permissions management service from Amazon Web Services. You can use Verified Permissions to manage permissions for your application, and authorize user access based on those permissions. Using Verified Permissions, application developers can grant access based on information about the users, resources, and requested actions. You can also evaluate additional information like group membership, attributes of the resources, and session context, such as time of request and IP addresses. Verified Permissions manages these permissions by letting you create and store authorization policies for your applications, such as consumer-facing web sites and enterprise business systems.</p> <p>Verified Permissions uses Cedar as the policy language to express your permission requirements. Cedar supports both role-based access control (RBAC) and attribute-based access control (ABAC) authorization models.</p> <p>For more information about configuring, administering, and using Amazon Verified Permissions in your applications, see the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/">Amazon Verified Permissions User Guide</a>.</p> <p>For more information about the Cedar policy language, see the <a href="https://docs.cedarpolicy.com/">Cedar Policy Language Guide</a>.</p> <important> <p>When you write Cedar policies that reference principals, resources and actions, you can define the unique identifiers used for each of those elements. We strongly recommend that you follow these best practices:</p> <ul> <li> <p> <b>Use values like universally unique identifiers (UUIDs) for all principal and resource identifiers.</b> </p> <p>For example, if user <code>jane</code> leaves the company, and you later let someone else use the name <code>jane</code>, then that new user automatically gets access to everything granted by policies that still reference <code>User::"jane"</code>. Cedar can’t distinguish between the new user and the old. This applies to both principal and resource identifiers. Always use identifiers that are guaranteed unique and never reused to ensure that you don’t unintentionally grant access because of the presence of an old identifier in a policy.</p> <p>Where you use a UUID for an entity, we recommend that you follow it with the // comment specifier and the ‘friendly’ name of your entity. This helps to make your policies easier to understand. For example: principal == User::"a1b2c3d4-e5f6-a1b2-c3d4-EXAMPLE11111", // alice</p> </li> <li> <p> <b>Do not include personally identifying, confidential, or sensitive information as part of the unique identifier for your principals or resources.</b> These identifiers are included in log entries shared in CloudTrail trails.</p> </li> </ul> </important> <p>Several operations return structures that appear similar, but have different purposes. As new functionality is added to the product, the structure used in a parameter of one operation might need to change in a way that wouldn't make sense for the same parameter in a different operation. To help you understand the purpose of each, the following naming convention is used for the structures:</p> <ul> <li> <p>Parameter type structures that end in <code>Detail</code> are used in <code>Get</code> operations.</p> </li> <li> <p>Parameter type structures that end in <code>Item</code> are used in <code>List</code> operations.</p> </li> <li> <p>Parameter type structures that use neither suffix are used in the mutating (create and update) operations.</p> </li> </ul>
74
10
 
75
11
  ## Installing
76
12
 
@@ -442,6 +378,14 @@ ListPolicyTemplates
442
378
 
443
379
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/ListPolicyTemplatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/ListPolicyTemplatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/ListPolicyTemplatesCommandOutput/)
444
380
 
381
+ </details>
382
+ <details>
383
+ <summary>
384
+ ListTagsForResource
385
+ </summary>
386
+
387
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/ListTagsForResourceCommandOutput/)
388
+
445
389
  </details>
446
390
  <details>
447
391
  <summary>
@@ -450,6 +394,22 @@ PutSchema
450
394
 
451
395
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/PutSchemaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/PutSchemaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/PutSchemaCommandOutput/)
452
396
 
397
+ </details>
398
+ <details>
399
+ <summary>
400
+ TagResource
401
+ </summary>
402
+
403
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/TagResourceCommandOutput/)
404
+
405
+ </details>
406
+ <details>
407
+ <summary>
408
+ UntagResource
409
+ </summary>
410
+
411
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/UntagResourceCommandOutput/)
412
+
453
413
  </details>
454
414
  <details>
455
415
  <summary>
package/dist-cjs/index.js CHANGED
@@ -39,6 +39,7 @@ __export(index_exports, {
39
39
  BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog: () => BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog,
40
40
  BatchIsAuthorizedWithTokenOutputFilterSensitiveLog: () => BatchIsAuthorizedWithTokenOutputFilterSensitiveLog,
41
41
  BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog: () => BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog,
42
+ CedarVersion: () => CedarVersion,
42
43
  CognitoGroupConfigurationDetailFilterSensitiveLog: () => CognitoGroupConfigurationDetailFilterSensitiveLog,
43
44
  CognitoGroupConfigurationFilterSensitiveLog: () => CognitoGroupConfigurationFilterSensitiveLog,
44
45
  CognitoGroupConfigurationItemFilterSensitiveLog: () => CognitoGroupConfigurationItemFilterSensitiveLog,
@@ -108,6 +109,7 @@ __export(index_exports, {
108
109
  ListPolicyStoresOutputFilterSensitiveLog: () => ListPolicyStoresOutputFilterSensitiveLog,
109
110
  ListPolicyTemplatesCommand: () => ListPolicyTemplatesCommand,
110
111
  ListPolicyTemplatesOutputFilterSensitiveLog: () => ListPolicyTemplatesOutputFilterSensitiveLog,
112
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
111
113
  OpenIdConnectAccessTokenConfigurationDetailFilterSensitiveLog: () => OpenIdConnectAccessTokenConfigurationDetailFilterSensitiveLog,
112
114
  OpenIdConnectAccessTokenConfigurationFilterSensitiveLog: () => OpenIdConnectAccessTokenConfigurationFilterSensitiveLog,
113
115
  OpenIdConnectAccessTokenConfigurationItemFilterSensitiveLog: () => OpenIdConnectAccessTokenConfigurationItemFilterSensitiveLog,
@@ -150,10 +152,13 @@ __export(index_exports, {
150
152
  StaticPolicyDefinitionDetailFilterSensitiveLog: () => StaticPolicyDefinitionDetailFilterSensitiveLog,
151
153
  StaticPolicyDefinitionFilterSensitiveLog: () => StaticPolicyDefinitionFilterSensitiveLog,
152
154
  StaticPolicyDefinitionItemFilterSensitiveLog: () => StaticPolicyDefinitionItemFilterSensitiveLog,
155
+ TagResourceCommand: () => TagResourceCommand,
153
156
  TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog,
154
157
  TemplateLinkedPolicyDefinitionFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionFilterSensitiveLog,
155
158
  TemplateLinkedPolicyDefinitionItemFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionItemFilterSensitiveLog,
156
159
  ThrottlingException: () => ThrottlingException,
160
+ TooManyTagsException: () => TooManyTagsException,
161
+ UntagResourceCommand: () => UntagResourceCommand,
157
162
  UpdateCognitoGroupConfigurationFilterSensitiveLog: () => UpdateCognitoGroupConfigurationFilterSensitiveLog,
158
163
  UpdateCognitoUserPoolConfigurationFilterSensitiveLog: () => UpdateCognitoUserPoolConfigurationFilterSensitiveLog,
159
164
  UpdateConfiguration: () => UpdateConfiguration,
@@ -508,6 +513,10 @@ var ResourceNotFoundException = class _ResourceNotFoundException extends Verifie
508
513
  this.resourceType = opts.resourceType;
509
514
  }
510
515
  };
516
+ var CedarVersion = {
517
+ CEDAR_2: "CEDAR_2",
518
+ CEDAR_4: "CEDAR_4"
519
+ };
511
520
  var OpenIdConnectTokenSelection;
512
521
  ((OpenIdConnectTokenSelection3) => {
513
522
  OpenIdConnectTokenSelection3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -717,6 +726,30 @@ var SchemaDefinition;
717
726
  return visitor._(value.$unknown[0], value.$unknown[1]);
718
727
  }, "visit");
719
728
  })(SchemaDefinition || (SchemaDefinition = {}));
729
+ var TooManyTagsException = class _TooManyTagsException extends VerifiedPermissionsServiceException {
730
+ static {
731
+ __name(this, "TooManyTagsException");
732
+ }
733
+ name = "TooManyTagsException";
734
+ $fault = "client";
735
+ /**
736
+ * An Amazon Resource Name (ARN) uniquely identifies an AWS resource.
737
+ * @public
738
+ */
739
+ resourceName;
740
+ /**
741
+ * @internal
742
+ */
743
+ constructor(opts) {
744
+ super({
745
+ name: "TooManyTagsException",
746
+ $fault: "client",
747
+ ...opts
748
+ });
749
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
750
+ this.resourceName = opts.resourceName;
751
+ }
752
+ };
720
753
  var AttributeValue;
721
754
  ((AttributeValue2) => {
722
755
  AttributeValue2.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1452,12 +1485,30 @@ var se_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (input, context
1452
1485
  body = JSON.stringify((0, import_smithy_client._json)(input));
1453
1486
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1454
1487
  }, "se_ListPolicyTemplatesCommand");
1488
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1489
+ const headers = sharedHeaders("ListTagsForResource");
1490
+ let body;
1491
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1492
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1493
+ }, "se_ListTagsForResourceCommand");
1455
1494
  var se_PutSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
1456
1495
  const headers = sharedHeaders("PutSchema");
1457
1496
  let body;
1458
1497
  body = JSON.stringify((0, import_smithy_client._json)(input));
1459
1498
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1460
1499
  }, "se_PutSchemaCommand");
1500
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1501
+ const headers = sharedHeaders("TagResource");
1502
+ let body;
1503
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1504
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1505
+ }, "se_TagResourceCommand");
1506
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1507
+ const headers = sharedHeaders("UntagResource");
1508
+ let body;
1509
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1510
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1511
+ }, "se_UntagResourceCommand");
1461
1512
  var se_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1462
1513
  const headers = sharedHeaders("UpdateIdentitySource");
1463
1514
  let body;
@@ -1768,6 +1819,19 @@ var de_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (output, contex
1768
1819
  };
1769
1820
  return response;
1770
1821
  }, "de_ListPolicyTemplatesCommand");
1822
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1823
+ if (output.statusCode >= 300) {
1824
+ return de_CommandError(output, context);
1825
+ }
1826
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1827
+ let contents = {};
1828
+ contents = (0, import_smithy_client._json)(data);
1829
+ const response = {
1830
+ $metadata: deserializeMetadata(output),
1831
+ ...contents
1832
+ };
1833
+ return response;
1834
+ }, "de_ListTagsForResourceCommand");
1771
1835
  var de_PutSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1772
1836
  if (output.statusCode >= 300) {
1773
1837
  return de_CommandError(output, context);
@@ -1781,6 +1845,32 @@ var de_PutSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1781
1845
  };
1782
1846
  return response;
1783
1847
  }, "de_PutSchemaCommand");
1848
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1849
+ if (output.statusCode >= 300) {
1850
+ return de_CommandError(output, context);
1851
+ }
1852
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1853
+ let contents = {};
1854
+ contents = (0, import_smithy_client._json)(data);
1855
+ const response = {
1856
+ $metadata: deserializeMetadata(output),
1857
+ ...contents
1858
+ };
1859
+ return response;
1860
+ }, "de_TagResourceCommand");
1861
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1862
+ if (output.statusCode >= 300) {
1863
+ return de_CommandError(output, context);
1864
+ }
1865
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1866
+ let contents = {};
1867
+ contents = (0, import_smithy_client._json)(data);
1868
+ const response = {
1869
+ $metadata: deserializeMetadata(output),
1870
+ ...contents
1871
+ };
1872
+ return response;
1873
+ }, "de_UntagResourceCommand");
1784
1874
  var de_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1785
1875
  if (output.statusCode >= 300) {
1786
1876
  return de_CommandError(output, context);
@@ -1864,6 +1954,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1864
1954
  case "InvalidStateException":
1865
1955
  case "com.amazonaws.verifiedpermissions#InvalidStateException":
1866
1956
  throw await de_InvalidStateExceptionRes(parsedOutput, context);
1957
+ case "TooManyTagsException":
1958
+ case "com.amazonaws.verifiedpermissions#TooManyTagsException":
1959
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1867
1960
  default:
1868
1961
  const parsedBody = parsedOutput.body;
1869
1962
  return throwDefaultError({
@@ -1936,6 +2029,15 @@ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
1936
2029
  });
1937
2030
  return (0, import_smithy_client.decorateServiceException)(exception, body);
1938
2031
  }, "de_ThrottlingExceptionRes");
2032
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2033
+ const body = parsedOutput.body;
2034
+ const deserialized = (0, import_smithy_client._json)(body);
2035
+ const exception = new TooManyTagsException({
2036
+ $metadata: deserializeMetadata(parsedOutput),
2037
+ ...deserialized
2038
+ });
2039
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2040
+ }, "de_TooManyTagsExceptionRes");
1939
2041
  var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1940
2042
  const body = parsedOutput.body;
1941
2043
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2035,6 +2137,7 @@ var se_CreatePolicyStoreInput = /* @__PURE__ */ __name((input, context) => {
2035
2137
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2036
2138
  deletionProtection: [],
2037
2139
  description: [],
2140
+ tags: import_smithy_client._json,
2038
2141
  validationSettings: import_smithy_client._json
2039
2142
  });
2040
2143
  }, "se_CreatePolicyStoreInput");
@@ -2303,11 +2406,13 @@ var de_GetPolicyOutput = /* @__PURE__ */ __name((output, context) => {
2303
2406
  var de_GetPolicyStoreOutput = /* @__PURE__ */ __name((output, context) => {
2304
2407
  return (0, import_smithy_client.take)(output, {
2305
2408
  arn: import_smithy_client.expectString,
2409
+ cedarVersion: import_smithy_client.expectString,
2306
2410
  createdDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdDate"),
2307
2411
  deletionProtection: import_smithy_client.expectString,
2308
2412
  description: import_smithy_client.expectString,
2309
2413
  lastUpdatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedDate"),
2310
2414
  policyStoreId: import_smithy_client.expectString,
2415
+ tags: import_smithy_client._json,
2311
2416
  validationSettings: import_smithy_client._json
2312
2417
  });
2313
2418
  }, "de_GetPolicyStoreOutput");
@@ -2841,6 +2946,21 @@ var ListPolicyTemplatesCommand = class extends import_smithy_client.Command.clas
2841
2946
  }
2842
2947
  };
2843
2948
 
2949
+ // src/commands/ListTagsForResourceCommand.ts
2950
+
2951
+
2952
+
2953
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2954
+ return [
2955
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2956
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2957
+ ];
2958
+ }).s("VerifiedPermissions", "ListTagsForResource", {}).n("VerifiedPermissionsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2959
+ static {
2960
+ __name(this, "ListTagsForResourceCommand");
2961
+ }
2962
+ };
2963
+
2844
2964
  // src/commands/PutSchemaCommand.ts
2845
2965
 
2846
2966
 
@@ -2856,6 +2976,36 @@ var PutSchemaCommand = class extends import_smithy_client.Command.classBuilder()
2856
2976
  }
2857
2977
  };
2858
2978
 
2979
+ // src/commands/TagResourceCommand.ts
2980
+
2981
+
2982
+
2983
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2984
+ return [
2985
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2986
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2987
+ ];
2988
+ }).s("VerifiedPermissions", "TagResource", {}).n("VerifiedPermissionsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2989
+ static {
2990
+ __name(this, "TagResourceCommand");
2991
+ }
2992
+ };
2993
+
2994
+ // src/commands/UntagResourceCommand.ts
2995
+
2996
+
2997
+
2998
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2999
+ return [
3000
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3001
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3002
+ ];
3003
+ }).s("VerifiedPermissions", "UntagResource", {}).n("VerifiedPermissionsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3004
+ static {
3005
+ __name(this, "UntagResourceCommand");
3006
+ }
3007
+ };
3008
+
2859
3009
  // src/commands/UpdateIdentitySourceCommand.ts
2860
3010
 
2861
3011
 
@@ -2940,7 +3090,10 @@ var commands = {
2940
3090
  ListPoliciesCommand,
2941
3091
  ListPolicyStoresCommand,
2942
3092
  ListPolicyTemplatesCommand,
3093
+ ListTagsForResourceCommand,
2943
3094
  PutSchemaCommand,
3095
+ TagResourceCommand,
3096
+ UntagResourceCommand,
2944
3097
  UpdateIdentitySourceCommand,
2945
3098
  UpdatePolicyCommand,
2946
3099
  UpdatePolicyStoreCommand,
@@ -2998,7 +3151,10 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
2998
3151
  ListPoliciesCommand,
2999
3152
  ListPolicyStoresCommand,
3000
3153
  ListPolicyTemplatesCommand,
3154
+ ListTagsForResourceCommand,
3001
3155
  PutSchemaCommand,
3156
+ TagResourceCommand,
3157
+ UntagResourceCommand,
3002
3158
  UpdateIdentitySourceCommand,
3003
3159
  UpdatePolicyCommand,
3004
3160
  UpdatePolicyStoreCommand,
@@ -3017,6 +3173,7 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
3017
3173
  Decision,
3018
3174
  ResourceType,
3019
3175
  ResourceNotFoundException,
3176
+ CedarVersion,
3020
3177
  OpenIdConnectTokenSelection,
3021
3178
  Configuration,
3022
3179
  OpenIdConnectTokenSelectionDetail,
@@ -3037,6 +3194,7 @@ var paginateListPolicyTemplates = (0, import_core.createPaginator)(VerifiedPermi
3037
3194
  PolicyDefinitionItem,
3038
3195
  UpdatePolicyDefinition,
3039
3196
  SchemaDefinition,
3197
+ TooManyTagsException,
3040
3198
  AttributeValue,
3041
3199
  ContextDefinition,
3042
3200
  EntitiesDefinition,
@@ -21,7 +21,10 @@ import { ListIdentitySourcesCommand, } from "./commands/ListIdentitySourcesComma
21
21
  import { ListPoliciesCommand, } from "./commands/ListPoliciesCommand";
22
22
  import { ListPolicyStoresCommand, } from "./commands/ListPolicyStoresCommand";
23
23
  import { ListPolicyTemplatesCommand, } from "./commands/ListPolicyTemplatesCommand";
24
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
24
25
  import { PutSchemaCommand } from "./commands/PutSchemaCommand";
26
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
27
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
25
28
  import { UpdateIdentitySourceCommand, } from "./commands/UpdateIdentitySourceCommand";
26
29
  import { UpdatePolicyCommand, } from "./commands/UpdatePolicyCommand";
27
30
  import { UpdatePolicyStoreCommand, } from "./commands/UpdatePolicyStoreCommand";
@@ -50,7 +53,10 @@ const commands = {
50
53
  ListPoliciesCommand,
51
54
  ListPolicyStoresCommand,
52
55
  ListPolicyTemplatesCommand,
56
+ ListTagsForResourceCommand,
53
57
  PutSchemaCommand,
58
+ TagResourceCommand,
59
+ UntagResourceCommand,
54
60
  UpdateIdentitySourceCommand,
55
61
  UpdatePolicyCommand,
56
62
  UpdatePolicyStoreCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("VerifiedPermissions", "ListTagsForResource", {})
17
+ .n("VerifiedPermissionsClient", "ListTagsForResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListTagsForResourceCommand)
20
+ .de(de_ListTagsForResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("VerifiedPermissions", "TagResource", {})
17
+ .n("VerifiedPermissionsClient", "TagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_TagResourceCommand)
20
+ .de(de_TagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("VerifiedPermissions", "UntagResource", {})
17
+ .n("VerifiedPermissionsClient", "UntagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UntagResourceCommand)
20
+ .de(de_UntagResourceCommand)
21
+ .build() {
22
+ }
@@ -20,7 +20,10 @@ export * from "./ListIdentitySourcesCommand";
20
20
  export * from "./ListPoliciesCommand";
21
21
  export * from "./ListPolicyStoresCommand";
22
22
  export * from "./ListPolicyTemplatesCommand";
23
+ export * from "./ListTagsForResourceCommand";
23
24
  export * from "./PutSchemaCommand";
25
+ export * from "./TagResourceCommand";
26
+ export * from "./UntagResourceCommand";
24
27
  export * from "./UpdateIdentitySourceCommand";
25
28
  export * from "./UpdatePolicyCommand";
26
29
  export * from "./UpdatePolicyStoreCommand";
@@ -103,6 +103,10 @@ export class ResourceNotFoundException extends __BaseException {
103
103
  this.resourceType = opts.resourceType;
104
104
  }
105
105
  }
106
+ export const CedarVersion = {
107
+ CEDAR_2: "CEDAR_2",
108
+ CEDAR_4: "CEDAR_4",
109
+ };
106
110
  export var OpenIdConnectTokenSelection;
107
111
  (function (OpenIdConnectTokenSelection) {
108
112
  OpenIdConnectTokenSelection.visit = (value, visitor) => {
@@ -290,6 +294,20 @@ export var SchemaDefinition;
290
294
  return visitor._(value.$unknown[0], value.$unknown[1]);
291
295
  };
292
296
  })(SchemaDefinition || (SchemaDefinition = {}));
297
+ export class TooManyTagsException extends __BaseException {
298
+ name = "TooManyTagsException";
299
+ $fault = "client";
300
+ resourceName;
301
+ constructor(opts) {
302
+ super({
303
+ name: "TooManyTagsException",
304
+ $fault: "client",
305
+ ...opts,
306
+ });
307
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
308
+ this.resourceName = opts.resourceName;
309
+ }
310
+ }
293
311
  export var AttributeValue;
294
312
  (function (AttributeValue) {
295
313
  AttributeValue.visit = (value, visitor) => {