openapi: 3.0.0 info: version: '2022-09-28' x-release: bearer title: Amazon CodeCatalyst AccessTokens API description:
Welcome to the Amazon CodeCatalyst API reference. This reference provides descriptions of operations and data types for Amazon CodeCatalyst. You can use the Amazon CodeCatalyst API to work with the following objects.
Spaces, by calling the following:
DeleteSpace, which deletes a space.
GetSpace, which returns information about a space.
GetSubscription, which returns information about the Amazon Web Services account used for billing purposes and the billing plan for the space.
ListSpaces, which retrieves a list of spaces.
UpdateSpace, which hanges one or more values for a space.
Projects, by calling the following:
CreateProject which creates a project in a specified space.
GetProject, which returns information about a project.
ListProjects, which retrieves a list of projects in a space.
Users, by calling the following:
GetUserDetails, which returns information about a user in Amazon CodeCatalyst.
Source repositories, by calling the following:
CreateSourceRepository, which creates an empty Git-based source repository in a specified project.
CreateSourceRepositoryBranch, which creates a branch in a specified repository where you can work on code.
DeleteSourceRepository, which deletes a source repository.
GetSourceRepository, which returns information about a source repository.
GetSourceRepositoryCloneUrls, which returns information about the URLs that can be used with a Git client to clone a source repository.
ListSourceRepositories, which retrieves a list of source repositories in a project.
ListSourceRepositoryBranches, which retrieves a list of branches in a source repository.
Dev Environments and the Amazon Web Services Toolkits, by calling the following:
CreateDevEnvironment, which creates a Dev Environment, where you can quickly work on the code stored in the source repositories of your project.
DeleteDevEnvironment, which deletes a Dev Environment.
GetDevEnvironment, which returns information about a Dev Environment.
ListDevEnvironments, which retrieves a list of Dev Environments in a project.
ListDevEnvironmentSessions, which retrieves a list of active Dev Environment sessions in a project.
StartDevEnvironment, which starts a specified Dev Environment and puts it into an active state.
StartDevEnvironmentSession, which starts a session to a specified Dev Environment.
StopDevEnvironment, which stops a specified Dev Environment and puts it into an stopped state.
StopDevEnvironmentSession, which stops a session for a specified Dev Environment.
UpdateDevEnvironment, which changes one or more values for a Dev Environment.
Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:
CreateAccessToken, which creates a personal access token (PAT) for the current user.
DeleteAccessToken, which deletes a specified personal access token (PAT).
ListAccessTokens, which lists all personal access tokens (PATs) associated with a user.
ListEventLogs, which retrieves a list of events that occurred during a specified time period in a space.
VerifySession, which verifies whether the calling user has a valid Amazon CodeCatalyst login and session.
If you are using the Amazon CodeCatalyst APIs with an SDK or the CLI, you must configure your computer to work with Amazon CodeCatalyst and single sign-on (SSO). For more information, see Setting up to use the CLI with Amazon CodeCatalyst and the SSO documentation for your SDK.
NextToken element, which you can use to obtain additional results.
type: integer
maximum: 10
nextToken:
description: A token returned from a call to this API to indicate the next batch of results to return, if any.
type: string
minLength: 1
maxLength: 10000
examples:
ListAccessTokensRequestExample:
summary: Default ListAccessTokens request
x-microcks-default: true
value:
maxResults: 1
nextToken: example-value
summary: Amazon CodeCatalyst List Access Tokens
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
tags:
- AccessTokens
/v1/accessTokens/{id}:
delete:
operationId: DeleteAccessToken
description: Deletes a specified personal access token (PAT). A personal access token can only be deleted by the user who created it.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteAccessTokenResponse'
examples:
DeleteAccessToken200Example:
summary: Default DeleteAccessToken 200 response
x-microcks-default: true
value: {}
'480':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
examples:
DeleteAccessToken480Example:
summary: Default DeleteAccessToken 480 response
x-microcks-default: true
value: example-value
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
examples:
DeleteAccessToken481Example:
summary: Default DeleteAccessToken 481 response
x-microcks-default: true
value: example-value
'482':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
examples:
DeleteAccessToken482Example:
summary: Default DeleteAccessToken 482 response
x-microcks-default: true
value: example-value
'483':
description: ServiceQuotaExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceQuotaExceededException'
examples:
DeleteAccessToken483Example:
summary: Default DeleteAccessToken 483 response
x-microcks-default: true
value: example-value
'484':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
examples:
DeleteAccessToken484Example:
summary: Default DeleteAccessToken 484 response
x-microcks-default: true
value: example-value
'485':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
examples:
DeleteAccessToken485Example:
summary: Default DeleteAccessToken 485 response
x-microcks-default: true
value: example-value
parameters:
- name: id
in: path
required: true
description: The ID of the personal access token to delete. You can find the IDs of all PATs associated with your Amazon Web Services Builder ID in a space by calling ListAccessTokens.
schema:
type: string
minLength: 1
maxLength: 36
summary: Amazon CodeCatalyst Delete Access Token
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
tags:
- AccessTokens
components:
schemas:
ThrottlingException: {}
AccessTokenSummaries:
type: array
items:
$ref: '#/components/schemas/AccessTokenSummary'
AccessTokenSecret:
type: string
minLength: 1
maxLength: 4000
format: password
ServiceQuotaExceededException: {}
ConflictException: {}
AccessTokenId:
type: string
minLength: 1
maxLength: 36
String:
type: string
CreateAccessTokenResponse:
type: object
required:
- secret
- name
- expiresTime
- accessTokenId
properties:
secret:
allOf:
- $ref: '#/components/schemas/AccessTokenSecret'
- description: The secret value of the personal access token.
name:
allOf:
- $ref: '#/components/schemas/AccessTokenName'
- description: The friendly name of the personal access token.
expiresTime:
allOf:
- $ref: '#/components/schemas/SyntheticTimestamp_date_time'
- description: The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339. If not specified, the default is one year from creation.
accessTokenId:
allOf:
- $ref: '#/components/schemas/AccessTokenId'
- description: The system-generated unique ID of the access token.
AccessDeniedException: {}
AccessTokenName:
type: string
minLength: 1
maxLength: 100
ListAccessTokensResponse:
type: object
required:
- items
properties:
items:
allOf:
- $ref: '#/components/schemas/AccessTokenSummaries'
- description: A list of personal access tokens (PATs) associated with the calling user identity.
nextToken:
allOf:
- $ref: '#/components/schemas/String'
- description: A token returned from a call to this API to indicate the next batch of results to return, if any.
ResourceNotFoundException: {}
ValidationException: {}
SyntheticTimestamp_date_time:
type: string
format: date-time
DeleteAccessTokenResponse:
type: object
properties: {}
AccessTokenSummary:
type: object
required:
- id
- name
properties:
id:
allOf:
- $ref: '#/components/schemas/AccessTokenId'
- description: The system-generated ID of the personal access token.
name:
allOf:
- $ref: '#/components/schemas/AccessTokenName'
- description: The friendly name of the personal access token.
expiresTime:
allOf:
- $ref: '#/components/schemas/SyntheticTimestamp_date_time'
- description: The date and time when the personal access token will expire, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
description: Information about a specified personal access token (PAT).
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/codecatalyst/