@aws-sdk/client-verifiedpermissions 3.352.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/LICENSE +201 -0
- package/README.md +461 -0
- package/dist-cjs/VerifiedPermissions.js +59 -0
- package/dist-cjs/VerifiedPermissionsClient.js +41 -0
- package/dist-cjs/commands/CreateIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/CreatePolicyCommand.js +46 -0
- package/dist-cjs/commands/CreatePolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/CreatePolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/DeleteIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/DeletePolicyCommand.js +46 -0
- package/dist-cjs/commands/DeletePolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/DeletePolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/GetIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/GetPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetPolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/GetPolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaCommand.js +46 -0
- package/dist-cjs/commands/IsAuthorizedCommand.js +46 -0
- package/dist-cjs/commands/IsAuthorizedWithTokenCommand.js +46 -0
- package/dist-cjs/commands/ListIdentitySourcesCommand.js +46 -0
- package/dist-cjs/commands/ListPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListPolicyStoresCommand.js +46 -0
- package/dist-cjs/commands/ListPolicyTemplatesCommand.js +46 -0
- package/dist-cjs/commands/PutSchemaCommand.js +46 -0
- package/dist-cjs/commands/UpdateIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/UpdatePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdatePolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/UpdatePolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/index.js +27 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/VerifiedPermissionsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +237 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/ListPolicyStoresPaginator.js +29 -0
- package/dist-cjs/pagination/ListPolicyTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1772 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/VerifiedPermissions.js +55 -0
- package/dist-es/VerifiedPermissionsClient.js +37 -0
- package/dist-es/commands/CreateIdentitySourceCommand.js +42 -0
- package/dist-es/commands/CreatePolicyCommand.js +42 -0
- package/dist-es/commands/CreatePolicyStoreCommand.js +42 -0
- package/dist-es/commands/CreatePolicyTemplateCommand.js +42 -0
- package/dist-es/commands/DeleteIdentitySourceCommand.js +42 -0
- package/dist-es/commands/DeletePolicyCommand.js +42 -0
- package/dist-es/commands/DeletePolicyStoreCommand.js +42 -0
- package/dist-es/commands/DeletePolicyTemplateCommand.js +42 -0
- package/dist-es/commands/GetIdentitySourceCommand.js +42 -0
- package/dist-es/commands/GetPolicyCommand.js +42 -0
- package/dist-es/commands/GetPolicyStoreCommand.js +42 -0
- package/dist-es/commands/GetPolicyTemplateCommand.js +42 -0
- package/dist-es/commands/GetSchemaCommand.js +42 -0
- package/dist-es/commands/IsAuthorizedCommand.js +42 -0
- package/dist-es/commands/IsAuthorizedWithTokenCommand.js +42 -0
- package/dist-es/commands/ListIdentitySourcesCommand.js +42 -0
- package/dist-es/commands/ListPoliciesCommand.js +42 -0
- package/dist-es/commands/ListPolicyStoresCommand.js +42 -0
- package/dist-es/commands/ListPolicyTemplatesCommand.js +42 -0
- package/dist-es/commands/PutSchemaCommand.js +42 -0
- package/dist-es/commands/UpdateIdentitySourceCommand.js +42 -0
- package/dist-es/commands/UpdatePolicyCommand.js +42 -0
- package/dist-es/commands/UpdatePolicyStoreCommand.js +42 -0
- package/dist-es/commands/UpdatePolicyTemplateCommand.js +42 -0
- package/dist-es/commands/index.js +24 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/VerifiedPermissionsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +227 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListIdentitySourcesPaginator.js +25 -0
- package/dist-es/pagination/ListPoliciesPaginator.js +25 -0
- package/dist-es/pagination/ListPolicyStoresPaginator.js +25 -0
- package/dist-es/pagination/ListPolicyTemplatesPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_0.js +1721 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/VerifiedPermissions.d.ts +242 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +250 -0
- package/dist-types/commands/CreateIdentitySourceCommand.d.ts +210 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +222 -0
- package/dist-types/commands/CreatePolicyStoreCommand.d.ts +175 -0
- package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +184 -0
- package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +175 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +174 -0
- package/dist-types/commands/DeletePolicyStoreCommand.d.ts +166 -0
- package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +177 -0
- package/dist-types/commands/GetIdentitySourceCommand.d.ts +182 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +199 -0
- package/dist-types/commands/GetPolicyStoreCommand.d.ts +175 -0
- package/dist-types/commands/GetPolicyTemplateCommand.d.ts +175 -0
- package/dist-types/commands/GetSchemaCommand.d.ts +172 -0
- package/dist-types/commands/IsAuthorizedCommand.d.ts +239 -0
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +240 -0
- package/dist-types/commands/ListIdentitySourcesCommand.d.ts +193 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +222 -0
- package/dist-types/commands/ListPolicyStoresCommand.d.ts +174 -0
- package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +180 -0
- package/dist-types/commands/PutSchemaCommand.d.ts +188 -0
- package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +187 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +202 -0
- package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +179 -0
- package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +184 -0
- package/dist-types/commands/index.d.ts +24 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +75 -0
- package/dist-types/models/VerifiedPermissionsServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2456 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyStoresPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +218 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/VerifiedPermissions.d.ts +415 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +259 -0
- package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreatePolicyStoreCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePolicyTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeletePolicyStoreCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePolicyTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPolicyStoreCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPolicyTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/IsAuthorizedCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/IsAuthorizedWithTokenCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListPolicyStoresCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPolicyTemplatesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutSchemaCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateIdentitySourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdatePolicyStoreCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePolicyTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +24 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/VerifiedPermissionsServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +757 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyStoresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +293 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +101 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DeletePolicyStoreInput, DeletePolicyStoreOutput } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeletePolicyStoreCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeletePolicyStoreCommandInput extends DeletePolicyStoreInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeletePolicyStoreCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeletePolicyStoreCommandOutput extends DeletePolicyStoreOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Deletes the specified policy store.</p>
|
|
27
|
+
* <p>This operation is idempotent. If you specify a policy store that does not exist, the request
|
|
28
|
+
* response will still return a successful HTTP 200 status code.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { VerifiedPermissionsClient, DeletePolicyStoreCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
33
|
+
* // const { VerifiedPermissionsClient, DeletePolicyStoreCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
34
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
35
|
+
* const input = { // DeletePolicyStoreInput
|
|
36
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
38
|
+
* const command = new DeletePolicyStoreCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // {};
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param DeletePolicyStoreCommandInput - {@link DeletePolicyStoreCommandInput}
|
|
45
|
+
* @returns {@link DeletePolicyStoreCommandOutput}
|
|
46
|
+
* @see {@link DeletePolicyStoreCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link DeletePolicyStoreCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
51
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InternalServerException} (server fault)
|
|
54
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
57
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ValidationException} (client fault)
|
|
60
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
61
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
62
|
+
* isn't valid.</p>
|
|
63
|
+
* <p>The possible reasons include the following:</p>
|
|
64
|
+
* <ul>
|
|
65
|
+
* <li>
|
|
66
|
+
* <p>
|
|
67
|
+
* <b>UnrecognizedEntityType</b>
|
|
68
|
+
* </p>
|
|
69
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
70
|
+
* </li>
|
|
71
|
+
* <li>
|
|
72
|
+
* <p>
|
|
73
|
+
* <b>UnrecognizedActionId</b>
|
|
74
|
+
* </p>
|
|
75
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
76
|
+
* </li>
|
|
77
|
+
* <li>
|
|
78
|
+
* <p>
|
|
79
|
+
* <b>InvalidActionApplication</b>
|
|
80
|
+
* </p>
|
|
81
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
82
|
+
* the specified principal and resource.</p>
|
|
83
|
+
* </li>
|
|
84
|
+
* <li>
|
|
85
|
+
* <p>
|
|
86
|
+
* <b>UnexpectedType</b>
|
|
87
|
+
* </p>
|
|
88
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
89
|
+
* operation.</p>
|
|
90
|
+
* </li>
|
|
91
|
+
* <li>
|
|
92
|
+
* <p>
|
|
93
|
+
* <b>IncompatibleTypes</b>
|
|
94
|
+
* </p>
|
|
95
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
96
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
97
|
+
* this context.</p>
|
|
98
|
+
* </li>
|
|
99
|
+
* <li>
|
|
100
|
+
* <p>
|
|
101
|
+
* <b>MissingAttribute</b>
|
|
102
|
+
* </p>
|
|
103
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
104
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
105
|
+
* attempting to access its value. For more information, see the <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
106
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
107
|
+
* </li>
|
|
108
|
+
* <li>
|
|
109
|
+
* <p>
|
|
110
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
111
|
+
* </p>
|
|
112
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
113
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
114
|
+
* first before attempting to access its value. For more information, see the
|
|
115
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
116
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>
|
|
120
|
+
* <b>ImpossiblePolicy</b>
|
|
121
|
+
* </p>
|
|
122
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
123
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
124
|
+
* affect an authorization decision.</p>
|
|
125
|
+
* </li>
|
|
126
|
+
* <li>
|
|
127
|
+
* <p>
|
|
128
|
+
* <b>WrongNumberArguments</b>
|
|
129
|
+
* </p>
|
|
130
|
+
* <p>The policy references an extension type with the wrong number of
|
|
131
|
+
* arguments.</p>
|
|
132
|
+
* </li>
|
|
133
|
+
* <li>
|
|
134
|
+
* <p>
|
|
135
|
+
* <b>FunctionArgumentValidationError</b>
|
|
136
|
+
* </p>
|
|
137
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
138
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
139
|
+
* period character.</p>
|
|
140
|
+
* </li>
|
|
141
|
+
* </ul>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
144
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
export declare class DeletePolicyStoreCommand extends $Command<DeletePolicyStoreCommandInput, DeletePolicyStoreCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
148
|
+
readonly input: DeletePolicyStoreCommandInput;
|
|
149
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
constructor(input: DeletePolicyStoreCommandInput);
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
*/
|
|
157
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePolicyStoreCommandInput, DeletePolicyStoreCommandOutput>;
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
161
|
+
private serialize;
|
|
162
|
+
/**
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
private deserialize;
|
|
166
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DeletePolicyTemplateInput, DeletePolicyTemplateOutput } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeletePolicyTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeletePolicyTemplateCommandInput extends DeletePolicyTemplateInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeletePolicyTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeletePolicyTemplateCommandOutput extends DeletePolicyTemplateOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Deletes the specified policy template from the policy store.</p>
|
|
27
|
+
* <important>
|
|
28
|
+
* <p>This operation also deletes any policies that were created from the specified
|
|
29
|
+
* policy template. Those policies are immediately removed from all future API responses, and are
|
|
30
|
+
* asynchronously deleted from the policy store.</p>
|
|
31
|
+
* </important>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VerifiedPermissionsClient, DeletePolicyTemplateCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
36
|
+
* // const { VerifiedPermissionsClient, DeletePolicyTemplateCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
37
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
38
|
+
* const input = { // DeletePolicyTemplateInput
|
|
39
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
40
|
+
* policyTemplateId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeletePolicyTemplateCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeletePolicyTemplateCommandInput - {@link DeletePolicyTemplateCommandInput}
|
|
49
|
+
* @returns {@link DeletePolicyTemplateCommandOutput}
|
|
50
|
+
* @see {@link DeletePolicyTemplateCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeletePolicyTemplateCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ConflictException} (client fault)
|
|
55
|
+
* <p>The request failed because another request to modify a resource occurred at the
|
|
56
|
+
* same.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
72
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
73
|
+
* isn't valid.</p>
|
|
74
|
+
* <p>The possible reasons include the following:</p>
|
|
75
|
+
* <ul>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>
|
|
78
|
+
* <b>UnrecognizedEntityType</b>
|
|
79
|
+
* </p>
|
|
80
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
81
|
+
* </li>
|
|
82
|
+
* <li>
|
|
83
|
+
* <p>
|
|
84
|
+
* <b>UnrecognizedActionId</b>
|
|
85
|
+
* </p>
|
|
86
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
87
|
+
* </li>
|
|
88
|
+
* <li>
|
|
89
|
+
* <p>
|
|
90
|
+
* <b>InvalidActionApplication</b>
|
|
91
|
+
* </p>
|
|
92
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
93
|
+
* the specified principal and resource.</p>
|
|
94
|
+
* </li>
|
|
95
|
+
* <li>
|
|
96
|
+
* <p>
|
|
97
|
+
* <b>UnexpectedType</b>
|
|
98
|
+
* </p>
|
|
99
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
100
|
+
* operation.</p>
|
|
101
|
+
* </li>
|
|
102
|
+
* <li>
|
|
103
|
+
* <p>
|
|
104
|
+
* <b>IncompatibleTypes</b>
|
|
105
|
+
* </p>
|
|
106
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
107
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
108
|
+
* this context.</p>
|
|
109
|
+
* </li>
|
|
110
|
+
* <li>
|
|
111
|
+
* <p>
|
|
112
|
+
* <b>MissingAttribute</b>
|
|
113
|
+
* </p>
|
|
114
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
115
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
116
|
+
* attempting to access its value. For more information, see the <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
117
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
118
|
+
* </li>
|
|
119
|
+
* <li>
|
|
120
|
+
* <p>
|
|
121
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
122
|
+
* </p>
|
|
123
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
124
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
125
|
+
* first before attempting to access its value. For more information, see the
|
|
126
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
127
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
128
|
+
* </li>
|
|
129
|
+
* <li>
|
|
130
|
+
* <p>
|
|
131
|
+
* <b>ImpossiblePolicy</b>
|
|
132
|
+
* </p>
|
|
133
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
134
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
135
|
+
* affect an authorization decision.</p>
|
|
136
|
+
* </li>
|
|
137
|
+
* <li>
|
|
138
|
+
* <p>
|
|
139
|
+
* <b>WrongNumberArguments</b>
|
|
140
|
+
* </p>
|
|
141
|
+
* <p>The policy references an extension type with the wrong number of
|
|
142
|
+
* arguments.</p>
|
|
143
|
+
* </li>
|
|
144
|
+
* <li>
|
|
145
|
+
* <p>
|
|
146
|
+
* <b>FunctionArgumentValidationError</b>
|
|
147
|
+
* </p>
|
|
148
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
149
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
150
|
+
* period character.</p>
|
|
151
|
+
* </li>
|
|
152
|
+
* </ul>
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
155
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
export declare class DeletePolicyTemplateCommand extends $Command<DeletePolicyTemplateCommandInput, DeletePolicyTemplateCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
159
|
+
readonly input: DeletePolicyTemplateCommandInput;
|
|
160
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
constructor(input: DeletePolicyTemplateCommandInput);
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePolicyTemplateCommandInput, DeletePolicyTemplateCommandOutput>;
|
|
169
|
+
/**
|
|
170
|
+
* @internal
|
|
171
|
+
*/
|
|
172
|
+
private serialize;
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
private deserialize;
|
|
177
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { GetIdentitySourceInput, GetIdentitySourceOutput } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetIdentitySourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetIdentitySourceCommandInput extends GetIdentitySourceInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetIdentitySourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetIdentitySourceCommandOutput extends GetIdentitySourceOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the details about the specified identity source.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { VerifiedPermissionsClient, GetIdentitySourceCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
31
|
+
* // const { VerifiedPermissionsClient, GetIdentitySourceCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
32
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
33
|
+
* const input = { // GetIdentitySourceInput
|
|
34
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
35
|
+
* identitySourceId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetIdentitySourceCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetIdentitySourceOutput
|
|
40
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
41
|
+
* // details: { // IdentitySourceDetails
|
|
42
|
+
* // clientIds: [ // ClientIds
|
|
43
|
+
* // "STRING_VALUE",
|
|
44
|
+
* // ],
|
|
45
|
+
* // userPoolArn: "STRING_VALUE",
|
|
46
|
+
* // discoveryUrl: "STRING_VALUE",
|
|
47
|
+
* // openIdIssuer: "COGNITO",
|
|
48
|
+
* // },
|
|
49
|
+
* // identitySourceId: "STRING_VALUE", // required
|
|
50
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
52
|
+
* // principalEntityType: "STRING_VALUE", // required
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param GetIdentitySourceCommandInput - {@link GetIdentitySourceCommandInput}
|
|
58
|
+
* @returns {@link GetIdentitySourceCommandOutput}
|
|
59
|
+
* @see {@link GetIdentitySourceCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link GetIdentitySourceCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InternalServerException} (server fault)
|
|
70
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
77
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
78
|
+
* isn't valid.</p>
|
|
79
|
+
* <p>The possible reasons include the following:</p>
|
|
80
|
+
* <ul>
|
|
81
|
+
* <li>
|
|
82
|
+
* <p>
|
|
83
|
+
* <b>UnrecognizedEntityType</b>
|
|
84
|
+
* </p>
|
|
85
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
86
|
+
* </li>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>
|
|
89
|
+
* <b>UnrecognizedActionId</b>
|
|
90
|
+
* </p>
|
|
91
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
92
|
+
* </li>
|
|
93
|
+
* <li>
|
|
94
|
+
* <p>
|
|
95
|
+
* <b>InvalidActionApplication</b>
|
|
96
|
+
* </p>
|
|
97
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
98
|
+
* the specified principal and resource.</p>
|
|
99
|
+
* </li>
|
|
100
|
+
* <li>
|
|
101
|
+
* <p>
|
|
102
|
+
* <b>UnexpectedType</b>
|
|
103
|
+
* </p>
|
|
104
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
105
|
+
* operation.</p>
|
|
106
|
+
* </li>
|
|
107
|
+
* <li>
|
|
108
|
+
* <p>
|
|
109
|
+
* <b>IncompatibleTypes</b>
|
|
110
|
+
* </p>
|
|
111
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
112
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
113
|
+
* this context.</p>
|
|
114
|
+
* </li>
|
|
115
|
+
* <li>
|
|
116
|
+
* <p>
|
|
117
|
+
* <b>MissingAttribute</b>
|
|
118
|
+
* </p>
|
|
119
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
120
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
121
|
+
* attempting to access its value. For more information, see the <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
122
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
123
|
+
* </li>
|
|
124
|
+
* <li>
|
|
125
|
+
* <p>
|
|
126
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
127
|
+
* </p>
|
|
128
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
129
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
130
|
+
* first before attempting to access its value. For more information, see the
|
|
131
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
132
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
133
|
+
* </li>
|
|
134
|
+
* <li>
|
|
135
|
+
* <p>
|
|
136
|
+
* <b>ImpossiblePolicy</b>
|
|
137
|
+
* </p>
|
|
138
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
139
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
140
|
+
* affect an authorization decision.</p>
|
|
141
|
+
* </li>
|
|
142
|
+
* <li>
|
|
143
|
+
* <p>
|
|
144
|
+
* <b>WrongNumberArguments</b>
|
|
145
|
+
* </p>
|
|
146
|
+
* <p>The policy references an extension type with the wrong number of
|
|
147
|
+
* arguments.</p>
|
|
148
|
+
* </li>
|
|
149
|
+
* <li>
|
|
150
|
+
* <p>
|
|
151
|
+
* <b>FunctionArgumentValidationError</b>
|
|
152
|
+
* </p>
|
|
153
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
154
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
155
|
+
* period character.</p>
|
|
156
|
+
* </li>
|
|
157
|
+
* </ul>
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
160
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
export declare class GetIdentitySourceCommand extends $Command<GetIdentitySourceCommandInput, GetIdentitySourceCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
164
|
+
readonly input: GetIdentitySourceCommandInput;
|
|
165
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
constructor(input: GetIdentitySourceCommandInput);
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetIdentitySourceCommandInput, GetIdentitySourceCommandOutput>;
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
private serialize;
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
private deserialize;
|
|
182
|
+
}
|