Skip to content

Commit 5bc3008

Browse files
author
awstools
committed
feat(client-rolesanywhere): IAM RolesAnywhere now supports custom role session name on the CreateSession. This release adds the acceptRoleSessionName option to a profile to control whether a role session name will be accepted in a session request with a given profile.
1 parent 88b6a41 commit 5bc3008

File tree

12 files changed

+52
-0
lines changed

12 files changed

+52
-0
lines changed

clients/client-rolesanywhere/src/commands/CreateProfileCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __Met
6161
* value: "STRING_VALUE", // required
6262
* },
6363
* ],
64+
* acceptRoleSessionName: true || false,
6465
* };
6566
* const command = new CreateProfileCommand(input);
6667
* const response = await client.send(command);
@@ -82,6 +83,7 @@ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __Met
8283
* // createdAt: new Date("TIMESTAMP"),
8384
* // updatedAt: new Date("TIMESTAMP"),
8485
* // durationSeconds: Number("int"),
86+
* // acceptRoleSessionName: true || false,
8587
* // attributeMappings: [ // AttributeMappings
8688
* // { // AttributeMapping
8789
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/DeleteAttributeMappingCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface DeleteAttributeMappingCommandOutput extends DeleteAttributeMapp
6262
* // createdAt: new Date("TIMESTAMP"),
6363
* // updatedAt: new Date("TIMESTAMP"),
6464
* // durationSeconds: Number("int"),
65+
* // acceptRoleSessionName: true || false,
6566
* // attributeMappings: [ // AttributeMappings
6667
* // { // AttributeMapping
6768
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/DeleteProfileCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface DeleteProfileCommandOutput extends ProfileDetailResponse, __Met
6262
* // createdAt: new Date("TIMESTAMP"),
6363
* // updatedAt: new Date("TIMESTAMP"),
6464
* // durationSeconds: Number("int"),
65+
* // acceptRoleSessionName: true || false,
6566
* // attributeMappings: [ // AttributeMappings
6667
* // { // AttributeMapping
6768
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/DisableProfileCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface DisableProfileCommandOutput extends ProfileDetailResponse, __Me
6262
* // createdAt: new Date("TIMESTAMP"),
6363
* // updatedAt: new Date("TIMESTAMP"),
6464
* // durationSeconds: Number("int"),
65+
* // acceptRoleSessionName: true || false,
6566
* // attributeMappings: [ // AttributeMappings
6667
* // { // AttributeMapping
6768
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/EnableProfileCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface EnableProfileCommandOutput extends ProfileDetailResponse, __Met
6262
* // createdAt: new Date("TIMESTAMP"),
6363
* // updatedAt: new Date("TIMESTAMP"),
6464
* // durationSeconds: Number("int"),
65+
* // acceptRoleSessionName: true || false,
6566
* // attributeMappings: [ // AttributeMappings
6667
* // { // AttributeMapping
6768
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/GetProfileCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface GetProfileCommandOutput extends ProfileDetailResponse, __Metada
6262
* // createdAt: new Date("TIMESTAMP"),
6363
* // updatedAt: new Date("TIMESTAMP"),
6464
* // durationSeconds: Number("int"),
65+
* // acceptRoleSessionName: true || false,
6566
* // attributeMappings: [ // AttributeMappings
6667
* // { // AttributeMapping
6768
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/ListProfilesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface ListProfilesCommandOutput extends ListProfilesResponse, __Metad
6565
* // createdAt: new Date("TIMESTAMP"),
6666
* // updatedAt: new Date("TIMESTAMP"),
6767
* // durationSeconds: Number("int"),
68+
* // acceptRoleSessionName: true || false,
6869
* // attributeMappings: [ // AttributeMappings
6970
* // { // AttributeMapping
7071
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/PutAttributeMappingCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface PutAttributeMappingCommandOutput extends PutAttributeMappingRes
6565
* // createdAt: new Date("TIMESTAMP"),
6666
* // updatedAt: new Date("TIMESTAMP"),
6767
* // durationSeconds: Number("int"),
68+
* // acceptRoleSessionName: true || false,
6869
* // attributeMappings: [ // AttributeMappings
6970
* // { // AttributeMapping
7071
* // certificateField: "STRING_VALUE",

clients/client-rolesanywhere/src/commands/UpdateProfileCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface UpdateProfileCommandOutput extends ProfileDetailResponse, __Met
5252
* "STRING_VALUE",
5353
* ],
5454
* durationSeconds: Number("int"),
55+
* acceptRoleSessionName: true || false,
5556
* };
5657
* const command = new UpdateProfileCommand(input);
5758
* const response = await client.send(command);
@@ -73,6 +74,7 @@ export interface UpdateProfileCommandOutput extends ProfileDetailResponse, __Met
7374
* // createdAt: new Date("TIMESTAMP"),
7475
* // updatedAt: new Date("TIMESTAMP"),
7576
* // durationSeconds: Number("int"),
77+
* // acceptRoleSessionName: true || false,
7678
* // attributeMappings: [ // AttributeMappings
7779
* // { // AttributeMapping
7880
* // certificateField: "STRING_VALUE",

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ export interface CreateProfileRequest {
139139
* @public
140140
*/
141141
tags?: Tag[];
142+
143+
/**
144+
* <p>Used to determine if a custom role session name will be accepted in a temporary credential request.</p>
145+
* @public
146+
*/
147+
acceptRoleSessionName?: boolean;
142148
}
143149

144150
/**
@@ -220,6 +226,12 @@ export interface ProfileDetail {
220226
*/
221227
durationSeconds?: number;
222228

229+
/**
230+
* <p>Used to determine if a custom role session name will be accepted in a temporary credential request.</p>
231+
* @public
232+
*/
233+
acceptRoleSessionName?: boolean;
234+
223235
/**
224236
* <p>A mapping applied to the authenticating end-entity certificate.</p>
225237
* @public
@@ -1164,6 +1176,12 @@ export interface UpdateProfileRequest {
11641176
* @public
11651177
*/
11661178
durationSeconds?: number;
1179+
1180+
/**
1181+
* <p>Used to determine if a custom role session name will be accepted in a temporary credential request.</p>
1182+
* @public
1183+
*/
1184+
acceptRoleSessionName?: boolean;
11671185
}
11681186

11691187
/**

0 commit comments

Comments
 (0)