Struct aws_sdk_apigateway::output::UpdateAccountOutput[][src]

#[non_exhaustive]
pub struct UpdateAccountOutput { pub cloudwatch_role_arn: Option<String>, pub throttle_settings: Option<ThrottleSettings>, pub features: Option<Vec<String>>, pub api_key_version: Option<String>, }
Expand description

Represents an AWS account that is associated with API Gateway.

To view the account info, call GET on this resource.

Error Codes

The following exception may be thrown when the request fails.

  • UnauthorizedException
  • NotFoundException
  • TooManyRequestsException

For detailed error code information, including the corresponding HTTP Status Codes, see API Gateway Error Codes

Example: Get the information about an account.

Request
GET /account HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
X-Amz-Date: 20160531T184618Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns a 200 OK status code and a payload similar to the following:

{
"_links": {
"curies": {
"href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/account-apigateway-{rel}.html",
"name": "account",
"templated": true
},
"self": {
"href": "/account"
},
"account:update": {
"href": "/account"
}
},
"cloudwatchRoleArn": "arn:aws:iam::123456789012:role/apigAwsProxyRole",
"throttleSettings": {
"rateLimit": 500,
"burstLimit": 1000
}
}

In addition to making the REST API call directly, you can use the AWS CLI and an AWS SDK to access this resource.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
cloudwatch_role_arn: Option<String>

The ARN of an Amazon CloudWatch role for the current Account.

throttle_settings: Option<ThrottleSettings>

Specifies the API request limits configured for the current Account.

features: Option<Vec<String>>

A list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".

api_key_version: Option<String>

The version of the API keys used for the account.

Implementations

The ARN of an Amazon CloudWatch role for the current Account.

Specifies the API request limits configured for the current Account.

A list of features supported for the account. When usage plans are enabled, the features list will include an entry of "UsagePlans".

The version of the API keys used for the account.

Creates a new builder-style object to manufacture UpdateAccountOutput

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more