Generates a temporary authorization token for accessing repositories in the domain. This API requires the codeartifact:GetAuthorizationToken
and sts:GetServiceBearerToken
permissions. For more information about authorization tokens, see CodeArtifact authentication and tokens.
See https://www.paws-r-sdk.com/docs/codeartifact_get_authorization_token/ for full documentation.
codeartifact_get_authorization_token(
domain,
domainOwner = NULL,
durationSeconds = NULL
)
[required] The name of the domain that is in scope for the generated authorization token.
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
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.