#[non_exhaustive]pub struct CredentialProcessOutput {
pub access_key_id: String,
pub expiration: Timestamp,
pub secret_access_key: Redacted<String>,
pub session_token: Redacted<String>,
pub version: i32,
}Expand description
Short-lived AWS credentials in the AWS credential_process output format,
so they can be consumed directly by AWS SDKs and tools. Field names use the
exact casing (Version, AccessKeyId, …) that format requires.
JSON schema
{
"description": "Short-lived AWS credentials in the AWS `credential_process` output format,\nso they can be consumed directly by AWS SDKs and tools. Field names use the\nexact casing (`Version`, `AccessKeyId`, ...) that format requires.",
"type": "object",
"required": [
"AccessKeyId",
"Expiration",
"SecretAccessKey",
"SessionToken",
"Version"
],
"properties": {
"AccessKeyId": {
"description": "The temporary AWS access key ID.",
"type": "string"
},
"Expiration": {
"description": "When the credentials expire, as an RFC 3339 / ISO 8601 UTC instant.\nCredentials last at most one hour; request a fresh set per run.",
"$ref": "#/definitions/CanopyTimestamp"
},
"SecretAccessKey": {
"description": "The temporary AWS secret access key.",
"$ref": "#/definitions/CanopySecret"
},
"SessionToken": {
"description": "The session token that must accompany the temporary key pair.",
"$ref": "#/definitions/CanopySecret"
},
"Version": {
"description": "Version of the `credential_process` format. Always the literal `1`.",
"type": "integer",
"format": "int32",
"minimum": 0.0
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_key_id: StringThe temporary AWS access key ID.
expiration: TimestampWhen the credentials expire, as an RFC 3339 / ISO 8601 UTC instant. Credentials last at most one hour; request a fresh set per run.
secret_access_key: Redacted<String>The temporary AWS secret access key.
session_token: Redacted<String>The session token that must accompany the temporary key pair.
version: i32Version of the credential_process format. Always the literal 1.
Implementations§
Source§impl CredentialProcessOutput
impl CredentialProcessOutput
Sourcepub fn builder() -> CredentialProcessOutputBuilder
pub fn builder() -> CredentialProcessOutputBuilder
Create an instance of CredentialProcessOutput using the builder syntax
Trait Implementations§
Source§impl Clone for CredentialProcessOutput
impl Clone for CredentialProcessOutput
Source§fn clone(&self) -> CredentialProcessOutput
fn clone(&self) -> CredentialProcessOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialProcessOutput
impl Debug for CredentialProcessOutput
Source§impl<'de> Deserialize<'de> for CredentialProcessOutput
impl<'de> Deserialize<'de> for CredentialProcessOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CredentialProcessOutput
impl RefUnwindSafe for CredentialProcessOutput
impl Send for CredentialProcessOutput
impl Sync for CredentialProcessOutput
impl Unpin for CredentialProcessOutput
impl UnsafeUnpin for CredentialProcessOutput
impl UnwindSafe for CredentialProcessOutput
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
Mutably borrows from an owned value. Read more