#[non_exhaustive]pub struct CreateApiKeyInput {
pub name: Option<String>,
pub description: Option<String>,
pub enabled: bool,
pub generate_distinct_id: bool,
pub value: Option<String>,
pub stage_keys: Option<Vec<StageKey>>,
pub customer_id: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Request to create an ApiKey resource.
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 ApiKey.
description: Option<String>
The description of the ApiKey.
enabled: bool
Specifies whether the ApiKey can be used by callers.
generate_distinct_id: bool
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.
value: Option<String>
Specifies a value of the API key.
stage_keys: Option<Vec<StageKey>>
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
customer_id: Option<String>
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
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 CreateApiKeyInput
impl CreateApiKeyInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the ApiKey.
sourcepub fn generate_distinct_id(&self) -> bool
pub fn generate_distinct_id(&self) -> bool
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) -> Option<&[StageKey]>
pub fn stage_keys(&self) -> Option<&[StageKey]>
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
sourcepub fn customer_id(&self) -> Option<&str>
pub fn customer_id(&self) -> Option<&str>
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
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 CreateApiKeyInput
impl CreateApiKeyInput
sourcepub fn builder() -> CreateApiKeyInputBuilder
pub fn builder() -> CreateApiKeyInputBuilder
Creates a new builder-style object to manufacture CreateApiKeyInput
.
Trait Implementations§
source§impl Clone for CreateApiKeyInput
impl Clone for CreateApiKeyInput
source§fn clone(&self) -> CreateApiKeyInput
fn clone(&self) -> CreateApiKeyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateApiKeyInput
impl Debug for CreateApiKeyInput
source§impl PartialEq<CreateApiKeyInput> for CreateApiKeyInput
impl PartialEq<CreateApiKeyInput> for CreateApiKeyInput
source§fn eq(&self, other: &CreateApiKeyInput) -> bool
fn eq(&self, other: &CreateApiKeyInput) -> bool
self
and other
values to be equal, and is used
by ==
.