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 |
Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. 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
. - To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories.
Synopsis
- data UpdateConnectionAliasPermission = UpdateConnectionAliasPermission' {}
- newUpdateConnectionAliasPermission :: Text -> ConnectionAliasPermission -> UpdateConnectionAliasPermission
- updateConnectionAliasPermission_aliasId :: Lens' UpdateConnectionAliasPermission Text
- updateConnectionAliasPermission_connectionAliasPermission :: Lens' UpdateConnectionAliasPermission ConnectionAliasPermission
- data UpdateConnectionAliasPermissionResponse = UpdateConnectionAliasPermissionResponse' {
- httpStatus :: Int
- newUpdateConnectionAliasPermissionResponse :: Int -> UpdateConnectionAliasPermissionResponse
- updateConnectionAliasPermissionResponse_httpStatus :: Lens' UpdateConnectionAliasPermissionResponse Int
Creating a Request
data UpdateConnectionAliasPermission Source #
See: newUpdateConnectionAliasPermission
smart constructor.
UpdateConnectionAliasPermission' | |
|
Instances
newUpdateConnectionAliasPermission Source #
:: Text | |
-> ConnectionAliasPermission |
|
-> UpdateConnectionAliasPermission |
Create a value of UpdateConnectionAliasPermission
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:UpdateConnectionAliasPermission'
, updateConnectionAliasPermission_aliasId
- The identifier of the connection alias that you want to update
permissions for.
$sel:connectionAliasPermission:UpdateConnectionAliasPermission'
, updateConnectionAliasPermission_connectionAliasPermission
- Indicates whether to share or unshare the connection alias with the
specified Amazon Web Services account.
Request Lenses
updateConnectionAliasPermission_aliasId :: Lens' UpdateConnectionAliasPermission Text Source #
The identifier of the connection alias that you want to update permissions for.
updateConnectionAliasPermission_connectionAliasPermission :: Lens' UpdateConnectionAliasPermission ConnectionAliasPermission Source #
Indicates whether to share or unshare the connection alias with the specified Amazon Web Services account.
Destructuring the Response
data UpdateConnectionAliasPermissionResponse Source #
See: newUpdateConnectionAliasPermissionResponse
smart constructor.
UpdateConnectionAliasPermissionResponse' | |
|
Instances
Eq UpdateConnectionAliasPermissionResponse Source # | |
Read UpdateConnectionAliasPermissionResponse Source # | |
Show UpdateConnectionAliasPermissionResponse Source # | |
Generic UpdateConnectionAliasPermissionResponse Source # | |
Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission type Rep UpdateConnectionAliasPermissionResponse :: Type -> Type # | |
NFData UpdateConnectionAliasPermissionResponse Source # | |
type Rep UpdateConnectionAliasPermissionResponse Source # | |
Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission type Rep UpdateConnectionAliasPermissionResponse = D1 ('MetaData "UpdateConnectionAliasPermissionResponse" "Amazonka.WorkSpaces.UpdateConnectionAliasPermission" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "UpdateConnectionAliasPermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateConnectionAliasPermissionResponse Source #
Create a value of UpdateConnectionAliasPermissionResponse
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:httpStatus:UpdateConnectionAliasPermissionResponse'
, updateConnectionAliasPermissionResponse_httpStatus
- The response's http status code.
Response Lenses
updateConnectionAliasPermissionResponse_httpStatus :: Lens' UpdateConnectionAliasPermissionResponse Int Source #
The response's http status code.