Skip to content

Type definitions#

Index > STS > 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],
  1. See PolicyDescriptorTypeTypeDef

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],
  1. See PolicyDescriptorTypeTypeDef

AssumeRootRequestRequestTypeDef#

# AssumeRootRequestRequestTypeDef definition

class AssumeRootRequestRequestTypeDef(TypedDict):
    TargetPrincipal: str,
    TaskPolicyArn: PolicyDescriptorTypeTypeDef,  # (1)
    DurationSeconds: NotRequired[int],
  1. See PolicyDescriptorTypeTypeDef

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)
  1. See PolicyDescriptorTypeTypeDef
  2. See TagTypeDef
  3. See ProvidedContextTypeDef

GetFederationTokenRequestRequestTypeDef#

# GetFederationTokenRequestRequestTypeDef definition

class GetFederationTokenRequestRequestTypeDef(TypedDict):
    Name: str,
    Policy: NotRequired[str],
    PolicyArns: NotRequired[Sequence[PolicyDescriptorTypeTypeDef]],  # (1)
    DurationSeconds: NotRequired[int],
    Tags: NotRequired[Sequence[TagTypeDef]],  # (2)
  1. See PolicyDescriptorTypeTypeDef
  2. See TagTypeDef

AssumeRoleResponseTypeDef#

# AssumeRoleResponseTypeDef definition

class AssumeRoleResponseTypeDef(TypedDict):
    Credentials: CredentialsTypeDef,  # (1)
    AssumedRoleUser: AssumedRoleUserTypeDef,  # (2)
    PackedPolicySize: int,
    SourceIdentity: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See CredentialsTypeDef
  2. See AssumedRoleUserTypeDef
  3. See ResponseMetadataTypeDef

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)
  1. See CredentialsTypeDef
  2. See AssumedRoleUserTypeDef
  3. See ResponseMetadataTypeDef

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)
  1. See CredentialsTypeDef
  2. See AssumedRoleUserTypeDef
  3. See ResponseMetadataTypeDef

AssumeRootResponseTypeDef#

# AssumeRootResponseTypeDef definition

class AssumeRootResponseTypeDef(TypedDict):
    Credentials: CredentialsTypeDef,  # (1)
    SourceIdentity: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CredentialsTypeDef
  2. See ResponseMetadataTypeDef

DecodeAuthorizationMessageResponseTypeDef#

# DecodeAuthorizationMessageResponseTypeDef definition

class DecodeAuthorizationMessageResponseTypeDef(TypedDict):
    DecodedMessage: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetAccessKeyInfoResponseTypeDef#

# GetAccessKeyInfoResponseTypeDef definition

class GetAccessKeyInfoResponseTypeDef(TypedDict):
    Account: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetCallerIdentityResponseTypeDef#

# GetCallerIdentityResponseTypeDef definition

class GetCallerIdentityResponseTypeDef(TypedDict):
    UserId: str,
    Account: str,
    Arn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetSessionTokenResponseTypeDef#

# GetSessionTokenResponseTypeDef definition

class GetSessionTokenResponseTypeDef(TypedDict):
    Credentials: CredentialsTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CredentialsTypeDef
  2. See ResponseMetadataTypeDef

GetFederationTokenResponseTypeDef#

# GetFederationTokenResponseTypeDef definition

class GetFederationTokenResponseTypeDef(TypedDict):
    Credentials: CredentialsTypeDef,  # (1)
    FederatedUser: FederatedUserTypeDef,  # (2)
    PackedPolicySize: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See CredentialsTypeDef
  2. See FederatedUserTypeDef
  3. See ResponseMetadataTypeDef