amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.RejectTransitGatewayVpcAttachment

Description

Rejects a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

Synopsis

Creating a Request

data RejectTransitGatewayVpcAttachment Source #

See: newRejectTransitGatewayVpcAttachment smart constructor.

Constructors

RejectTransitGatewayVpcAttachment' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • transitGatewayAttachmentId :: Text

    The ID of the attachment.

Instances

Instances details
ToHeaders RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

ToPath RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

ToQuery RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

AWSRequest RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Generic RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Associated Types

type Rep RejectTransitGatewayVpcAttachment :: Type -> Type #

Read RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Show RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

NFData RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Eq RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Hashable RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

type AWSResponse RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

type Rep RejectTransitGatewayVpcAttachment Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

type Rep RejectTransitGatewayVpcAttachment = D1 ('MetaData "RejectTransitGatewayVpcAttachment" "Amazonka.EC2.RejectTransitGatewayVpcAttachment" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RejectTransitGatewayVpcAttachment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "transitGatewayAttachmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newRejectTransitGatewayVpcAttachment Source #

Create a value of RejectTransitGatewayVpcAttachment 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:dryRun:RejectTransitGatewayVpcAttachment', rejectTransitGatewayVpcAttachment_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

RejectTransitGatewayVpcAttachment, rejectTransitGatewayVpcAttachment_transitGatewayAttachmentId - The ID of the attachment.

Request Lenses

rejectTransitGatewayVpcAttachment_dryRun :: Lens' RejectTransitGatewayVpcAttachment (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

data RejectTransitGatewayVpcAttachmentResponse Source #

Constructors

RejectTransitGatewayVpcAttachmentResponse' 

Fields

Instances

Instances details
Generic RejectTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Read RejectTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Show RejectTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

NFData RejectTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

Eq RejectTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

type Rep RejectTransitGatewayVpcAttachmentResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectTransitGatewayVpcAttachment

type Rep RejectTransitGatewayVpcAttachmentResponse = D1 ('MetaData "RejectTransitGatewayVpcAttachmentResponse" "Amazonka.EC2.RejectTransitGatewayVpcAttachment" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RejectTransitGatewayVpcAttachmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "transitGatewayVpcAttachment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TransitGatewayVpcAttachment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses