Skip to content

Commit 87207b4

Browse files
author
awstools
committed
feat(client-verifiedpermissions): Adds description field to PolicyStore API's and namespaces field to GetSchema.
1 parent 93a1fe5 commit 87207b4

File tree

9 files changed

+169
-12
lines changed

9 files changed

+169
-12
lines changed

clients/client-verifiedpermissions/src/commands/BatchIsAuthorizedCommand.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,14 @@ export interface BatchIsAuthorizedCommandOutput extends BatchIsAuthorizedOutput,
5959
* entities that you declare. The result of the decisions is a series of <code>Allow</code>
6060
* or <code>Deny</code> responses, along with the IDs of the policies that produced each
6161
* decision.</p>
62-
* <p>The <code>entities</code> of a <code>BatchIsAuthorized</code> API request can contain up to 100 principals and up
63-
* to 100 resources. The <code>requests</code> of a <code>BatchIsAuthorized</code> API request can contain up to 30
64-
* requests.</p>
62+
* <p>The <code>entities</code> of a <code>BatchIsAuthorized</code> API request can contain
63+
* up to 100 principals and up to 100 resources. The <code>requests</code> of a
64+
* <code>BatchIsAuthorized</code> API request can contain up to 30 requests.</p>
65+
* <note>
66+
* <p>The <code>BatchIsAuthorized</code> operation doesn't have its own IAM
67+
* permission. To authorize this operation for Amazon Web Services principals, include the permission
68+
* <code>verifiedpermissions:IsAuthorized</code> in their IAM policies.</p>
69+
* </note>
6570
* @example
6671
* Use a bare-bones client and the command you need to make an API call.
6772
* ```javascript

clients/client-verifiedpermissions/src/commands/CreatePolicyStoreCommand.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { CreatePolicyStoreInput, CreatePolicyStoreOutput } from "../models/models_0";
17+
import {
18+
CreatePolicyStoreInput,
19+
CreatePolicyStoreInputFilterSensitiveLog,
20+
CreatePolicyStoreOutput,
21+
} from "../models/models_0";
1822
import { de_CreatePolicyStoreCommand, se_CreatePolicyStoreCommand } from "../protocols/Aws_json1_0";
1923
import {
2024
ServiceInputTypes,
@@ -63,6 +67,7 @@ export interface CreatePolicyStoreCommandOutput extends CreatePolicyStoreOutput,
6367
* validationSettings: { // ValidationSettings
6468
* mode: "OFF" || "STRICT", // required
6569
* },
70+
* description: "STRING_VALUE",
6671
* };
6772
* const command = new CreatePolicyStoreCommand(input);
6873
* const response = await client.send(command);
@@ -228,7 +233,7 @@ export class CreatePolicyStoreCommand extends $Command<
228233
logger,
229234
clientName,
230235
commandName,
231-
inputFilterSensitiveLog: (_: any) => _,
236+
inputFilterSensitiveLog: CreatePolicyStoreInputFilterSensitiveLog,
232237
outputFilterSensitiveLog: (_: any) => _,
233238
[SMITHY_CONTEXT_KEY]: {
234239
service: "VerifiedPermissions",

clients/client-verifiedpermissions/src/commands/GetPolicyStoreCommand.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { GetPolicyStoreInput, GetPolicyStoreOutput } from "../models/models_0";
17+
import { GetPolicyStoreInput, GetPolicyStoreOutput, GetPolicyStoreOutputFilterSensitiveLog } from "../models/models_0";
1818
import { de_GetPolicyStoreCommand, se_GetPolicyStoreCommand } from "../protocols/Aws_json1_0";
1919
import {
2020
ServiceInputTypes,
@@ -61,6 +61,7 @@ export interface GetPolicyStoreCommandOutput extends GetPolicyStoreOutput, __Met
6161
* // },
6262
* // createdDate: new Date("TIMESTAMP"), // required
6363
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
64+
* // description: "STRING_VALUE",
6465
* // };
6566
*
6667
* ```
@@ -215,7 +216,7 @@ export class GetPolicyStoreCommand extends $Command<
215216
clientName,
216217
commandName,
217218
inputFilterSensitiveLog: (_: any) => _,
218-
outputFilterSensitiveLog: (_: any) => _,
219+
outputFilterSensitiveLog: GetPolicyStoreOutputFilterSensitiveLog,
219220
[SMITHY_CONTEXT_KEY]: {
220221
service: "VerifiedPermissions",
221222
operation: "GetPolicyStore",

clients/client-verifiedpermissions/src/commands/GetSchemaCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export interface GetSchemaCommandOutput extends GetSchemaOutput, __MetadataBeare
5858
* // schema: "STRING_VALUE", // required
5959
* // createdDate: new Date("TIMESTAMP"), // required
6060
* // lastUpdatedDate: new Date("TIMESTAMP"), // required
61+
* // namespaces: [ // NamespaceList
62+
* // "STRING_VALUE",
63+
* // ],
6164
* // };
6265
*
6366
* ```

clients/client-verifiedpermissions/src/commands/ListPolicyStoresCommand.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { ListPolicyStoresInput, ListPolicyStoresOutput } from "../models/models_0";
17+
import {
18+
ListPolicyStoresInput,
19+
ListPolicyStoresOutput,
20+
ListPolicyStoresOutputFilterSensitiveLog,
21+
} from "../models/models_0";
1822
import { de_ListPolicyStoresCommand, se_ListPolicyStoresCommand } from "../protocols/Aws_json1_0";
1923
import {
2024
ServiceInputTypes,
@@ -61,6 +65,8 @@ export interface ListPolicyStoresCommandOutput extends ListPolicyStoresOutput, _
6165
* // policyStoreId: "STRING_VALUE", // required
6266
* // arn: "STRING_VALUE", // required
6367
* // createdDate: new Date("TIMESTAMP"), // required
68+
* // lastUpdatedDate: new Date("TIMESTAMP"),
69+
* // description: "STRING_VALUE",
6470
* // },
6571
* // ],
6672
* // };
@@ -214,7 +220,7 @@ export class ListPolicyStoresCommand extends $Command<
214220
clientName,
215221
commandName,
216222
inputFilterSensitiveLog: (_: any) => _,
217-
outputFilterSensitiveLog: (_: any) => _,
223+
outputFilterSensitiveLog: ListPolicyStoresOutputFilterSensitiveLog,
218224
[SMITHY_CONTEXT_KEY]: {
219225
service: "VerifiedPermissions",
220226
operation: "ListPolicyStores",

clients/client-verifiedpermissions/src/commands/UpdatePolicyStoreCommand.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { UpdatePolicyStoreInput, UpdatePolicyStoreOutput } from "../models/models_0";
17+
import {
18+
UpdatePolicyStoreInput,
19+
UpdatePolicyStoreInputFilterSensitiveLog,
20+
UpdatePolicyStoreOutput,
21+
} from "../models/models_0";
1822
import { de_UpdatePolicyStoreCommand, se_UpdatePolicyStoreCommand } from "../protocols/Aws_json1_0";
1923
import {
2024
ServiceInputTypes,
@@ -59,6 +63,7 @@ export interface UpdatePolicyStoreCommandOutput extends UpdatePolicyStoreOutput,
5963
* validationSettings: { // ValidationSettings
6064
* mode: "OFF" || "STRICT", // required
6165
* },
66+
* description: "STRING_VALUE",
6267
* };
6368
* const command = new UpdatePolicyStoreCommand(input);
6469
* const response = await client.send(command);
@@ -224,7 +229,7 @@ export class UpdatePolicyStoreCommand extends $Command<
224229
logger,
225230
clientName,
226231
commandName,
227-
inputFilterSensitiveLog: (_: any) => _,
232+
inputFilterSensitiveLog: UpdatePolicyStoreInputFilterSensitiveLog,
228233
outputFilterSensitiveLog: (_: any) => _,
229234
[SMITHY_CONTEXT_KEY]: {
230235
service: "VerifiedPermissions",

clients/client-verifiedpermissions/src/models/models_0.ts

+81
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,13 @@ export interface CreatePolicyStoreInput {
905905
* </important>
906906
*/
907907
validationSettings: ValidationSettings | undefined;
908+
909+
/**
910+
* @public
911+
* <p>Descriptive text that you can provide to help with identification
912+
* of the current policy store.</p>
913+
*/
914+
description?: string;
908915
}
909916

910917
/**
@@ -1487,6 +1494,13 @@ export interface GetPolicyStoreOutput {
14871494
* <p>The date and time that the policy store was last updated.</p>
14881495
*/
14891496
lastUpdatedDate: Date | undefined;
1497+
1498+
/**
1499+
* @public
1500+
* <p>Descriptive text that you can provide to help with identification
1501+
* of the current policy store.</p>
1502+
*/
1503+
description?: string;
14901504
}
14911505

14921506
/**
@@ -1586,6 +1600,12 @@ export interface GetSchemaOutput {
15861600
* <p>The date and time that the schema was most recently updated.</p>
15871601
*/
15881602
lastUpdatedDate: Date | undefined;
1603+
1604+
/**
1605+
* @public
1606+
* <p>The namespaces of the entities referenced by this schema.</p>
1607+
*/
1608+
namespaces?: string[];
15891609
}
15901610

15911611
/**
@@ -2269,6 +2289,19 @@ export interface PolicyStoreItem {
22692289
* <p>The date and time the policy was created.</p>
22702290
*/
22712291
createdDate: Date | undefined;
2292+
2293+
/**
2294+
* @public
2295+
* <p>The date and time the policy store was most recently updated.</p>
2296+
*/
2297+
lastUpdatedDate?: Date;
2298+
2299+
/**
2300+
* @public
2301+
* <p>Descriptive text that you can provide to help with identification
2302+
* of the current policy store.</p>
2303+
*/
2304+
description?: string;
22722305
}
22732306

22742307
/**
@@ -2760,6 +2793,13 @@ export interface UpdatePolicyStoreInput {
27602793
* policy store.</p>
27612794
*/
27622795
validationSettings: ValidationSettings | undefined;
2796+
2797+
/**
2798+
* @public
2799+
* <p>Descriptive text that you can provide to help with identification
2800+
* of the current policy store.</p>
2801+
*/
2802+
description?: string;
27632803
}
27642804

27652805
/**
@@ -3408,6 +3448,14 @@ export const CreatePolicyOutputFilterSensitiveLog = (obj: CreatePolicyOutput): a
34083448
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
34093449
});
34103450

3451+
/**
3452+
* @internal
3453+
*/
3454+
export const CreatePolicyStoreInputFilterSensitiveLog = (obj: CreatePolicyStoreInput): any => ({
3455+
...obj,
3456+
...(obj.description && { description: SENSITIVE_STRING }),
3457+
});
3458+
34113459
/**
34123460
* @internal
34133461
*/
@@ -3483,6 +3531,14 @@ export const GetPolicyOutputFilterSensitiveLog = (obj: GetPolicyOutput): any =>
34833531
...(obj.definition && { definition: PolicyDefinitionDetailFilterSensitiveLog(obj.definition) }),
34843532
});
34853533

3534+
/**
3535+
* @internal
3536+
*/
3537+
export const GetPolicyStoreOutputFilterSensitiveLog = (obj: GetPolicyStoreOutput): any => ({
3538+
...obj,
3539+
...(obj.description && { description: SENSITIVE_STRING }),
3540+
});
3541+
34863542
/**
34873543
* @internal
34883544
*/
@@ -3498,6 +3554,7 @@ export const GetPolicyTemplateOutputFilterSensitiveLog = (obj: GetPolicyTemplate
34983554
export const GetSchemaOutputFilterSensitiveLog = (obj: GetSchemaOutput): any => ({
34993555
...obj,
35003556
...(obj.schema && { schema: SENSITIVE_STRING }),
3557+
...(obj.namespaces && { namespaces: SENSITIVE_STRING }),
35013558
});
35023559

35033560
/**
@@ -3653,6 +3710,22 @@ export const ListPoliciesOutputFilterSensitiveLog = (obj: ListPoliciesOutput): a
36533710
...(obj.policies && { policies: obj.policies.map((item) => PolicyItemFilterSensitiveLog(item)) }),
36543711
});
36553712

3713+
/**
3714+
* @internal
3715+
*/
3716+
export const PolicyStoreItemFilterSensitiveLog = (obj: PolicyStoreItem): any => ({
3717+
...obj,
3718+
...(obj.description && { description: SENSITIVE_STRING }),
3719+
});
3720+
3721+
/**
3722+
* @internal
3723+
*/
3724+
export const ListPolicyStoresOutputFilterSensitiveLog = (obj: ListPolicyStoresOutput): any => ({
3725+
...obj,
3726+
...(obj.policyStores && { policyStores: obj.policyStores.map((item) => PolicyStoreItemFilterSensitiveLog(item)) }),
3727+
});
3728+
36563729
/**
36573730
* @internal
36583731
*/
@@ -3738,6 +3811,14 @@ export const PutSchemaOutputFilterSensitiveLog = (obj: PutSchemaOutput): any =>
37383811
...(obj.namespaces && { namespaces: SENSITIVE_STRING }),
37393812
});
37403813

3814+
/**
3815+
* @internal
3816+
*/
3817+
export const UpdatePolicyStoreInputFilterSensitiveLog = (obj: UpdatePolicyStoreInput): any => ({
3818+
...obj,
3819+
...(obj.description && { description: SENSITIVE_STRING }),
3820+
});
3821+
37413822
/**
37423823
* @internal
37433824
*/

clients/client-verifiedpermissions/src/protocols/Aws_json1_0.ts

+5
Original file line numberDiff line numberDiff line change
@@ -2186,6 +2186,7 @@ const se_CreatePolicyInput = (input: CreatePolicyInput, context: __SerdeContext)
21862186
const se_CreatePolicyStoreInput = (input: CreatePolicyStoreInput, context: __SerdeContext): any => {
21872187
return take(input, {
21882188
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2189+
description: [],
21892190
validationSettings: _json,
21902191
});
21912192
};
@@ -2581,6 +2582,7 @@ const de_GetPolicyStoreOutput = (output: any, context: __SerdeContext): GetPolic
25812582
return take(output, {
25822583
arn: __expectString,
25832584
createdDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2585+
description: __expectString,
25842586
lastUpdatedDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
25852587
policyStoreId: __expectString,
25862588
validationSettings: _json,
@@ -2608,6 +2610,7 @@ const de_GetSchemaOutput = (output: any, context: __SerdeContext): GetSchemaOutp
26082610
return take(output, {
26092611
createdDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
26102612
lastUpdatedDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2613+
namespaces: _json,
26112614
policyStoreId: __expectString,
26122615
schema: __expectString,
26132616
}) as any;
@@ -2730,6 +2733,8 @@ const de_PolicyStoreItem = (output: any, context: __SerdeContext): PolicyStoreIt
27302733
return take(output, {
27312734
arn: __expectString,
27322735
createdDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2736+
description: __expectString,
2737+
lastUpdatedDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
27332738
policyStoreId: __expectString,
27342739
}) as any;
27352740
};

0 commit comments

Comments
 (0)