Struct aws_sdk_eksauth::types::builders::AssumedRoleUserBuilder
source · #[non_exhaustive]pub struct AssumedRoleUserBuilder { /* private fields */ }Expand description
A builder for AssumedRoleUser.
Implementations§
source§impl AssumedRoleUserBuilder
impl AssumedRoleUserBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that the temporary credentials authenticate to.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that the temporary credentials authenticate to.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN of the IAM role that the temporary credentials authenticate to.
sourcepub fn assume_role_id(self, input: impl Into<String>) -> Self
pub fn assume_role_id(self, input: impl Into<String>) -> Self
The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (:), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format: eks-clustername-podname-random UUID
sourcepub fn set_assume_role_id(self, input: Option<String>) -> Self
pub fn set_assume_role_id(self, input: Option<String>) -> Self
The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (:), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format: eks-clustername-podname-random UUID
sourcepub fn get_assume_role_id(&self) -> &Option<String>
pub fn get_assume_role_id(&self) -> &Option<String>
The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (:), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format: eks-clustername-podname-random UUID
sourcepub fn build(self) -> Result<AssumedRoleUser, BuildError>
pub fn build(self) -> Result<AssumedRoleUser, BuildError>
Consumes the builder and constructs a AssumedRoleUser.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssumedRoleUserBuilder
impl Clone for AssumedRoleUserBuilder
source§fn clone(&self) -> AssumedRoleUserBuilder
fn clone(&self) -> AssumedRoleUserBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssumedRoleUserBuilder
impl Debug for AssumedRoleUserBuilder
source§impl Default for AssumedRoleUserBuilder
impl Default for AssumedRoleUserBuilder
source§fn default() -> AssumedRoleUserBuilder
fn default() -> AssumedRoleUserBuilder
source§impl PartialEq for AssumedRoleUserBuilder
impl PartialEq for AssumedRoleUserBuilder
source§fn eq(&self, other: &AssumedRoleUserBuilder) -> bool
fn eq(&self, other: &AssumedRoleUserBuilder) -> bool
self and other values to be equal, and is used
by ==.