Skip to content

Create Access Token

codecatalyst_create_access_token R Documentation

Creates a personal access token (PAT) for the current user

Description

Creates a personal access token (PAT) for the current user. A personal access token (PAT) is similar to a password. It is associated with your user identity for use across all spaces and projects in Amazon CodeCatalyst. You use PATs to access CodeCatalyst from resources that include integrated development environments (IDEs) and Git-based source repositories. PATs represent you in Amazon CodeCatalyst and you can manage them in your user settings.For more information, see Managing personal access tokens in Amazon CodeCatalyst.

Usage

codecatalyst_create_access_token(name, expiresTime)

Arguments

name

[required] The friendly name of the personal access token.

expiresTime

The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

Value

A list with the following syntax:

list(
  secret = "string",
  name = "string",
  expiresTime = as.POSIXct(
    "2015-01-01"
  ),
  accessTokenId = "string"
)

Request syntax

svc$create_access_token(
  name = "string",
  expiresTime = as.POSIXct(
    "2015-01-01"
  )
)