amazonka-ram-2.0: Amazon Resource Access Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RAM.DisassociateResourceSharePermission

Description

Disassociates an RAM permission from a resource share. Permission changes take effect immediately. You can remove a RAM permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.

Synopsis

Creating a Request

data DisassociateResourceSharePermission Source #

Constructors

DisassociateResourceSharePermission' 

Fields

  • clientToken :: Maybe Text

    Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

    If you don't provide this value, then Amazon Web Services generates a random one for you.

  • resourceShareArn :: Text

    The Amazon Resoure Name (ARN) of the resource share from which you want to disassociate a permission.

  • permissionArn :: Text

    The Amazon Resoure Name (ARN) of the permission to disassociate from the resource share. Changes to permissions take effect immediately.

Instances

Instances details
ToJSON DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

ToHeaders DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

ToPath DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

ToQuery DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

AWSRequest DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Generic DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Read DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Show DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

NFData DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Eq DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Hashable DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

type AWSResponse DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

type Rep DisassociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

type Rep DisassociateResourceSharePermission = D1 ('MetaData "DisassociateResourceSharePermission" "Amazonka.RAM.DisassociateResourceSharePermission" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "DisassociateResourceSharePermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceShareArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDisassociateResourceSharePermission Source #

Create a value of DisassociateResourceSharePermission 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:

DisassociateResourceSharePermission, disassociateResourceSharePermission_clientToken - Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

DisassociateResourceSharePermission, disassociateResourceSharePermission_resourceShareArn - The Amazon Resoure Name (ARN) of the resource share from which you want to disassociate a permission.

$sel:permissionArn:DisassociateResourceSharePermission', disassociateResourceSharePermission_permissionArn - The Amazon Resoure Name (ARN) of the permission to disassociate from the resource share. Changes to permissions take effect immediately.

Request Lenses

disassociateResourceSharePermission_clientToken :: Lens' DisassociateResourceSharePermission (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

disassociateResourceSharePermission_permissionArn :: Lens' DisassociateResourceSharePermission Text Source #

The Amazon Resoure Name (ARN) of the permission to disassociate from the resource share. Changes to permissions take effect immediately.

Destructuring the Response

data DisassociateResourceSharePermissionResponse Source #

Constructors

DisassociateResourceSharePermissionResponse' 

Fields

  • clientToken :: Maybe Text

    The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

  • returnValue :: Maybe Bool

    A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DisassociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Read DisassociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Show DisassociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

NFData DisassociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

Eq DisassociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

type Rep DisassociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.DisassociateResourceSharePermission

type Rep DisassociateResourceSharePermissionResponse = D1 ('MetaData "DisassociateResourceSharePermissionResponse" "Amazonka.RAM.DisassociateResourceSharePermission" "amazonka-ram-2.0-2ZD9k8USaHb58ZVl9MaFYL" 'False) (C1 ('MetaCons "DisassociateResourceSharePermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "returnValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDisassociateResourceSharePermissionResponse Source #

Create a value of DisassociateResourceSharePermissionResponse 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:

DisassociateResourceSharePermission, disassociateResourceSharePermissionResponse_clientToken - The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

$sel:returnValue:DisassociateResourceSharePermissionResponse', disassociateResourceSharePermissionResponse_returnValue - A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

$sel:httpStatus:DisassociateResourceSharePermissionResponse', disassociateResourceSharePermissionResponse_httpStatus - The response's http status code.

Response Lenses

disassociateResourceSharePermissionResponse_clientToken :: Lens' DisassociateResourceSharePermissionResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

disassociateResourceSharePermissionResponse_returnValue :: Lens' DisassociateResourceSharePermissionResponse (Maybe Bool) Source #

A return value of true indicates that the request succeeded. A value of false indicates that the request failed.