codeartifact_get_authorization_token: Generates a temporary authorization token for accessing...

View source: R/codeartifact_operations.R

codeartifact_get_authorization_tokenR Documentation

Generates a temporary authorization token for accessing repositories in the domain

Description

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.

Usage

codeartifact_get_authorization_token(
  domain,
  domainOwner = NULL,
  durationSeconds = NULL
)

Arguments

domain

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

domainOwner

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

durationSeconds

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.


paws.developer.tools documentation built on Sept. 12, 2024, 6:46 a.m.