pub struct DescribeAccountAttributes { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeAccountAttributes
.
Describes attributes of your Amazon Web Services account. The following are the supported account attributes:
-
supported-platforms
: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC. -
default-vpc
: The ID of the default VPC for your account, ornone
. -
max-instances
: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide. -
vpc-max-security-groups-per-interface
: The maximum number of security groups that you can assign to a network interface. -
max-elastic-ips
: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic. -
vpc-max-elastic-ips
: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.
We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide.
Implementations
sourceimpl DescribeAccountAttributes
impl DescribeAccountAttributes
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DescribeAccountAttributes, AwsResponseRetryClassifier>, SdkError<DescribeAccountAttributesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DescribeAccountAttributes, AwsResponseRetryClassifier>, SdkError<DescribeAccountAttributesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DescribeAccountAttributesOutput, SdkError<DescribeAccountAttributesError>>
pub async fn send(
self
) -> Result<DescribeAccountAttributesOutput, SdkError<DescribeAccountAttributesError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn attribute_names(self, input: AccountAttributeName) -> Self
pub fn attribute_names(self, input: AccountAttributeName) -> Self
Appends an item to AttributeNames
.
To override the contents of this collection use set_attribute_names
.
The account attribute names.
sourcepub fn set_attribute_names(
self,
input: Option<Vec<AccountAttributeName>>
) -> Self
pub fn set_attribute_names(
self,
input: Option<Vec<AccountAttributeName>>
) -> Self
The account attribute names.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
Trait Implementations
sourceimpl Clone for DescribeAccountAttributes
impl Clone for DescribeAccountAttributes
sourcefn clone(&self) -> DescribeAccountAttributes
fn clone(&self) -> DescribeAccountAttributes
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more