libZSservicesZSamazonka-organizationsZSamazonka-organizations
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.Organizations.CancelHandshake

Description

Cancels a handshake. Canceling a handshake sets the handshake state to CANCELED.

This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use DeclineHandshake instead. After a handshake is canceled, the recipient can no longer respond to that handshake.

After you cancel a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that, it's deleted.

Synopsis

Creating a Request

data CancelHandshake Source #

See: newCancelHandshake smart constructor.

Constructors

CancelHandshake' 

Fields

  • handshakeId :: Text

    The unique identifier (ID) of the handshake that you want to cancel. You can get the ID from the ListHandshakesForOrganization operation.

    The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.

Instances

Instances details
Eq CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Read CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Show CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Generic CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Associated Types

type Rep CancelHandshake :: Type -> Type #

NFData CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Methods

rnf :: CancelHandshake -> () #

Hashable CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

ToJSON CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

AWSRequest CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Associated Types

type AWSResponse CancelHandshake #

ToHeaders CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

ToPath CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

ToQuery CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

type Rep CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

type Rep CancelHandshake = D1 ('MetaData "CancelHandshake" "Amazonka.Organizations.CancelHandshake" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "CancelHandshake'" 'PrefixI 'True) (S1 ('MetaSel ('Just "handshakeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CancelHandshake Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

newCancelHandshake Source #

Create a value of CancelHandshake 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:handshakeId:CancelHandshake', cancelHandshake_handshakeId - The unique identifier (ID) of the handshake that you want to cancel. You can get the ID from the ListHandshakesForOrganization operation.

The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.

Request Lenses

cancelHandshake_handshakeId :: Lens' CancelHandshake Text Source #

The unique identifier (ID) of the handshake that you want to cancel. You can get the ID from the ListHandshakesForOrganization operation.

The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.

Destructuring the Response

data CancelHandshakeResponse Source #

See: newCancelHandshakeResponse smart constructor.

Constructors

CancelHandshakeResponse' 

Fields

Instances

Instances details
Eq CancelHandshakeResponse Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Show CancelHandshakeResponse Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Generic CancelHandshakeResponse Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Associated Types

type Rep CancelHandshakeResponse :: Type -> Type #

NFData CancelHandshakeResponse Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

Methods

rnf :: CancelHandshakeResponse -> () #

type Rep CancelHandshakeResponse Source # 
Instance details

Defined in Amazonka.Organizations.CancelHandshake

type Rep CancelHandshakeResponse = D1 ('MetaData "CancelHandshakeResponse" "Amazonka.Organizations.CancelHandshake" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "CancelHandshakeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "handshake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Handshake)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelHandshakeResponse Source #

Create a value of CancelHandshakeResponse 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:handshake:CancelHandshakeResponse', cancelHandshakeResponse_handshake - A structure that contains details about the handshake that you canceled.

$sel:httpStatus:CancelHandshakeResponse', cancelHandshakeResponse_httpStatus - The response's http status code.

Response Lenses

cancelHandshakeResponse_handshake :: Lens' CancelHandshakeResponse (Maybe Handshake) Source #

A structure that contains details about the handshake that you canceled.