Struct aws_sdk_apigateway::client::fluent_builders::CreateApiKey
source · pub struct CreateApiKey { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateApiKey
.
Create an ApiKey resource.
Implementations§
source§impl CreateApiKey
impl CreateApiKey
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateApiKey, AwsResponseRetryClassifier>, SdkError<CreateApiKeyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateApiKey, AwsResponseRetryClassifier>, SdkError<CreateApiKeyError>>
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<CreateApiKeyOutput, SdkError<CreateApiKeyError>>
pub async fn send(
self
) -> Result<CreateApiKeyOutput, SdkError<CreateApiKeyError>>
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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the ApiKey.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the ApiKey.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether the ApiKey can be used by callers.
sourcepub fn generate_distinct_id(self, input: bool) -> Self
pub fn generate_distinct_id(self, input: bool) -> Self
Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.
sourcepub fn set_generate_distinct_id(self, input: Option<bool>) -> Self
pub fn set_generate_distinct_id(self, input: Option<bool>) -> Self
Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.
sourcepub fn stage_keys(self, input: StageKey) -> Self
pub fn stage_keys(self, input: StageKey) -> Self
Appends an item to stageKeys
.
To override the contents of this collection use set_stage_keys
.
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
sourcepub fn set_stage_keys(self, input: Option<Vec<StageKey>>) -> Self
pub fn set_stage_keys(self, input: Option<Vec<StageKey>>) -> Self
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
sourcepub fn customer_id(self, input: impl Into<String>) -> Self
pub fn customer_id(self, input: impl Into<String>) -> Self
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
sourcepub fn set_customer_id(self, input: Option<String>) -> Self
pub fn set_customer_id(self, input: Option<String>) -> Self
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
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.
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.
Trait Implementations§
source§impl Clone for CreateApiKey
impl Clone for CreateApiKey
source§fn clone(&self) -> CreateApiKey
fn clone(&self) -> CreateApiKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more