[][src]Struct aws_auth_payload::client::AwsAuthIamPayload

pub struct AwsAuthIamPayload {
    pub iam_http_request_method: String,
    pub iam_request_url: String,
    pub iam_request_body: String,
    pub iam_request_headers: HashMap<String, Vec<String>>,
}

Payload for use to generate a payload for AWS IAM authentication

This payload is used by HashiCorp's Vault and is generated by making a POST request to AWS STS GetCallerIdentity

See Vault's Documentation for more information.

Fields

iam_http_request_method: String

HTTP method used in the signed request. Currently only POST is supported

iam_request_url: String

Base64-encoded HTTP URL used in the signed request

iam_request_body: String

Base64-encoded body of the signed request

iam_request_headers: HashMap<String, Vec<String>>

Headers of the signed request

Methods

impl AwsAuthIamPayload[src]

pub fn new<R>(
    credentials: &AwsCredentials,
    region: Option<R>,
    additional_headers: HashMap<&str, &str>
) -> Self where
    R: Borrow<Region>, 
[src]

Creates a payload for use to generate a payload for AWS IAM authentication

This payload is used by HashiCorp's Vault and is generated by making a POST request to AWS STS GetCallerIdentity

See Vault's Documentation for more information. If you do not provide a region, we will use a the "global" AWS STS endpoint.

Trait Implementations

impl Clone for AwsAuthIamPayload[src]

impl Debug for AwsAuthIamPayload[src]

impl<'de> Deserialize<'de> for AwsAuthIamPayload[src]

impl Eq for AwsAuthIamPayload[src]

impl PartialEq<AwsAuthIamPayload> for AwsAuthIamPayload[src]

impl Serialize for AwsAuthIamPayload[src]

impl StructuralEq for AwsAuthIamPayload[src]

impl StructuralPartialEq for AwsAuthIamPayload[src]

Auto Trait Implementations

impl RefUnwindSafe for AwsAuthIamPayload

impl Send for AwsAuthIamPayload

impl Sync for AwsAuthIamPayload

impl Unpin for AwsAuthIamPayload

impl UnwindSafe for AwsAuthIamPayload

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.