@aws-sdk/client-verifiedpermissions 3.1051.0 → 3.1052.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
@@ -614,6 +614,10 @@ const ValidationMode = {
614
614
  OFF: "OFF",
615
615
  STRICT: "STRICT",
616
616
  };
617
+ const DeletionMode = {
618
+ HARD_DELETE: "HardDelete",
619
+ SOFT_DELETE: "SoftDelete",
620
+ };
617
621
  const OpenIdIssuer = {
618
622
  COGNITO: "COGNITO",
619
623
  };
@@ -638,6 +642,7 @@ exports.DeletePolicyCommand = DeletePolicyCommand;
638
642
  exports.DeletePolicyStoreAliasCommand = DeletePolicyStoreAliasCommand;
639
643
  exports.DeletePolicyStoreCommand = DeletePolicyStoreCommand;
640
644
  exports.DeletePolicyTemplateCommand = DeletePolicyTemplateCommand;
645
+ exports.DeletionMode = DeletionMode;
641
646
  exports.DeletionProtection = DeletionProtection;
642
647
  exports.GetIdentitySourceCommand = GetIdentitySourceCommand;
643
648
  exports.GetPolicyCommand = GetPolicyCommand;
@@ -271,6 +271,7 @@ const _co = "code";
271
271
  const _con = "context";
272
272
  const _conf = "configuration";
273
273
  const _d = "definition";
274
+ const _dM = "deletionMode";
274
275
  const _dP = "determiningPolicies";
275
276
  const _dPe = "deletionProtection";
276
277
  const _dU = "discoveryUrl";
@@ -624,8 +625,8 @@ exports.DeletePolicyOutput$ = [3, n0, _DPO,
624
625
  ];
625
626
  exports.DeletePolicyStoreAliasInput$ = [3, n0, _DPSAI,
626
627
  0,
627
- [_aN],
628
- [0], 1
628
+ [_aN, _dM],
629
+ [0, 0], 1
629
630
  ];
630
631
  exports.DeletePolicyStoreAliasOutput$ = [3, n0, _DPSAO,
631
632
  0,
@@ -39,6 +39,10 @@ export const ValidationMode = {
39
39
  OFF: "OFF",
40
40
  STRICT: "STRICT",
41
41
  };
42
+ export const DeletionMode = {
43
+ HARD_DELETE: "HardDelete",
44
+ SOFT_DELETE: "SoftDelete",
45
+ };
42
46
  export const OpenIdIssuer = {
43
47
  COGNITO: "COGNITO",
44
48
  };
@@ -265,6 +265,7 @@ const _co = "code";
265
265
  const _con = "context";
266
266
  const _conf = "configuration";
267
267
  const _d = "definition";
268
+ const _dM = "deletionMode";
268
269
  const _dP = "determiningPolicies";
269
270
  const _dPe = "deletionProtection";
270
271
  const _dU = "discoveryUrl";
@@ -618,8 +619,8 @@ export var DeletePolicyOutput$ = [3, n0, _DPO,
618
619
  ];
619
620
  export var DeletePolicyStoreAliasInput$ = [3, n0, _DPSAI,
620
621
  0,
621
- [_aN],
622
- [0], 1
622
+ [_aN, _dM],
623
+ [0, 0], 1
623
624
  ];
624
625
  export var DeletePolicyStoreAliasOutput$ = [3, n0, _DPSAO,
625
626
  0,
@@ -29,7 +29,7 @@ declare const CreatePolicyStoreCommand_base: {
29
29
  };
30
30
  };
31
31
  /**
32
- * <p>Creates a policy store. A policy store is a container for policy resources.</p> <note> <p>Although <a href="https://docs.cedarpolicy.com/schema/schema.html#namespace">Cedar supports multiple namespaces</a>, Verified Permissions currently supports only one namespace per policy store.</p> </note> <note> <p>Verified Permissions is <i> <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a> </i>. It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.</p> </note>
32
+ * <p>Creates a policy store. A policy store is a container for policy resources.</p> <note> <p>As of May 2026, Verified Permissions has aligned with Cedar and now supports multiple namespaces.</p> </note> <note> <p>Verified Permissions is <i> <a href="https://wikipedia.org/wiki/Eventual_consistency">eventually consistent</a> </i>. It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.</p> </note>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
35
35
  * ```javascript
@@ -29,7 +29,7 @@ declare const DeletePolicyStoreAliasCommand_base: {
29
29
  };
30
30
  };
31
31
  /**
32
- * <p>Deletes the specified policy store alias.</p> <p>This operation is idempotent. If you specify a policy store alias that does not exist, the request response will still return a successful HTTP 200 status code.</p> <p>When a policy store alias is deleted, it enters the <code>PendingDeletion</code> state. When a policy store alias is in the <code>PendingDeletion</code> state, new policy store aliases cannot be created with the same name. If the policy store alias is used in an API that has a <code>policyStoreId</code> field, the operation will fail with a <code>ResourceNotFound</code> exception.</p>
32
+ * <p>Deletes the specified policy store alias.</p> <p>This operation is idempotent. If you specify a policy store alias that does not exist, the request response will still return a successful HTTP 200 status code.</p> <p>By default, when a policy store alias is deleted, it enters the <code>PendingDeletion</code> state. When a policy store alias is in the <code>PendingDeletion</code> state, new policy store aliases cannot be created with the same name. If the policy store alias is used in an API that has a <code>policyStoreId</code> field, the operation will fail with a <code>ResourceNotFound</code> exception.</p> <p>To immediately delete a policy store alias and bypass the <code>PendingDeletion</code> state, set the <code>deletionMode</code> parameter to <code>HardDelete</code>.</p> <important> <p>Verified Permissions is eventually consistent. If you hard delete a policy store alias and then immediately recreate it to be associated with a different policy store, requests that reference this alias may continue to be evaluated against the previously associated policy store for a short period of time.</p> </important>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
35
35
  * ```javascript
@@ -40,6 +40,7 @@ declare const DeletePolicyStoreAliasCommand_base: {
40
40
  * const client = new VerifiedPermissionsClient(config);
41
41
  * const input = { // DeletePolicyStoreAliasInput
42
42
  * aliasName: "STRING_VALUE", // required
43
+ * deletionMode: "SoftDelete" || "HardDelete",
43
44
  * };
44
45
  * const command = new DeletePolicyStoreAliasCommand(input);
45
46
  * const response = await client.send(command);
@@ -72,9 +73,9 @@ declare const DeletePolicyStoreAliasCommand_base: {
72
73
  * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
73
74
  *
74
75
  *
75
- * @example DeletePolicyStoreAlias
76
+ * @example Soft delete a policy store alias
76
77
  * ```javascript
77
- * // The following example deletes the policy store alias with name example-policy-store.
78
+ * // The following example soft deletes the policy store alias with name example-policy-store. The alias enters the PendingDeletion state.
78
79
  * const input = {
79
80
  * aliasName: "policy-store-alias/example-policy-store"
80
81
  * };
@@ -85,6 +86,20 @@ declare const DeletePolicyStoreAliasCommand_base: {
85
86
  * *\/
86
87
  * ```
87
88
  *
89
+ * @example Hard delete a policy store alias
90
+ * ```javascript
91
+ * // The following example hard deletes the policy store alias with name example-policy-store. The alias is immediately deleted, bypassing the PendingDeletion state.
92
+ * const input = {
93
+ * aliasName: "policy-store-alias/example-policy-store",
94
+ * deletionMode: "HardDelete"
95
+ * };
96
+ * const command = new DeletePolicyStoreAliasCommand(input);
97
+ * const response = await client.send(command);
98
+ * /* response is
99
+ * { /* empty *\/ }
100
+ * *\/
101
+ * ```
102
+ *
88
103
  * @public
89
104
  */
90
105
  export declare class DeletePolicyStoreAliasCommand extends DeletePolicyStoreAliasCommand_base {
@@ -189,7 +189,7 @@ declare const IsAuthorizedCommand_base: {
189
189
  * The response shows that the request was allowed by one policy.
190
190
  * const input = {
191
191
  * action: {
192
- * actionId: "view",
192
+ * actionId: "updatePhoto",
193
193
  * actionType: "Action"
194
194
  * },
195
195
  * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a",
@@ -111,6 +111,18 @@ export declare const ValidationMode: {
111
111
  * @public
112
112
  */
113
113
  export type ValidationMode = (typeof ValidationMode)[keyof typeof ValidationMode];
114
+ /**
115
+ * @public
116
+ * @enum
117
+ */
118
+ export declare const DeletionMode: {
119
+ readonly HARD_DELETE: "HardDelete";
120
+ readonly SOFT_DELETE: "SoftDelete";
121
+ };
122
+ /**
123
+ * @public
124
+ */
125
+ export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
114
126
  /**
115
127
  * @public
116
128
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AliasState, BatchGetPolicyErrorCode, CedarVersion, Decision, DeletionProtection, OpenIdIssuer, PolicyEffect, PolicyType, ResourceType, ValidationMode } from "./enums";
1
+ import type { AliasState, BatchGetPolicyErrorCode, CedarVersion, Decision, DeletionMode, DeletionProtection, OpenIdIssuer, PolicyEffect, PolicyType, ResourceType, ValidationMode } from "./enums";
2
2
  /**
3
3
  * <p>Contains information about an action for a request for which an authorization decision is made.</p> <p>This data type is used as a request parameter to the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html">IsAuthorized</a>, <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_BatchIsAuthorized.html">BatchIsAuthorized</a>, and <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html">IsAuthorizedWithToken</a> operations.</p> <p>Example: <code>\{ "actionId": "&lt;action name&gt;", "actionType": "Action" \}</code> </p>
4
4
  * @public
@@ -742,7 +742,7 @@ export interface OpenIdConnectIdentityTokenConfigurationItem {
742
742
  clientIds?: string[] | undefined;
743
743
  }
744
744
  /**
745
- * <p>The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.</p> <p>This data type is part of a <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectConfigurationItem.html">OpenIdConnectConfigurationItem</a> structure, which is a parameter of <a href="http://amazonaws.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>.</p>
745
+ * <p>The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.</p> <p>This data type is part of a <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectConfigurationItem.html">OpenIdConnectConfigurationItem</a> structure, which is a parameter of <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListIdentitySources.html">ListIdentitySources</a>.</p>
746
746
  * @public
747
747
  */
748
748
  export type OpenIdConnectTokenSelectionItem = OpenIdConnectTokenSelectionItem.AccessTokenOnlyMember | OpenIdConnectTokenSelectionItem.IdentityTokenOnlyMember | OpenIdConnectTokenSelectionItem.$UnknownMember;
@@ -1376,6 +1376,11 @@ export interface DeletePolicyStoreAliasInput {
1376
1376
  * @public
1377
1377
  */
1378
1378
  aliasName: string | undefined;
1379
+ /**
1380
+ * <p>Specifies the deletion mode for the policy store alias. The valid values are:</p> <ul> <li> <p> <b>SoftDelete</b> – The policy store alias enters the <code>PendingDeletion</code> state. This is the default behavior when no <code>deletionMode</code> is specified.</p> </li> <li> <p> <b>HardDelete</b> – The policy store alias is immediately deleted, bypassing the <code>PendingDeletion</code> state.</p> </li> </ul>
1381
+ * @public
1382
+ */
1383
+ deletionMode?: DeletionMode | undefined;
1379
1384
  }
1380
1385
  /**
1381
1386
  * @public
@@ -51,6 +51,11 @@ export declare const ValidationMode: {
51
51
  };
52
52
  export type ValidationMode =
53
53
  (typeof ValidationMode)[keyof typeof ValidationMode];
54
+ export declare const DeletionMode: {
55
+ readonly HARD_DELETE: "HardDelete";
56
+ readonly SOFT_DELETE: "SoftDelete";
57
+ };
58
+ export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
54
59
  export declare const OpenIdIssuer: {
55
60
  readonly COGNITO: "COGNITO";
56
61
  };
@@ -3,6 +3,7 @@ import {
3
3
  BatchGetPolicyErrorCode,
4
4
  CedarVersion,
5
5
  Decision,
6
+ DeletionMode,
6
7
  DeletionProtection,
7
8
  OpenIdIssuer,
8
9
  PolicyEffect,
@@ -488,6 +489,7 @@ export interface DeletePolicyStoreInput {
488
489
  export interface DeletePolicyStoreOutput {}
489
490
  export interface DeletePolicyStoreAliasInput {
490
491
  aliasName: string | undefined;
492
+ deletionMode?: DeletionMode | undefined;
491
493
  }
492
494
  export interface DeletePolicyStoreAliasOutput {}
493
495
  export interface DeletePolicyTemplateInput {
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.1051.0",
4
+ "version": "3.1052.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",
@@ -21,13 +21,13 @@
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.974.12",
25
- "@aws-sdk/credential-provider-node": "^3.972.43",
26
- "@aws-sdk/types": "^3.973.8",
27
- "@smithy/core": "^3.24.2",
28
- "@smithy/fetch-http-handler": "^5.4.2",
29
- "@smithy/node-http-handler": "^4.7.2",
30
- "@smithy/types": "^4.14.1",
24
+ "@aws-sdk/core": "^3.974.13",
25
+ "@aws-sdk/credential-provider-node": "^3.972.44",
26
+ "@aws-sdk/types": "^3.973.9",
27
+ "@smithy/core": "^3.24.3",
28
+ "@smithy/fetch-http-handler": "^5.4.3",
29
+ "@smithy/node-http-handler": "^4.7.3",
30
+ "@smithy/types": "^4.14.2",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {