Enum aws_sdk_sts::error::AssumeRoleErrorKind [−][src]
#[non_exhaustive]
pub enum AssumeRoleErrorKind {
ExpiredTokenException(ExpiredTokenException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
PackedPolicyTooLargeException(PackedPolicyTooLargeException),
RegionDisabledException(RegionDisabledException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Types of errors that can occur for the AssumeRole
operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ExpiredTokenException(ExpiredTokenException)
The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request.
Tuple Fields of ExpiredTokenException
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The request was rejected because the policy document was malformed. The error message describes the specific error.
Tuple Fields of MalformedPolicyDocumentException
PackedPolicyTooLargeException(PackedPolicyTooLargeException)
The request was rejected because the total packed size of the session policies and session tags combined was too large. An Amazon Web Services conversion compresses the session policy document, session policy ARNs, and session tags into a packed binary format that has a separate limit. The error message indicates by percentage how close the policies and tags are to the upper size limit. For more information, see Passing Session Tags in STS in the IAM User Guide.
You could receive this error even though you meet other defined session policy and session tag limits. For more information, see IAM and STS Entity Character Limits in the IAM User Guide.
Tuple Fields of PackedPolicyTooLargeException
RegionDisabledException(RegionDisabledException)
STS is not activated in the requested region for the account that is being asked to generate credentials. The account administrator must use the IAM console to activate STS in that region. For more information, see Activating and Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User Guide.
Tuple Fields of RegionDisabledException
An unexpected error, eg. invalid JSON returned by the service or an unknown error code
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AssumeRoleErrorKind
impl Send for AssumeRoleErrorKind
impl Sync for AssumeRoleErrorKind
impl Unpin for AssumeRoleErrorKind
impl !UnwindSafe for AssumeRoleErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more