Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a role alias.
Requires permission to access the CreateRoleAlias action.
Synopsis
- data CreateRoleAlias = CreateRoleAlias' {}
- newCreateRoleAlias :: Text -> Text -> CreateRoleAlias
- createRoleAlias_credentialDurationSeconds :: Lens' CreateRoleAlias (Maybe Natural)
- createRoleAlias_tags :: Lens' CreateRoleAlias (Maybe [Tag])
- createRoleAlias_roleAlias :: Lens' CreateRoleAlias Text
- createRoleAlias_roleArn :: Lens' CreateRoleAlias Text
- data CreateRoleAliasResponse = CreateRoleAliasResponse' {
- roleAlias :: Maybe Text
- roleAliasArn :: Maybe Text
- httpStatus :: Int
- newCreateRoleAliasResponse :: Int -> CreateRoleAliasResponse
- createRoleAliasResponse_roleAlias :: Lens' CreateRoleAliasResponse (Maybe Text)
- createRoleAliasResponse_roleAliasArn :: Lens' CreateRoleAliasResponse (Maybe Text)
- createRoleAliasResponse_httpStatus :: Lens' CreateRoleAliasResponse Int
Creating a Request
data CreateRoleAlias Source #
See: newCreateRoleAlias
smart constructor.
CreateRoleAlias' | |
|
Instances
Create a value of CreateRoleAlias
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateRoleAlias
, createRoleAlias_credentialDurationSeconds
- How long (in seconds) the credentials will be valid. The default value
is 3,600 seconds.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
$sel:tags:CreateRoleAlias'
, createRoleAlias_tags
- Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
CreateRoleAlias
, createRoleAlias_roleAlias
- The role alias that points to a role ARN. This allows you to change the
role without having to update the device.
CreateRoleAlias
, createRoleAlias_roleArn
- The role ARN.
Request Lenses
createRoleAlias_credentialDurationSeconds :: Lens' CreateRoleAlias (Maybe Natural) Source #
How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.
This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
createRoleAlias_tags :: Lens' CreateRoleAlias (Maybe [Tag]) Source #
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
createRoleAlias_roleAlias :: Lens' CreateRoleAlias Text Source #
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
createRoleAlias_roleArn :: Lens' CreateRoleAlias Text Source #
The role ARN.
Destructuring the Response
data CreateRoleAliasResponse Source #
See: newCreateRoleAliasResponse
smart constructor.
CreateRoleAliasResponse' | |
|
Instances
newCreateRoleAliasResponse Source #
Create a value of CreateRoleAliasResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateRoleAlias
, createRoleAliasResponse_roleAlias
- The role alias.
CreateRoleAliasResponse
, createRoleAliasResponse_roleAliasArn
- The role alias ARN.
$sel:httpStatus:CreateRoleAliasResponse'
, createRoleAliasResponse_httpStatus
- The response's http status code.
Response Lenses
createRoleAliasResponse_roleAlias :: Lens' CreateRoleAliasResponse (Maybe Text) Source #
The role alias.
createRoleAliasResponse_roleAliasArn :: Lens' CreateRoleAliasResponse (Maybe Text) Source #
The role alias ARN.
createRoleAliasResponse_httpStatus :: Lens' CreateRoleAliasResponse Int Source #
The response's http status code.