@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,210 @@
|
|
|
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 { CreateIdentitySourceInput, CreateIdentitySourceOutput } 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 CreateIdentitySourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateIdentitySourceCommandInput extends CreateIdentitySourceInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateIdentitySourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateIdentitySourceCommandOutput extends CreateIdentitySourceOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a reference to an Amazon Cognito user pool as an external identity provider (IdP).
|
|
27
|
+
* </p>
|
|
28
|
+
* <p>After you create an identity source, you can use the identities provided by the IdP as proxies
|
|
29
|
+
* for the principal in authorization queries that use the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html">IsAuthorizedWithToken</a>
|
|
30
|
+
* operation. These identities take the form of tokens that contain claims about the user,
|
|
31
|
+
* such as IDs, attributes and group memberships. Amazon Cognito provides both identity tokens and
|
|
32
|
+
* access tokens, and Verified Permissions can use either or both. Any combination of identity and access
|
|
33
|
+
* tokens results in the same Cedar principal. Verified Permissions automatically translates the
|
|
34
|
+
* information about the identities into the standard Cedar attributes that can be
|
|
35
|
+
* evaluated by your policies. Because the Amazon Cognito identity and access tokens can contain
|
|
36
|
+
* different information, the tokens you choose to use determine which principal attributes
|
|
37
|
+
* are available to access when evaluating Cedar policies.</p>
|
|
38
|
+
* <important>
|
|
39
|
+
* <p>If you delete a Amazon Cognito user pool or user, tokens from that deleted pool or that deleted user continue to be usable until they expire.</p>
|
|
40
|
+
* </important>
|
|
41
|
+
* <note>
|
|
42
|
+
* <p>To reference a user from this identity source in your Cedar policies, use the following
|
|
43
|
+
* syntax.</p>
|
|
44
|
+
* <p>
|
|
45
|
+
* <i>IdentityType::"<CognitoUserPoolIdentifier>|<CognitoClientId></i>
|
|
46
|
+
* </p>
|
|
47
|
+
* <p>Where <code>IdentityType</code> is the string that you provide to the
|
|
48
|
+
* <code>PrincipalEntityType</code> parameter for this operation. The
|
|
49
|
+
* <code>CognitoUserPoolId</code> and <code>CognitoClientId</code> are defined by
|
|
50
|
+
* the Amazon Cognito user pool.</p>
|
|
51
|
+
* </note>
|
|
52
|
+
* @example
|
|
53
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
54
|
+
* ```javascript
|
|
55
|
+
* import { VerifiedPermissionsClient, CreateIdentitySourceCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
56
|
+
* // const { VerifiedPermissionsClient, CreateIdentitySourceCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
57
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
58
|
+
* const input = { // CreateIdentitySourceInput
|
|
59
|
+
* clientToken: "STRING_VALUE",
|
|
60
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
61
|
+
* configuration: { // Configuration Union: only one key present
|
|
62
|
+
* cognitoUserPoolConfiguration: { // CognitoUserPoolConfiguration
|
|
63
|
+
* userPoolArn: "STRING_VALUE", // required
|
|
64
|
+
* clientIds: [ // ClientIds
|
|
65
|
+
* "STRING_VALUE",
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* principalEntityType: "STRING_VALUE",
|
|
70
|
+
* };
|
|
71
|
+
* const command = new CreateIdentitySourceCommand(input);
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* // { // CreateIdentitySourceOutput
|
|
74
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
75
|
+
* // identitySourceId: "STRING_VALUE", // required
|
|
76
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
77
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param CreateIdentitySourceCommandInput - {@link CreateIdentitySourceCommandInput}
|
|
83
|
+
* @returns {@link CreateIdentitySourceCommandOutput}
|
|
84
|
+
* @see {@link CreateIdentitySourceCommandInput} for command's `input` shape.
|
|
85
|
+
* @see {@link CreateIdentitySourceCommandOutput} for command's `response` shape.
|
|
86
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
89
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
92
|
+
* <p>The request failed because it would cause a service quota to be exceeded.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
95
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InternalServerException} (server fault)
|
|
98
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
101
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ValidationException} (client fault)
|
|
104
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
105
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
106
|
+
* isn't valid.</p>
|
|
107
|
+
* <p>The possible reasons include the following:</p>
|
|
108
|
+
* <ul>
|
|
109
|
+
* <li>
|
|
110
|
+
* <p>
|
|
111
|
+
* <b>UnrecognizedEntityType</b>
|
|
112
|
+
* </p>
|
|
113
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
114
|
+
* </li>
|
|
115
|
+
* <li>
|
|
116
|
+
* <p>
|
|
117
|
+
* <b>UnrecognizedActionId</b>
|
|
118
|
+
* </p>
|
|
119
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
120
|
+
* </li>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>
|
|
123
|
+
* <b>InvalidActionApplication</b>
|
|
124
|
+
* </p>
|
|
125
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
126
|
+
* the specified principal and resource.</p>
|
|
127
|
+
* </li>
|
|
128
|
+
* <li>
|
|
129
|
+
* <p>
|
|
130
|
+
* <b>UnexpectedType</b>
|
|
131
|
+
* </p>
|
|
132
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
133
|
+
* operation.</p>
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <p>
|
|
137
|
+
* <b>IncompatibleTypes</b>
|
|
138
|
+
* </p>
|
|
139
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
140
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
141
|
+
* this context.</p>
|
|
142
|
+
* </li>
|
|
143
|
+
* <li>
|
|
144
|
+
* <p>
|
|
145
|
+
* <b>MissingAttribute</b>
|
|
146
|
+
* </p>
|
|
147
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
148
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
149
|
+
* 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
|
|
150
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
151
|
+
* </li>
|
|
152
|
+
* <li>
|
|
153
|
+
* <p>
|
|
154
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
155
|
+
* </p>
|
|
156
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
157
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
158
|
+
* first before attempting to access its value. For more information, see the
|
|
159
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
160
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
161
|
+
* </li>
|
|
162
|
+
* <li>
|
|
163
|
+
* <p>
|
|
164
|
+
* <b>ImpossiblePolicy</b>
|
|
165
|
+
* </p>
|
|
166
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
167
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
168
|
+
* affect an authorization decision.</p>
|
|
169
|
+
* </li>
|
|
170
|
+
* <li>
|
|
171
|
+
* <p>
|
|
172
|
+
* <b>WrongNumberArguments</b>
|
|
173
|
+
* </p>
|
|
174
|
+
* <p>The policy references an extension type with the wrong number of
|
|
175
|
+
* arguments.</p>
|
|
176
|
+
* </li>
|
|
177
|
+
* <li>
|
|
178
|
+
* <p>
|
|
179
|
+
* <b>FunctionArgumentValidationError</b>
|
|
180
|
+
* </p>
|
|
181
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
182
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
183
|
+
* period character.</p>
|
|
184
|
+
* </li>
|
|
185
|
+
* </ul>
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
188
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
export declare class CreateIdentitySourceCommand extends $Command<CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
192
|
+
readonly input: CreateIdentitySourceCommandInput;
|
|
193
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
constructor(input: CreateIdentitySourceCommandInput);
|
|
198
|
+
/**
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput>;
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
private serialize;
|
|
206
|
+
/**
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
209
|
+
private deserialize;
|
|
210
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
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 { CreatePolicyInput, CreatePolicyOutput } 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 CreatePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreatePolicyCommandInput extends CreatePolicyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreatePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePolicyCommandOutput extends CreatePolicyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a Cedar policy and saves it in the specified policy store. You can create either a
|
|
27
|
+
* static policy or a policy linked to a policy template.</p>
|
|
28
|
+
* <ul>
|
|
29
|
+
* <li>
|
|
30
|
+
* <p>To create a static policy, provide the Cedar policy text in the
|
|
31
|
+
* <code>StaticPolicy</code> section of the
|
|
32
|
+
* <code>PolicyDefinition</code>.</p>
|
|
33
|
+
* </li>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>To create a policy that is dynamically linked to a policy template, specify the policy template ID
|
|
36
|
+
* and the principal and resource to associate with this policy in the
|
|
37
|
+
* <code>templateLinked</code> section of the <code>PolicyDefinition</code>. If the
|
|
38
|
+
* policy template is ever updated, any policies linked to the policy template automatically use the
|
|
39
|
+
* updated template.</p>
|
|
40
|
+
* </li>
|
|
41
|
+
* </ul>
|
|
42
|
+
* <note>
|
|
43
|
+
* <p>Creating a policy causes it to be validated against the schema in the policy store. If the
|
|
44
|
+
* policy doesn't pass validation, the operation fails and the policy isn't
|
|
45
|
+
* stored.</p>
|
|
46
|
+
* </note>
|
|
47
|
+
* @example
|
|
48
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
49
|
+
* ```javascript
|
|
50
|
+
* import { VerifiedPermissionsClient, CreatePolicyCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
51
|
+
* // const { VerifiedPermissionsClient, CreatePolicyCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
52
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
53
|
+
* const input = { // CreatePolicyInput
|
|
54
|
+
* clientToken: "STRING_VALUE",
|
|
55
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
56
|
+
* definition: { // PolicyDefinition Union: only one key present
|
|
57
|
+
* static: { // StaticPolicyDefinition
|
|
58
|
+
* description: "STRING_VALUE",
|
|
59
|
+
* statement: "STRING_VALUE", // required
|
|
60
|
+
* },
|
|
61
|
+
* templateLinked: { // TemplateLinkedPolicyDefinition
|
|
62
|
+
* policyTemplateId: "STRING_VALUE", // required
|
|
63
|
+
* principal: { // EntityIdentifier
|
|
64
|
+
* entityType: "STRING_VALUE", // required
|
|
65
|
+
* entityId: "STRING_VALUE", // required
|
|
66
|
+
* },
|
|
67
|
+
* resource: {
|
|
68
|
+
* entityType: "STRING_VALUE", // required
|
|
69
|
+
* entityId: "STRING_VALUE", // required
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* };
|
|
74
|
+
* const command = new CreatePolicyCommand(input);
|
|
75
|
+
* const response = await client.send(command);
|
|
76
|
+
* // { // CreatePolicyOutput
|
|
77
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
78
|
+
* // policyId: "STRING_VALUE", // required
|
|
79
|
+
* // policyType: "STATIC" || "TEMPLATE_LINKED", // required
|
|
80
|
+
* // principal: { // EntityIdentifier
|
|
81
|
+
* // entityType: "STRING_VALUE", // required
|
|
82
|
+
* // entityId: "STRING_VALUE", // required
|
|
83
|
+
* // },
|
|
84
|
+
* // resource: {
|
|
85
|
+
* // entityType: "STRING_VALUE", // required
|
|
86
|
+
* // entityId: "STRING_VALUE", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
89
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
90
|
+
* // };
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param CreatePolicyCommandInput - {@link CreatePolicyCommandInput}
|
|
95
|
+
* @returns {@link CreatePolicyCommandOutput}
|
|
96
|
+
* @see {@link CreatePolicyCommandInput} for command's `input` shape.
|
|
97
|
+
* @see {@link CreatePolicyCommandOutput} for command's `response` shape.
|
|
98
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
101
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
104
|
+
* <p>The request failed because it would cause a service quota to be exceeded.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
107
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link InternalServerException} (server fault)
|
|
110
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
113
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ValidationException} (client fault)
|
|
116
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
117
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
118
|
+
* isn't valid.</p>
|
|
119
|
+
* <p>The possible reasons include the following:</p>
|
|
120
|
+
* <ul>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>
|
|
123
|
+
* <b>UnrecognizedEntityType</b>
|
|
124
|
+
* </p>
|
|
125
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>
|
|
129
|
+
* <b>UnrecognizedActionId</b>
|
|
130
|
+
* </p>
|
|
131
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
132
|
+
* </li>
|
|
133
|
+
* <li>
|
|
134
|
+
* <p>
|
|
135
|
+
* <b>InvalidActionApplication</b>
|
|
136
|
+
* </p>
|
|
137
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
138
|
+
* the specified principal and resource.</p>
|
|
139
|
+
* </li>
|
|
140
|
+
* <li>
|
|
141
|
+
* <p>
|
|
142
|
+
* <b>UnexpectedType</b>
|
|
143
|
+
* </p>
|
|
144
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
145
|
+
* operation.</p>
|
|
146
|
+
* </li>
|
|
147
|
+
* <li>
|
|
148
|
+
* <p>
|
|
149
|
+
* <b>IncompatibleTypes</b>
|
|
150
|
+
* </p>
|
|
151
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
152
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
153
|
+
* this context.</p>
|
|
154
|
+
* </li>
|
|
155
|
+
* <li>
|
|
156
|
+
* <p>
|
|
157
|
+
* <b>MissingAttribute</b>
|
|
158
|
+
* </p>
|
|
159
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
160
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
161
|
+
* 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
|
|
162
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
163
|
+
* </li>
|
|
164
|
+
* <li>
|
|
165
|
+
* <p>
|
|
166
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
167
|
+
* </p>
|
|
168
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
169
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
170
|
+
* first before attempting to access its value. For more information, see the
|
|
171
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
172
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
173
|
+
* </li>
|
|
174
|
+
* <li>
|
|
175
|
+
* <p>
|
|
176
|
+
* <b>ImpossiblePolicy</b>
|
|
177
|
+
* </p>
|
|
178
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
179
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
180
|
+
* affect an authorization decision.</p>
|
|
181
|
+
* </li>
|
|
182
|
+
* <li>
|
|
183
|
+
* <p>
|
|
184
|
+
* <b>WrongNumberArguments</b>
|
|
185
|
+
* </p>
|
|
186
|
+
* <p>The policy references an extension type with the wrong number of
|
|
187
|
+
* arguments.</p>
|
|
188
|
+
* </li>
|
|
189
|
+
* <li>
|
|
190
|
+
* <p>
|
|
191
|
+
* <b>FunctionArgumentValidationError</b>
|
|
192
|
+
* </p>
|
|
193
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
194
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
195
|
+
* period character.</p>
|
|
196
|
+
* </li>
|
|
197
|
+
* </ul>
|
|
198
|
+
*
|
|
199
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
200
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
export declare class CreatePolicyCommand extends $Command<CreatePolicyCommandInput, CreatePolicyCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
204
|
+
readonly input: CreatePolicyCommandInput;
|
|
205
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
206
|
+
/**
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
constructor(input: CreatePolicyCommandInput);
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePolicyCommandInput, CreatePolicyCommandOutput>;
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
private serialize;
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
private deserialize;
|
|
222
|
+
}
|
|
@@ -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 { CreatePolicyStoreInput, CreatePolicyStoreOutput } 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 CreatePolicyStoreCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreatePolicyStoreCommandInput extends CreatePolicyStoreInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreatePolicyStoreCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePolicyStoreCommandOutput extends CreatePolicyStoreOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a policy store. A policy store is a container for policy resources.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { VerifiedPermissionsClient, CreatePolicyStoreCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
31
|
+
* // const { VerifiedPermissionsClient, CreatePolicyStoreCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
32
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
33
|
+
* const input = { // CreatePolicyStoreInput
|
|
34
|
+
* clientToken: "STRING_VALUE",
|
|
35
|
+
* validationSettings: { // ValidationSettings
|
|
36
|
+
* mode: "OFF" || "STRICT", // required
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
39
|
+
* const command = new CreatePolicyStoreCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // CreatePolicyStoreOutput
|
|
42
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
43
|
+
* // arn: "STRING_VALUE", // required
|
|
44
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
45
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param CreatePolicyStoreCommandInput - {@link CreatePolicyStoreCommandInput}
|
|
51
|
+
* @returns {@link CreatePolicyStoreCommandOutput}
|
|
52
|
+
* @see {@link CreatePolicyStoreCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link CreatePolicyStoreCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
57
|
+
* <p>The request failed because it would cause a service quota to be exceeded.</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 CreatePolicyStoreCommand extends $Command<CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
157
|
+
readonly input: CreatePolicyStoreCommandInput;
|
|
158
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
constructor(input: CreatePolicyStoreCommandInput);
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput>;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
private serialize;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
private deserialize;
|
|
175
|
+
}
|