@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
|
@@ -12,34 +12,10 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
19
|
-
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
20
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
21
|
-
};
|
|
22
|
-
})(Configuration || (Configuration = {}));
|
|
23
|
-
export const ResourceType = {
|
|
24
|
-
IDENTITY_SOURCE: "IDENTITY_SOURCE",
|
|
25
|
-
POLICY: "POLICY",
|
|
26
|
-
POLICY_STORE: "POLICY_STORE",
|
|
27
|
-
POLICY_TEMPLATE: "POLICY_TEMPLATE",
|
|
28
|
-
SCHEMA: "SCHEMA",
|
|
15
|
+
export const Decision = {
|
|
16
|
+
ALLOW: "ALLOW",
|
|
17
|
+
DENY: "DENY",
|
|
29
18
|
};
|
|
30
|
-
export class ConflictException extends __BaseException {
|
|
31
|
-
constructor(opts) {
|
|
32
|
-
super({
|
|
33
|
-
name: "ConflictException",
|
|
34
|
-
$fault: "client",
|
|
35
|
-
...opts,
|
|
36
|
-
});
|
|
37
|
-
this.name = "ConflictException";
|
|
38
|
-
this.$fault = "client";
|
|
39
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
40
|
-
this.resources = opts.resources;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
19
|
export class InternalServerException extends __BaseException {
|
|
44
20
|
constructor(opts) {
|
|
45
21
|
super({
|
|
@@ -53,6 +29,13 @@ export class InternalServerException extends __BaseException {
|
|
|
53
29
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
54
30
|
}
|
|
55
31
|
}
|
|
32
|
+
export const ResourceType = {
|
|
33
|
+
IDENTITY_SOURCE: "IDENTITY_SOURCE",
|
|
34
|
+
POLICY: "POLICY",
|
|
35
|
+
POLICY_STORE: "POLICY_STORE",
|
|
36
|
+
POLICY_TEMPLATE: "POLICY_TEMPLATE",
|
|
37
|
+
SCHEMA: "SCHEMA",
|
|
38
|
+
};
|
|
56
39
|
export class ResourceNotFoundException extends __BaseException {
|
|
57
40
|
constructor(opts) {
|
|
58
41
|
super({
|
|
@@ -67,22 +50,6 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
67
50
|
this.resourceType = opts.resourceType;
|
|
68
51
|
}
|
|
69
52
|
}
|
|
70
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
71
|
-
constructor(opts) {
|
|
72
|
-
super({
|
|
73
|
-
name: "ServiceQuotaExceededException",
|
|
74
|
-
$fault: "client",
|
|
75
|
-
...opts,
|
|
76
|
-
});
|
|
77
|
-
this.name = "ServiceQuotaExceededException";
|
|
78
|
-
this.$fault = "client";
|
|
79
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
80
|
-
this.resourceId = opts.resourceId;
|
|
81
|
-
this.resourceType = opts.resourceType;
|
|
82
|
-
this.serviceCode = opts.serviceCode;
|
|
83
|
-
this.quotaCode = opts.quotaCode;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
53
|
export class ThrottlingException extends __BaseException {
|
|
87
54
|
constructor(opts) {
|
|
88
55
|
super({
|
|
@@ -113,6 +80,43 @@ export class ValidationException extends __BaseException {
|
|
|
113
80
|
this.fieldList = opts.fieldList;
|
|
114
81
|
}
|
|
115
82
|
}
|
|
83
|
+
export var Configuration;
|
|
84
|
+
(function (Configuration) {
|
|
85
|
+
Configuration.visit = (value, visitor) => {
|
|
86
|
+
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
87
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
88
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
89
|
+
};
|
|
90
|
+
})(Configuration || (Configuration = {}));
|
|
91
|
+
export class ConflictException extends __BaseException {
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "ConflictException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
this.name = "ConflictException";
|
|
99
|
+
this.$fault = "client";
|
|
100
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
101
|
+
this.resources = opts.resources;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "ServiceQuotaExceededException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
this.name = "ServiceQuotaExceededException";
|
|
112
|
+
this.$fault = "client";
|
|
113
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
114
|
+
this.resourceId = opts.resourceId;
|
|
115
|
+
this.resourceType = opts.resourceType;
|
|
116
|
+
this.serviceCode = opts.serviceCode;
|
|
117
|
+
this.quotaCode = opts.quotaCode;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
116
120
|
export var PolicyDefinition;
|
|
117
121
|
(function (PolicyDefinition) {
|
|
118
122
|
PolicyDefinition.visit = (value, visitor) => {
|
|
@@ -131,10 +135,6 @@ export const ValidationMode = {
|
|
|
131
135
|
OFF: "OFF",
|
|
132
136
|
STRICT: "STRICT",
|
|
133
137
|
};
|
|
134
|
-
export const Decision = {
|
|
135
|
-
ALLOW: "ALLOW",
|
|
136
|
-
DENY: "DENY",
|
|
137
|
-
};
|
|
138
138
|
export var EntityReference;
|
|
139
139
|
(function (EntityReference) {
|
|
140
140
|
EntityReference.visit = (value, visitor) => {
|
|
@@ -236,6 +236,9 @@ export const EntityIdentifierFilterSensitiveLog = (obj) => ({
|
|
|
236
236
|
...(obj.entityType && { entityType: SENSITIVE_STRING }),
|
|
237
237
|
...(obj.entityId && { entityId: SENSITIVE_STRING }),
|
|
238
238
|
});
|
|
239
|
+
export const EvaluationErrorItemFilterSensitiveLog = (obj) => ({
|
|
240
|
+
...obj,
|
|
241
|
+
});
|
|
239
242
|
export const CognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
240
243
|
...obj,
|
|
241
244
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
@@ -293,9 +296,6 @@ export const EntityReferenceFilterSensitiveLog = (obj) => {
|
|
|
293
296
|
if (obj.$unknown !== undefined)
|
|
294
297
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
295
298
|
};
|
|
296
|
-
export const EvaluationErrorItemFilterSensitiveLog = (obj) => ({
|
|
297
|
-
...obj,
|
|
298
|
-
});
|
|
299
299
|
export const IdentitySourceDetailsFilterSensitiveLog = (obj) => ({
|
|
300
300
|
...obj,
|
|
301
301
|
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
@@ -507,12 +507,28 @@ export const EntityItemFilterSensitiveLog = (obj) => ({
|
|
|
507
507
|
}),
|
|
508
508
|
...(obj.parents && { parents: obj.parents.map((item) => EntityIdentifierFilterSensitiveLog(item)) }),
|
|
509
509
|
});
|
|
510
|
+
export const BatchIsAuthorizedInputItemFilterSensitiveLog = (obj) => ({
|
|
511
|
+
...obj,
|
|
512
|
+
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
513
|
+
...(obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) }),
|
|
514
|
+
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
515
|
+
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
516
|
+
});
|
|
517
|
+
export const BatchIsAuthorizedOutputItemFilterSensitiveLog = (obj) => ({
|
|
518
|
+
...obj,
|
|
519
|
+
...(obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) }),
|
|
520
|
+
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
521
|
+
});
|
|
510
522
|
export const EntitiesDefinitionFilterSensitiveLog = (obj) => {
|
|
511
523
|
if (obj.entityList !== undefined)
|
|
512
524
|
return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
|
|
513
525
|
if (obj.$unknown !== undefined)
|
|
514
526
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
515
527
|
};
|
|
528
|
+
export const BatchIsAuthorizedOutputFilterSensitiveLog = (obj) => ({
|
|
529
|
+
...obj,
|
|
530
|
+
...(obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }),
|
|
531
|
+
});
|
|
516
532
|
export const IsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
517
533
|
...obj,
|
|
518
534
|
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
@@ -530,3 +546,8 @@ export const IsAuthorizedWithTokenInputFilterSensitiveLog = (obj) => ({
|
|
|
530
546
|
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
531
547
|
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
532
548
|
});
|
|
549
|
+
export const BatchIsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
550
|
+
...obj,
|
|
551
|
+
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
552
|
+
...(obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }),
|
|
553
|
+
});
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectString as __expectString, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, AttributeValue, ConflictException, ContextDefinition, EntitiesDefinition, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { VerifiedPermissionsServiceException as __BaseException } from "../models/VerifiedPermissionsServiceException";
|
|
7
|
+
export const se_BatchIsAuthorizedCommand = async (input, context) => {
|
|
8
|
+
const headers = sharedHeaders("BatchIsAuthorized");
|
|
9
|
+
let body;
|
|
10
|
+
body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
|
|
11
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
+
};
|
|
7
13
|
export const se_CreateIdentitySourceCommand = async (input, context) => {
|
|
8
14
|
const headers = sharedHeaders("CreateIdentitySource");
|
|
9
15
|
let body;
|
|
@@ -148,6 +154,50 @@ export const se_UpdatePolicyTemplateCommand = async (input, context) => {
|
|
|
148
154
|
body = JSON.stringify(_json(input));
|
|
149
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
156
|
};
|
|
157
|
+
export const de_BatchIsAuthorizedCommand = async (output, context) => {
|
|
158
|
+
if (output.statusCode >= 300) {
|
|
159
|
+
return de_BatchIsAuthorizedCommandError(output, context);
|
|
160
|
+
}
|
|
161
|
+
const data = await parseBody(output.body, context);
|
|
162
|
+
let contents = {};
|
|
163
|
+
contents = de_BatchIsAuthorizedOutput(data, context);
|
|
164
|
+
const response = {
|
|
165
|
+
$metadata: deserializeMetadata(output),
|
|
166
|
+
...contents,
|
|
167
|
+
};
|
|
168
|
+
return response;
|
|
169
|
+
};
|
|
170
|
+
const de_BatchIsAuthorizedCommandError = async (output, context) => {
|
|
171
|
+
const parsedOutput = {
|
|
172
|
+
...output,
|
|
173
|
+
body: await parseErrorBody(output.body, context),
|
|
174
|
+
};
|
|
175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
176
|
+
switch (errorCode) {
|
|
177
|
+
case "AccessDeniedException":
|
|
178
|
+
case "com.amazonaws.verifiedpermissions#AccessDeniedException":
|
|
179
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
180
|
+
case "InternalServerException":
|
|
181
|
+
case "com.amazonaws.verifiedpermissions#InternalServerException":
|
|
182
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
183
|
+
case "ResourceNotFoundException":
|
|
184
|
+
case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
|
|
185
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
186
|
+
case "ThrottlingException":
|
|
187
|
+
case "com.amazonaws.verifiedpermissions#ThrottlingException":
|
|
188
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
189
|
+
case "ValidationException":
|
|
190
|
+
case "com.amazonaws.verifiedpermissions#ValidationException":
|
|
191
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
192
|
+
default:
|
|
193
|
+
const parsedBody = parsedOutput.body;
|
|
194
|
+
return throwDefaultError({
|
|
195
|
+
output,
|
|
196
|
+
parsedBody,
|
|
197
|
+
errorCode,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
};
|
|
151
201
|
export const de_CreateIdentitySourceCommand = async (output, context) => {
|
|
152
202
|
if (output.statusCode >= 300) {
|
|
153
203
|
return de_CreateIdentitySourceCommandError(output, context);
|
|
@@ -1323,6 +1373,28 @@ const se_AttributeValue = (input, context) => {
|
|
|
1323
1373
|
_: (name, value) => ({ name: value }),
|
|
1324
1374
|
});
|
|
1325
1375
|
};
|
|
1376
|
+
const se_BatchIsAuthorizedInput = (input, context) => {
|
|
1377
|
+
return take(input, {
|
|
1378
|
+
entities: (_) => se_EntitiesDefinition(_, context),
|
|
1379
|
+
policyStoreId: [],
|
|
1380
|
+
requests: (_) => se_BatchIsAuthorizedInputList(_, context),
|
|
1381
|
+
});
|
|
1382
|
+
};
|
|
1383
|
+
const se_BatchIsAuthorizedInputItem = (input, context) => {
|
|
1384
|
+
return take(input, {
|
|
1385
|
+
action: _json,
|
|
1386
|
+
context: (_) => se_ContextDefinition(_, context),
|
|
1387
|
+
principal: _json,
|
|
1388
|
+
resource: _json,
|
|
1389
|
+
});
|
|
1390
|
+
};
|
|
1391
|
+
const se_BatchIsAuthorizedInputList = (input, context) => {
|
|
1392
|
+
return input
|
|
1393
|
+
.filter((e) => e != null)
|
|
1394
|
+
.map((entry) => {
|
|
1395
|
+
return se_BatchIsAuthorizedInputItem(entry, context);
|
|
1396
|
+
});
|
|
1397
|
+
};
|
|
1326
1398
|
const se_ContextDefinition = (input, context) => {
|
|
1327
1399
|
return ContextDefinition.visit(input, {
|
|
1328
1400
|
contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
|
|
@@ -1433,6 +1505,79 @@ const se_SetAttribute = (input, context) => {
|
|
|
1433
1505
|
return se_AttributeValue(entry, context);
|
|
1434
1506
|
});
|
|
1435
1507
|
};
|
|
1508
|
+
const de_AttributeValue = (output, context) => {
|
|
1509
|
+
if (__expectBoolean(output.boolean) !== undefined) {
|
|
1510
|
+
return { boolean: __expectBoolean(output.boolean) };
|
|
1511
|
+
}
|
|
1512
|
+
if (output.entityIdentifier != null) {
|
|
1513
|
+
return {
|
|
1514
|
+
entityIdentifier: _json(output.entityIdentifier),
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
if (__expectLong(output.long) !== undefined) {
|
|
1518
|
+
return { long: __expectLong(output.long) };
|
|
1519
|
+
}
|
|
1520
|
+
if (output.record != null) {
|
|
1521
|
+
return {
|
|
1522
|
+
record: de_RecordAttribute(output.record, context),
|
|
1523
|
+
};
|
|
1524
|
+
}
|
|
1525
|
+
if (output.set != null) {
|
|
1526
|
+
return {
|
|
1527
|
+
set: de_SetAttribute(output.set, context),
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
if (__expectString(output.string) !== undefined) {
|
|
1531
|
+
return { string: __expectString(output.string) };
|
|
1532
|
+
}
|
|
1533
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1534
|
+
};
|
|
1535
|
+
const de_BatchIsAuthorizedInputItem = (output, context) => {
|
|
1536
|
+
return take(output, {
|
|
1537
|
+
action: _json,
|
|
1538
|
+
context: (_) => de_ContextDefinition(__expectUnion(_), context),
|
|
1539
|
+
principal: _json,
|
|
1540
|
+
resource: _json,
|
|
1541
|
+
});
|
|
1542
|
+
};
|
|
1543
|
+
const de_BatchIsAuthorizedOutput = (output, context) => {
|
|
1544
|
+
return take(output, {
|
|
1545
|
+
results: (_) => de_BatchIsAuthorizedOutputList(_, context),
|
|
1546
|
+
});
|
|
1547
|
+
};
|
|
1548
|
+
const de_BatchIsAuthorizedOutputItem = (output, context) => {
|
|
1549
|
+
return take(output, {
|
|
1550
|
+
decision: __expectString,
|
|
1551
|
+
determiningPolicies: _json,
|
|
1552
|
+
errors: _json,
|
|
1553
|
+
request: (_) => de_BatchIsAuthorizedInputItem(_, context),
|
|
1554
|
+
});
|
|
1555
|
+
};
|
|
1556
|
+
const de_BatchIsAuthorizedOutputList = (output, context) => {
|
|
1557
|
+
const retVal = (output || [])
|
|
1558
|
+
.filter((e) => e != null)
|
|
1559
|
+
.map((entry) => {
|
|
1560
|
+
return de_BatchIsAuthorizedOutputItem(entry, context);
|
|
1561
|
+
});
|
|
1562
|
+
return retVal;
|
|
1563
|
+
};
|
|
1564
|
+
const de_ContextDefinition = (output, context) => {
|
|
1565
|
+
if (output.contextMap != null) {
|
|
1566
|
+
return {
|
|
1567
|
+
contextMap: de_ContextMap(output.contextMap, context),
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1571
|
+
};
|
|
1572
|
+
const de_ContextMap = (output, context) => {
|
|
1573
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1574
|
+
if (value === null) {
|
|
1575
|
+
return acc;
|
|
1576
|
+
}
|
|
1577
|
+
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
1578
|
+
return acc;
|
|
1579
|
+
}, {});
|
|
1580
|
+
};
|
|
1436
1581
|
const de_CreateIdentitySourceOutput = (output, context) => {
|
|
1437
1582
|
return take(output, {
|
|
1438
1583
|
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
@@ -1619,6 +1764,23 @@ const de_PutSchemaOutput = (output, context) => {
|
|
|
1619
1764
|
policyStoreId: __expectString,
|
|
1620
1765
|
});
|
|
1621
1766
|
};
|
|
1767
|
+
const de_RecordAttribute = (output, context) => {
|
|
1768
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1769
|
+
if (value === null) {
|
|
1770
|
+
return acc;
|
|
1771
|
+
}
|
|
1772
|
+
acc[key] = de_AttributeValue(__expectUnion(value), context);
|
|
1773
|
+
return acc;
|
|
1774
|
+
}, {});
|
|
1775
|
+
};
|
|
1776
|
+
const de_SetAttribute = (output, context) => {
|
|
1777
|
+
const retVal = (output || [])
|
|
1778
|
+
.filter((e) => e != null)
|
|
1779
|
+
.map((entry) => {
|
|
1780
|
+
return de_AttributeValue(__expectUnion(entry), context);
|
|
1781
|
+
});
|
|
1782
|
+
return retVal;
|
|
1783
|
+
};
|
|
1622
1784
|
const de_UpdateIdentitySourceOutput = (output, context) => {
|
|
1623
1785
|
return take(output, {
|
|
1624
1786
|
createdDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
|
|
2
3
|
import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
|
|
3
4
|
import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
|
|
4
5
|
import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "./commands/CreatePolicyStoreCommand";
|
|
@@ -25,6 +26,12 @@ import { UpdatePolicyStoreCommandInput, UpdatePolicyStoreCommandOutput } from ".
|
|
|
25
26
|
import { UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput } from "./commands/UpdatePolicyTemplateCommand";
|
|
26
27
|
import { VerifiedPermissionsClient } from "./VerifiedPermissionsClient";
|
|
27
28
|
export interface VerifiedPermissions {
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link BatchIsAuthorizedCommand}
|
|
31
|
+
*/
|
|
32
|
+
batchIsAuthorized(args: BatchIsAuthorizedCommandInput, options?: __HttpHandlerOptions): Promise<BatchIsAuthorizedCommandOutput>;
|
|
33
|
+
batchIsAuthorized(args: BatchIsAuthorizedCommandInput, cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void): void;
|
|
34
|
+
batchIsAuthorized(args: BatchIsAuthorizedCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void): void;
|
|
28
35
|
/**
|
|
29
36
|
* @see {@link CreateIdentitySourceCommand}
|
|
30
37
|
*/
|
|
@@ -8,6 +8,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"
|
|
|
8
8
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
9
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
10
|
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
|
+
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
|
|
11
12
|
import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
|
|
12
13
|
import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
|
|
13
14
|
import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "./commands/CreatePolicyStoreCommand";
|
|
@@ -38,11 +39,11 @@ export { __Client };
|
|
|
38
39
|
/**
|
|
39
40
|
* @public
|
|
40
41
|
*/
|
|
41
|
-
export type ServiceInputTypes = CreateIdentitySourceCommandInput | CreatePolicyCommandInput | CreatePolicyStoreCommandInput | CreatePolicyTemplateCommandInput | DeleteIdentitySourceCommandInput | DeletePolicyCommandInput | DeletePolicyStoreCommandInput | DeletePolicyTemplateCommandInput | GetIdentitySourceCommandInput | GetPolicyCommandInput | GetPolicyStoreCommandInput | GetPolicyTemplateCommandInput | GetSchemaCommandInput | IsAuthorizedCommandInput | IsAuthorizedWithTokenCommandInput | ListIdentitySourcesCommandInput | ListPoliciesCommandInput | ListPolicyStoresCommandInput | ListPolicyTemplatesCommandInput | PutSchemaCommandInput | UpdateIdentitySourceCommandInput | UpdatePolicyCommandInput | UpdatePolicyStoreCommandInput | UpdatePolicyTemplateCommandInput;
|
|
42
|
+
export type ServiceInputTypes = BatchIsAuthorizedCommandInput | CreateIdentitySourceCommandInput | CreatePolicyCommandInput | CreatePolicyStoreCommandInput | CreatePolicyTemplateCommandInput | DeleteIdentitySourceCommandInput | DeletePolicyCommandInput | DeletePolicyStoreCommandInput | DeletePolicyTemplateCommandInput | GetIdentitySourceCommandInput | GetPolicyCommandInput | GetPolicyStoreCommandInput | GetPolicyTemplateCommandInput | GetSchemaCommandInput | IsAuthorizedCommandInput | IsAuthorizedWithTokenCommandInput | ListIdentitySourcesCommandInput | ListPoliciesCommandInput | ListPolicyStoresCommandInput | ListPolicyTemplatesCommandInput | PutSchemaCommandInput | UpdateIdentitySourceCommandInput | UpdatePolicyCommandInput | UpdatePolicyStoreCommandInput | UpdatePolicyTemplateCommandInput;
|
|
42
43
|
/**
|
|
43
44
|
* @public
|
|
44
45
|
*/
|
|
45
|
-
export type ServiceOutputTypes = CreateIdentitySourceCommandOutput | CreatePolicyCommandOutput | CreatePolicyStoreCommandOutput | CreatePolicyTemplateCommandOutput | DeleteIdentitySourceCommandOutput | DeletePolicyCommandOutput | DeletePolicyStoreCommandOutput | DeletePolicyTemplateCommandOutput | GetIdentitySourceCommandOutput | GetPolicyCommandOutput | GetPolicyStoreCommandOutput | GetPolicyTemplateCommandOutput | GetSchemaCommandOutput | IsAuthorizedCommandOutput | IsAuthorizedWithTokenCommandOutput | ListIdentitySourcesCommandOutput | ListPoliciesCommandOutput | ListPolicyStoresCommandOutput | ListPolicyTemplatesCommandOutput | PutSchemaCommandOutput | UpdateIdentitySourceCommandOutput | UpdatePolicyCommandOutput | UpdatePolicyStoreCommandOutput | UpdatePolicyTemplateCommandOutput;
|
|
46
|
+
export type ServiceOutputTypes = BatchIsAuthorizedCommandOutput | CreateIdentitySourceCommandOutput | CreatePolicyCommandOutput | CreatePolicyStoreCommandOutput | CreatePolicyTemplateCommandOutput | DeleteIdentitySourceCommandOutput | DeletePolicyCommandOutput | DeletePolicyStoreCommandOutput | DeletePolicyTemplateCommandOutput | GetIdentitySourceCommandOutput | GetPolicyCommandOutput | GetPolicyStoreCommandOutput | GetPolicyTemplateCommandOutput | GetSchemaCommandOutput | IsAuthorizedCommandOutput | IsAuthorizedWithTokenCommandOutput | ListIdentitySourcesCommandOutput | ListPoliciesCommandOutput | ListPolicyStoresCommandOutput | ListPolicyTemplatesCommandOutput | PutSchemaCommandOutput | UpdateIdentitySourceCommandOutput | UpdatePolicyCommandOutput | UpdatePolicyStoreCommandOutput | UpdatePolicyTemplateCommandOutput;
|
|
46
47
|
/**
|
|
47
48
|
* @public
|
|
48
49
|
*/
|