diff --git a/clients/client-rolesanywhere/src/commands/CreateProfileCommand.ts b/clients/client-rolesanywhere/src/commands/CreateProfileCommand.ts index fe5beb8121f0..28710c4ebac1 100644 --- a/clients/client-rolesanywhere/src/commands/CreateProfileCommand.ts +++ b/clients/client-rolesanywhere/src/commands/CreateProfileCommand.ts @@ -61,6 +61,7 @@ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __Met * value: "STRING_VALUE", // required * }, * ], + * acceptRoleSessionName: true || false, * }; * const command = new CreateProfileCommand(input); * const response = await client.send(command); @@ -82,6 +83,7 @@ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __Met * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/DeleteAttributeMappingCommand.ts b/clients/client-rolesanywhere/src/commands/DeleteAttributeMappingCommand.ts index 3fea9050be3f..67a7e8f70030 100644 --- a/clients/client-rolesanywhere/src/commands/DeleteAttributeMappingCommand.ts +++ b/clients/client-rolesanywhere/src/commands/DeleteAttributeMappingCommand.ts @@ -62,6 +62,7 @@ export interface DeleteAttributeMappingCommandOutput extends DeleteAttributeMapp * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/DeleteProfileCommand.ts b/clients/client-rolesanywhere/src/commands/DeleteProfileCommand.ts index 53148b1caad1..c14c5a90095c 100644 --- a/clients/client-rolesanywhere/src/commands/DeleteProfileCommand.ts +++ b/clients/client-rolesanywhere/src/commands/DeleteProfileCommand.ts @@ -62,6 +62,7 @@ export interface DeleteProfileCommandOutput extends ProfileDetailResponse, __Met * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/DisableProfileCommand.ts b/clients/client-rolesanywhere/src/commands/DisableProfileCommand.ts index fdbb07b459c9..322508da4cfe 100644 --- a/clients/client-rolesanywhere/src/commands/DisableProfileCommand.ts +++ b/clients/client-rolesanywhere/src/commands/DisableProfileCommand.ts @@ -62,6 +62,7 @@ export interface DisableProfileCommandOutput extends ProfileDetailResponse, __Me * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/EnableProfileCommand.ts b/clients/client-rolesanywhere/src/commands/EnableProfileCommand.ts index 504280d7373b..ffea421e13a6 100644 --- a/clients/client-rolesanywhere/src/commands/EnableProfileCommand.ts +++ b/clients/client-rolesanywhere/src/commands/EnableProfileCommand.ts @@ -62,6 +62,7 @@ export interface EnableProfileCommandOutput extends ProfileDetailResponse, __Met * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/GetProfileCommand.ts b/clients/client-rolesanywhere/src/commands/GetProfileCommand.ts index e5197831dffe..3c41680c035b 100644 --- a/clients/client-rolesanywhere/src/commands/GetProfileCommand.ts +++ b/clients/client-rolesanywhere/src/commands/GetProfileCommand.ts @@ -62,6 +62,7 @@ export interface GetProfileCommandOutput extends ProfileDetailResponse, __Metada * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/ListProfilesCommand.ts b/clients/client-rolesanywhere/src/commands/ListProfilesCommand.ts index 5ada069490f7..c6c034ea6b78 100644 --- a/clients/client-rolesanywhere/src/commands/ListProfilesCommand.ts +++ b/clients/client-rolesanywhere/src/commands/ListProfilesCommand.ts @@ -65,6 +65,7 @@ export interface ListProfilesCommandOutput extends ListProfilesResponse, __Metad * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/PutAttributeMappingCommand.ts b/clients/client-rolesanywhere/src/commands/PutAttributeMappingCommand.ts index b542fb73b59c..4d9fda57f3b9 100644 --- a/clients/client-rolesanywhere/src/commands/PutAttributeMappingCommand.ts +++ b/clients/client-rolesanywhere/src/commands/PutAttributeMappingCommand.ts @@ -65,6 +65,7 @@ export interface PutAttributeMappingCommandOutput extends PutAttributeMappingRes * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/commands/UpdateProfileCommand.ts b/clients/client-rolesanywhere/src/commands/UpdateProfileCommand.ts index 607c96ff8d1a..e51be8136828 100644 --- a/clients/client-rolesanywhere/src/commands/UpdateProfileCommand.ts +++ b/clients/client-rolesanywhere/src/commands/UpdateProfileCommand.ts @@ -52,6 +52,7 @@ export interface UpdateProfileCommandOutput extends ProfileDetailResponse, __Met * "STRING_VALUE", * ], * durationSeconds: Number("int"), + * acceptRoleSessionName: true || false, * }; * const command = new UpdateProfileCommand(input); * const response = await client.send(command); @@ -73,6 +74,7 @@ export interface UpdateProfileCommandOutput extends ProfileDetailResponse, __Met * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), + * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", diff --git a/clients/client-rolesanywhere/src/models/models_0.ts b/clients/client-rolesanywhere/src/models/models_0.ts index 5019376f81f6..03161d358349 100644 --- a/clients/client-rolesanywhere/src/models/models_0.ts +++ b/clients/client-rolesanywhere/src/models/models_0.ts @@ -139,6 +139,12 @@ export interface CreateProfileRequest { * @public */ tags?: Tag[]; + + /** + *

Used to determine if a custom role session name will be accepted in a temporary credential request.

+ * @public + */ + acceptRoleSessionName?: boolean; } /** @@ -220,6 +226,12 @@ export interface ProfileDetail { */ durationSeconds?: number; + /** + *

Used to determine if a custom role session name will be accepted in a temporary credential request.

+ * @public + */ + acceptRoleSessionName?: boolean; + /** *

A mapping applied to the authenticating end-entity certificate.

* @public @@ -1164,6 +1176,12 @@ export interface UpdateProfileRequest { * @public */ durationSeconds?: number; + + /** + *

Used to determine if a custom role session name will be accepted in a temporary credential request.

+ * @public + */ + acceptRoleSessionName?: boolean; } /** diff --git a/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts b/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts index 82e99890b1b4..d31c8b899de1 100644 --- a/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts +++ b/clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts @@ -105,6 +105,7 @@ export const se_CreateProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { + acceptRoleSessionName: [], durationSeconds: [], enabled: [], managedPolicyArns: (_) => _json(_), @@ -646,6 +647,7 @@ export const se_UpdateProfileCommand = async ( let body: any; body = JSON.stringify( take(input, { + acceptRoleSessionName: [], durationSeconds: [], managedPolicyArns: (_) => _json(_), name: [], @@ -1541,6 +1543,7 @@ const de_InstanceProperty = (output: any, context: __SerdeContext): InstanceProp */ const de_ProfileDetail = (output: any, context: __SerdeContext): ProfileDetail => { return take(output, { + acceptRoleSessionName: __expectBoolean, attributeMappings: _json, createdAt: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), createdBy: __expectString, diff --git a/codegen/sdk-codegen/aws-models/rolesanywhere.json b/codegen/sdk-codegen/aws-models/rolesanywhere.json index fd0c74f4c265..e3b395a6c951 100644 --- a/codegen/sdk-codegen/aws-models/rolesanywhere.json +++ b/codegen/sdk-codegen/aws-models/rolesanywhere.json @@ -149,6 +149,12 @@ "traits": { "smithy.api#documentation": "

The tags to attach to the profile.

" } + }, + "acceptRoleSessionName": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Used to determine if a custom role session name will be accepted in a temporary credential request.

" + } } } }, @@ -403,6 +409,7 @@ }, "output": { "profile": { + "acceptRoleSessionName": false, "attributeMappings": [ { "mappingRules": [ @@ -1529,6 +1536,12 @@ "smithy.api#documentation": "

Used to determine how long sessions vended using this profile are valid for. See the Expiration section of the \nCreateSession API documentation\npage for more details. In requests, if this value is not provided, the default value will be 3600.

" } }, + "acceptRoleSessionName": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Used to determine if a custom role session name will be accepted in a temporary credential request.

" + } + }, "attributeMappings": { "target": "com.amazonaws.rolesanywhere#AttributeMappings", "traits": { @@ -1592,6 +1605,7 @@ }, "output": { "profile": { + "acceptRoleSessionName": false, "attributeMappings": [ { "mappingRules": [ @@ -3554,6 +3568,12 @@ "max": 43200 } } + }, + "acceptRoleSessionName": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Used to determine if a custom role session name will be accepted in a temporary credential request.

" + } } } },