@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,202 @@
|
|
|
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 { UpdatePolicyInput, UpdatePolicyOutput } 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 UpdatePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdatePolicyCommandInput extends UpdatePolicyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdatePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdatePolicyCommandOutput extends UpdatePolicyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Modifies a Cedar static policy in the specified policy store. You can change only certain elements of
|
|
27
|
+
* the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_UpdatePolicyInput.html#amazonverifiedpermissions-UpdatePolicy-request-UpdatePolicyDefinition">UpdatePolicyDefinition</a> parameter. You can directly update only static policies. To
|
|
28
|
+
* change a template-linked policy, you must update the template instead, using <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_UpdatePolicyTemplate.html">UpdatePolicyTemplate</a>.</p>
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>If policy validation is enabled in the policy store, then updating a static policy causes Verified Permissions to
|
|
31
|
+
* validate the policy against the schema in the policy store. If the updated static policy doesn't pass
|
|
32
|
+
* validation, the operation fails and the update isn't stored.</p>
|
|
33
|
+
* </note>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { VerifiedPermissionsClient, UpdatePolicyCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
38
|
+
* // const { VerifiedPermissionsClient, UpdatePolicyCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
39
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
40
|
+
* const input = { // UpdatePolicyInput
|
|
41
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
42
|
+
* policyId: "STRING_VALUE", // required
|
|
43
|
+
* definition: { // UpdatePolicyDefinition Union: only one key present
|
|
44
|
+
* static: { // UpdateStaticPolicyDefinition
|
|
45
|
+
* description: "STRING_VALUE",
|
|
46
|
+
* statement: "STRING_VALUE", // required
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const command = new UpdatePolicyCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // UpdatePolicyOutput
|
|
53
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
54
|
+
* // policyId: "STRING_VALUE", // required
|
|
55
|
+
* // policyType: "STATIC" || "TEMPLATE_LINKED", // required
|
|
56
|
+
* // principal: { // EntityIdentifier
|
|
57
|
+
* // entityType: "STRING_VALUE", // required
|
|
58
|
+
* // entityId: "STRING_VALUE", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // resource: {
|
|
61
|
+
* // entityType: "STRING_VALUE", // required
|
|
62
|
+
* // entityId: "STRING_VALUE", // required
|
|
63
|
+
* // },
|
|
64
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
65
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param UpdatePolicyCommandInput - {@link UpdatePolicyCommandInput}
|
|
71
|
+
* @returns {@link UpdatePolicyCommandOutput}
|
|
72
|
+
* @see {@link UpdatePolicyCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link UpdatePolicyCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ConflictException} (client fault)
|
|
77
|
+
* <p>The request failed because another request to modify a resource occurred at the
|
|
78
|
+
* same.</p>
|
|
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 ServiceQuotaExceededException} (client fault)
|
|
84
|
+
* <p>The request failed because it would cause a service quota to be exceeded.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
87
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link InternalServerException} (server fault)
|
|
90
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
93
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ValidationException} (client fault)
|
|
96
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
97
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
98
|
+
* isn't valid.</p>
|
|
99
|
+
* <p>The possible reasons include the following:</p>
|
|
100
|
+
* <ul>
|
|
101
|
+
* <li>
|
|
102
|
+
* <p>
|
|
103
|
+
* <b>UnrecognizedEntityType</b>
|
|
104
|
+
* </p>
|
|
105
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
106
|
+
* </li>
|
|
107
|
+
* <li>
|
|
108
|
+
* <p>
|
|
109
|
+
* <b>UnrecognizedActionId</b>
|
|
110
|
+
* </p>
|
|
111
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
112
|
+
* </li>
|
|
113
|
+
* <li>
|
|
114
|
+
* <p>
|
|
115
|
+
* <b>InvalidActionApplication</b>
|
|
116
|
+
* </p>
|
|
117
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
118
|
+
* the specified principal and resource.</p>
|
|
119
|
+
* </li>
|
|
120
|
+
* <li>
|
|
121
|
+
* <p>
|
|
122
|
+
* <b>UnexpectedType</b>
|
|
123
|
+
* </p>
|
|
124
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
125
|
+
* operation.</p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>
|
|
129
|
+
* <b>IncompatibleTypes</b>
|
|
130
|
+
* </p>
|
|
131
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
132
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
133
|
+
* this context.</p>
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <p>
|
|
137
|
+
* <b>MissingAttribute</b>
|
|
138
|
+
* </p>
|
|
139
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
140
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
141
|
+
* 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
|
|
142
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
143
|
+
* </li>
|
|
144
|
+
* <li>
|
|
145
|
+
* <p>
|
|
146
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
147
|
+
* </p>
|
|
148
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
149
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
150
|
+
* first before attempting to access its value. For more information, see the
|
|
151
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
152
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
153
|
+
* </li>
|
|
154
|
+
* <li>
|
|
155
|
+
* <p>
|
|
156
|
+
* <b>ImpossiblePolicy</b>
|
|
157
|
+
* </p>
|
|
158
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
159
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
160
|
+
* affect an authorization decision.</p>
|
|
161
|
+
* </li>
|
|
162
|
+
* <li>
|
|
163
|
+
* <p>
|
|
164
|
+
* <b>WrongNumberArguments</b>
|
|
165
|
+
* </p>
|
|
166
|
+
* <p>The policy references an extension type with the wrong number of
|
|
167
|
+
* arguments.</p>
|
|
168
|
+
* </li>
|
|
169
|
+
* <li>
|
|
170
|
+
* <p>
|
|
171
|
+
* <b>FunctionArgumentValidationError</b>
|
|
172
|
+
* </p>
|
|
173
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
174
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
175
|
+
* period character.</p>
|
|
176
|
+
* </li>
|
|
177
|
+
* </ul>
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
180
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
export declare class UpdatePolicyCommand extends $Command<UpdatePolicyCommandInput, UpdatePolicyCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
184
|
+
readonly input: UpdatePolicyCommandInput;
|
|
185
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
constructor(input: UpdatePolicyCommandInput);
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePolicyCommandInput, UpdatePolicyCommandOutput>;
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
private serialize;
|
|
198
|
+
/**
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
private deserialize;
|
|
202
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
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 { UpdatePolicyStoreInput, UpdatePolicyStoreOutput } 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 UpdatePolicyStoreCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdatePolicyStoreCommandInput extends UpdatePolicyStoreInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdatePolicyStoreCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdatePolicyStoreCommandOutput extends UpdatePolicyStoreOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Modifies the validation setting for 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, UpdatePolicyStoreCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
31
|
+
* // const { VerifiedPermissionsClient, UpdatePolicyStoreCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
32
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
33
|
+
* const input = { // UpdatePolicyStoreInput
|
|
34
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
35
|
+
* validationSettings: { // ValidationSettings
|
|
36
|
+
* mode: "OFF" || "STRICT", // required
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
39
|
+
* const command = new UpdatePolicyStoreCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // UpdatePolicyStoreOutput
|
|
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 UpdatePolicyStoreCommandInput - {@link UpdatePolicyStoreCommandInput}
|
|
51
|
+
* @returns {@link UpdatePolicyStoreCommandOutput}
|
|
52
|
+
* @see {@link UpdatePolicyStoreCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link UpdatePolicyStoreCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ConflictException} (client fault)
|
|
57
|
+
* <p>The request failed because another request to modify a resource occurred at the
|
|
58
|
+
* same.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
64
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
74
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
75
|
+
* isn't valid.</p>
|
|
76
|
+
* <p>The possible reasons include the following:</p>
|
|
77
|
+
* <ul>
|
|
78
|
+
* <li>
|
|
79
|
+
* <p>
|
|
80
|
+
* <b>UnrecognizedEntityType</b>
|
|
81
|
+
* </p>
|
|
82
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
83
|
+
* </li>
|
|
84
|
+
* <li>
|
|
85
|
+
* <p>
|
|
86
|
+
* <b>UnrecognizedActionId</b>
|
|
87
|
+
* </p>
|
|
88
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
89
|
+
* </li>
|
|
90
|
+
* <li>
|
|
91
|
+
* <p>
|
|
92
|
+
* <b>InvalidActionApplication</b>
|
|
93
|
+
* </p>
|
|
94
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
95
|
+
* the specified principal and resource.</p>
|
|
96
|
+
* </li>
|
|
97
|
+
* <li>
|
|
98
|
+
* <p>
|
|
99
|
+
* <b>UnexpectedType</b>
|
|
100
|
+
* </p>
|
|
101
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
102
|
+
* operation.</p>
|
|
103
|
+
* </li>
|
|
104
|
+
* <li>
|
|
105
|
+
* <p>
|
|
106
|
+
* <b>IncompatibleTypes</b>
|
|
107
|
+
* </p>
|
|
108
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
109
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
110
|
+
* this context.</p>
|
|
111
|
+
* </li>
|
|
112
|
+
* <li>
|
|
113
|
+
* <p>
|
|
114
|
+
* <b>MissingAttribute</b>
|
|
115
|
+
* </p>
|
|
116
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
117
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
118
|
+
* 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
|
|
119
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
120
|
+
* </li>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>
|
|
123
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
124
|
+
* </p>
|
|
125
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
126
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
127
|
+
* first before attempting to access its value. For more information, see the
|
|
128
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
129
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
130
|
+
* </li>
|
|
131
|
+
* <li>
|
|
132
|
+
* <p>
|
|
133
|
+
* <b>ImpossiblePolicy</b>
|
|
134
|
+
* </p>
|
|
135
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
136
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
137
|
+
* affect an authorization decision.</p>
|
|
138
|
+
* </li>
|
|
139
|
+
* <li>
|
|
140
|
+
* <p>
|
|
141
|
+
* <b>WrongNumberArguments</b>
|
|
142
|
+
* </p>
|
|
143
|
+
* <p>The policy references an extension type with the wrong number of
|
|
144
|
+
* arguments.</p>
|
|
145
|
+
* </li>
|
|
146
|
+
* <li>
|
|
147
|
+
* <p>
|
|
148
|
+
* <b>FunctionArgumentValidationError</b>
|
|
149
|
+
* </p>
|
|
150
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
151
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
152
|
+
* period character.</p>
|
|
153
|
+
* </li>
|
|
154
|
+
* </ul>
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
157
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
160
|
+
export declare class UpdatePolicyStoreCommand extends $Command<UpdatePolicyStoreCommandInput, UpdatePolicyStoreCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
161
|
+
readonly input: UpdatePolicyStoreCommandInput;
|
|
162
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
constructor(input: UpdatePolicyStoreCommandInput);
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePolicyStoreCommandInput, UpdatePolicyStoreCommandOutput>;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
private serialize;
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
178
|
+
private deserialize;
|
|
179
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
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 { UpdatePolicyTemplateInput, UpdatePolicyTemplateOutput } 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 UpdatePolicyTemplateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdatePolicyTemplateCommandInput extends UpdatePolicyTemplateInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdatePolicyTemplateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdatePolicyTemplateCommandOutput extends UpdatePolicyTemplateOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates the specified policy template. You can update only the description and the some elements
|
|
27
|
+
* of the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_UpdatePolicyTemplate.html#amazonverifiedpermissions-UpdatePolicyTemplate-request-policyBody">policyBody</a>. </p>
|
|
28
|
+
* <important>
|
|
29
|
+
* <p>Changes you make to the policy template content are immediately reflected in authorization
|
|
30
|
+
* decisions that involve all template-linked policies instantiated from this template.</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, UpdatePolicyTemplateCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
|
|
36
|
+
* // const { VerifiedPermissionsClient, UpdatePolicyTemplateCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
|
|
37
|
+
* const client = new VerifiedPermissionsClient(config);
|
|
38
|
+
* const input = { // UpdatePolicyTemplateInput
|
|
39
|
+
* policyStoreId: "STRING_VALUE", // required
|
|
40
|
+
* policyTemplateId: "STRING_VALUE", // required
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* statement: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new UpdatePolicyTemplateCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // UpdatePolicyTemplateOutput
|
|
47
|
+
* // policyStoreId: "STRING_VALUE", // required
|
|
48
|
+
* // policyTemplateId: "STRING_VALUE", // required
|
|
49
|
+
* // createdDate: new Date("TIMESTAMP"), // required
|
|
50
|
+
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param UpdatePolicyTemplateCommandInput - {@link UpdatePolicyTemplateCommandInput}
|
|
56
|
+
* @returns {@link UpdatePolicyTemplateCommandOutput}
|
|
57
|
+
* @see {@link UpdatePolicyTemplateCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link UpdatePolicyTemplateCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ConflictException} (client fault)
|
|
62
|
+
* <p>The request failed because another request to modify a resource occurred at the
|
|
63
|
+
* same.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
69
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>The request failed because one or more input parameters don't satisfy their constraint
|
|
79
|
+
* requirements. The output is provided as a list of fields and a reason for each field that
|
|
80
|
+
* isn't valid.</p>
|
|
81
|
+
* <p>The possible reasons include the following:</p>
|
|
82
|
+
* <ul>
|
|
83
|
+
* <li>
|
|
84
|
+
* <p>
|
|
85
|
+
* <b>UnrecognizedEntityType</b>
|
|
86
|
+
* </p>
|
|
87
|
+
* <p>The policy includes an entity type that isn't found in the schema.</p>
|
|
88
|
+
* </li>
|
|
89
|
+
* <li>
|
|
90
|
+
* <p>
|
|
91
|
+
* <b>UnrecognizedActionId</b>
|
|
92
|
+
* </p>
|
|
93
|
+
* <p>The policy includes an action id that isn't found in the schema.</p>
|
|
94
|
+
* </li>
|
|
95
|
+
* <li>
|
|
96
|
+
* <p>
|
|
97
|
+
* <b>InvalidActionApplication</b>
|
|
98
|
+
* </p>
|
|
99
|
+
* <p>The policy includes an action that, according to the schema, doesn't support
|
|
100
|
+
* the specified principal and resource.</p>
|
|
101
|
+
* </li>
|
|
102
|
+
* <li>
|
|
103
|
+
* <p>
|
|
104
|
+
* <b>UnexpectedType</b>
|
|
105
|
+
* </p>
|
|
106
|
+
* <p>The policy included an operand that isn't a valid type for the specified
|
|
107
|
+
* operation.</p>
|
|
108
|
+
* </li>
|
|
109
|
+
* <li>
|
|
110
|
+
* <p>
|
|
111
|
+
* <b>IncompatibleTypes</b>
|
|
112
|
+
* </p>
|
|
113
|
+
* <p>The types of elements included in a <code>set</code>, or the types of
|
|
114
|
+
* expressions used in an <code>if...then...else</code> clause aren't compatible in
|
|
115
|
+
* this context.</p>
|
|
116
|
+
* </li>
|
|
117
|
+
* <li>
|
|
118
|
+
* <p>
|
|
119
|
+
* <b>MissingAttribute</b>
|
|
120
|
+
* </p>
|
|
121
|
+
* <p>The policy attempts to access a record or entity attribute that isn't
|
|
122
|
+
* specified in the schema. Test for the existence of the attribute first before
|
|
123
|
+
* 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
|
|
124
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
125
|
+
* </li>
|
|
126
|
+
* <li>
|
|
127
|
+
* <p>
|
|
128
|
+
* <b>UnsafeOptionalAttributeAccess</b>
|
|
129
|
+
* </p>
|
|
130
|
+
* <p>The policy attempts to access a record or entity attribute that is optional
|
|
131
|
+
* and isn't guaranteed to be present. Test for the existence of the attribute
|
|
132
|
+
* first before attempting to access its value. For more information, see the
|
|
133
|
+
* <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
|
|
134
|
+
* <i>Cedar Policy Language Guide</i>.</p>
|
|
135
|
+
* </li>
|
|
136
|
+
* <li>
|
|
137
|
+
* <p>
|
|
138
|
+
* <b>ImpossiblePolicy</b>
|
|
139
|
+
* </p>
|
|
140
|
+
* <p>Cedar has determined that a policy condition always evaluates to false. If
|
|
141
|
+
* the policy is always false, it can never apply to any query, and so it can never
|
|
142
|
+
* affect an authorization decision.</p>
|
|
143
|
+
* </li>
|
|
144
|
+
* <li>
|
|
145
|
+
* <p>
|
|
146
|
+
* <b>WrongNumberArguments</b>
|
|
147
|
+
* </p>
|
|
148
|
+
* <p>The policy references an extension type with the wrong number of
|
|
149
|
+
* arguments.</p>
|
|
150
|
+
* </li>
|
|
151
|
+
* <li>
|
|
152
|
+
* <p>
|
|
153
|
+
* <b>FunctionArgumentValidationError</b>
|
|
154
|
+
* </p>
|
|
155
|
+
* <p>Cedar couldn't parse the argument passed to an extension type. For example,
|
|
156
|
+
* a string that is to be parsed as an IPv4 address can contain only digits and the
|
|
157
|
+
* period character.</p>
|
|
158
|
+
* </li>
|
|
159
|
+
* </ul>
|
|
160
|
+
*
|
|
161
|
+
* @throws {@link VerifiedPermissionsServiceException}
|
|
162
|
+
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
export declare class UpdatePolicyTemplateCommand extends $Command<UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput, VerifiedPermissionsClientResolvedConfig> {
|
|
166
|
+
readonly input: UpdatePolicyTemplateCommandInput;
|
|
167
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
constructor(input: UpdatePolicyTemplateCommandInput);
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput>;
|
|
176
|
+
/**
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
private serialize;
|
|
180
|
+
/**
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
private deserialize;
|
|
184
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from "./CreateIdentitySourceCommand";
|
|
2
|
+
export * from "./CreatePolicyCommand";
|
|
3
|
+
export * from "./CreatePolicyStoreCommand";
|
|
4
|
+
export * from "./CreatePolicyTemplateCommand";
|
|
5
|
+
export * from "./DeleteIdentitySourceCommand";
|
|
6
|
+
export * from "./DeletePolicyCommand";
|
|
7
|
+
export * from "./DeletePolicyStoreCommand";
|
|
8
|
+
export * from "./DeletePolicyTemplateCommand";
|
|
9
|
+
export * from "./GetIdentitySourceCommand";
|
|
10
|
+
export * from "./GetPolicyCommand";
|
|
11
|
+
export * from "./GetPolicyStoreCommand";
|
|
12
|
+
export * from "./GetPolicyTemplateCommand";
|
|
13
|
+
export * from "./GetSchemaCommand";
|
|
14
|
+
export * from "./IsAuthorizedCommand";
|
|
15
|
+
export * from "./IsAuthorizedWithTokenCommand";
|
|
16
|
+
export * from "./ListIdentitySourcesCommand";
|
|
17
|
+
export * from "./ListPoliciesCommand";
|
|
18
|
+
export * from "./ListPolicyStoresCommand";
|
|
19
|
+
export * from "./ListPolicyTemplatesCommand";
|
|
20
|
+
export * from "./PutSchemaCommand";
|
|
21
|
+
export * from "./UpdateIdentitySourceCommand";
|
|
22
|
+
export * from "./UpdatePolicyCommand";
|
|
23
|
+
export * from "./UpdatePolicyStoreCommand";
|
|
24
|
+
export * from "./UpdatePolicyTemplateCommand";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EndpointParameters as __EndpointParameters, EndpointV2 } from "@aws-sdk/types";
|
|
2
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
3
|
+
export interface ClientInputEndpointParameters {
|
|
4
|
+
region?: string | Provider<string>;
|
|
5
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
7
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
8
|
+
}
|
|
9
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
10
|
+
defaultSigningName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
13
|
+
defaultSigningName: string;
|
|
14
|
+
};
|
|
15
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
16
|
+
Region?: string;
|
|
17
|
+
UseDualStack?: boolean;
|
|
18
|
+
UseFIPS?: boolean;
|
|
19
|
+
Endpoint?: string;
|
|
20
|
+
}
|