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

Description

Creates a subnet CIDR reservation. For information about subnet CIDR reservations, see Subnet CIDR reservations in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data CreateSubnetCidrReservation Source #

See: newCreateSubnetCidrReservation smart constructor.

Constructors

CreateSubnetCidrReservation' 

Fields

  • description :: Maybe Text

    The description to assign to the subnet CIDR reservation.

  • 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 subnet CIDR reservation.

  • subnetId :: Text

    The ID of the subnet.

  • cidr :: Text

    The IPv4 or IPV6 CIDR range to reserve.

  • reservationType :: SubnetCidrReservationType

    The type of reservation.

    The following are valid values:

    • prefix: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
    • explicit: You manually assign the IP addresses to resources that reside in your subnet.

Instances

Instances details
ToHeaders CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

ToPath CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

ToQuery CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

AWSRequest CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Generic CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Associated Types

type Rep CreateSubnetCidrReservation :: Type -> Type #

Read CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Show CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

NFData CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Eq CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Hashable CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

type AWSResponse CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

type Rep CreateSubnetCidrReservation Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

type Rep CreateSubnetCidrReservation = D1 ('MetaData "CreateSubnetCidrReservation" "Amazonka.EC2.CreateSubnetCidrReservation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateSubnetCidrReservation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") '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 "subnetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "cidr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reservationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SubnetCidrReservationType)))))

newCreateSubnetCidrReservation Source #

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

CreateSubnetCidrReservation, createSubnetCidrReservation_description - The description to assign to the subnet CIDR reservation.

$sel:dryRun:CreateSubnetCidrReservation', createSubnetCidrReservation_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.

CreateSubnetCidrReservation, createSubnetCidrReservation_tagSpecifications - The tags to assign to the subnet CIDR reservation.

CreateSubnetCidrReservation, createSubnetCidrReservation_subnetId - The ID of the subnet.

CreateSubnetCidrReservation, createSubnetCidrReservation_cidr - The IPv4 or IPV6 CIDR range to reserve.

CreateSubnetCidrReservation, createSubnetCidrReservation_reservationType - The type of reservation.

The following are valid values:

  • prefix: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
  • explicit: You manually assign the IP addresses to resources that reside in your subnet.

Request Lenses

createSubnetCidrReservation_description :: Lens' CreateSubnetCidrReservation (Maybe Text) Source #

The description to assign to the subnet CIDR reservation.

createSubnetCidrReservation_dryRun :: Lens' CreateSubnetCidrReservation (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.

createSubnetCidrReservation_reservationType :: Lens' CreateSubnetCidrReservation SubnetCidrReservationType Source #

The type of reservation.

The following are valid values:

  • prefix: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
  • explicit: You manually assign the IP addresses to resources that reside in your subnet.

Destructuring the Response

data CreateSubnetCidrReservationResponse Source #

Constructors

CreateSubnetCidrReservationResponse' 

Fields

Instances

Instances details
Generic CreateSubnetCidrReservationResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Read CreateSubnetCidrReservationResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Show CreateSubnetCidrReservationResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

NFData CreateSubnetCidrReservationResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

Eq CreateSubnetCidrReservationResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

type Rep CreateSubnetCidrReservationResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSubnetCidrReservation

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

newCreateSubnetCidrReservationResponse Source #

Create a value of CreateSubnetCidrReservationResponse 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:subnetCidrReservation:CreateSubnetCidrReservationResponse', createSubnetCidrReservationResponse_subnetCidrReservation - Information about the created subnet CIDR reservation.

$sel:httpStatus:CreateSubnetCidrReservationResponse', createSubnetCidrReservationResponse_httpStatus - The response's http status code.

Response Lenses