logo
pub struct UpdateApiCacheRequest {
    pub api_caching_behavior: String,
    pub api_id: String,
    pub ttl: i64,
    pub type_: String,
}
Expand description

Represents the input of a UpdateApiCache operation.

Fields

api_caching_behavior: String

Caching behavior.

  • FULLREQUESTCACHING: All requests are fully cached.

  • PERRESOLVERCACHING: Individual resolvers that you specify are cached.

api_id: String

The GraphQL API Id.

ttl: i64

TTL in seconds for cache entries.

Valid values are between 1 and 3600 seconds.

type_: String

The cache instance type. Valid values are

  • SMALL

  • MEDIUM

  • LARGE

  • XLARGE

  • LARGE2X

  • LARGE4X

  • LARGE8X (not available in all regions)

  • LARGE12X

Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.

The following legacy instance types are available, but their use is discouraged:

  • T2SMALL: A t2.small instance type.

  • T2MEDIUM: A t2.medium instance type.

  • R4LARGE: A r4.large instance type.

  • R4XLARGE: A r4.xlarge instance type.

  • R42XLARGE: A r4.2xlarge instance type.

  • R44XLARGE: A r4.4xlarge instance type.

  • R4_8XLARGE: A r4.8xlarge instance type.

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

Returns the “default value” for a type. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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