Skip to content

Commit 68138df

Browse files
author
awstools
committed
feat(client-mwaa): This Amazon MWAA feature release includes new fields in CreateWebLoginToken response model. The new fields IamIdentity and AirflowIdentity will let you match identifications, as the Airflow identity length is currently hashed to 64 characters.
1 parent ecf269c commit 68138df

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

clients/client-mwaa/src/commands/CreateWebLoginTokenCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface CreateWebLoginTokenCommandOutput extends CreateWebLoginTokenRes
4747
* // { // CreateWebLoginTokenResponse
4848
* // WebToken: "STRING_VALUE",
4949
* // WebServerHostname: "STRING_VALUE",
50+
* // IamIdentity: "STRING_VALUE",
51+
* // AirflowIdentity: "STRING_VALUE",
5052
* // };
5153
*
5254
* ```

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

+12
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,18 @@ export interface CreateWebLoginTokenResponse {
441441
* <p>The Airflow web server hostname for the environment.</p>
442442
*/
443443
WebServerHostname?: string;
444+
445+
/**
446+
* @public
447+
* <p>The name of the IAM identity creating the web login token. This might be an IAM user, or an assumed or federated identity. For example, <code>assumed-role/Admin/your-name</code>.</p>
448+
*/
449+
IamIdentity?: string;
450+
451+
/**
452+
* @public
453+
* <p>The user name of the Apache Airflow identity creating the web login token.</p>
454+
*/
455+
AirflowIdentity?: string;
444456
}
445457

446458
/**

clients/client-mwaa/src/protocols/Aws_restJson1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ export const de_CreateWebLoginTokenCommand = async (
515515
});
516516
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
517517
const doc = take(data, {
518+
AirflowIdentity: __expectString,
519+
IamIdentity: __expectString,
518520
WebServerHostname: __expectString,
519521
WebToken: __expectString,
520522
});

codegen/sdk-codegen/aws-models/mwaa.json

+24
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
"smithy.api#sensitive": {}
2727
}
2828
},
29+
"com.amazonaws.mwaa#AirflowIdentity": {
30+
"type": "string",
31+
"traits": {
32+
"smithy.api#length": {
33+
"min": 1,
34+
"max": 64
35+
}
36+
}
37+
},
2938
"com.amazonaws.mwaa#AirflowVersion": {
3039
"type": "string",
3140
"traits": {
@@ -1247,6 +1256,18 @@
12471256
"traits": {
12481257
"smithy.api#documentation": "<p>The Airflow web server hostname for the environment.</p>"
12491258
}
1259+
},
1260+
"IamIdentity": {
1261+
"target": "com.amazonaws.mwaa#IamIdentity",
1262+
"traits": {
1263+
"smithy.api#documentation": "<p>The name of the IAM identity creating the web login token. This might be an IAM user, or an assumed or federated identity. For example, <code>assumed-role/Admin/your-name</code>.</p>"
1264+
}
1265+
},
1266+
"AirflowIdentity": {
1267+
"target": "com.amazonaws.mwaa#AirflowIdentity",
1268+
"traits": {
1269+
"smithy.api#documentation": "<p>The user name of the Apache Airflow identity creating the web login token.</p>"
1270+
}
12501271
}
12511272
}
12521273
},
@@ -1718,6 +1739,9 @@
17181739
"smithy.api#pattern": "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$"
17191740
}
17201741
},
1742+
"com.amazonaws.mwaa#IamIdentity": {
1743+
"type": "string"
1744+
},
17211745
"com.amazonaws.mwaa#IamRoleArn": {
17221746
"type": "string",
17231747
"traits": {

0 commit comments

Comments
 (0)