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>>,
}Expand description
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: StringHTTP method used in the signed request. Currently only POST is supported
iam_request_url: StringBase64-encoded HTTP URL used in the signed request
iam_request_body: StringBase64-encoded body of the signed request
iam_request_headers: HashMap<String, Vec<String>>Headers of the signed request
Implementations§
Source§impl AwsAuthIamPayload
impl AwsAuthIamPayload
Sourcepub fn new<R>(
credentials: &AwsCredentials,
region: Option<R>,
additional_headers: HashMap<&str, &str>,
) -> Self
pub fn new<R>( credentials: &AwsCredentials, region: Option<R>, additional_headers: HashMap<&str, &str>, ) -> Self
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§
Source§impl Clone for AwsAuthIamPayload
impl Clone for AwsAuthIamPayload
Source§fn clone(&self) -> AwsAuthIamPayload
fn clone(&self) -> AwsAuthIamPayload
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 AwsAuthIamPayload
impl Debug for AwsAuthIamPayload
Source§impl<'de> Deserialize<'de> for AwsAuthIamPayload
impl<'de> Deserialize<'de> for AwsAuthIamPayload
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
impl Eq for AwsAuthIamPayload
Source§impl PartialEq for AwsAuthIamPayload
impl PartialEq for AwsAuthIamPayload
Source§impl Serialize for AwsAuthIamPayload
impl Serialize for AwsAuthIamPayload
impl StructuralPartialEq for AwsAuthIamPayload
Auto Trait Implementations§
impl Freeze for AwsAuthIamPayload
impl RefUnwindSafe for AwsAuthIamPayload
impl Send for AwsAuthIamPayload
impl Sync for AwsAuthIamPayload
impl Unpin for AwsAuthIamPayload
impl UnsafeUnpin for AwsAuthIamPayload
impl UnwindSafe for AwsAuthIamPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.