#[non_exhaustive]pub struct CreateApiKeyInput {
pub name: Option<String>,
pub description: Option<String>,
pub enabled: Option<bool>,
pub generate_distinct_id: Option<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: Option<bool>Specifies whether the ApiKey can be used by callers.
generate_distinct_id: Option<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 Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services 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) -> Option<bool>
pub fn generate_distinct_id(&self) -> Option<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) -> &[StageKey]
pub fn stage_keys(&self) -> &[StageKey]
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .stage_keys.is_none().
sourcepub fn customer_id(&self) -> Option<&str>
pub fn customer_id(&self) -> Option<&str>
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services 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 for CreateApiKeyInput
impl PartialEq 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 ==.impl StructuralPartialEq for CreateApiKeyInput
Auto Trait Implementations§
impl Freeze for CreateApiKeyInput
impl RefUnwindSafe for CreateApiKeyInput
impl Send for CreateApiKeyInput
impl Sync for CreateApiKeyInput
impl Unpin for CreateApiKeyInput
impl UnwindSafe for CreateApiKeyInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more