aws_sdk_ec2/client/
modify_vpc_attribute.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ModifyVpcAttribute`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`enable_dns_hostnames(AttributeBooleanValue)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::enable_dns_hostnames) / [`set_enable_dns_hostnames(Option<AttributeBooleanValue>)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::set_enable_dns_hostnames):<br>required: **false**<br><p>Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.</p> <p>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.</p><br>
7    ///   - [`enable_dns_support(AttributeBooleanValue)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::enable_dns_support) / [`set_enable_dns_support(Option<AttributeBooleanValue>)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::set_enable_dns_support):<br>required: **false**<br><p>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.</p> <p>You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.</p><br>
8    ///   - [`vpc_id(impl Into<String>)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC.</p><br>
9    ///   - [`enable_network_address_usage_metrics(AttributeBooleanValue)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::enable_network_address_usage_metrics) / [`set_enable_network_address_usage_metrics(Option<AttributeBooleanValue>)`](crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::set_enable_network_address_usage_metrics):<br>required: **false**<br><p>Indicates whether Network Address Usage metrics are enabled for your VPC.</p><br>
10    /// - On success, responds with [`ModifyVpcAttributeOutput`](crate::operation::modify_vpc_attribute::ModifyVpcAttributeOutput)
11    /// - On failure, responds with [`SdkError<ModifyVpcAttributeError>`](crate::operation::modify_vpc_attribute::ModifyVpcAttributeError)
12    pub fn modify_vpc_attribute(&self) -> crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder {
13        crate::operation::modify_vpc_attribute::builders::ModifyVpcAttributeFluentBuilder::new(self.handle.clone())
14    }
15}