@aws-sdk/client-verifiedpermissions 3.450.0 → 3.454.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/README.md +8 -0
- package/dist-cjs/VerifiedPermissions.js +2 -0
- package/dist-cjs/commands/BatchIsAuthorizedCommand.js +52 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +80 -55
- package/dist-cjs/protocols/Aws_json1_0.js +165 -1
- package/dist-es/VerifiedPermissions.js +2 -0
- package/dist-es/commands/BatchIsAuthorizedCommand.js +48 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +71 -50
- package/dist-es/protocols/Aws_json1_0.js +163 -1
- package/dist-types/VerifiedPermissions.d.ts +7 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +3 -2
- package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +298 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +388 -266
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/VerifiedPermissions.d.ts +17 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/BatchIsAuthorizedCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +95 -63
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -267,6 +267,14 @@ see LICENSE for more information.
|
|
|
267
267
|
|
|
268
268
|
## Client Commands (Operations List)
|
|
269
269
|
|
|
270
|
+
<details>
|
|
271
|
+
<summary>
|
|
272
|
+
BatchIsAuthorized
|
|
273
|
+
</summary>
|
|
274
|
+
|
|
275
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-verifiedpermissions/classes/batchisauthorizedcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-verifiedpermissions/interfaces/batchisauthorizedcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-verifiedpermissions/interfaces/batchisauthorizedcommandoutput.html)
|
|
276
|
+
|
|
277
|
+
</details>
|
|
270
278
|
<details>
|
|
271
279
|
<summary>
|
|
272
280
|
CreateIdentitySource
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VerifiedPermissions = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const BatchIsAuthorizedCommand_1 = require("./commands/BatchIsAuthorizedCommand");
|
|
5
6
|
const CreateIdentitySourceCommand_1 = require("./commands/CreateIdentitySourceCommand");
|
|
6
7
|
const CreatePolicyCommand_1 = require("./commands/CreatePolicyCommand");
|
|
7
8
|
const CreatePolicyStoreCommand_1 = require("./commands/CreatePolicyStoreCommand");
|
|
@@ -28,6 +29,7 @@ const UpdatePolicyStoreCommand_1 = require("./commands/UpdatePolicyStoreCommand"
|
|
|
28
29
|
const UpdatePolicyTemplateCommand_1 = require("./commands/UpdatePolicyTemplateCommand");
|
|
29
30
|
const VerifiedPermissionsClient_1 = require("./VerifiedPermissionsClient");
|
|
30
31
|
const commands = {
|
|
32
|
+
BatchIsAuthorizedCommand: BatchIsAuthorizedCommand_1.BatchIsAuthorizedCommand,
|
|
31
33
|
CreateIdentitySourceCommand: CreateIdentitySourceCommand_1.CreateIdentitySourceCommand,
|
|
32
34
|
CreatePolicyCommand: CreatePolicyCommand_1.CreatePolicyCommand,
|
|
33
35
|
CreatePolicyStoreCommand: CreatePolicyStoreCommand_1.CreatePolicyStoreCommand,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchIsAuthorizedCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
11
|
+
class BatchIsAuthorizedCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchIsAuthorizedCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "VerifiedPermissionsClient";
|
|
30
|
+
const commandName = "BatchIsAuthorizedCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: models_0_1.BatchIsAuthorizedInputFilterSensitiveLog,
|
|
36
|
+
outputFilterSensitiveLog: models_0_1.BatchIsAuthorizedOutputFilterSensitiveLog,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "VerifiedPermissions",
|
|
39
|
+
operation: "BatchIsAuthorized",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return (0, Aws_json1_0_1.se_BatchIsAuthorizedCommand)(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return (0, Aws_json1_0_1.de_BatchIsAuthorizedCommand)(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.BatchIsAuthorizedCommand = BatchIsAuthorizedCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./BatchIsAuthorizedCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./CreateIdentitySourceCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreatePolicyCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreatePolicyStoreCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCognitoUserPoolConfigurationFilterSensitiveLog = exports.ListIdentitySourcesOutputFilterSensitiveLog = exports.IdentitySourceItemFilterSensitiveLog = exports.IdentitySourceItemDetailsFilterSensitiveLog = exports.ListIdentitySourcesInputFilterSensitiveLog = exports.IdentitySourceFilterFilterSensitiveLog = exports.GetSchemaOutputFilterSensitiveLog = exports.GetPolicyTemplateOutputFilterSensitiveLog = exports.GetPolicyOutputFilterSensitiveLog = exports.PolicyDefinitionDetailFilterSensitiveLog = exports.TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog = exports.StaticPolicyDefinitionDetailFilterSensitiveLog = exports.GetIdentitySourceOutputFilterSensitiveLog = exports.IdentitySourceDetailsFilterSensitiveLog = exports.
|
|
4
|
-
exports.IsAuthorizedWithTokenInputFilterSensitiveLog = exports.IsAuthorizedInputFilterSensitiveLog = exports.EntitiesDefinitionFilterSensitiveLog = exports.EntityItemFilterSensitiveLog = exports.ContextDefinitionFilterSensitiveLog = exports.AttributeValueFilterSensitiveLog = exports.PutSchemaOutputFilterSensitiveLog = exports.PutSchemaInputFilterSensitiveLog = exports.SchemaDefinitionFilterSensitiveLog = exports.UpdatePolicyTemplateInputFilterSensitiveLog = exports.UpdatePolicyOutputFilterSensitiveLog = exports.UpdatePolicyInputFilterSensitiveLog = exports.UpdatePolicyDefinitionFilterSensitiveLog = exports.UpdateStaticPolicyDefinitionFilterSensitiveLog = exports.ListPolicyTemplatesOutputFilterSensitiveLog = exports.PolicyTemplateItemFilterSensitiveLog = exports.ListPoliciesOutputFilterSensitiveLog = exports.PolicyItemFilterSensitiveLog = exports.PolicyDefinitionItemFilterSensitiveLog = exports.TemplateLinkedPolicyDefinitionItemFilterSensitiveLog = exports.StaticPolicyDefinitionItemFilterSensitiveLog = exports.ListPoliciesInputFilterSensitiveLog = exports.PolicyFilterFilterSensitiveLog = exports.IsAuthorizedWithTokenOutputFilterSensitiveLog = exports.IsAuthorizedOutputFilterSensitiveLog = exports.UpdateIdentitySourceInputFilterSensitiveLog = exports.UpdateConfigurationFilterSensitiveLog = void 0;
|
|
3
|
+
exports.UpdateCognitoUserPoolConfigurationFilterSensitiveLog = exports.ListIdentitySourcesOutputFilterSensitiveLog = exports.IdentitySourceItemFilterSensitiveLog = exports.IdentitySourceItemDetailsFilterSensitiveLog = exports.ListIdentitySourcesInputFilterSensitiveLog = exports.IdentitySourceFilterFilterSensitiveLog = exports.GetSchemaOutputFilterSensitiveLog = exports.GetPolicyTemplateOutputFilterSensitiveLog = exports.GetPolicyOutputFilterSensitiveLog = exports.PolicyDefinitionDetailFilterSensitiveLog = exports.TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog = exports.StaticPolicyDefinitionDetailFilterSensitiveLog = exports.GetIdentitySourceOutputFilterSensitiveLog = exports.IdentitySourceDetailsFilterSensitiveLog = exports.EntityReferenceFilterSensitiveLog = exports.CreatePolicyTemplateInputFilterSensitiveLog = exports.CreatePolicyOutputFilterSensitiveLog = exports.CreatePolicyInputFilterSensitiveLog = exports.PolicyDefinitionFilterSensitiveLog = exports.TemplateLinkedPolicyDefinitionFilterSensitiveLog = exports.StaticPolicyDefinitionFilterSensitiveLog = exports.CreateIdentitySourceInputFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.CognitoUserPoolConfigurationFilterSensitiveLog = exports.EvaluationErrorItemFilterSensitiveLog = exports.EntityIdentifierFilterSensitiveLog = exports.ActionIdentifierFilterSensitiveLog = exports.EntitiesDefinition = exports.ContextDefinition = exports.AttributeValue = exports.SchemaDefinition = exports.UpdatePolicyDefinition = exports.PolicyDefinitionItem = exports.UpdateConfiguration = exports.PolicyDefinitionDetail = exports.OpenIdIssuer = exports.EntityReference = exports.ValidationMode = exports.PolicyType = exports.PolicyDefinition = exports.ServiceQuotaExceededException = exports.ConflictException = exports.Configuration = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.Decision = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.BatchIsAuthorizedInputFilterSensitiveLog = exports.IsAuthorizedWithTokenInputFilterSensitiveLog = exports.IsAuthorizedInputFilterSensitiveLog = exports.BatchIsAuthorizedOutputFilterSensitiveLog = exports.EntitiesDefinitionFilterSensitiveLog = exports.BatchIsAuthorizedOutputItemFilterSensitiveLog = exports.BatchIsAuthorizedInputItemFilterSensitiveLog = exports.EntityItemFilterSensitiveLog = exports.ContextDefinitionFilterSensitiveLog = exports.AttributeValueFilterSensitiveLog = exports.PutSchemaOutputFilterSensitiveLog = exports.PutSchemaInputFilterSensitiveLog = exports.SchemaDefinitionFilterSensitiveLog = exports.UpdatePolicyTemplateInputFilterSensitiveLog = exports.UpdatePolicyOutputFilterSensitiveLog = exports.UpdatePolicyInputFilterSensitiveLog = exports.UpdatePolicyDefinitionFilterSensitiveLog = exports.UpdateStaticPolicyDefinitionFilterSensitiveLog = exports.ListPolicyTemplatesOutputFilterSensitiveLog = exports.PolicyTemplateItemFilterSensitiveLog = exports.ListPoliciesOutputFilterSensitiveLog = exports.PolicyItemFilterSensitiveLog = exports.PolicyDefinitionItemFilterSensitiveLog = exports.TemplateLinkedPolicyDefinitionItemFilterSensitiveLog = exports.StaticPolicyDefinitionItemFilterSensitiveLog = exports.ListPoliciesInputFilterSensitiveLog = exports.PolicyFilterFilterSensitiveLog = exports.IsAuthorizedWithTokenOutputFilterSensitiveLog = exports.IsAuthorizedOutputFilterSensitiveLog = exports.UpdateIdentitySourceInputFilterSensitiveLog = exports.UpdateConfigurationFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const VerifiedPermissionsServiceException_1 = require("./VerifiedPermissionsServiceException");
|
|
7
7
|
class AccessDeniedException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
@@ -17,35 +17,10 @@ class AccessDeniedException extends VerifiedPermissionsServiceException_1.Verifi
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
24
|
-
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
25
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
26
|
-
};
|
|
27
|
-
})(Configuration = exports.Configuration || (exports.Configuration = {}));
|
|
28
|
-
exports.ResourceType = {
|
|
29
|
-
IDENTITY_SOURCE: "IDENTITY_SOURCE",
|
|
30
|
-
POLICY: "POLICY",
|
|
31
|
-
POLICY_STORE: "POLICY_STORE",
|
|
32
|
-
POLICY_TEMPLATE: "POLICY_TEMPLATE",
|
|
33
|
-
SCHEMA: "SCHEMA",
|
|
20
|
+
exports.Decision = {
|
|
21
|
+
ALLOW: "ALLOW",
|
|
22
|
+
DENY: "DENY",
|
|
34
23
|
};
|
|
35
|
-
class ConflictException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
36
|
-
constructor(opts) {
|
|
37
|
-
super({
|
|
38
|
-
name: "ConflictException",
|
|
39
|
-
$fault: "client",
|
|
40
|
-
...opts,
|
|
41
|
-
});
|
|
42
|
-
this.name = "ConflictException";
|
|
43
|
-
this.$fault = "client";
|
|
44
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
45
|
-
this.resources = opts.resources;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.ConflictException = ConflictException;
|
|
49
24
|
class InternalServerException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
50
25
|
constructor(opts) {
|
|
51
26
|
super({
|
|
@@ -60,6 +35,13 @@ class InternalServerException extends VerifiedPermissionsServiceException_1.Veri
|
|
|
60
35
|
}
|
|
61
36
|
}
|
|
62
37
|
exports.InternalServerException = InternalServerException;
|
|
38
|
+
exports.ResourceType = {
|
|
39
|
+
IDENTITY_SOURCE: "IDENTITY_SOURCE",
|
|
40
|
+
POLICY: "POLICY",
|
|
41
|
+
POLICY_STORE: "POLICY_STORE",
|
|
42
|
+
POLICY_TEMPLATE: "POLICY_TEMPLATE",
|
|
43
|
+
SCHEMA: "SCHEMA",
|
|
44
|
+
};
|
|
63
45
|
class ResourceNotFoundException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
64
46
|
constructor(opts) {
|
|
65
47
|
super({
|
|
@@ -75,23 +57,6 @@ class ResourceNotFoundException extends VerifiedPermissionsServiceException_1.Ve
|
|
|
75
57
|
}
|
|
76
58
|
}
|
|
77
59
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
78
|
-
class ServiceQuotaExceededException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
79
|
-
constructor(opts) {
|
|
80
|
-
super({
|
|
81
|
-
name: "ServiceQuotaExceededException",
|
|
82
|
-
$fault: "client",
|
|
83
|
-
...opts,
|
|
84
|
-
});
|
|
85
|
-
this.name = "ServiceQuotaExceededException";
|
|
86
|
-
this.$fault = "client";
|
|
87
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
88
|
-
this.resourceId = opts.resourceId;
|
|
89
|
-
this.resourceType = opts.resourceType;
|
|
90
|
-
this.serviceCode = opts.serviceCode;
|
|
91
|
-
this.quotaCode = opts.quotaCode;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
95
60
|
class ThrottlingException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
96
61
|
constructor(opts) {
|
|
97
62
|
super({
|
|
@@ -124,6 +89,45 @@ class ValidationException extends VerifiedPermissionsServiceException_1.Verified
|
|
|
124
89
|
}
|
|
125
90
|
}
|
|
126
91
|
exports.ValidationException = ValidationException;
|
|
92
|
+
var Configuration;
|
|
93
|
+
(function (Configuration) {
|
|
94
|
+
Configuration.visit = (value, visitor) => {
|
|
95
|
+
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
96
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
97
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
98
|
+
};
|
|
99
|
+
})(Configuration = exports.Configuration || (exports.Configuration = {}));
|
|
100
|
+
class ConflictException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "ConflictException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
this.name = "ConflictException";
|
|
108
|
+
this.$fault = "client";
|
|
109
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
110
|
+
this.resources = opts.resources;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.ConflictException = ConflictException;
|
|
114
|
+
class ServiceQuotaExceededException extends VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException {
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "ServiceQuotaExceededException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts,
|
|
120
|
+
});
|
|
121
|
+
this.name = "ServiceQuotaExceededException";
|
|
122
|
+
this.$fault = "client";
|
|
123
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
124
|
+
this.resourceId = opts.resourceId;
|
|
125
|
+
this.resourceType = opts.resourceType;
|
|
126
|
+
this.serviceCode = opts.serviceCode;
|
|
127
|
+
this.quotaCode = opts.quotaCode;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
127
131
|
var PolicyDefinition;
|
|
128
132
|
(function (PolicyDefinition) {
|
|
129
133
|
PolicyDefinition.visit = (value, visitor) => {
|
|
@@ -142,10 +146,6 @@ exports.ValidationMode = {
|
|
|
142
146
|
OFF: "OFF",
|
|
143
147
|
STRICT: "STRICT",
|
|
144
148
|
};
|
|
145
|
-
exports.Decision = {
|
|
146
|
-
ALLOW: "ALLOW",
|
|
147
|
-
DENY: "DENY",
|
|
148
|
-
};
|
|
149
149
|
var EntityReference;
|
|
150
150
|
(function (EntityReference) {
|
|
151
151
|
EntityReference.visit = (value, visitor) => {
|
|
@@ -249,6 +249,10 @@ const EntityIdentifierFilterSensitiveLog = (obj) => ({
|
|
|
249
249
|
...(obj.entityId && { entityId: smithy_client_1.SENSITIVE_STRING }),
|
|
250
250
|
});
|
|
251
251
|
exports.EntityIdentifierFilterSensitiveLog = EntityIdentifierFilterSensitiveLog;
|
|
252
|
+
const EvaluationErrorItemFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
});
|
|
255
|
+
exports.EvaluationErrorItemFilterSensitiveLog = EvaluationErrorItemFilterSensitiveLog;
|
|
252
256
|
const CognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
253
257
|
...obj,
|
|
254
258
|
...(obj.clientIds && { clientIds: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -316,10 +320,6 @@ const EntityReferenceFilterSensitiveLog = (obj) => {
|
|
|
316
320
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
317
321
|
};
|
|
318
322
|
exports.EntityReferenceFilterSensitiveLog = EntityReferenceFilterSensitiveLog;
|
|
319
|
-
const EvaluationErrorItemFilterSensitiveLog = (obj) => ({
|
|
320
|
-
...obj,
|
|
321
|
-
});
|
|
322
|
-
exports.EvaluationErrorItemFilterSensitiveLog = EvaluationErrorItemFilterSensitiveLog;
|
|
323
323
|
const IdentitySourceDetailsFilterSensitiveLog = (obj) => ({
|
|
324
324
|
...obj,
|
|
325
325
|
...(obj.clientIds && { clientIds: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -569,6 +569,20 @@ const EntityItemFilterSensitiveLog = (obj) => ({
|
|
|
569
569
|
...(obj.parents && { parents: obj.parents.map((item) => (0, exports.EntityIdentifierFilterSensitiveLog)(item)) }),
|
|
570
570
|
});
|
|
571
571
|
exports.EntityItemFilterSensitiveLog = EntityItemFilterSensitiveLog;
|
|
572
|
+
const BatchIsAuthorizedInputItemFilterSensitiveLog = (obj) => ({
|
|
573
|
+
...obj,
|
|
574
|
+
...(obj.principal && { principal: (0, exports.EntityIdentifierFilterSensitiveLog)(obj.principal) }),
|
|
575
|
+
...(obj.action && { action: (0, exports.ActionIdentifierFilterSensitiveLog)(obj.action) }),
|
|
576
|
+
...(obj.resource && { resource: (0, exports.EntityIdentifierFilterSensitiveLog)(obj.resource) }),
|
|
577
|
+
...(obj.context && { context: (0, exports.ContextDefinitionFilterSensitiveLog)(obj.context) }),
|
|
578
|
+
});
|
|
579
|
+
exports.BatchIsAuthorizedInputItemFilterSensitiveLog = BatchIsAuthorizedInputItemFilterSensitiveLog;
|
|
580
|
+
const BatchIsAuthorizedOutputItemFilterSensitiveLog = (obj) => ({
|
|
581
|
+
...obj,
|
|
582
|
+
...(obj.request && { request: (0, exports.BatchIsAuthorizedInputItemFilterSensitiveLog)(obj.request) }),
|
|
583
|
+
...(obj.errors && { errors: smithy_client_1.SENSITIVE_STRING }),
|
|
584
|
+
});
|
|
585
|
+
exports.BatchIsAuthorizedOutputItemFilterSensitiveLog = BatchIsAuthorizedOutputItemFilterSensitiveLog;
|
|
572
586
|
const EntitiesDefinitionFilterSensitiveLog = (obj) => {
|
|
573
587
|
if (obj.entityList !== undefined)
|
|
574
588
|
return { entityList: obj.entityList.map((item) => (0, exports.EntityItemFilterSensitiveLog)(item)) };
|
|
@@ -576,6 +590,11 @@ const EntitiesDefinitionFilterSensitiveLog = (obj) => {
|
|
|
576
590
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
577
591
|
};
|
|
578
592
|
exports.EntitiesDefinitionFilterSensitiveLog = EntitiesDefinitionFilterSensitiveLog;
|
|
593
|
+
const BatchIsAuthorizedOutputFilterSensitiveLog = (obj) => ({
|
|
594
|
+
...obj,
|
|
595
|
+
...(obj.results && { results: obj.results.map((item) => (0, exports.BatchIsAuthorizedOutputItemFilterSensitiveLog)(item)) }),
|
|
596
|
+
});
|
|
597
|
+
exports.BatchIsAuthorizedOutputFilterSensitiveLog = BatchIsAuthorizedOutputFilterSensitiveLog;
|
|
579
598
|
const IsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
580
599
|
...obj,
|
|
581
600
|
...(obj.principal && { principal: (0, exports.EntityIdentifierFilterSensitiveLog)(obj.principal) }),
|
|
@@ -595,3 +614,9 @@ const IsAuthorizedWithTokenInputFilterSensitiveLog = (obj) => ({
|
|
|
595
614
|
...(obj.entities && { entities: (0, exports.EntitiesDefinitionFilterSensitiveLog)(obj.entities) }),
|
|
596
615
|
});
|
|
597
616
|
exports.IsAuthorizedWithTokenInputFilterSensitiveLog = IsAuthorizedWithTokenInputFilterSensitiveLog;
|
|
617
|
+
const BatchIsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
618
|
+
...obj,
|
|
619
|
+
...(obj.entities && { entities: (0, exports.EntitiesDefinitionFilterSensitiveLog)(obj.entities) }),
|
|
620
|
+
...(obj.requests && { requests: obj.requests.map((item) => (0, exports.BatchIsAuthorizedInputItemFilterSensitiveLog)(item)) }),
|
|
621
|
+
});
|
|
622
|
+
exports.BatchIsAuthorizedInputFilterSensitiveLog = BatchIsAuthorizedInputFilterSensitiveLog;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePolicyTemplateCommand = exports.de_UpdatePolicyStoreCommand = exports.de_UpdatePolicyCommand = exports.de_UpdateIdentitySourceCommand = exports.de_PutSchemaCommand = exports.de_ListPolicyTemplatesCommand = exports.de_ListPolicyStoresCommand = exports.de_ListPoliciesCommand = exports.de_ListIdentitySourcesCommand = exports.de_IsAuthorizedWithTokenCommand = exports.de_IsAuthorizedCommand = exports.de_GetSchemaCommand = exports.de_GetPolicyTemplateCommand = exports.de_GetPolicyStoreCommand = exports.de_GetPolicyCommand = exports.de_GetIdentitySourceCommand = exports.de_DeletePolicyTemplateCommand = exports.de_DeletePolicyStoreCommand = exports.de_DeletePolicyCommand = exports.de_DeleteIdentitySourceCommand = exports.de_CreatePolicyTemplateCommand = exports.de_CreatePolicyStoreCommand = exports.de_CreatePolicyCommand = exports.de_CreateIdentitySourceCommand = exports.se_UpdatePolicyTemplateCommand = exports.se_UpdatePolicyStoreCommand = exports.se_UpdatePolicyCommand = exports.se_UpdateIdentitySourceCommand = exports.se_PutSchemaCommand = exports.se_ListPolicyTemplatesCommand = exports.se_ListPolicyStoresCommand = exports.se_ListPoliciesCommand = exports.se_ListIdentitySourcesCommand = exports.se_IsAuthorizedWithTokenCommand = exports.se_IsAuthorizedCommand = exports.se_GetSchemaCommand = exports.se_GetPolicyTemplateCommand = exports.se_GetPolicyStoreCommand = exports.se_GetPolicyCommand = exports.se_GetIdentitySourceCommand = exports.se_DeletePolicyTemplateCommand = exports.se_DeletePolicyStoreCommand = exports.se_DeletePolicyCommand = exports.se_DeleteIdentitySourceCommand = exports.se_CreatePolicyTemplateCommand = exports.se_CreatePolicyStoreCommand = exports.se_CreatePolicyCommand = exports.se_CreateIdentitySourceCommand = void 0;
|
|
3
|
+
exports.de_UpdatePolicyTemplateCommand = exports.de_UpdatePolicyStoreCommand = exports.de_UpdatePolicyCommand = exports.de_UpdateIdentitySourceCommand = exports.de_PutSchemaCommand = exports.de_ListPolicyTemplatesCommand = exports.de_ListPolicyStoresCommand = exports.de_ListPoliciesCommand = exports.de_ListIdentitySourcesCommand = exports.de_IsAuthorizedWithTokenCommand = exports.de_IsAuthorizedCommand = exports.de_GetSchemaCommand = exports.de_GetPolicyTemplateCommand = exports.de_GetPolicyStoreCommand = exports.de_GetPolicyCommand = exports.de_GetIdentitySourceCommand = exports.de_DeletePolicyTemplateCommand = exports.de_DeletePolicyStoreCommand = exports.de_DeletePolicyCommand = exports.de_DeleteIdentitySourceCommand = exports.de_CreatePolicyTemplateCommand = exports.de_CreatePolicyStoreCommand = exports.de_CreatePolicyCommand = exports.de_CreateIdentitySourceCommand = exports.de_BatchIsAuthorizedCommand = exports.se_UpdatePolicyTemplateCommand = exports.se_UpdatePolicyStoreCommand = exports.se_UpdatePolicyCommand = exports.se_UpdateIdentitySourceCommand = exports.se_PutSchemaCommand = exports.se_ListPolicyTemplatesCommand = exports.se_ListPolicyStoresCommand = exports.se_ListPoliciesCommand = exports.se_ListIdentitySourcesCommand = exports.se_IsAuthorizedWithTokenCommand = exports.se_IsAuthorizedCommand = exports.se_GetSchemaCommand = exports.se_GetPolicyTemplateCommand = exports.se_GetPolicyStoreCommand = exports.se_GetPolicyCommand = exports.se_GetIdentitySourceCommand = exports.se_DeletePolicyTemplateCommand = exports.se_DeletePolicyStoreCommand = exports.se_DeletePolicyCommand = exports.se_DeleteIdentitySourceCommand = exports.se_CreatePolicyTemplateCommand = exports.se_CreatePolicyStoreCommand = exports.se_CreatePolicyCommand = exports.se_CreateIdentitySourceCommand = exports.se_BatchIsAuthorizedCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const VerifiedPermissionsServiceException_1 = require("../models/VerifiedPermissionsServiceException");
|
|
10
|
+
const se_BatchIsAuthorizedCommand = async (input, context) => {
|
|
11
|
+
const headers = sharedHeaders("BatchIsAuthorized");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
|
|
14
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
+
};
|
|
16
|
+
exports.se_BatchIsAuthorizedCommand = se_BatchIsAuthorizedCommand;
|
|
10
17
|
const se_CreateIdentitySourceCommand = async (input, context) => {
|
|
11
18
|
const headers = sharedHeaders("CreateIdentitySource");
|
|
12
19
|
let body;
|
|
@@ -175,6 +182,51 @@ const se_UpdatePolicyTemplateCommand = async (input, context) => {
|
|
|
175
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
183
|
};
|
|
177
184
|
exports.se_UpdatePolicyTemplateCommand = se_UpdatePolicyTemplateCommand;
|
|
185
|
+
const de_BatchIsAuthorizedCommand = async (output, context) => {
|
|
186
|
+
if (output.statusCode >= 300) {
|
|
187
|
+
return de_BatchIsAuthorizedCommandError(output, context);
|
|
188
|
+
}
|
|
189
|
+
const data = await parseBody(output.body, context);
|
|
190
|
+
let contents = {};
|
|
191
|
+
contents = de_BatchIsAuthorizedOutput(data, context);
|
|
192
|
+
const response = {
|
|
193
|
+
$metadata: deserializeMetadata(output),
|
|
194
|
+
...contents,
|
|
195
|
+
};
|
|
196
|
+
return response;
|
|
197
|
+
};
|
|
198
|
+
exports.de_BatchIsAuthorizedCommand = de_BatchIsAuthorizedCommand;
|
|
199
|
+
const de_BatchIsAuthorizedCommandError = async (output, context) => {
|
|
200
|
+
const parsedOutput = {
|
|
201
|
+
...output,
|
|
202
|
+
body: await parseErrorBody(output.body, context),
|
|
203
|
+
};
|
|
204
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
205
|
+
switch (errorCode) {
|
|
206
|
+
case "AccessDeniedException":
|
|
207
|
+
case "com.amazonaws.verifiedpermissions#AccessDeniedException":
|
|
208
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
209
|
+
case "InternalServerException":
|
|
210
|
+
case "com.amazonaws.verifiedpermissions#InternalServerException":
|
|
211
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
212
|
+
case "ResourceNotFoundException":
|
|
213
|
+
case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
|
|
214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
215
|
+
case "ThrottlingException":
|
|
216
|
+
case "com.amazonaws.verifiedpermissions#ThrottlingException":
|
|
217
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
218
|
+
case "ValidationException":
|
|
219
|
+
case "com.amazonaws.verifiedpermissions#ValidationException":
|
|
220
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
221
|
+
default:
|
|
222
|
+
const parsedBody = parsedOutput.body;
|
|
223
|
+
return throwDefaultError({
|
|
224
|
+
output,
|
|
225
|
+
parsedBody,
|
|
226
|
+
errorCode,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
};
|
|
178
230
|
const de_CreateIdentitySourceCommand = async (output, context) => {
|
|
179
231
|
if (output.statusCode >= 300) {
|
|
180
232
|
return de_CreateIdentitySourceCommandError(output, context);
|
|
@@ -1374,6 +1426,28 @@ const se_AttributeValue = (input, context) => {
|
|
|
1374
1426
|
_: (name, value) => ({ name: value }),
|
|
1375
1427
|
});
|
|
1376
1428
|
};
|
|
1429
|
+
const se_BatchIsAuthorizedInput = (input, context) => {
|
|
1430
|
+
return (0, smithy_client_1.take)(input, {
|
|
1431
|
+
entities: (_) => se_EntitiesDefinition(_, context),
|
|
1432
|
+
policyStoreId: [],
|
|
1433
|
+
requests: (_) => se_BatchIsAuthorizedInputList(_, context),
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1436
|
+
const se_BatchIsAuthorizedInputItem = (input, context) => {
|
|
1437
|
+
return (0, smithy_client_1.take)(input, {
|
|
1438
|
+
action: smithy_client_1._json,
|
|
1439
|
+
context: (_) => se_ContextDefinition(_, context),
|
|
1440
|
+
principal: smithy_client_1._json,
|
|
1441
|
+
resource: smithy_client_1._json,
|
|
1442
|
+
});
|
|
1443
|
+
};
|
|
1444
|
+
const se_BatchIsAuthorizedInputList = (input, context) => {
|
|
1445
|
+
return input
|
|
1446
|
+
.filter((e) => e != null)
|
|
1447
|
+
.map((entry) => {
|
|
1448
|
+
return se_BatchIsAuthorizedInputItem(entry, context);
|
|
1449
|
+
});
|
|
1450
|
+
};
|
|
1377
1451
|
const se_ContextDefinition = (input, context) => {
|
|
1378
1452
|
return models_0_1.ContextDefinition.visit(input, {
|
|
1379
1453
|
contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
|
|
@@ -1484,6 +1558,79 @@ const se_SetAttribute = (input, context) => {
|
|
|
1484
1558
|
return se_AttributeValue(entry, context);
|
|
1485
1559
|
});
|
|
1486
1560
|
};
|
|
1561
|
+
const de_AttributeValue = (output, context) => {
|
|
1562
|
+
if ((0, smithy_client_1.expectBoolean)(output.boolean) !== undefined) {
|
|
1563
|
+
return { boolean: (0, smithy_client_1.expectBoolean)(output.boolean) };
|
|
1564
|
+
}
|
|
1565
|
+
if (output.entityIdentifier != null) {
|
|
1566
|
+
return {
|
|
1567
|
+
entityIdentifier: (0, smithy_client_1._json)(output.entityIdentifier),
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
if ((0, smithy_client_1.expectLong)(output.long) !== undefined) {
|
|
1571
|
+
return { long: (0, smithy_client_1.expectLong)(output.long) };
|
|
1572
|
+
}
|
|
1573
|
+
if (output.record != null) {
|
|
1574
|
+
return {
|
|
1575
|
+
record: de_RecordAttribute(output.record, context),
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
if (output.set != null) {
|
|
1579
|
+
return {
|
|
1580
|
+
set: de_SetAttribute(output.set, context),
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
if ((0, smithy_client_1.expectString)(output.string) !== undefined) {
|
|
1584
|
+
return { string: (0, smithy_client_1.expectString)(output.string) };
|
|
1585
|
+
}
|
|
1586
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1587
|
+
};
|
|
1588
|
+
const de_BatchIsAuthorizedInputItem = (output, context) => {
|
|
1589
|
+
return (0, smithy_client_1.take)(output, {
|
|
1590
|
+
action: smithy_client_1._json,
|
|
1591
|
+
context: (_) => de_ContextDefinition((0, core_1.awsExpectUnion)(_), context),
|
|
1592
|
+
principal: smithy_client_1._json,
|
|
1593
|
+
resource: smithy_client_1._json,
|
|
1594
|
+
});
|
|
1595
|
+
};
|
|
1596
|
+
const de_BatchIsAuthorizedOutput = (output, context) => {
|
|
1597
|
+
return (0, smithy_client_1.take)(output, {
|
|
1598
|
+
results: (_) => de_BatchIsAuthorizedOutputList(_, context),
|
|
1599
|
+
});
|
|
1600
|
+
};
|
|
1601
|
+
const de_BatchIsAuthorizedOutputItem = (output, context) => {
|
|
1602
|
+
return (0, smithy_client_1.take)(output, {
|
|
1603
|
+
decision: smithy_client_1.expectString,
|
|
1604
|
+
determiningPolicies: smithy_client_1._json,
|
|
1605
|
+
errors: smithy_client_1._json,
|
|
1606
|
+
request: (_) => de_BatchIsAuthorizedInputItem(_, context),
|
|
1607
|
+
});
|
|
1608
|
+
};
|
|
1609
|
+
const de_BatchIsAuthorizedOutputList = (output, context) => {
|
|
1610
|
+
const retVal = (output || [])
|
|
1611
|
+
.filter((e) => e != null)
|
|
1612
|
+
.map((entry) => {
|
|
1613
|
+
return de_BatchIsAuthorizedOutputItem(entry, context);
|
|
1614
|
+
});
|
|
1615
|
+
return retVal;
|
|
1616
|
+
};
|
|
1617
|
+
const de_ContextDefinition = (output, context) => {
|
|
1618
|
+
if (output.contextMap != null) {
|
|
1619
|
+
return {
|
|
1620
|
+
contextMap: de_ContextMap(output.contextMap, context),
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1624
|
+
};
|
|
1625
|
+
const de_ContextMap = (output, context) => {
|
|
1626
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1627
|
+
if (value === null) {
|
|
1628
|
+
return acc;
|
|
1629
|
+
}
|
|
1630
|
+
acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
|
|
1631
|
+
return acc;
|
|
1632
|
+
}, {});
|
|
1633
|
+
};
|
|
1487
1634
|
const de_CreateIdentitySourceOutput = (output, context) => {
|
|
1488
1635
|
return (0, smithy_client_1.take)(output, {
|
|
1489
1636
|
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1670,6 +1817,23 @@ const de_PutSchemaOutput = (output, context) => {
|
|
|
1670
1817
|
policyStoreId: smithy_client_1.expectString,
|
|
1671
1818
|
});
|
|
1672
1819
|
};
|
|
1820
|
+
const de_RecordAttribute = (output, context) => {
|
|
1821
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1822
|
+
if (value === null) {
|
|
1823
|
+
return acc;
|
|
1824
|
+
}
|
|
1825
|
+
acc[key] = de_AttributeValue((0, core_1.awsExpectUnion)(value), context);
|
|
1826
|
+
return acc;
|
|
1827
|
+
}, {});
|
|
1828
|
+
};
|
|
1829
|
+
const de_SetAttribute = (output, context) => {
|
|
1830
|
+
const retVal = (output || [])
|
|
1831
|
+
.filter((e) => e != null)
|
|
1832
|
+
.map((entry) => {
|
|
1833
|
+
return de_AttributeValue((0, core_1.awsExpectUnion)(entry), context);
|
|
1834
|
+
});
|
|
1835
|
+
return retVal;
|
|
1836
|
+
};
|
|
1673
1837
|
const de_UpdateIdentitySourceOutput = (output, context) => {
|
|
1674
1838
|
return (0, smithy_client_1.take)(output, {
|
|
1675
1839
|
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { BatchIsAuthorizedCommand, } from "./commands/BatchIsAuthorizedCommand";
|
|
2
3
|
import { CreateIdentitySourceCommand, } from "./commands/CreateIdentitySourceCommand";
|
|
3
4
|
import { CreatePolicyCommand, } from "./commands/CreatePolicyCommand";
|
|
4
5
|
import { CreatePolicyStoreCommand, } from "./commands/CreatePolicyStoreCommand";
|
|
@@ -25,6 +26,7 @@ import { UpdatePolicyStoreCommand, } from "./commands/UpdatePolicyStoreCommand";
|
|
|
25
26
|
import { UpdatePolicyTemplateCommand, } from "./commands/UpdatePolicyTemplateCommand";
|
|
26
27
|
import { VerifiedPermissionsClient } from "./VerifiedPermissionsClient";
|
|
27
28
|
const commands = {
|
|
29
|
+
BatchIsAuthorizedCommand,
|
|
28
30
|
CreateIdentitySourceCommand,
|
|
29
31
|
CreatePolicyCommand,
|
|
30
32
|
CreatePolicyStoreCommand,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { BatchIsAuthorizedInputFilterSensitiveLog, BatchIsAuthorizedOutputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_BatchIsAuthorizedCommand, se_BatchIsAuthorizedCommand } from "../protocols/Aws_json1_0";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class BatchIsAuthorizedCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchIsAuthorizedCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "VerifiedPermissionsClient";
|
|
27
|
+
const commandName = "BatchIsAuthorizedCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: BatchIsAuthorizedInputFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: BatchIsAuthorizedOutputFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "VerifiedPermissions",
|
|
36
|
+
operation: "BatchIsAuthorized",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_BatchIsAuthorizedCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_BatchIsAuthorizedCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|