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

Description

Modifies the specified attribute of the specified VPC.

Synopsis

Creating a Request

data ModifyVpcAttribute Source #

See: newModifyVpcAttribute smart constructor.

Constructors

ModifyVpcAttribute' 

Fields

  • enableDnsHostnames :: Maybe AttributeBooleanValue

    Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

    You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

  • enableDnsSupport :: Maybe AttributeBooleanValue

    Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

    You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

  • enableNetworkAddressUsageMetrics :: Maybe AttributeBooleanValue

    Indicates whether Network Address Usage metrics are enabled for your VPC.

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

ToPath ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

ToQuery ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

AWSRequest ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Associated Types

type AWSResponse ModifyVpcAttribute #

Generic ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Associated Types

type Rep ModifyVpcAttribute :: Type -> Type #

Read ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Show ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

NFData ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Methods

rnf :: ModifyVpcAttribute -> () #

Eq ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Hashable ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

type AWSResponse ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

type Rep ModifyVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

type Rep ModifyVpcAttribute = D1 ('MetaData "ModifyVpcAttribute" "Amazonka.EC2.ModifyVpcAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVpcAttribute'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enableDnsHostnames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 ('MetaSel ('Just "enableDnsSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) :*: (S1 ('MetaSel ('Just "enableNetworkAddressUsageMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newModifyVpcAttribute Source #

Create a value of ModifyVpcAttribute 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:enableDnsHostnames:ModifyVpcAttribute', modifyVpcAttribute_enableDnsHostnames - Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

$sel:enableDnsSupport:ModifyVpcAttribute', modifyVpcAttribute_enableDnsSupport - Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

$sel:enableNetworkAddressUsageMetrics:ModifyVpcAttribute', modifyVpcAttribute_enableNetworkAddressUsageMetrics - Indicates whether Network Address Usage metrics are enabled for your VPC.

ModifyVpcAttribute, modifyVpcAttribute_vpcId - The ID of the VPC.

Request Lenses

modifyVpcAttribute_enableDnsHostnames :: Lens' ModifyVpcAttribute (Maybe AttributeBooleanValue) Source #

Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

modifyVpcAttribute_enableDnsSupport :: Lens' ModifyVpcAttribute (Maybe AttributeBooleanValue) Source #

Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

modifyVpcAttribute_enableNetworkAddressUsageMetrics :: Lens' ModifyVpcAttribute (Maybe AttributeBooleanValue) Source #

Indicates whether Network Address Usage metrics are enabled for your VPC.

Destructuring the Response

data ModifyVpcAttributeResponse Source #

See: newModifyVpcAttributeResponse smart constructor.

Instances

Instances details
Generic ModifyVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Associated Types

type Rep ModifyVpcAttributeResponse :: Type -> Type #

Read ModifyVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Show ModifyVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

NFData ModifyVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

Eq ModifyVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

type Rep ModifyVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcAttribute

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

newModifyVpcAttributeResponse :: ModifyVpcAttributeResponse Source #

Create a value of ModifyVpcAttributeResponse with all optional fields omitted.

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