#[non_exhaustive]pub struct CreateApiKeyOutput {
pub id: Option<String>,
pub value: Option<String>,
pub name: Option<String>,
pub customer_id: Option<String>,
pub description: Option<String>,
pub enabled: bool,
pub created_date: Option<DateTime>,
pub last_updated_date: Option<DateTime>,
pub stage_keys: Option<Vec<String>>,
pub tags: Option<HashMap<String, String>>,
/* private fields */
}
Expand description
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
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.id: Option<String>
The identifier of the API Key.
value: Option<String>
The value of the API Key.
name: Option<String>
The name of the API Key.
customer_id: Option<String>
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
description: Option<String>
The description of the API Key.
enabled: bool
Specifies whether the API Key can be used by callers.
created_date: Option<DateTime>
The timestamp when the API Key was created.
last_updated_date: Option<DateTime>
The timestamp when the API Key was last updated.
stage_keys: Option<Vec<String>>
A list of Stage resources that are associated with the ApiKey resource.
The collection of tags. Each tag element is associated with a given resource.
Implementations§
source§impl CreateApiKeyOutput
impl CreateApiKeyOutput
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.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the API Key.
sourcepub fn created_date(&self) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The timestamp when the API Key was created.
sourcepub fn last_updated_date(&self) -> Option<&DateTime>
pub fn last_updated_date(&self) -> Option<&DateTime>
The timestamp when the API Key was last updated.
sourcepub fn stage_keys(&self) -> &[String]
pub fn stage_keys(&self) -> &[String]
A list of Stage resources that are associated with the ApiKey resource.
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()
.
The collection of tags. Each tag element is associated with a given resource.
source§impl CreateApiKeyOutput
impl CreateApiKeyOutput
sourcepub fn builder() -> CreateApiKeyOutputBuilder
pub fn builder() -> CreateApiKeyOutputBuilder
Creates a new builder-style object to manufacture CreateApiKeyOutput
.
Trait Implementations§
source§impl Clone for CreateApiKeyOutput
impl Clone for CreateApiKeyOutput
source§fn clone(&self) -> CreateApiKeyOutput
fn clone(&self) -> CreateApiKeyOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateApiKeyOutput
impl Debug for CreateApiKeyOutput
source§impl PartialEq for CreateApiKeyOutput
impl PartialEq for CreateApiKeyOutput
source§fn eq(&self, other: &CreateApiKeyOutput) -> bool
fn eq(&self, other: &CreateApiKeyOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateApiKeyOutput
impl RequestId for CreateApiKeyOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateApiKeyOutput
Auto Trait Implementations§
impl Freeze for CreateApiKeyOutput
impl RefUnwindSafe for CreateApiKeyOutput
impl Send for CreateApiKeyOutput
impl Sync for CreateApiKeyOutput
impl Unpin for CreateApiKeyOutput
impl UnwindSafe for CreateApiKeyOutput
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