Skip to content

Commit

Permalink
feat(client-mwaa): This Amazon MWAA feature release includes new fiel…
Browse files Browse the repository at this point in the history
…ds 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.
  • Loading branch information
awstools committed Jan 12, 2024
1 parent ecf269c commit 68138df
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export interface CreateWebLoginTokenCommandOutput extends CreateWebLoginTokenRes
* // { // CreateWebLoginTokenResponse
* // WebToken: "STRING_VALUE",
* // WebServerHostname: "STRING_VALUE",
* // IamIdentity: "STRING_VALUE",
* // AirflowIdentity: "STRING_VALUE",
* // };
*
* ```
Expand Down
12 changes: 12 additions & 0 deletions clients/client-mwaa/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,18 @@ export interface CreateWebLoginTokenResponse {
* <p>The Airflow web server hostname for the environment.</p>
*/
WebServerHostname?: string;

/**
* @public
* <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>
*/
IamIdentity?: string;

/**
* @public
* <p>The user name of the Apache Airflow identity creating the web login token.</p>
*/
AirflowIdentity?: string;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-mwaa/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ export const de_CreateWebLoginTokenCommand = async (
});
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
AirflowIdentity: __expectString,
IamIdentity: __expectString,
WebServerHostname: __expectString,
WebToken: __expectString,
});
Expand Down
24 changes: 24 additions & 0 deletions codegen/sdk-codegen/aws-models/mwaa.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
"smithy.api#sensitive": {}
}
},
"com.amazonaws.mwaa#AirflowIdentity": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 64
}
}
},
"com.amazonaws.mwaa#AirflowVersion": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -1247,6 +1256,18 @@
"traits": {
"smithy.api#documentation": "<p>The Airflow web server hostname for the environment.</p>"
}
},
"IamIdentity": {
"target": "com.amazonaws.mwaa#IamIdentity",
"traits": {
"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>"
}
},
"AirflowIdentity": {
"target": "com.amazonaws.mwaa#AirflowIdentity",
"traits": {
"smithy.api#documentation": "<p>The user name of the Apache Airflow identity creating the web login token.</p>"
}
}
}
},
Expand Down Expand Up @@ -1718,6 +1739,9 @@
"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])$"
}
},
"com.amazonaws.mwaa#IamIdentity": {
"type": "string"
},
"com.amazonaws.mwaa#IamRoleArn": {
"type": "string",
"traits": {
Expand Down

0 comments on commit 68138df

Please sign in to comment.