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.UpdateWorkspaceImagePermission

Description

Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with the account.

After an image has been shared, the recipient account can copy the image to other Regions as needed.

In the China (Ningxia) Region, you can copy images only within the same Region.

In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support.

For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image.

  • To delete an image that has been shared, you must unshare the image before you delete it.
  • Sharing Bring Your Own License (BYOL) images across Amazon Web Services accounts isn't supported at this time in Amazon Web Services GovCloud (US). To share BYOL images across accounts in Amazon Web Services GovCloud (US), contact Amazon Web Services Support.
Synopsis

Creating a Request

data UpdateWorkspaceImagePermission Source #

See: newUpdateWorkspaceImagePermission smart constructor.

Constructors

UpdateWorkspaceImagePermission' 

Fields

  • imageId :: Text

    The identifier of the image.

  • allowCopyImage :: Bool

    The permission to copy the image. This permission can be revoked only after an image has been shared.

  • sharedAccountId :: Text

    The identifier of the Amazon Web Services account to share or unshare the image with.

    Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID.

Instances

Instances details
Eq UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Read UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Show UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Generic UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Associated Types

type Rep UpdateWorkspaceImagePermission :: Type -> Type #

NFData UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Hashable UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

ToJSON UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

AWSRequest UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

ToHeaders UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

ToPath UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

ToQuery UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

type Rep UpdateWorkspaceImagePermission Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

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

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

newUpdateWorkspaceImagePermission Source #

Create a value of UpdateWorkspaceImagePermission 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:imageId:UpdateWorkspaceImagePermission', updateWorkspaceImagePermission_imageId - The identifier of the image.

$sel:allowCopyImage:UpdateWorkspaceImagePermission', updateWorkspaceImagePermission_allowCopyImage - The permission to copy the image. This permission can be revoked only after an image has been shared.

$sel:sharedAccountId:UpdateWorkspaceImagePermission', updateWorkspaceImagePermission_sharedAccountId - The identifier of the Amazon Web Services account to share or unshare the image with.

Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID.

Request Lenses

updateWorkspaceImagePermission_allowCopyImage :: Lens' UpdateWorkspaceImagePermission Bool Source #

The permission to copy the image. This permission can be revoked only after an image has been shared.

updateWorkspaceImagePermission_sharedAccountId :: Lens' UpdateWorkspaceImagePermission Text Source #

The identifier of the Amazon Web Services account to share or unshare the image with.

Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID.

Destructuring the Response

data UpdateWorkspaceImagePermissionResponse Source #

Constructors

UpdateWorkspaceImagePermissionResponse' 

Fields

Instances

Instances details
Eq UpdateWorkspaceImagePermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Read UpdateWorkspaceImagePermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Show UpdateWorkspaceImagePermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

Generic UpdateWorkspaceImagePermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

NFData UpdateWorkspaceImagePermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

type Rep UpdateWorkspaceImagePermissionResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.UpdateWorkspaceImagePermission

type Rep UpdateWorkspaceImagePermissionResponse = D1 ('MetaData "UpdateWorkspaceImagePermissionResponse" "Amazonka.WorkSpaces.UpdateWorkspaceImagePermission" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "UpdateWorkspaceImagePermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateWorkspaceImagePermissionResponse Source #

Create a value of UpdateWorkspaceImagePermissionResponse 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:UpdateWorkspaceImagePermissionResponse', updateWorkspaceImagePermissionResponse_httpStatus - The response's http status code.

Response Lenses