@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,199 @@
|
|
|
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 { GetPolicyInput, GetPolicyOutput } 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 GetPolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyCommandInput extends GetPolicyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyCommandOutput extends GetPolicyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves information about the specified policy.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { VerifiedPermissionsClient, GetPolicyCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
31
|
+
* // const { VerifiedPermissionsClient, GetPolicyCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
32
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
33
|
+
* const input = { // GetPolicyInput
|
|
34
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
35
|
+
* policyId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetPolicyCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetPolicyOutput
|
|
40
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
41
|
+
* // policyId: "STRING_VALUE", // required
|
|
42
|
+
* // policyType: "STATIC" || "TEMPLATE_LINKED", // required
|
|
43
|
+
* // principal: { // EntityIdentifier
|
|
44
|
+
* // entityType: "STRING_VALUE", // required
|
|
45
|
+
* // entityId: "STRING_VALUE", // required
|
|
46
|
+
* // },
|
|
47
|
+
* // resource: {
|
|
48
|
+
* // entityType: "STRING_VALUE", // required
|
|
49
|
+
* // entityId: "STRING_VALUE", // required
|
|
50
|
+
* // },
|
|
51
|
+
* // definition: { // PolicyDefinitionDetail Union: only one key present
|
|
52
|
+
* // static: { // StaticPolicyDefinitionDetail
|
|
53
|
+
* // description: "STRING_VALUE",
|
|
54
|
+
* // statement: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // templateLinked: { // TemplateLinkedPolicyDefinitionDetail
|
|
57
|
+
* // policyTemplateId: "STRING_VALUE", // required
|
|
58
|
+
* // principal: {
|
|
59
|
+
* // entityType: "STRING_VALUE", // required
|
|
60
|
+
* // entityId: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // resource: {
|
|
63
|
+
* // entityType: "STRING_VALUE", // required
|
|
64
|
+
* // entityId: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
69
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param GetPolicyCommandInput - {@link GetPolicyCommandInput}
|
|
75
|
+
* @returns {@link GetPolicyCommandOutput}
|
|
76
|
+
* @see {@link GetPolicyCommandInput} for command's `input` shape.
|
|
77
|
+
* @see {@link GetPolicyCommandOutput} for command's `response` shape.
|
|
78
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
84
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InternalServerException} (server fault)
|
|
87
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
90
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ValidationException} (client fault)
|
|
93
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
94
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
95
|
+
* isn't valid.</p>
|
|
96
|
+
* <p>The possible reasons include the following:</p>
|
|
97
|
+
* <ul>
|
|
98
|
+
* <li>
|
|
99
|
+
* <p>
|
|
100
|
+
* <b>UnrecognizedEntityType</b>
|
|
101
|
+
* </p>
|
|
102
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
103
|
+
* </li>
|
|
104
|
+
* <li>
|
|
105
|
+
* <p>
|
|
106
|
+
* <b>UnrecognizedActionId</b>
|
|
107
|
+
* </p>
|
|
108
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
109
|
+
* </li>
|
|
110
|
+
* <li>
|
|
111
|
+
* <p>
|
|
112
|
+
* <b>InvalidActionApplication</b>
|
|
113
|
+
* </p>
|
|
114
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
115
|
+
* the specified principal and resource.</p>
|
|
116
|
+
* </li>
|
|
117
|
+
* <li>
|
|
118
|
+
* <p>
|
|
119
|
+
* <b>UnexpectedType</b>
|
|
120
|
+
* </p>
|
|
121
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
122
|
+
* operation.</p>
|
|
123
|
+
* </li>
|
|
124
|
+
* <li>
|
|
125
|
+
* <p>
|
|
126
|
+
* <b>IncompatibleTypes</b>
|
|
127
|
+
* </p>
|
|
128
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
129
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
130
|
+
* this context.</p>
|
|
131
|
+
* </li>
|
|
132
|
+
* <li>
|
|
133
|
+
* <p>
|
|
134
|
+
* <b>MissingAttribute</b>
|
|
135
|
+
* </p>
|
|
136
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
137
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
138
|
+
* 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
|
|
139
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
140
|
+
* </li>
|
|
141
|
+
* <li>
|
|
142
|
+
* <p>
|
|
143
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
144
|
+
* </p>
|
|
145
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
146
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
147
|
+
* first before attempting to access its value. For more information, see the
|
|
148
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
149
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
150
|
+
* </li>
|
|
151
|
+
* <li>
|
|
152
|
+
* <p>
|
|
153
|
+
* <b>ImpossiblePolicy</b>
|
|
154
|
+
* </p>
|
|
155
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
156
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
157
|
+
* affect an authorization decision.</p>
|
|
158
|
+
* </li>
|
|
159
|
+
* <li>
|
|
160
|
+
* <p>
|
|
161
|
+
* <b>WrongNumberArguments</b>
|
|
162
|
+
* </p>
|
|
163
|
+
* <p>The policy references an extension type with the wrong number of
|
|
164
|
+
* arguments.</p>
|
|
165
|
+
* </li>
|
|
166
|
+
* <li>
|
|
167
|
+
* <p>
|
|
168
|
+
* <b>FunctionArgumentValidationError</b>
|
|
169
|
+
* </p>
|
|
170
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
171
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
172
|
+
* period character.</p>
|
|
173
|
+
* </li>
|
|
174
|
+
* </ul>
|
|
175
|
+
*
|
|
176
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
177
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
export declare class GetPolicyCommand extends $Command<GetPolicyCommandInput, GetPolicyCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
181
|
+
readonly input: GetPolicyCommandInput;
|
|
182
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
constructor(input: GetPolicyCommandInput);
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPolicyCommandInput, GetPolicyCommandOutput>;
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
private serialize;
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
private deserialize;
|
|
199
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
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 { GetPolicyStoreInput, GetPolicyStoreOutput } 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 GetPolicyStoreCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyStoreCommandInput extends GetPolicyStoreInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyStoreCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyStoreCommandOutput extends GetPolicyStoreOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves details about a policy store.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { VerifiedPermissionsClient, GetPolicyStoreCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
31
|
+
* // const { VerifiedPermissionsClient, GetPolicyStoreCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
32
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
33
|
+
* const input = { // GetPolicyStoreInput
|
|
34
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new GetPolicyStoreCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // GetPolicyStoreOutput
|
|
39
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
40
|
+
* // arn: "STRING_VALUE", // required
|
|
41
|
+
* // validationSettings: { // ValidationSettings
|
|
42
|
+
* // mode: "OFF" || "STRICT", // required
|
|
43
|
+
* // },
|
|
44
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
45
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetPolicyStoreCommandInput - {@link GetPolicyStoreCommandInput}
|
|
51
|
+
* @returns {@link GetPolicyStoreCommandOutput}
|
|
52
|
+
* @see {@link GetPolicyStoreCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetPolicyStoreCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
57
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
66
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
70
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
71
|
+
* isn't valid.</p>
|
|
72
|
+
* <p>The possible reasons include the following:</p>
|
|
73
|
+
* <ul>
|
|
74
|
+
* <li>
|
|
75
|
+
* <p>
|
|
76
|
+
* <b>UnrecognizedEntityType</b>
|
|
77
|
+
* </p>
|
|
78
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
79
|
+
* </li>
|
|
80
|
+
* <li>
|
|
81
|
+
* <p>
|
|
82
|
+
* <b>UnrecognizedActionId</b>
|
|
83
|
+
* </p>
|
|
84
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
85
|
+
* </li>
|
|
86
|
+
* <li>
|
|
87
|
+
* <p>
|
|
88
|
+
* <b>InvalidActionApplication</b>
|
|
89
|
+
* </p>
|
|
90
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
91
|
+
* the specified principal and resource.</p>
|
|
92
|
+
* </li>
|
|
93
|
+
* <li>
|
|
94
|
+
* <p>
|
|
95
|
+
* <b>UnexpectedType</b>
|
|
96
|
+
* </p>
|
|
97
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
98
|
+
* operation.</p>
|
|
99
|
+
* </li>
|
|
100
|
+
* <li>
|
|
101
|
+
* <p>
|
|
102
|
+
* <b>IncompatibleTypes</b>
|
|
103
|
+
* </p>
|
|
104
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
105
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
106
|
+
* this context.</p>
|
|
107
|
+
* </li>
|
|
108
|
+
* <li>
|
|
109
|
+
* <p>
|
|
110
|
+
* <b>MissingAttribute</b>
|
|
111
|
+
* </p>
|
|
112
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
113
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
114
|
+
* 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
|
|
115
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
116
|
+
* </li>
|
|
117
|
+
* <li>
|
|
118
|
+
* <p>
|
|
119
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
120
|
+
* </p>
|
|
121
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
122
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
123
|
+
* first before attempting to access its value. For more information, see the
|
|
124
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
125
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>
|
|
129
|
+
* <b>ImpossiblePolicy</b>
|
|
130
|
+
* </p>
|
|
131
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
132
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
133
|
+
* affect an authorization decision.</p>
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <p>
|
|
137
|
+
* <b>WrongNumberArguments</b>
|
|
138
|
+
* </p>
|
|
139
|
+
* <p>The policy references an extension type with the wrong number of
|
|
140
|
+
* arguments.</p>
|
|
141
|
+
* </li>
|
|
142
|
+
* <li>
|
|
143
|
+
* <p>
|
|
144
|
+
* <b>FunctionArgumentValidationError</b>
|
|
145
|
+
* </p>
|
|
146
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
147
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
148
|
+
* period character.</p>
|
|
149
|
+
* </li>
|
|
150
|
+
* </ul>
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
153
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
export declare class GetPolicyStoreCommand extends $Command<GetPolicyStoreCommandInput, GetPolicyStoreCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
157
|
+
readonly input: GetPolicyStoreCommandInput;
|
|
158
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
constructor(input: GetPolicyStoreCommandInput);
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPolicyStoreCommandInput, GetPolicyStoreCommandOutput>;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
private serialize;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
private deserialize;
|
|
175
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
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 { GetPolicyTemplateInput, GetPolicyTemplateOutput } 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 GetPolicyTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPolicyTemplateCommandInput extends GetPolicyTemplateInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPolicyTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPolicyTemplateCommandOutput extends GetPolicyTemplateOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieve the details for the specified policy template in the specified policy store.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { VerifiedPermissionsClient, GetPolicyTemplateCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
31
|
+
* // const { VerifiedPermissionsClient, GetPolicyTemplateCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
32
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
33
|
+
* const input = { // GetPolicyTemplateInput
|
|
34
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
35
|
+
* policyTemplateId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetPolicyTemplateCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetPolicyTemplateOutput
|
|
40
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
41
|
+
* // policyTemplateId: "STRING_VALUE", // required
|
|
42
|
+
* // description: "STRING_VALUE",
|
|
43
|
+
* // statement: "STRING_VALUE", // required
|
|
44
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
45
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetPolicyTemplateCommandInput - {@link GetPolicyTemplateCommandInput}
|
|
51
|
+
* @returns {@link GetPolicyTemplateCommandOutput}
|
|
52
|
+
* @see {@link GetPolicyTemplateCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetPolicyTemplateCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
57
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
66
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
70
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
71
|
+
* isn't valid.</p>
|
|
72
|
+
* <p>The possible reasons include the following:</p>
|
|
73
|
+
* <ul>
|
|
74
|
+
* <li>
|
|
75
|
+
* <p>
|
|
76
|
+
* <b>UnrecognizedEntityType</b>
|
|
77
|
+
* </p>
|
|
78
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
79
|
+
* </li>
|
|
80
|
+
* <li>
|
|
81
|
+
* <p>
|
|
82
|
+
* <b>UnrecognizedActionId</b>
|
|
83
|
+
* </p>
|
|
84
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
85
|
+
* </li>
|
|
86
|
+
* <li>
|
|
87
|
+
* <p>
|
|
88
|
+
* <b>InvalidActionApplication</b>
|
|
89
|
+
* </p>
|
|
90
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
91
|
+
* the specified principal and resource.</p>
|
|
92
|
+
* </li>
|
|
93
|
+
* <li>
|
|
94
|
+
* <p>
|
|
95
|
+
* <b>UnexpectedType</b>
|
|
96
|
+
* </p>
|
|
97
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
98
|
+
* operation.</p>
|
|
99
|
+
* </li>
|
|
100
|
+
* <li>
|
|
101
|
+
* <p>
|
|
102
|
+
* <b>IncompatibleTypes</b>
|
|
103
|
+
* </p>
|
|
104
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
105
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
106
|
+
* this context.</p>
|
|
107
|
+
* </li>
|
|
108
|
+
* <li>
|
|
109
|
+
* <p>
|
|
110
|
+
* <b>MissingAttribute</b>
|
|
111
|
+
* </p>
|
|
112
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
113
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
114
|
+
* 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
|
|
115
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
116
|
+
* </li>
|
|
117
|
+
* <li>
|
|
118
|
+
* <p>
|
|
119
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
120
|
+
* </p>
|
|
121
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
122
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
123
|
+
* first before attempting to access its value. For more information, see the
|
|
124
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
125
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>
|
|
129
|
+
* <b>ImpossiblePolicy</b>
|
|
130
|
+
* </p>
|
|
131
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
132
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
133
|
+
* affect an authorization decision.</p>
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <p>
|
|
137
|
+
* <b>WrongNumberArguments</b>
|
|
138
|
+
* </p>
|
|
139
|
+
* <p>The policy references an extension type with the wrong number of
|
|
140
|
+
* arguments.</p>
|
|
141
|
+
* </li>
|
|
142
|
+
* <li>
|
|
143
|
+
* <p>
|
|
144
|
+
* <b>FunctionArgumentValidationError</b>
|
|
145
|
+
* </p>
|
|
146
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
147
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
148
|
+
* period character.</p>
|
|
149
|
+
* </li>
|
|
150
|
+
* </ul>
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
153
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
export declare class GetPolicyTemplateCommand extends $Command<GetPolicyTemplateCommandInput, GetPolicyTemplateCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
157
|
+
readonly input: GetPolicyTemplateCommandInput;
|
|
158
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
constructor(input: GetPolicyTemplateCommandInput);
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPolicyTemplateCommandInput, GetPolicyTemplateCommandOutput>;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
private serialize;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
private deserialize;
|
|
175
|
+
}
|