Struct aws_sdk_apigateway::operation::get_api_key::GetApiKeyOutput
source · #[non_exhaustive]pub struct GetApiKeyOutput {
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 GetApiKeyOutput
impl GetApiKeyOutput
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 GetApiKeyOutput
impl GetApiKeyOutput
sourcepub fn builder() -> GetApiKeyOutputBuilder
pub fn builder() -> GetApiKeyOutputBuilder
Creates a new builder-style object to manufacture GetApiKeyOutput
.
Trait Implementations§
source§impl Clone for GetApiKeyOutput
impl Clone for GetApiKeyOutput
source§fn clone(&self) -> GetApiKeyOutput
fn clone(&self) -> GetApiKeyOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetApiKeyOutput
impl Debug for GetApiKeyOutput
source§impl PartialEq for GetApiKeyOutput
impl PartialEq for GetApiKeyOutput
source§fn eq(&self, other: &GetApiKeyOutput) -> bool
fn eq(&self, other: &GetApiKeyOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetApiKeyOutput
impl RequestId for GetApiKeyOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetApiKeyOutput
Auto Trait Implementations§
impl Freeze for GetApiKeyOutput
impl RefUnwindSafe for GetApiKeyOutput
impl Send for GetApiKeyOutput
impl Sync for GetApiKeyOutput
impl Unpin for GetApiKeyOutput
impl UnwindSafe for GetApiKeyOutput
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