Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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' {
- roleAliasArn :: Maybe Text
- roleAlias :: Maybe Text
- httpStatus :: Int
- newCreateRoleAliasResponse :: Int -> CreateRoleAliasResponse
- createRoleAliasResponse_roleAliasArn :: Lens' CreateRoleAliasResponse (Maybe Text)
- createRoleAliasResponse_roleAlias :: 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:
$sel:credentialDurationSeconds:CreateRoleAlias'
, createRoleAlias_credentialDurationSeconds
- How long (in seconds) the credentials will be valid. The default value
is 3,600 seconds.
$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..."
$sel:roleAlias: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.
$sel:roleArn: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.
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:
$sel:roleAliasArn:CreateRoleAliasResponse'
, createRoleAliasResponse_roleAliasArn
- The role alias ARN.
$sel:roleAlias:CreateRoleAlias'
, createRoleAliasResponse_roleAlias
- The role alias.
$sel:httpStatus:CreateRoleAliasResponse'
, createRoleAliasResponse_httpStatus
- The response's http status code.
Response Lenses
createRoleAliasResponse_roleAliasArn :: Lens' CreateRoleAliasResponse (Maybe Text) Source #
The role alias ARN.
createRoleAliasResponse_roleAlias :: Lens' CreateRoleAliasResponse (Maybe Text) Source #
The role alias.
createRoleAliasResponse_httpStatus :: Lens' CreateRoleAliasResponse Int Source #
The response's http status code.