libZSservicesZSamazonka-workspacesZSamazonka-workspaces
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Description

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

Creating a Request

data UpdateConnectionAliasPermission Source #

See: newUpdateConnectionAliasPermission smart constructor.

Constructors

UpdateConnectionAliasPermission' 

Fields

Instances

Instances details
Eq UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Read UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Show UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Generic UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Associated Types

type Rep UpdateConnectionAliasPermission :: Type -> Type #

NFData UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Hashable UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

ToJSON UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

AWSRequest UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

ToHeaders UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

ToPath UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

ToQuery UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

type Rep UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

type Rep UpdateConnectionAliasPermission = D1 ('MetaData "UpdateConnectionAliasPermission" "Amazonka.WorkSpaces.UpdateConnectionAliasPermission" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "UpdateConnectionAliasPermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "aliasId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "connectionAliasPermission") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConnectionAliasPermission)))
type AWSResponse UpdateConnectionAliasPermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

newUpdateConnectionAliasPermission Source #

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 #

Constructors

UpdateConnectionAliasPermissionResponse' 

Fields

Instances

Instances details
Eq UpdateConnectionAliasPermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Read UpdateConnectionAliasPermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Show UpdateConnectionAliasPermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

Generic UpdateConnectionAliasPermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

NFData UpdateConnectionAliasPermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateConnectionAliasPermission

type Rep UpdateConnectionAliasPermissionResponse Source # 
Instance details

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