#[non_exhaustive]pub struct CreateUsagePlanInput {
pub name: Option<String>,
pub description: Option<String>,
pub api_stages: Option<Vec<ApiStage>>,
pub throttle: Option<ThrottleSettings>,
pub quota: Option<QuotaSettings>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
The POST request to create a usage plan with the name, description, throttle limits and quota limits, as well as the associated API stages, specified in the payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the usage plan.
description: Option<String>
The description of the usage plan.
api_stages: Option<Vec<ApiStage>>
The associated API stages of the usage plan.
throttle: Option<ThrottleSettings>
The throttling limits of the usage plan.
quota: Option<QuotaSettings>
The quota of the usage plan.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
Implementations§
source§impl CreateUsagePlanInput
impl CreateUsagePlanInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the usage plan.
sourcepub fn api_stages(&self) -> &[ApiStage]
pub fn api_stages(&self) -> &[ApiStage]
The associated API stages of the usage plan.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .api_stages.is_none()
.
sourcepub fn throttle(&self) -> Option<&ThrottleSettings>
pub fn throttle(&self) -> Option<&ThrottleSettings>
The throttling limits of the usage plan.
sourcepub fn quota(&self) -> Option<&QuotaSettings>
pub fn quota(&self) -> Option<&QuotaSettings>
The quota of the usage plan.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
source§impl CreateUsagePlanInput
impl CreateUsagePlanInput
sourcepub fn builder() -> CreateUsagePlanInputBuilder
pub fn builder() -> CreateUsagePlanInputBuilder
Creates a new builder-style object to manufacture CreateUsagePlanInput
.
Trait Implementations§
source§impl Clone for CreateUsagePlanInput
impl Clone for CreateUsagePlanInput
source§fn clone(&self) -> CreateUsagePlanInput
fn clone(&self) -> CreateUsagePlanInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateUsagePlanInput
impl Debug for CreateUsagePlanInput
source§impl PartialEq for CreateUsagePlanInput
impl PartialEq for CreateUsagePlanInput
source§fn eq(&self, other: &CreateUsagePlanInput) -> bool
fn eq(&self, other: &CreateUsagePlanInput) -> bool
self
and other
values to be equal, and is used
by ==
.