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

Description

Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.

Synopsis

Creating a Request

data CreateCarrierGateway Source #

See: newCreateCarrierGateway smart constructor.

Constructors

CreateCarrierGateway' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

  • 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 associate with the carrier gateway.

  • vpcId :: Text

    The ID of the VPC to associate with the carrier gateway.

Instances

Instances details
ToHeaders CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

ToPath CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

ToQuery CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

AWSRequest CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Associated Types

type AWSResponse CreateCarrierGateway #

Generic CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Associated Types

type Rep CreateCarrierGateway :: Type -> Type #

Read CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Show CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

NFData CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Methods

rnf :: CreateCarrierGateway -> () #

Eq CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Hashable CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

type AWSResponse CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

type Rep CreateCarrierGateway Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

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

newCreateCarrierGateway Source #

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

CreateCarrierGateway, createCarrierGateway_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

$sel:dryRun:CreateCarrierGateway', createCarrierGateway_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.

CreateCarrierGateway, createCarrierGateway_tagSpecifications - The tags to associate with the carrier gateway.

CreateCarrierGateway, createCarrierGateway_vpcId - The ID of the VPC to associate with the carrier gateway.

Request Lenses

createCarrierGateway_clientToken :: Lens' CreateCarrierGateway (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

createCarrierGateway_dryRun :: Lens' CreateCarrierGateway (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.

createCarrierGateway_vpcId :: Lens' CreateCarrierGateway Text Source #

The ID of the VPC to associate with the carrier gateway.

Destructuring the Response

data CreateCarrierGatewayResponse Source #

See: newCreateCarrierGatewayResponse smart constructor.

Constructors

CreateCarrierGatewayResponse' 

Fields

Instances

Instances details
Generic CreateCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Associated Types

type Rep CreateCarrierGatewayResponse :: Type -> Type #

Read CreateCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Show CreateCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

NFData CreateCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

Eq CreateCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

type Rep CreateCarrierGatewayResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateCarrierGateway

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

newCreateCarrierGatewayResponse Source #

Create a value of CreateCarrierGatewayResponse 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:carrierGateway:CreateCarrierGatewayResponse', createCarrierGatewayResponse_carrierGateway - Information about the carrier gateway.

$sel:httpStatus:CreateCarrierGatewayResponse', createCarrierGatewayResponse_httpStatus - The response's http status code.

Response Lenses