[−][src]Struct rusoto_appsync::ApiKey
Describes an API key.
Customers invoke AWS AppSync GraphQL API operations with API keys as an identity mechanism. There are two key versions:
da1: This version was introduced at launch in November 2017. These keys always expire after 7 days. Key expiration is managed by Amazon DynamoDB TTL. The keys ceased to be valid after February 21, 2018 and should not be used after that date.
-
ListApiKeysreturns the expiration time in milliseconds. -
CreateApiKeyreturns the expiration time in milliseconds. -
UpdateApiKeyis not available for this key version. -
DeleteApiKeydeletes the item from the table. -
Expiration is stored in Amazon DynamoDB as milliseconds. This results in a bug where keys are not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a one-time action, we will delete these keys from the table after February 21, 2018.
da2: This version was introduced in February 2018 when AppSync added support to extend key expiration.
-
ListApiKeysreturns the expiration time in seconds. -
CreateApiKeyreturns the expiration time in seconds and accepts a user-provided expiration time in seconds. -
UpdateApiKeyreturns the expiration time in seconds and accepts a user-provided expiration time in seconds. Key expiration can only be updated while the key has not expired. -
DeleteApiKeydeletes the item from the table. -
Expiration is stored in Amazon DynamoDB as seconds.
Fields
description: Option<String>A description of the purpose of the API key.
expires: Option<i64>The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
id: Option<String>The API key ID.
Trait Implementations
impl PartialEq<ApiKey> for ApiKey[src]
impl Default for ApiKey[src]
impl Clone for ApiKey[src]
fn clone(&self) -> ApiKey[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for ApiKey[src]
impl<'de> Deserialize<'de> for ApiKey[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>, [src]
T: From<U>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self