Amazon CodeCatalyst

2022/12/01 - Amazon CodeCatalyst - 24 new api methods

Changes  This release adds operations that support customers using the AWS Toolkits and Amazon CodeCatalyst, a unified software development service that helps developers develop, deploy, and maintain applications in the cloud. For more information, see the documentation. add codecatalyst to region config

StopDevEnvironment (new) Link ¶

Pauses a specified Dev Environment and places it in a non-running state. Stopped Dev Environments do not consume compute minutes.

See also: AWS API Documentation

Request Syntax

client.stop_dev_environment(
    spaceName='string',
    projectName='string',
    id='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type id

string

param id

[REQUIRED]

The system-generated unique ID of the Dev Environment.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'projectName': 'string',
    'id': 'string',
    'status': 'PENDING'|'RUNNING'|'STARTING'|'STOPPING'|'STOPPED'|'FAILED'|'DELETING'|'DELETED'
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • id (string) --

      The system-generated unique ID of the Dev Environment.

    • status (string) --

      The status of the Dev Environment.

GetProject (new) Link ¶

Returns information about a project.

See also: AWS API Documentation

Request Syntax

client.get_project(
    spaceName='string',
    name='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type name

string

param name

[REQUIRED]

The name of the project in the space.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'name': 'string',
    'displayName': 'string',
    'description': 'string'
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • name (string) --

      The name of the project in the space.

    • displayName (string) --

      The friendly name of the project displayed to users in Amazon CodeCatalyst.

    • description (string) --

      The description of the project.

UpdateDevEnvironment (new) Link ¶

Changes one or more values for a Dev Environment. Updating certain values of the Dev Environment will cause a restart.

See also: AWS API Documentation

Request Syntax

client.update_dev_environment(
    spaceName='string',
    projectName='string',
    id='string',
    alias='string',
    ides=[
        {
            'runtime': 'string',
            'name': 'string'
        },
    ],
    instanceType='dev.standard1.small'|'dev.standard1.medium'|'dev.standard1.large'|'dev.standard1.xlarge',
    inactivityTimeoutMinutes=123,
    clientToken='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type id

string

param id

[REQUIRED]

The system-generated unique ID of the Dev Environment.

type alias

string

param alias

The user-specified alias for the Dev Environment. Changing this value will not cause a restart.

type ides

list

param ides

Information about the integrated development environment (IDE) configured for a Dev Environment.

  • (dict) --

    Information about the configuration of an integrated development environment (IDE) for a Dev Environment.

    • runtime (string) --

      A link to the IDE runtime image.

    • name (string) --

      The name of the IDE.

type instanceType

string

param instanceType

The Amazon EC2 instace type to use for the Dev Environment.

Note

Changing this value will cause a restart of the Dev Environment if it is running.

type inactivityTimeoutMinutes

integer

param inactivityTimeoutMinutes

The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.

Note

Changing this value will cause a restart of the Dev Environment if it is running.

type clientToken

string

param clientToken

A user-specified idempotency token. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries return the result from the original successful request and have no additional effect.

rtype

dict

returns

Response Syntax

{
    'id': 'string',
    'spaceName': 'string',
    'projectName': 'string',
    'alias': 'string',
    'ides': [
        {
            'runtime': 'string',
            'name': 'string'
        },
    ],
    'instanceType': 'dev.standard1.small'|'dev.standard1.medium'|'dev.standard1.large'|'dev.standard1.xlarge',
    'inactivityTimeoutMinutes': 123,
    'clientToken': 'string'
}

Response Structure

  • (dict) --

    • id (string) --

      The system-generated unique ID of the Dev Environment.

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • alias (string) --

      The user-specified alias for the Dev Environment.

    • ides (list) --

      Information about the integrated development environment (IDE) configured for the Dev Environment.

      • (dict) --

        Information about the configuration of an integrated development environment (IDE) for a Dev Environment.

        • runtime (string) --

          A link to the IDE runtime image.

        • name (string) --

          The name of the IDE.

    • instanceType (string) --

      The Amazon EC2 instace type to use for the Dev Environment.

    • inactivityTimeoutMinutes (integer) --

      The amount of time the Dev Environment will run without any activity detected before stopping, in minutes.

    • clientToken (string) --

      A user-specified idempotency token. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries return the result from the original successful request and have no additional effect.

ListSourceRepositoryBranches (new) Link ¶

Retrieves a list of branches in a specified source repository.

See also: AWS API Documentation

Request Syntax

client.list_source_repository_branches(
    spaceName='string',
    projectName='string',
    sourceRepositoryName='string',
    nextToken='string',
    maxResults=123
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type sourceRepositoryName

string

param sourceRepositoryName

[REQUIRED]

The name of the source repository.

type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

type maxResults

integer

param maxResults

The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'items': [
        {
            'ref': 'string',
            'name': 'string',
            'lastUpdatedTime': datetime(2015, 1, 1),
            'headCommitId': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

    • items (list) --

      Information about the source branches.

      • (dict) --

        Information about a branch of a source repository returned in a list of branches.

        • ref (string) --

          The Git reference name of the branch.

        • name (string) --

          The name of the branch.

        • lastUpdatedTime (datetime) --

          The time the branch was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

        • headCommitId (string) --

          The commit ID of the tip of the branch at the time of the request, also known as the head commit.

GetSpace (new) Link ¶

Returns information about an space.

See also: AWS API Documentation

Request Syntax

client.get_space(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the space.

rtype

dict

returns

Response Syntax

{
    'name': 'string',
    'regionName': 'string',
    'displayName': 'string',
    'description': 'string'
}

Response Structure

  • (dict) --

    • name (string) --

      The name of the space.

    • regionName (string) --

      The Amazon Web Services Region where the space exists.

    • displayName (string) --

      The friendly name of the space displayed to users.

    • description (string) --

      The description of the space.

GetSubscription (new) Link ¶

Returns information about the Amazon Web Services account used for billing purposes and the billing plan for the space.

See also: AWS API Documentation

Request Syntax

client.get_subscription(
    spaceName='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

rtype

dict

returns

Response Syntax

{
    'subscriptionType': 'string',
    'awsAccountName': 'string'
}

Response Structure

  • (dict) --

    • subscriptionType (string) --

      The type of the billing plan for the space.

    • awsAccountName (string) --

      The display name of the Amazon Web Services account used for billing for the space.

StartDevEnvironmentSession (new) Link ¶

Starts a session for a specified Dev Environment.

See also: AWS API Documentation

Request Syntax

client.start_dev_environment_session(
    spaceName='string',
    projectName='string',
    id='string',
    sessionConfiguration={
        'sessionType': 'SSM'|'SSH',
        'executeCommandSessionConfiguration': {
            'command': 'string',
            'arguments': [
                'string',
            ]
        }
    }
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type id

string

param id

[REQUIRED]

The system-generated unique ID of the Dev Environment.

type sessionConfiguration

dict

param sessionConfiguration

[REQUIRED]

Information about the configuration of a Dev Environment session.

  • sessionType (string) -- [REQUIRED]

    The type of the session.

  • executeCommandSessionConfiguration (dict) --

    Information about optional commands that will be run on the Dev Environment when the SSH session begins.

    • command (string) -- [REQUIRED]

      The command used at the beginning of the SSH session to a Dev Environment.

    • arguments (list) --

      An array of arguments containing arguments and members.

      • (string) --

rtype

dict

returns

Response Syntax

{
    'accessDetails': {
        'streamUrl': 'string',
        'tokenValue': 'string'
    },
    'sessionId': 'string',
    'spaceName': 'string',
    'projectName': 'string',
    'id': 'string'
}

Response Structure

  • (dict) --

    • accessDetails (dict) --

      Information about connection details for a Dev Environment.

      • streamUrl (string) --

        The URL used to send commands to and from the Dev Environment.

      • tokenValue (string) --

        An encrypted token value that contains session and caller information used to authenticate the connection.

    • sessionId (string) --

      The system-generated unique ID of the Dev Environment session.

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • id (string) --

      The system-generated unique ID of the Dev Environment.

ListSourceRepositories (new) Link ¶

Retrieves a list of source repositories in a project.

See also: AWS API Documentation

Request Syntax

client.list_source_repositories(
    spaceName='string',
    projectName='string',
    nextToken='string',
    maxResults=123
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

type maxResults

integer

param maxResults

The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.

rtype

dict

returns

Response Syntax

{
    'items': [
        {
            'id': 'string',
            'name': 'string',
            'description': 'string',
            'lastUpdatedTime': datetime(2015, 1, 1),
            'createdTime': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • items (list) --

      Information about the source repositories.

      • (dict) --

        Information about a source repository returned in a list of source repositories.

        • id (string) --

          The system-generated unique ID of the source repository.

        • name (string) --

          The name of the source repository.

        • description (string) --

          The description of the repository, if any.

        • lastUpdatedTime (datetime) --

          The time the source repository was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

        • createdTime (datetime) --

          The time the source repository was created, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

ListSpaces (new) Link ¶

Retrieves a list of spaces.

See also: AWS API Documentation

Request Syntax

client.list_spaces(
    nextToken='string'
)
type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'items': [
        {
            'name': 'string',
            'regionName': 'string',
            'displayName': 'string',
            'description': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

    • items (list) --

      Information about the space.

      • (dict) --

        Information about an space.

        • name (string) --

          We need to know what this is and the basic usage information so that third-party developers know how to use this data type.

        • regionName (string) --

          The Amazon Web Services Region where the space exists.

        • displayName (string) --

          The friendly name of the space displayed to users.

        • description (string) --

          The description of the space.

ListDevEnvironments (new) Link ¶

Retrives a list of Dev Environments in a project.

See also: AWS API Documentation

Request Syntax

client.list_dev_environments(
    spaceName='string',
    projectName='string',
    filters=[
        {
            'key': 'string',
            'values': [
                'string',
            ],
            'comparisonOperator': 'string'
        },
    ],
    nextToken='string',
    maxResults=123
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type filters

list

param filters

Information about filters to apply to narrow the results returned in the list.

  • (dict) --

    • key (string) -- [REQUIRED]

    • values (list) -- [REQUIRED]

      • (string) --

    • comparisonOperator (string) --

type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

type maxResults

integer

param maxResults

The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.

rtype

dict

returns

Response Syntax

{
    'items': [
        {
            'spaceName': 'string',
            'projectName': 'string',
            'id': 'string',
            'lastUpdatedTime': datetime(2015, 1, 1),
            'creatorId': 'string',
            'status': 'PENDING'|'RUNNING'|'STARTING'|'STOPPING'|'STOPPED'|'FAILED'|'DELETING'|'DELETED',
            'statusReason': 'string',
            'repositories': [
                {
                    'repositoryName': 'string',
                    'branchName': 'string'
                },
            ],
            'alias': 'string',
            'ides': [
                {
                    'runtime': 'string',
                    'name': 'string'
                },
            ],
            'instanceType': 'dev.standard1.small'|'dev.standard1.medium'|'dev.standard1.large'|'dev.standard1.xlarge',
            'inactivityTimeoutMinutes': 123,
            'persistentStorage': {
                'sizeInGiB': 123
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • items (list) --

      Information about the Dev Environments in a project.

      • (dict) --

        Information about a Dev Environment.

        • spaceName (string) --

          The name of the space.

        • projectName (string) --

          The name of the project in the space.

        • id (string) --

          The system-generated unique ID for the Dev Environment.

        • lastUpdatedTime (datetime) --

          The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

        • creatorId (string) --

          The system-generated unique ID of the user who created the Dev Environment.

        • status (string) --

          The status of the Dev Environment.

        • statusReason (string) --

          The reason for the status.

        • repositories (list) --

          Information about the repositories that will be cloned into the Dev Environment. If no rvalue is specified, no repository is cloned.

          • (dict) --

            Information about the source repsitory for a Dev Environment.

            • repositoryName (string) --

              The name of the source repository.

            • branchName (string) --

              The name of the branch in a source repository cloned into the Dev Environment.

        • alias (string) --

          The user-specified alias for the Dev Environment.

        • ides (list) --

          Information about the integrated development environment (IDE) configured for a Dev Environment.

          • (dict) --

            Information about an integrated development environment (IDE) used in a Dev Environment.

            • runtime (string) --

              A link to the IDE runtime image.

            • name (string) --

              The name of the IDE.

        • instanceType (string) --

          The Amazon EC2 instace type used for the Dev Environment.

        • inactivityTimeoutMinutes (integer) --

          The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Dev Environments consume compute minutes when running.

        • persistentStorage (dict) --

          Information about the configuration of persistent storage for the Dev Environment.

          • sizeInGiB (integer) --

            The size of the persistent storage in gigabytes (specifically GiB).

            Note

            Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

StartDevEnvironment (new) Link ¶

Starts a specified Dev Environment and puts it into an active state.

See also: AWS API Documentation

Request Syntax

client.start_dev_environment(
    spaceName='string',
    projectName='string',
    id='string',
    ides=[
        {
            'runtime': 'string',
            'name': 'string'
        },
    ],
    instanceType='dev.standard1.small'|'dev.standard1.medium'|'dev.standard1.large'|'dev.standard1.xlarge',
    inactivityTimeoutMinutes=123
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type id

string

param id

[REQUIRED]

The system-generated unique ID of the Dev Environment.

type ides

list

param ides

Information about the integrated development environment (IDE) configured for a Dev Environment.

  • (dict) --

    Information about the configuration of an integrated development environment (IDE) for a Dev Environment.

    • runtime (string) --

      A link to the IDE runtime image.

    • name (string) --

      The name of the IDE.

type instanceType

string

param instanceType

The Amazon EC2 instace type to use for the Dev Environment.

type inactivityTimeoutMinutes

integer

param inactivityTimeoutMinutes

The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'projectName': 'string',
    'id': 'string',
    'status': 'PENDING'|'RUNNING'|'STARTING'|'STOPPING'|'STOPPED'|'FAILED'|'DELETING'|'DELETED'
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • id (string) --

      The system-generated unique ID of the Dev Environment.

    • status (string) --

      The status of the Dev Environment.

DeleteAccessToken (new) Link ¶

Deletes a specified personal access token (PAT). A personal access token can only be deleted by the user who created it.

See also: AWS API Documentation

Request Syntax

client.delete_access_token(
    id='string'
)
type id

string

param id

[REQUIRED]

The ID of the personal access token to delete. You can find the IDs of all PATs associated with your user account by calling ListAccessTokens.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

GetDevEnvironment (new) Link ¶

Returns information about a Dev Environment for a source repository in a project. Dev Environments are specific to the user who creates them.

See also: AWS API Documentation

Request Syntax

client.get_dev_environment(
    spaceName='string',
    projectName='string',
    id='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type id

string

param id

[REQUIRED]

The system-generated unique ID of the Dev Environment for which you want to view information. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'projectName': 'string',
    'id': 'string',
    'lastUpdatedTime': datetime(2015, 1, 1),
    'creatorId': 'string',
    'status': 'PENDING'|'RUNNING'|'STARTING'|'STOPPING'|'STOPPED'|'FAILED'|'DELETING'|'DELETED',
    'statusReason': 'string',
    'repositories': [
        {
            'repositoryName': 'string',
            'branchName': 'string'
        },
    ],
    'alias': 'string',
    'ides': [
        {
            'runtime': 'string',
            'name': 'string'
        },
    ],
    'instanceType': 'dev.standard1.small'|'dev.standard1.medium'|'dev.standard1.large'|'dev.standard1.xlarge',
    'inactivityTimeoutMinutes': 123,
    'persistentStorage': {
        'sizeInGiB': 123
    }
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • id (string) --

      The system-generated unique ID of the Dev Environment.

    • lastUpdatedTime (datetime) --

      The time when the Dev Environment was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

    • creatorId (string) --

      The system-generated unique ID of the user who created the Dev Environment.

    • status (string) --

      The current status of the Dev Environment.

    • statusReason (string) --

      The reason for the status.

    • repositories (list) --

      The source repository that contains the branch cloned into the Dev Environment.

      • (dict) --

        Information about the source repsitory for a Dev Environment.

        • repositoryName (string) --

          The name of the source repository.

        • branchName (string) --

          The name of the branch in a source repository cloned into the Dev Environment.

    • alias (string) --

      The user-specified alias for the Dev Environment.

    • ides (list) --

      Information about the integrated development environment (IDE) configured for the Dev Environment.

      • (dict) --

        Information about an integrated development environment (IDE) used in a Dev Environment.

        • runtime (string) --

          A link to the IDE runtime image.

        • name (string) --

          The name of the IDE.

    • instanceType (string) --

      The Amazon EC2 instace type to use for the Dev Environment.

    • inactivityTimeoutMinutes (integer) --

      The amount of time the Dev Environment will run without any activity detected before stopping, in minutes.

    • persistentStorage (dict) --

      Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.

      • sizeInGiB (integer) --

        The size of the persistent storage in gigabytes (specifically GiB).

        Note

        Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.

ListProjects (new) Link ¶

Retrieves a list of projects.

See also: AWS API Documentation

Request Syntax

client.list_projects(
    spaceName='string',
    nextToken='string',
    maxResults=123,
    filters=[
        {
            'key': 'hasAccessTo',
            'values': [
                'string',
            ],
            'comparisonOperator': 'EQ'|'GT'|'GE'|'LT'|'LE'
        },
    ]
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

type maxResults

integer

param maxResults

The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.

type filters

list

param filters

Information about filters to apply to narrow the results returned in the list.

  • (dict) --

    nformation about the filter used to narrow the results returned in a list of projects.

    • key (string) -- [REQUIRED]

      A key that can be used to sort results.

    • values (list) -- [REQUIRED]

      The value of the key.

      • (string) --

    • comparisonOperator (string) --

      The operator used to compare the fields.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'items': [
        {
            'name': 'string',
            'displayName': 'string',
            'description': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

    • items (list) --

      Information about the projects.

      • (dict) --

        Information about a project.

        • name (string) --

          The name of the project in the space.

        • displayName (string) --

          The friendly name displayed to users of the project in Amazon CodeCatalyst.

        • description (string) --

          The description of the project.

CreateAccessToken (new) Link ¶

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 account. You use PATs to access Amazon CodeCatalyst resources such as source repositories from third-party applications like Git and integrated development environments (IDEs). For more information, see Managing personal access tokens in Amazon CodeCatalyst.

See also: AWS API Documentation

Request Syntax

client.create_access_token(
    name='string',
    expiresTime=datetime(2015, 1, 1)
)
type name

string

param name

[REQUIRED]

The friendly name of the personal access token.

type expiresTime

datetime

param expiresTime

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

rtype

dict

returns

Response Syntax

{
    'secret': 'string',
    'name': 'string',
    'expiresTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • secret (string) --

      The secret value of the personal access token.

    • name (string) --

      The friendly name of the personal access token.

    • expiresTime (datetime) --

      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.

DeleteDevEnvironment (new) Link ¶

Deletes a Dev Environment.

See also: AWS API Documentation

Request Syntax

client.delete_dev_environment(
    spaceName='string',
    projectName='string',
    id='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type id

string

param id

[REQUIRED]

The system-generated unique ID of the Dev Environment you want to delete. To retrieve a list of Dev Environment IDs, use ListDevEnvironments.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'projectName': 'string',
    'id': 'string'
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • id (string) --

      The system-generated unique ID of the deleted Dev Environment.

CreateDevEnvironment (new) Link ¶

Creates a Dev Environment in Amazon CodeCatalyst, a cloud-based development Dev Environment that you can use to quickly work on the code stored in the source repositories of your project. By default, a Dev Environment is configured to have a 2 core processor, 4GB of RAM, and 16GB of persistent storage.

See also: AWS API Documentation

Request Syntax

client.create_dev_environment(
    spaceName='string',
    projectName='string',
    repositories=[
        {
            'repositoryName': 'string',
            'branchName': 'string'
        },
    ],
    clientToken='string',
    alias='string',
    ides=[
        {
            'runtime': 'string',
            'name': 'string'
        },
    ],
    instanceType='dev.standard1.small'|'dev.standard1.medium'|'dev.standard1.large'|'dev.standard1.xlarge',
    inactivityTimeoutMinutes=123,
    persistentStorage={
        'sizeInGiB': 123
    }
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type repositories

list

param repositories

The source repository that contains the branch to clone into the Dev Environment.

  • (dict) --

    Information about a repository that will be cloned to a Dev Environment.

    • repositoryName (string) -- [REQUIRED]

      The name of the source repository.

    • branchName (string) --

      The name of the branch in a source repository.

type clientToken

string

param clientToken

A user-specified idempotency token. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries return the result from the original successful request and have no additional effect.

type alias

string

param alias

The user-defined alias for a Dev Environment.

type ides

list

param ides

Information about the integrated development environment (IDE) configured for a Dev Environment.

Note

An IDE is required to create a Dev Environment. For Dev Environment creation, this field contains configuration information and must be provided.

  • (dict) --

    Information about the configuration of an integrated development environment (IDE) for a Dev Environment.

    • runtime (string) --

      A link to the IDE runtime image.

    • name (string) --

      The name of the IDE.

type instanceType

string

param instanceType

[REQUIRED]

The Amazon EC2 instace type to use for the Dev Environment.

type inactivityTimeoutMinutes

integer

param inactivityTimeoutMinutes

The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.

type persistentStorage

dict

param persistentStorage

[REQUIRED]

Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.

Note

Valid values for persistent storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.

  • sizeInGiB (integer) -- [REQUIRED]

    The size of the persistent storage in gigabytes (specifically GiB).

    Note

    Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'projectName': 'string',
    'id': 'string'
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • projectName (string) --

      The name of the project in the space.

    • id (string) --

      The system-generated unique ID of the Dev Environment.

GetUserDetails (new) Link ¶

Returns information about a user.

See also: AWS API Documentation

Request Syntax

client.get_user_details(
    id='string',
    userName='string'
)
type id

string

param id

The system-generated unique ID of the user.

type userName

string

param userName

The name of the user as displayed in Amazon CodeCatalyst.

rtype

dict

returns

Response Syntax

{
    'userId': 'string',
    'userName': 'string',
    'displayName': 'string',
    'primaryEmail': {
        'email': 'string',
        'verified': True|False
    },
    'version': 'string'
}

Response Structure

  • (dict) --

    • userId (string) --

      The system-generated unique ID of the user.

    • userName (string) --

      The name of the user as displayed in Amazon CodeCatalyst.

    • displayName (string) --

      The friendly name displayed for the user in Amazon CodeCatalyst.

    • primaryEmail (dict) --

      The email address provided by the user when they signed up.

      • email (string) --

        The email address.

      • verified (boolean) --

        Whether the email address has been verified.

    • version (string) --

ListEventLogs (new) Link ¶

Retrieves a list of events that occurred during a specified time period in a space. You can use these events to audit user and system activity in a space.

See also: AWS API Documentation

Request Syntax

client.list_event_logs(
    spaceName='string',
    startTime=datetime(2015, 1, 1),
    endTime=datetime(2015, 1, 1),
    eventName='string',
    nextToken='string',
    maxResults=123
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type startTime

datetime

param startTime

[REQUIRED]

The date and time when you want to start retrieving events, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

type endTime

datetime

param endTime

[REQUIRED]

The time after which you do not want any events retrieved, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

type eventName

string

param eventName

The name of the event.

type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

type maxResults

integer

param maxResults

The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'items': [
        {
            'id': 'string',
            'eventName': 'string',
            'eventType': 'string',
            'eventCategory': 'string',
            'eventSource': 'string',
            'eventTime': datetime(2015, 1, 1),
            'operationType': 'READONLY'|'MUTATION',
            'userIdentity': {
                'userType': 'USER'|'AWS_ACCOUNT'|'UNKNOWN',
                'principalId': 'string',
                'userName': 'string',
                'awsAccountId': 'string'
            },
            'projectInformation': {
                'name': 'string',
                'projectId': 'string'
            },
            'requestId': 'string',
            'requestPayload': {
                'contentType': 'string',
                'data': 'string'
            },
            'responsePayload': {
                'contentType': 'string',
                'data': 'string'
            },
            'errorCode': 'string',
            'sourceIpAddress': 'string',
            'userAgent': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

    • items (list) --

      Information about each event retrieved in the list.

      • (dict) --

        Information about an entry in an event log of Amazon CodeCatalyst activity.

        • id (string) --

          The system-generated unique ID of the event.

        • eventName (string) --

          The name of the event.

        • eventType (string) --

          The type of the event.

        • eventCategory (string) --

          The category for the event.

        • eventSource (string) --

          The source of the event.

        • eventTime (datetime) --

          The time the event took place, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

        • operationType (string) --

          The type of the event.

        • userIdentity (dict) --

          The system-generated unique ID of the user whose actions are recorded in the event.

          • userType (string) --

            The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.

          • principalId (string) --

          • userName (string) --

            The display name of the user in Amazon CodeCatalyst.

          • awsAccountId (string) --

            The Amazon Web Services account number of the user in Amazon Web Services, if any.

        • projectInformation (dict) --

          Information about the project where the event occurred.

          • name (string) --

            The name of the project in the space.

          • projectId (string) --

            The system-generated unique ID of the project.

        • requestId (string) --

          The system-generated unique ID of the request.

        • requestPayload (dict) --

          Information about the payload of the request.

          • contentType (string) --

            The type of content in the event payload.

          • data (string) --

            The data included in the event payload.

        • responsePayload (dict) --

          Information about the payload of the response, if any.

          • contentType (string) --

            The type of content in the event payload.

          • data (string) --

            The data included in the event payload.

        • errorCode (string) --

          The code of the error, if any.

        • sourceIpAddress (string) --

          The IP address of the user whose actions are recorded in the event.

        • userAgent (string) --

CreateSourceRepositoryBranch (new) Link ¶

Creates a branch in a specified source repository in Amazon CodeCatalyst.

Note

This API only creates a branch in a source repository hosted in Amazon CodeCatalyst. You cannot use this API to create a branch in a linked repository.

See also: AWS API Documentation

Request Syntax

client.create_source_repository_branch(
    spaceName='string',
    projectName='string',
    sourceRepositoryName='string',
    name='string',
    headCommitId='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type sourceRepositoryName

string

param sourceRepositoryName

[REQUIRED]

The name of the repository where you want to create a branch.

type name

string

param name

[REQUIRED]

The name for the branch you're creating.

type headCommitId

string

param headCommitId

The commit ID in an existing branch from which you want to create the new branch.

rtype

dict

returns

Response Syntax

{
    'ref': 'string',
    'name': 'string',
    'lastUpdatedTime': datetime(2015, 1, 1),
    'headCommitId': 'string'
}

Response Structure

  • (dict) --

    • ref (string) --

      The Git reference name of the branch.

    • name (string) --

      The name of the newly created branch.

    • lastUpdatedTime (datetime) --

      The time the branch was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

    • headCommitId (string) --

      The commit ID of the tip of the newly created branch.

CreateProject (new) Link ¶

Creates a project in a specified space.

See also: AWS API Documentation

Request Syntax

client.create_project(
    spaceName='string',
    displayName='string',
    description='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type displayName

string

param displayName

[REQUIRED]

The friendly name of the project that will be displayed to users.

type description

string

param description

The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.

rtype

dict

returns

Response Syntax

{
    'spaceName': 'string',
    'name': 'string',
    'displayName': 'string',
    'description': 'string'
}

Response Structure

  • (dict) --

    • spaceName (string) --

      The name of the space.

    • name (string) --

      The name of the project in the space.

    • displayName (string) --

      The friendly name of the project.

    • description (string) --

      The description of the project.

ListAccessTokens (new) Link ¶

Lists all personal access tokens (PATs) associated with the user who calls the API. You can only list PATs associated with your user account.

See also: AWS API Documentation

Request Syntax

client.list_access_tokens(
    maxResults=123,
    nextToken='string'
)
type maxResults

integer

param maxResults

The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.

type nextToken

string

param nextToken

A token returned from a call to this API to indicate the next batch of results to return, if any.

rtype

dict

returns

Response Syntax

{
    'items': [
        {
            'id': 'string',
            'name': 'string',
            'expiresTime': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • items (list) --

      A list of personal access tokens (PATs) associated with the calling user.

      • (dict) --

        Information about a specified personal access token (PAT).

        • id (string) --

          The system-generated ID of the personal access token.

        • name (string) --

          The friendly name of the personal access token.

        • expiresTime (datetime) --

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

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

GetSourceRepositoryCloneUrls (new) Link ¶

Returns information about the URLs that can be used with a Git client to clone a source repository.

See also: AWS API Documentation

Request Syntax

client.get_source_repository_clone_urls(
    spaceName='string',
    projectName='string',
    sourceRepositoryName='string'
)
type spaceName

string

param spaceName

[REQUIRED]

The name of the space.

type projectName

string

param projectName

[REQUIRED]

The name of the project in the space.

type sourceRepositoryName

string

param sourceRepositoryName

[REQUIRED]

The name of the source repository.

rtype

dict

returns

Response Syntax

{
    'https': 'string'
}

Response Structure

  • (dict) --

    • https (string) --

      The HTTPS URL to use when cloning the source repository.

VerifySession (new) Link ¶

Verifies whether the calling user has a valid Amazon CodeCatalyst login and session. If successful, this returns the ID of the user in Amazon CodeCatalyst.

See also: AWS API Documentation

Request Syntax

client.verify_session()
rtype

dict

returns

Response Syntax

{
    'identity': 'string'
}

Response Structure

  • (dict) --

    • identity (string) --

      The system-generated unique ID of the user in Amazon CodeCatalyst.