CmdID

CmdID / aws / aws codeartifact

aws codeartifact get-authorization-token

Generates a temporary authorization token for accessing repositories in the domain. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get an authorization token

The following get-authorization-token example retrieves a CodeArtifact authorization token.

aws codeartifact get-authorization-token --domain test-domain --query authorizationToken --output textIdentify
--domainThe name of the domain that is in scope for the generated authorization token.
--queryA JMESPath query to use in filtering the response data.
--outputThe formatting style for command output.
Its output
This command will return the authorization token. You can store the output in an environment variable when calling the command.

For more information, see Configure and use pip with CodeArtifact in the AWS CodeArtifact User Guide.

Options

3 in the AWS CLI reference
--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain.
--domainThe name of the domain that is in scope for the generated authorization token.
--duration-secondsThe time, in seconds, that the generated authorization token is valid.