Skip to content

CreateBearerTokenRequest

Source code in docs_src/capo_signin/types/create_bearer_token_request.py
class CreateBearerTokenRequest(TypedDict, closed=True):
    grant_type: (
        "capo_signin.types.client_credentials_grant_type.ClientCredentialsGrantType"
    )
    """The grant type. Must be "client_credentials"."""
    resource: "capo_signin.types.resource.Resource"
    """The AWS service the bearer token is for. Example: "ecr.amazonaws.com"."""
    duration_seconds: NotRequired["capo_signin.types.token_duration.TokenDuration"]
    """The requested token lifetime in seconds, from 300 (5 minutes) up to the maximum allowed for the service, currently 43200 (12 hours). If omitted, the token is valid for 12 hours."""

duration_seconds instance-attribute

duration_seconds: NotRequired[TokenDuration]

The requested token lifetime in seconds, from 300 (5 minutes) up to the maximum allowed for the service, currently 43200 (12 hours). If omitted, the token is valid for 12 hours.

grant_type instance-attribute

The grant type. Must be "client_credentials".

resource instance-attribute

resource: Resource

The AWS service the bearer token is for. Example: "ecr.amazonaws.com".