Struct aws_sdk_ec2::input::modify_vpc_attribute_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ModifyVpcAttributeInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn enable_dns_hostnames(self, input: AttributeBooleanValue) -> Self
pub fn enable_dns_hostnames(self, input: AttributeBooleanValue) -> Self
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.
sourcepub fn set_enable_dns_hostnames(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_dns_hostnames(
self,
input: Option<AttributeBooleanValue>
) -> Self
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.
sourcepub fn enable_dns_support(self, input: AttributeBooleanValue) -> Self
pub fn enable_dns_support(self, input: AttributeBooleanValue) -> Self
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.
sourcepub fn set_enable_dns_support(self, input: Option<AttributeBooleanValue>) -> Self
pub fn set_enable_dns_support(self, input: Option<AttributeBooleanValue>) -> Self
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.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn enable_network_address_usage_metrics(
self,
input: AttributeBooleanValue
) -> Self
pub fn enable_network_address_usage_metrics(
self,
input: AttributeBooleanValue
) -> Self
Indicates whether Network Address Usage metrics are enabled for your VPC.
sourcepub fn set_enable_network_address_usage_metrics(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_network_address_usage_metrics(
self,
input: Option<AttributeBooleanValue>
) -> Self
Indicates whether Network Address Usage metrics are enabled for your VPC.
sourcepub fn build(self) -> Result<ModifyVpcAttributeInput, BuildError>
pub fn build(self) -> Result<ModifyVpcAttributeInput, BuildError>
Consumes the builder and constructs a ModifyVpcAttributeInput
.