Type definitions#
Auto-generated documentation for STS type annotations stubs module mypy-boto3-sts.
PolicyDescriptorTypeTypeDef#
# PolicyDescriptorTypeTypeDef definition
class PolicyDescriptorTypeTypeDef(TypedDict):
arn: NotRequired[str],
ProvidedContextTypeDef#
# ProvidedContextTypeDef definition
class ProvidedContextTypeDef(TypedDict):
ProviderArn: NotRequired[str],
ContextAssertion: NotRequired[str],
TagTypeDef#
# TagTypeDef definition
class TagTypeDef(TypedDict):
Key: str,
Value: str,
AssumedRoleUserTypeDef#
# AssumedRoleUserTypeDef definition
class AssumedRoleUserTypeDef(TypedDict):
AssumedRoleId: str,
Arn: str,
CredentialsTypeDef#
# CredentialsTypeDef definition
class CredentialsTypeDef(TypedDict):
AccessKeyId: str,
SecretAccessKey: str,
SessionToken: str,
Expiration: datetime,
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
DecodeAuthorizationMessageRequestRequestTypeDef#
# DecodeAuthorizationMessageRequestRequestTypeDef definition
class DecodeAuthorizationMessageRequestRequestTypeDef(TypedDict):
EncodedMessage: str,
FederatedUserTypeDef#
# FederatedUserTypeDef definition
class FederatedUserTypeDef(TypedDict):
FederatedUserId: str,
Arn: str,
GetAccessKeyInfoRequestRequestTypeDef#
# GetAccessKeyInfoRequestRequestTypeDef definition
class GetAccessKeyInfoRequestRequestTypeDef(TypedDict):
AccessKeyId: str,
GetSessionTokenRequestRequestTypeDef#
# GetSessionTokenRequestRequestTypeDef definition
class GetSessionTokenRequestRequestTypeDef(TypedDict):
DurationSeconds: NotRequired[int],
SerialNumber: NotRequired[str],
TokenCode: NotRequired[str],
AssumeRoleWithSAMLRequestRequestTypeDef#
# AssumeRoleWithSAMLRequestRequestTypeDef definition
class AssumeRoleWithSAMLRequestRequestTypeDef(TypedDict):
RoleArn: str,
PrincipalArn: str,
SAMLAssertion: str,
PolicyArns: NotRequired[Sequence[PolicyDescriptorTypeTypeDef]], # (1)
Policy: NotRequired[str],
DurationSeconds: NotRequired[int],
AssumeRoleWithWebIdentityRequestRequestTypeDef#
# AssumeRoleWithWebIdentityRequestRequestTypeDef definition
class AssumeRoleWithWebIdentityRequestRequestTypeDef(TypedDict):
RoleArn: str,
RoleSessionName: str,
WebIdentityToken: str,
ProviderId: NotRequired[str],
PolicyArns: NotRequired[Sequence[PolicyDescriptorTypeTypeDef]], # (1)
Policy: NotRequired[str],
DurationSeconds: NotRequired[int],
AssumeRootRequestRequestTypeDef#
# AssumeRootRequestRequestTypeDef definition
class AssumeRootRequestRequestTypeDef(TypedDict):
TargetPrincipal: str,
TaskPolicyArn: PolicyDescriptorTypeTypeDef, # (1)
DurationSeconds: NotRequired[int],
AssumeRoleRequestRequestTypeDef#
# AssumeRoleRequestRequestTypeDef definition
class AssumeRoleRequestRequestTypeDef(TypedDict):
RoleArn: str,
RoleSessionName: str,
PolicyArns: NotRequired[Sequence[PolicyDescriptorTypeTypeDef]], # (1)
Policy: NotRequired[str],
DurationSeconds: NotRequired[int],
Tags: NotRequired[Sequence[TagTypeDef]], # (2)
TransitiveTagKeys: NotRequired[Sequence[str]],
ExternalId: NotRequired[str],
SerialNumber: NotRequired[str],
TokenCode: NotRequired[str],
SourceIdentity: NotRequired[str],
ProvidedContexts: NotRequired[Sequence[ProvidedContextTypeDef]], # (3)
GetFederationTokenRequestRequestTypeDef#
# GetFederationTokenRequestRequestTypeDef definition
class GetFederationTokenRequestRequestTypeDef(TypedDict):
Name: str,
Policy: NotRequired[str],
PolicyArns: NotRequired[Sequence[PolicyDescriptorTypeTypeDef]], # (1)
DurationSeconds: NotRequired[int],
Tags: NotRequired[Sequence[TagTypeDef]], # (2)
AssumeRoleResponseTypeDef#
# AssumeRoleResponseTypeDef definition
class AssumeRoleResponseTypeDef(TypedDict):
Credentials: CredentialsTypeDef, # (1)
AssumedRoleUser: AssumedRoleUserTypeDef, # (2)
PackedPolicySize: int,
SourceIdentity: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
AssumeRoleWithSAMLResponseTypeDef#
# AssumeRoleWithSAMLResponseTypeDef definition
class AssumeRoleWithSAMLResponseTypeDef(TypedDict):
Credentials: CredentialsTypeDef, # (1)
AssumedRoleUser: AssumedRoleUserTypeDef, # (2)
PackedPolicySize: int,
Subject: str,
SubjectType: str,
Issuer: str,
Audience: str,
NameQualifier: str,
SourceIdentity: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
AssumeRoleWithWebIdentityResponseTypeDef#
# AssumeRoleWithWebIdentityResponseTypeDef definition
class AssumeRoleWithWebIdentityResponseTypeDef(TypedDict):
Credentials: CredentialsTypeDef, # (1)
SubjectFromWebIdentityToken: str,
AssumedRoleUser: AssumedRoleUserTypeDef, # (2)
PackedPolicySize: int,
Provider: str,
Audience: str,
SourceIdentity: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
AssumeRootResponseTypeDef#
# AssumeRootResponseTypeDef definition
class AssumeRootResponseTypeDef(TypedDict):
Credentials: CredentialsTypeDef, # (1)
SourceIdentity: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DecodeAuthorizationMessageResponseTypeDef#
# DecodeAuthorizationMessageResponseTypeDef definition
class DecodeAuthorizationMessageResponseTypeDef(TypedDict):
DecodedMessage: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetAccessKeyInfoResponseTypeDef#
# GetAccessKeyInfoResponseTypeDef definition
class GetAccessKeyInfoResponseTypeDef(TypedDict):
Account: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetCallerIdentityResponseTypeDef#
# GetCallerIdentityResponseTypeDef definition
class GetCallerIdentityResponseTypeDef(TypedDict):
UserId: str,
Account: str,
Arn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetSessionTokenResponseTypeDef#
# GetSessionTokenResponseTypeDef definition
class GetSessionTokenResponseTypeDef(TypedDict):
Credentials: CredentialsTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetFederationTokenResponseTypeDef#
# GetFederationTokenResponseTypeDef definition
class GetFederationTokenResponseTypeDef(TypedDict):
Credentials: CredentialsTypeDef, # (1)
FederatedUser: FederatedUserTypeDef, # (2)
PackedPolicySize: int,
ResponseMetadata: ResponseMetadataTypeDef, # (3)