aws_sdk_ec2/client/describe_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 [`DescribeVpcAttribute`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`attribute(VpcAttributeName)`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::attribute) / [`set_attribute(Option<VpcAttributeName>)`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::set_attribute):<br>required: **true**<br><p>The VPC attribute.</p><br>
7 /// - [`vpc_id(impl Into<String>)`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
9 /// - On success, responds with [`DescribeVpcAttributeOutput`](crate::operation::describe_vpc_attribute::DescribeVpcAttributeOutput) with field(s):
10 /// - [`enable_dns_hostnames(Option<AttributeBooleanValue>)`](crate::operation::describe_vpc_attribute::DescribeVpcAttributeOutput::enable_dns_hostnames): <p>Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is <code>true</code>, instances in the VPC get DNS hostnames; otherwise, they do not.</p>
11 /// - [`enable_dns_support(Option<AttributeBooleanValue>)`](crate::operation::describe_vpc_attribute::DescribeVpcAttributeOutput::enable_dns_support): <p>Indicates whether DNS resolution is enabled for the VPC. If this attribute is <code>true</code>, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.</p>
12 /// - [`enable_network_address_usage_metrics(Option<AttributeBooleanValue>)`](crate::operation::describe_vpc_attribute::DescribeVpcAttributeOutput::enable_network_address_usage_metrics): <p>Indicates whether Network Address Usage metrics are enabled for your VPC.</p>
13 /// - [`vpc_id(Option<String>)`](crate::operation::describe_vpc_attribute::DescribeVpcAttributeOutput::vpc_id): <p>The ID of the VPC.</p>
14 /// - On failure, responds with [`SdkError<DescribeVpcAttributeError>`](crate::operation::describe_vpc_attribute::DescribeVpcAttributeError)
15 pub fn describe_vpc_attribute(&self) -> crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder {
16 crate::operation::describe_vpc_attribute::builders::DescribeVpcAttributeFluentBuilder::new(self.handle.clone())
17 }
18}