Skip to content

GetAuthorizationTokenRequest

Source code in docs_src/capo_codeartifact/types/get_authorization_token_request.py
class GetAuthorizationTokenRequest(TypedDict, closed=True):
    domain: "capo_codeartifact.types.domain_name.DomainName"
    """<p> The name of the domain that is in scope for the generated authorization token. </p>"""
    domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
    """<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
    duration_seconds: NotRequired[
        "capo_codeartifact.types.authorization_token_duration_seconds.AuthorizationTokenDurationSeconds"
    ]
    """<p>The time, in seconds, that the generated authorization token is valid. Valid values are <code>0</code> and any number between <code>900</code> (15 minutes) and <code>43200</code> (12 hours). A value of <code>0</code> will set the expiration of the authorization token to the same expiration of the user's role's temporary credentials.</p>"""

domain instance-attribute

domain: DomainName

The name of the domain that is in scope for the generated authorization token.

domain_owner instance-attribute

domain_owner: NotRequired[AccountId]

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

duration_seconds instance-attribute

duration_seconds: NotRequired[AuthorizationTokenDurationSeconds]

The time, in seconds, that the generated authorization token is valid. Valid values are 0 and any number between 900 (15 minutes) and 43200 (12 hours). A value of 0 will set the expiration of the authorization token to the same expiration of the user's role's temporary credentials.