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

Description

Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.

Synopsis

Creating a Request

data AcceptResourceShareInvitation Source #

See: newAcceptResourceShareInvitation smart constructor.

Constructors

AcceptResourceShareInvitation' 

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.

  • resourceShareInvitationArn :: Text

    The Amazon Resoure Name (ARN) of the invitation that you want to accept.

Instances

Instances details
ToJSON AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

ToHeaders AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

ToPath AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

ToQuery AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

AWSRequest AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Generic AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Associated Types

type Rep AcceptResourceShareInvitation :: Type -> Type #

Read AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Show AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

NFData AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Eq AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Hashable AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

type AWSResponse AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

type Rep AcceptResourceShareInvitation Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

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

newAcceptResourceShareInvitation Source #

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

AcceptResourceShareInvitation, acceptResourceShareInvitation_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.

AcceptResourceShareInvitation, acceptResourceShareInvitation_resourceShareInvitationArn - The Amazon Resoure Name (ARN) of the invitation that you want to accept.

Request Lenses

acceptResourceShareInvitation_clientToken :: Lens' AcceptResourceShareInvitation (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.

Destructuring the Response

data AcceptResourceShareInvitationResponse Source #

Constructors

AcceptResourceShareInvitationResponse' 

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.

  • resourceShareInvitation :: Maybe ResourceShareInvitation

    An object that contains information about the specified invitation.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic AcceptResourceShareInvitationResponse Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Read AcceptResourceShareInvitationResponse Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Show AcceptResourceShareInvitationResponse Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

NFData AcceptResourceShareInvitationResponse Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

Eq AcceptResourceShareInvitationResponse Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

type Rep AcceptResourceShareInvitationResponse Source # 
Instance details

Defined in Amazonka.RAM.AcceptResourceShareInvitation

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

newAcceptResourceShareInvitationResponse Source #

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

AcceptResourceShareInvitation, acceptResourceShareInvitationResponse_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:resourceShareInvitation:AcceptResourceShareInvitationResponse', acceptResourceShareInvitationResponse_resourceShareInvitation - An object that contains information about the specified invitation.

$sel:httpStatus:AcceptResourceShareInvitationResponse', acceptResourceShareInvitationResponse_httpStatus - The response's http status code.

Response Lenses

acceptResourceShareInvitationResponse_clientToken :: Lens' AcceptResourceShareInvitationResponse (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.