pub struct CreateUsagePlanKey { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateUsagePlanKey
.
Creates a usage plan key for adding an existing API key to a usage plan.
Implementations§
source§impl CreateUsagePlanKey
impl CreateUsagePlanKey
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateUsagePlanKey, AwsResponseRetryClassifier>, SdkError<CreateUsagePlanKeyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateUsagePlanKey, AwsResponseRetryClassifier>, SdkError<CreateUsagePlanKeyError>>
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<CreateUsagePlanKeyOutput, SdkError<CreateUsagePlanKeyError>>
pub async fn send(
self
) -> Result<CreateUsagePlanKeyOutput, SdkError<CreateUsagePlanKeyError>>
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 usage_plan_id(self, input: impl Into<String>) -> Self
pub fn usage_plan_id(self, input: impl Into<String>) -> Self
The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.
sourcepub fn set_usage_plan_id(self, input: Option<String>) -> Self
pub fn set_usage_plan_id(self, input: Option<String>) -> Self
The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The identifier of a UsagePlanKey resource for a plan customer.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The identifier of a UsagePlanKey resource for a plan customer.
sourcepub fn key_type(self, input: impl Into<String>) -> Self
pub fn key_type(self, input: impl Into<String>) -> Self
The type of a UsagePlanKey resource for a plan customer.
sourcepub fn set_key_type(self, input: Option<String>) -> Self
pub fn set_key_type(self, input: Option<String>) -> Self
The type of a UsagePlanKey resource for a plan customer.
Trait Implementations§
source§impl Clone for CreateUsagePlanKey
impl Clone for CreateUsagePlanKey
source§fn clone(&self) -> CreateUsagePlanKey
fn clone(&self) -> CreateUsagePlanKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more