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 |
Associates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.
Before performing this operation, call
DescribeConnectionAliases
to make sure that the current state of the connection alias is
CREATED
.
Synopsis
- data AssociateConnectionAlias = AssociateConnectionAlias' {
- aliasId :: Text
- resourceId :: Text
- newAssociateConnectionAlias :: Text -> Text -> AssociateConnectionAlias
- associateConnectionAlias_aliasId :: Lens' AssociateConnectionAlias Text
- associateConnectionAlias_resourceId :: Lens' AssociateConnectionAlias Text
- data AssociateConnectionAliasResponse = AssociateConnectionAliasResponse' {}
- newAssociateConnectionAliasResponse :: Int -> AssociateConnectionAliasResponse
- associateConnectionAliasResponse_connectionIdentifier :: Lens' AssociateConnectionAliasResponse (Maybe Text)
- associateConnectionAliasResponse_httpStatus :: Lens' AssociateConnectionAliasResponse Int
Creating a Request
data AssociateConnectionAlias Source #
See: newAssociateConnectionAlias
smart constructor.
AssociateConnectionAlias' | |
|
Instances
newAssociateConnectionAlias Source #
:: Text | |
-> Text | |
-> AssociateConnectionAlias |
Create a value of AssociateConnectionAlias
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:aliasId:AssociateConnectionAlias'
, associateConnectionAlias_aliasId
- The identifier of the connection alias.
$sel:resourceId:AssociateConnectionAlias'
, associateConnectionAlias_resourceId
- The identifier of the directory to associate the connection alias with.
Request Lenses
associateConnectionAlias_aliasId :: Lens' AssociateConnectionAlias Text Source #
The identifier of the connection alias.
associateConnectionAlias_resourceId :: Lens' AssociateConnectionAlias Text Source #
The identifier of the directory to associate the connection alias with.
Destructuring the Response
data AssociateConnectionAliasResponse Source #
See: newAssociateConnectionAliasResponse
smart constructor.
AssociateConnectionAliasResponse' | |
|
Instances
Eq AssociateConnectionAliasResponse Source # | |
Read AssociateConnectionAliasResponse Source # | |
Show AssociateConnectionAliasResponse Source # | |
Generic AssociateConnectionAliasResponse Source # | |
NFData AssociateConnectionAliasResponse Source # | |
Defined in Amazonka.WorkSpaces.AssociateConnectionAlias rnf :: AssociateConnectionAliasResponse -> () # | |
type Rep AssociateConnectionAliasResponse Source # | |
Defined in Amazonka.WorkSpaces.AssociateConnectionAlias type Rep AssociateConnectionAliasResponse = D1 ('MetaData "AssociateConnectionAliasResponse" "Amazonka.WorkSpaces.AssociateConnectionAlias" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "AssociateConnectionAliasResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateConnectionAliasResponse Source #
Create a value of AssociateConnectionAliasResponse
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:connectionIdentifier:AssociateConnectionAliasResponse'
, associateConnectionAliasResponse_connectionIdentifier
- The identifier of the connection alias association. You use the
connection identifier in the DNS TXT record when you're configuring
your DNS routing policies.
$sel:httpStatus:AssociateConnectionAliasResponse'
, associateConnectionAliasResponse_httpStatus
- The response's http status code.
Response Lenses
associateConnectionAliasResponse_connectionIdentifier :: Lens' AssociateConnectionAliasResponse (Maybe Text) Source #
The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies.
associateConnectionAliasResponse_httpStatus :: Lens' AssociateConnectionAliasResponse Int Source #
The response's http status code.