AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Implementation for accessing CodeCatalyst

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:

Projects, by calling the following:

Users, by calling the following:

Source repositories, by calling the following:

Dev Environments and the Amazon Web Services Toolkits, by calling the following:

Workflows, by calling the following:

Security, activity, and resource management in Amazon CodeCatalyst, by calling the following:

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.CodeCatalyst.AmazonCodeCatalystClient

Namespace: Amazon.CodeCatalyst
Assembly: AWSSDK.CodeCatalyst.dll
Version: 3.x.y.z

Syntax

C#
public class AmazonCodeCatalystClient : AmazonServiceClient
         IAmazonCodeCatalyst, IAmazonService, IDisposable

The AmazonCodeCatalystClient type exposes the following members

Constructors

NameDescription
Public Method AmazonCodeCatalystClient()

Constructs AmazonCodeCatalystClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonCodeCatalystClient(RegionEndpoint)

Constructs AmazonCodeCatalystClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonCodeCatalystClient(AmazonCodeCatalystConfig)

Constructs AmazonCodeCatalystClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonCodeCatalystClient(AWSCredentials)

Constructs AmazonCodeCatalystClient with AWS Credentials

Public Method AmazonCodeCatalystClient(AWSCredentials, RegionEndpoint)

Constructs AmazonCodeCatalystClient with AWS Credentials

Public Method AmazonCodeCatalystClient(AWSCredentials, AmazonCodeCatalystConfig)

Constructs AmazonCodeCatalystClient with AWS Credentials and an AmazonCodeCatalystClient Configuration object.

Public Method AmazonCodeCatalystClient(string, string)

Constructs AmazonCodeCatalystClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonCodeCatalystClient(string, string, RegionEndpoint)

Constructs AmazonCodeCatalystClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonCodeCatalystClient(string, string, AmazonCodeCatalystConfig)

Constructs AmazonCodeCatalystClient with AWS Access Key ID, AWS Secret Key and an AmazonCodeCatalystClient Configuration object.

Public Method AmazonCodeCatalystClient(string, string, string)

Constructs AmazonCodeCatalystClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonCodeCatalystClient(string, string, string, RegionEndpoint)

Constructs AmazonCodeCatalystClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonCodeCatalystClient(string, string, string, AmazonCodeCatalystConfig)

Constructs AmazonCodeCatalystClient with AWS Access Key ID, AWS Secret Key and an AmazonCodeCatalystClient Configuration object.

Properties

NameTypeDescription
Public Property Config Amazon.Runtime.IClientConfig Inherited from Amazon.Runtime.AmazonServiceClient.
Public Property Paginators Amazon.CodeCatalyst.Model.ICodeCatalystPaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method CreateAccessToken(CreateAccessTokenRequest)

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.

Public Method CreateAccessTokenAsync(CreateAccessTokenRequest, CancellationToken)

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.

Public Method CreateDevEnvironment(CreateDevEnvironmentRequest)

Creates a Dev Environment in Amazon CodeCatalyst, a cloud-based development environment that you can use to quickly work on the code stored in the source repositories of your project.

When created in the Amazon CodeCatalyst console, by default a Dev Environment is configured to have a 2 core processor, 4GB of RAM, and 16GB of persistent storage. None of these defaults apply to a Dev Environment created programmatically.

Public Method CreateDevEnvironmentAsync(CreateDevEnvironmentRequest, CancellationToken)

Creates a Dev Environment in Amazon CodeCatalyst, a cloud-based development environment that you can use to quickly work on the code stored in the source repositories of your project.

When created in the Amazon CodeCatalyst console, by default a Dev Environment is configured to have a 2 core processor, 4GB of RAM, and 16GB of persistent storage. None of these defaults apply to a Dev Environment created programmatically.

Public Method CreateProject(CreateProjectRequest)

Creates a project in a specified space.

Public Method CreateProjectAsync(CreateProjectRequest, CancellationToken)

Creates a project in a specified space.

Public Method CreateSourceRepository(CreateSourceRepositoryRequest)

Creates an empty Git-based source repository in a specified project. The repository is created with an initial empty commit with a default branch named main.

Public Method CreateSourceRepositoryAsync(CreateSourceRepositoryRequest, CancellationToken)

Creates an empty Git-based source repository in a specified project. The repository is created with an initial empty commit with a default branch named main.

Public Method CreateSourceRepositoryBranch(CreateSourceRepositoryBranchRequest)

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

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.

Public Method CreateSourceRepositoryBranchAsync(CreateSourceRepositoryBranchRequest, CancellationToken)

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

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.

Public Method DeleteAccessToken(DeleteAccessTokenRequest)

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

Public Method DeleteAccessTokenAsync(DeleteAccessTokenRequest, CancellationToken)

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

Public Method DeleteDevEnvironment(DeleteDevEnvironmentRequest)

Deletes a Dev Environment.

Public Method DeleteDevEnvironmentAsync(DeleteDevEnvironmentRequest, CancellationToken)

Deletes a Dev Environment.

Public Method DeleteProject(DeleteProjectRequest)

Deletes a project in a space.

Public Method DeleteProjectAsync(DeleteProjectRequest, CancellationToken)

Deletes a project in a space.

Public Method DeleteSourceRepository(DeleteSourceRepositoryRequest)

Deletes a source repository in Amazon CodeCatalyst. You cannot use this API to delete a linked repository. It can only be used to delete a Amazon CodeCatalyst source repository.

Public Method DeleteSourceRepositoryAsync(DeleteSourceRepositoryRequest, CancellationToken)

Deletes a source repository in Amazon CodeCatalyst. You cannot use this API to delete a linked repository. It can only be used to delete a Amazon CodeCatalyst source repository.

Public Method DeleteSpace(DeleteSpaceRequest)

Deletes a space.

Deleting a space cannot be undone. Additionally, since space names must be unique across Amazon CodeCatalyst, you cannot reuse names of deleted spaces.

Public Method DeleteSpaceAsync(DeleteSpaceRequest, CancellationToken)

Deletes a space.

Deleting a space cannot be undone. Additionally, since space names must be unique across Amazon CodeCatalyst, you cannot reuse names of deleted spaces.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method GetDevEnvironment(GetDevEnvironmentRequest)

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

Public Method GetDevEnvironmentAsync(GetDevEnvironmentRequest, CancellationToken)

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

Public Method GetProject(GetProjectRequest)

Returns information about a project.

Public Method GetProjectAsync(GetProjectRequest, CancellationToken)

Returns information about a project.

Public Method GetSourceRepository(GetSourceRepositoryRequest)

Returns information about a source repository.

Public Method GetSourceRepositoryAsync(GetSourceRepositoryRequest, CancellationToken)

Returns information about a source repository.

Public Method GetSourceRepositoryCloneUrls(GetSourceRepositoryCloneUrlsRequest)

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

Public Method GetSourceRepositoryCloneUrlsAsync(GetSourceRepositoryCloneUrlsRequest, CancellationToken)

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

Public Method GetSpace(GetSpaceRequest)

Returns information about an space.

Public Method GetSpaceAsync(GetSpaceRequest, CancellationToken)

Returns information about an space.

Public Method GetSubscription(GetSubscriptionRequest)

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

Public Method GetSubscriptionAsync(GetSubscriptionRequest, CancellationToken)

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

Public Method GetUserDetails(GetUserDetailsRequest)

Returns information about a user.

Public Method GetUserDetailsAsync(GetUserDetailsRequest, CancellationToken)

Returns information about a user.

Public Method GetWorkflow(GetWorkflowRequest)

Returns information about a workflow.

Public Method GetWorkflowAsync(GetWorkflowRequest, CancellationToken)

Returns information about a workflow.

Public Method GetWorkflowRun(GetWorkflowRunRequest)

Returns information about a specified run of a workflow.

Public Method GetWorkflowRunAsync(GetWorkflowRunRequest, CancellationToken)

Returns information about a specified run of a workflow.

Public Method ListAccessTokens(ListAccessTokensRequest)

Lists all personal access tokens (PATs) associated with the user who calls the API. You can only list PATs associated with your Amazon Web Services Builder ID.

Public Method ListAccessTokensAsync(ListAccessTokensRequest, CancellationToken)

Lists all personal access tokens (PATs) associated with the user who calls the API. You can only list PATs associated with your Amazon Web Services Builder ID.

Public Method ListDevEnvironments(ListDevEnvironmentsRequest)

Retrieves a list of Dev Environments in a project.

Public Method ListDevEnvironmentsAsync(ListDevEnvironmentsRequest, CancellationToken)

Retrieves a list of Dev Environments in a project.

Public Method ListDevEnvironmentSessions(ListDevEnvironmentSessionsRequest)

Retrieves a list of active sessions for a Dev Environment in a project.

Public Method ListDevEnvironmentSessionsAsync(ListDevEnvironmentSessionsRequest, CancellationToken)

Retrieves a list of active sessions for a Dev Environment in a project.

Public Method ListEventLogs(ListEventLogsRequest)

Retrieves a list of events that occurred during a specific time in a space. You can use these events to audit user and system activity in a space. For more information, see Monitoring in the Amazon CodeCatalyst User Guide.

ListEventLogs guarantees events for the last 30 days in a given space. You can also view and retrieve a list of management events over the last 90 days for Amazon CodeCatalyst in the CloudTrail console by viewing Event history, or by creating a trail to create and maintain a record of events that extends past 90 days. For more information, see Working with CloudTrail Event History and Working with CloudTrail trails.

Public Method ListEventLogsAsync(ListEventLogsRequest, CancellationToken)

Retrieves a list of events that occurred during a specific time in a space. You can use these events to audit user and system activity in a space. For more information, see Monitoring in the Amazon CodeCatalyst User Guide.

ListEventLogs guarantees events for the last 30 days in a given space. You can also view and retrieve a list of management events over the last 90 days for Amazon CodeCatalyst in the CloudTrail console by viewing Event history, or by creating a trail to create and maintain a record of events that extends past 90 days. For more information, see Working with CloudTrail Event History and Working with CloudTrail trails.

Public Method ListProjects(ListProjectsRequest)

Retrieves a list of projects.

Public Method ListProjectsAsync(ListProjectsRequest, CancellationToken)

Retrieves a list of projects.

Public Method ListSourceRepositories(ListSourceRepositoriesRequest)

Retrieves a list of source repositories in a project.

Public Method ListSourceRepositoriesAsync(ListSourceRepositoriesRequest, CancellationToken)

Retrieves a list of source repositories in a project.

Public Method ListSourceRepositoryBranches(ListSourceRepositoryBranchesRequest)

Retrieves a list of branches in a specified source repository.

Public Method ListSourceRepositoryBranchesAsync(ListSourceRepositoryBranchesRequest, CancellationToken)

Retrieves a list of branches in a specified source repository.

Public Method ListSpaces(ListSpacesRequest)

Retrieves a list of spaces.

Public Method ListSpacesAsync(ListSpacesRequest, CancellationToken)

Retrieves a list of spaces.

Public Method ListWorkflowRuns(ListWorkflowRunsRequest)

Retrieves a list of workflow runs of a specified workflow.

Public Method ListWorkflowRunsAsync(ListWorkflowRunsRequest, CancellationToken)

Retrieves a list of workflow runs of a specified workflow.

Public Method ListWorkflows(ListWorkflowsRequest)

Retrieves a list of workflows in a specified project.

Public Method ListWorkflowsAsync(ListWorkflowsRequest, CancellationToken)

Retrieves a list of workflows in a specified project.

Public Method StartDevEnvironment(StartDevEnvironmentRequest)

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

Public Method StartDevEnvironmentAsync(StartDevEnvironmentRequest, CancellationToken)

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

Public Method StartDevEnvironmentSession(StartDevEnvironmentSessionRequest)

Starts a session for a specified Dev Environment.

Public Method StartDevEnvironmentSessionAsync(StartDevEnvironmentSessionRequest, CancellationToken)

Starts a session for a specified Dev Environment.

Public Method StartWorkflowRun(StartWorkflowRunRequest)

Begins a run of a specified workflow.

Public Method StartWorkflowRunAsync(StartWorkflowRunRequest, CancellationToken)

Begins a run of a specified workflow.

Public Method StopDevEnvironment(StopDevEnvironmentRequest)

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

Public Method StopDevEnvironmentAsync(StopDevEnvironmentRequest, CancellationToken)

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

Public Method StopDevEnvironmentSession(StopDevEnvironmentSessionRequest)

Stops a session for a specified Dev Environment.

Public Method StopDevEnvironmentSessionAsync(StopDevEnvironmentSessionRequest, CancellationToken)

Stops a session for a specified Dev Environment.

Public Method UpdateDevEnvironment(UpdateDevEnvironmentRequest)

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

Public Method UpdateDevEnvironmentAsync(UpdateDevEnvironmentRequest, CancellationToken)

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

Public Method UpdateProject(UpdateProjectRequest)

Changes one or more values for a project.

Public Method UpdateProjectAsync(UpdateProjectRequest, CancellationToken)

Changes one or more values for a project.

Public Method UpdateSpace(UpdateSpaceRequest)

Changes one or more values for a space.

Public Method UpdateSpaceAsync(UpdateSpaceRequest, CancellationToken)

Changes one or more values for a space.

Public Method VerifySession(VerifySessionRequest)

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.

Public Method VerifySessionAsync(VerifySessionRequest, CancellationToken)

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.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5