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

Description

Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.

For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data CreateInternetGateway Source #

See: newCreateInternetGateway smart constructor.

Constructors

CreateInternetGateway' 

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.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to assign to the internet gateway.

Instances

Instances details
ToHeaders CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

ToPath CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

ToQuery CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

AWSRequest CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Associated Types

type AWSResponse CreateInternetGateway #

Generic CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Associated Types

type Rep CreateInternetGateway :: Type -> Type #

Read CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Show CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

NFData CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Methods

rnf :: CreateInternetGateway -> () #

Eq CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Hashable CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

type AWSResponse CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

type Rep CreateInternetGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

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

newCreateInternetGateway :: CreateInternetGateway Source #

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

CreateInternetGateway, createInternetGateway_tagSpecifications - The tags to assign to the internet gateway.

Request Lenses

createInternetGateway_dryRun :: Lens' CreateInternetGateway (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 CreateInternetGatewayResponse Source #

See: newCreateInternetGatewayResponse smart constructor.

Constructors

CreateInternetGatewayResponse' 

Fields

Instances

Instances details
Generic CreateInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Associated Types

type Rep CreateInternetGatewayResponse :: Type -> Type #

Read CreateInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Show CreateInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

NFData CreateInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

Eq CreateInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

type Rep CreateInternetGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateInternetGateway

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

newCreateInternetGatewayResponse Source #

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

CreateInternetGatewayResponse, createInternetGatewayResponse_internetGateway - Information about the internet gateway.

$sel:httpStatus:CreateInternetGatewayResponse', createInternetGatewayResponse_httpStatus - The response's http status code.

Response Lenses