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

Description

Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data AttachInternetGateway Source #

See: newAttachInternetGateway smart constructor.

Constructors

AttachInternetGateway' 

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.

  • internetGatewayId :: Text

    The ID of the internet gateway.

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

ToPath AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

ToQuery AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

AWSRequest AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Associated Types

type AWSResponse AttachInternetGateway #

Generic AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Associated Types

type Rep AttachInternetGateway :: Type -> Type #

Read AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Show AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

NFData AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Methods

rnf :: AttachInternetGateway -> () #

Eq AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Hashable AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

type AWSResponse AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

type Rep AttachInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

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

newAttachInternetGateway Source #

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

AttachInternetGateway, attachInternetGateway_internetGatewayId - The ID of the internet gateway.

AttachInternetGateway, attachInternetGateway_vpcId - The ID of the VPC.

Request Lenses

attachInternetGateway_dryRun :: Lens' AttachInternetGateway (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 AttachInternetGatewayResponse Source #

See: newAttachInternetGatewayResponse smart constructor.

Instances

Instances details
Generic AttachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Associated Types

type Rep AttachInternetGatewayResponse :: Type -> Type #

Read AttachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Show AttachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

NFData AttachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

Eq AttachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

type Rep AttachInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.AttachInternetGateway

type Rep AttachInternetGatewayResponse = D1 ('MetaData "AttachInternetGatewayResponse" "Amazonka.EC2.AttachInternetGateway" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AttachInternetGatewayResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAttachInternetGatewayResponse :: AttachInternetGatewayResponse Source #

Create a value of AttachInternetGatewayResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.