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

Description

Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

Synopsis

Creating a Request

data AttachVpnGateway Source #

Contains the parameters for AttachVpnGateway.

See: newAttachVpnGateway smart constructor.

Constructors

AttachVpnGateway' 

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.

  • vpcId :: Text

    The ID of the VPC.

  • vpnGatewayId :: Text

    The ID of the virtual private gateway.

Instances

Instances details
ToHeaders AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

ToPath AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

ToQuery AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

AWSRequest AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Associated Types

type AWSResponse AttachVpnGateway #

Generic AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Associated Types

type Rep AttachVpnGateway :: Type -> Type #

Read AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Show AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

NFData AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Methods

rnf :: AttachVpnGateway -> () #

Eq AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Hashable AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

type AWSResponse AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

type Rep AttachVpnGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

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

newAttachVpnGateway Source #

Create a value of AttachVpnGateway 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:AttachVpnGateway', attachVpnGateway_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.

AttachVpnGateway, attachVpnGateway_vpcId - The ID of the VPC.

AttachVpnGateway, attachVpnGateway_vpnGatewayId - The ID of the virtual private gateway.

Request Lenses

attachVpnGateway_dryRun :: Lens' AttachVpnGateway (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.

attachVpnGateway_vpnGatewayId :: Lens' AttachVpnGateway Text Source #

The ID of the virtual private gateway.

Destructuring the Response

data AttachVpnGatewayResponse Source #

Contains the output of AttachVpnGateway.

See: newAttachVpnGatewayResponse smart constructor.

Constructors

AttachVpnGatewayResponse' 

Fields

Instances

Instances details
Generic AttachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Associated Types

type Rep AttachVpnGatewayResponse :: Type -> Type #

Read AttachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Show AttachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

NFData AttachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

Eq AttachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

type Rep AttachVpnGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachVpnGateway

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

newAttachVpnGatewayResponse Source #

Create a value of AttachVpnGatewayResponse 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:vpcAttachment:AttachVpnGatewayResponse', attachVpnGatewayResponse_vpcAttachment - Information about the attachment.

$sel:httpStatus:AttachVpnGatewayResponse', attachVpnGatewayResponse_httpStatus - The response's http status code.

Response Lenses