Struct aws_sdk_apigateway::types::ApiKey
source · #[non_exhaustive]pub struct ApiKey {
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>>,
}
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 AWS Marketplace customer identifier , when integrating with the AWS 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 ApiKey
impl ApiKey
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.
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) -> Option<&[String]>
pub fn stage_keys(&self) -> Option<&[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.