libZSservicesZSamazonka-ramZSamazonka-ram
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.RAM.AssociateResourceSharePermission

Description

Associates a permission with a resource share.

Synopsis

Creating a Request

data AssociateResourceSharePermission Source #

See: newAssociateResourceSharePermission smart constructor.

Constructors

AssociateResourceSharePermission' 

Fields

  • replace :: Maybe Bool

    Indicates whether the permission should replace the permissions that are currently associated with the resource share. Use true to replace the current permissions. Use false to add the permission to the current permission.

  • clientToken :: Maybe Text

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

  • permissionVersion :: Maybe Int

    The version of the RAM permissions to associate with the resource share.

  • resourceShareArn :: Text

    The Amazon Resource Name (ARN) of the resource share.

  • permissionArn :: Text

    The Amazon Resource Name (ARN) of the RAM permission to associate with the resource share.

Instances

Instances details
Eq AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Read AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Show AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Generic AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Associated Types

type Rep AssociateResourceSharePermission :: Type -> Type #

NFData AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Hashable AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

ToJSON AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

AWSRequest AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

ToHeaders AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

ToPath AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

ToQuery AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

type Rep AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

type Rep AssociateResourceSharePermission = D1 ('MetaData "AssociateResourceSharePermission" "Amazonka.RAM.AssociateResourceSharePermission" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "AssociateResourceSharePermission'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "permissionVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "resourceShareArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse AssociateResourceSharePermission Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

newAssociateResourceSharePermission Source #

Create a value of AssociateResourceSharePermission 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:replace:AssociateResourceSharePermission', associateResourceSharePermission_replace - Indicates whether the permission should replace the permissions that are currently associated with the resource share. Use true to replace the current permissions. Use false to add the permission to the current permission.

$sel:clientToken:AssociateResourceSharePermission', associateResourceSharePermission_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

$sel:permissionVersion:AssociateResourceSharePermission', associateResourceSharePermission_permissionVersion - The version of the RAM permissions to associate with the resource share.

$sel:resourceShareArn:AssociateResourceSharePermission', associateResourceSharePermission_resourceShareArn - The Amazon Resource Name (ARN) of the resource share.

$sel:permissionArn:AssociateResourceSharePermission', associateResourceSharePermission_permissionArn - The Amazon Resource Name (ARN) of the RAM permission to associate with the resource share.

Request Lenses

associateResourceSharePermission_replace :: Lens' AssociateResourceSharePermission (Maybe Bool) Source #

Indicates whether the permission should replace the permissions that are currently associated with the resource share. Use true to replace the current permissions. Use false to add the permission to the current permission.

associateResourceSharePermission_clientToken :: Lens' AssociateResourceSharePermission (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

associateResourceSharePermission_permissionVersion :: Lens' AssociateResourceSharePermission (Maybe Int) Source #

The version of the RAM permissions to associate with the resource share.

associateResourceSharePermission_permissionArn :: Lens' AssociateResourceSharePermission Text Source #

The Amazon Resource Name (ARN) of the RAM permission to associate with the resource share.

Destructuring the Response

data AssociateResourceSharePermissionResponse Source #

Constructors

AssociateResourceSharePermissionResponse' 

Fields

Instances

Instances details
Eq AssociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Read AssociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Show AssociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

Generic AssociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

NFData AssociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

type Rep AssociateResourceSharePermissionResponse Source # 
Instance details

Defined in Amazonka.RAM.AssociateResourceSharePermission

type Rep AssociateResourceSharePermissionResponse = D1 ('MetaData "AssociateResourceSharePermissionResponse" "Amazonka.RAM.AssociateResourceSharePermission" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "AssociateResourceSharePermissionResponse'" '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))))

newAssociateResourceSharePermissionResponse Source #

Create a value of AssociateResourceSharePermissionResponse 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:clientToken:AssociateResourceSharePermission', associateResourceSharePermissionResponse_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

$sel:returnValue:AssociateResourceSharePermissionResponse', associateResourceSharePermissionResponse_returnValue - Indicates whether the request succeeded.

$sel:httpStatus:AssociateResourceSharePermissionResponse', associateResourceSharePermissionResponse_httpStatus - The response's http status code.

Response Lenses

associateResourceSharePermissionResponse_clientToken :: Lens' AssociateResourceSharePermissionResponse (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.