AWS SDK Version 2 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.

.NET Framework 4.5
 
Implementation for accessing CodeDeploy AWS CodeDeploy Overview

This is the AWS CodeDeploy API Reference. This guide provides descriptions of the AWS CodeDeploy APIs. For additional information, see the AWS CodeDeploy User Guide.

Using the APIs

You can use the AWS CodeDeploy APIs to work with the following items:

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.CodeDeploy.AmazonCodeDeployClient

Namespace: Amazon.CodeDeploy
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class AmazonCodeDeployClient : AmazonServiceClient
         IAmazonCodeDeploy, IDisposable

The AmazonCodeDeployClient type exposes the following members

Constructors

NameDescription
Public Method AmazonCodeDeployClient() Constructs AmazonCodeDeployClient 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 AmazonCodeDeployClient(RegionEndpoint) Constructs AmazonCodeDeployClient 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 AmazonCodeDeployClient(AmazonCodeDeployConfig) Constructs AmazonCodeDeployClient 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 AmazonCodeDeployClient(AWSCredentials) Constructs AmazonCodeDeployClient with AWS Credentials
Public Method AmazonCodeDeployClient(AWSCredentials, RegionEndpoint) Constructs AmazonCodeDeployClient with AWS Credentials
Public Method AmazonCodeDeployClient(AWSCredentials, AmazonCodeDeployConfig) Constructs AmazonCodeDeployClient with AWS Credentials and an AmazonCodeDeployClient Configuration object.
Public Method AmazonCodeDeployClient(string, string) Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCodeDeployClient(string, string, RegionEndpoint) Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCodeDeployClient(string, string, AmazonCodeDeployConfig) Constructs AmazonCodeDeployClient with AWS Access Key ID, AWS Secret Key and an AmazonCodeDeployClient Configuration object.
Public Method AmazonCodeDeployClient(string, string, string) Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCodeDeployClient(string, string, string, RegionEndpoint) Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key
Public Method AmazonCodeDeployClient(string, string, string, AmazonCodeDeployConfig) Constructs AmazonCodeDeployClient with AWS Access Key ID, AWS Secret Key and an AmazonCodeDeployClient Configuration object.

Methods

NameDescription
Public Method AddTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest) Adds tags to on-premises instances.
Public Method AddTagsToOnPremisesInstancesAsync(AddTagsToOnPremisesInstancesRequest, CancellationToken) Initiates the asynchronous execution of the AddTagsToOnPremisesInstances operation.
Public Method BatchGetApplicationRevisions(BatchGetApplicationRevisionsRequest) Gets information about one or more application revisions.
Public Method BatchGetApplicationRevisionsAsync(BatchGetApplicationRevisionsRequest, CancellationToken) Initiates the asynchronous execution of the BatchGetApplicationRevisions operation.
Public Method BatchGetApplications(BatchGetApplicationsRequest) Gets information about one or more applications.
Public Method BatchGetApplicationsAsync(BatchGetApplicationsRequest, CancellationToken) Initiates the asynchronous execution of the BatchGetApplications operation.
Public Method BatchGetDeploymentInstances(BatchGetDeploymentInstancesRequest) Gets information about one or more instances that are part of a deployment group.
Public Method BatchGetDeploymentInstancesAsync(BatchGetDeploymentInstancesRequest, CancellationToken) Initiates the asynchronous execution of the BatchGetDeploymentInstances operation.
Public Method BatchGetDeployments(BatchGetDeploymentsRequest) Gets information about one or more deployments.
Public Method BatchGetDeploymentsAsync(BatchGetDeploymentsRequest, CancellationToken) Initiates the asynchronous execution of the BatchGetDeployments operation.
Public Method BatchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest) Gets information about one or more on-premises instances.
Public Method BatchGetOnPremisesInstancesAsync(BatchGetOnPremisesInstancesRequest, CancellationToken) Initiates the asynchronous execution of the BatchGetOnPremisesInstances operation.
Public Method CreateApplication(CreateApplicationRequest) Creates a new application.
Public Method CreateApplicationAsync(CreateApplicationRequest, CancellationToken) Initiates the asynchronous execution of the CreateApplication operation.
Public Method CreateDeployment(CreateDeploymentRequest) Deploys an application revision through the specified deployment group.
Public Method CreateDeploymentAsync(CreateDeploymentRequest, CancellationToken) Initiates the asynchronous execution of the CreateDeployment operation.
Public Method CreateDeploymentConfig(CreateDeploymentConfigRequest) Creates a new deployment configuration.
Public Method CreateDeploymentConfigAsync(CreateDeploymentConfigRequest, CancellationToken) Initiates the asynchronous execution of the CreateDeploymentConfig operation.
Public Method CreateDeploymentGroup(CreateDeploymentGroupRequest) Creates a new deployment group for application revisions to be deployed to.
Public Method CreateDeploymentGroupAsync(CreateDeploymentGroupRequest, CancellationToken) Initiates the asynchronous execution of the CreateDeploymentGroup operation.
Public Method DeleteApplication(DeleteApplicationRequest) Deletes an application.
Public Method DeleteApplicationAsync(DeleteApplicationRequest, CancellationToken) Initiates the asynchronous execution of the DeleteApplication operation.
Public Method DeleteDeploymentConfig(DeleteDeploymentConfigRequest) Deletes a deployment configuration. A deployment configuration cannot be deleted if it is currently in use. Also, predefined configurations cannot be deleted.
Public Method DeleteDeploymentConfigAsync(DeleteDeploymentConfigRequest, CancellationToken) Initiates the asynchronous execution of the DeleteDeploymentConfig operation.
Public Method DeleteDeploymentGroup(DeleteDeploymentGroupRequest) Deletes a deployment group.
Public Method DeleteDeploymentGroupAsync(DeleteDeploymentGroupRequest, CancellationToken) Initiates the asynchronous execution of the DeleteDeploymentGroup operation.
Public Method DeregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest) Deregisters an on-premises instance.
Public Method DeregisterOnPremisesInstanceAsync(DeregisterOnPremisesInstanceRequest, CancellationToken) Initiates the asynchronous execution of the DeregisterOnPremisesInstance operation.
Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method GetApplication(GetApplicationRequest) Gets information about an application.
Public Method GetApplicationAsync(GetApplicationRequest, CancellationToken) Initiates the asynchronous execution of the GetApplication operation.
Public Method GetApplicationRevision(GetApplicationRevisionRequest) Gets information about an application revision.
Public Method GetApplicationRevisionAsync(GetApplicationRevisionRequest, CancellationToken) Initiates the asynchronous execution of the GetApplicationRevision operation.
Public Method GetDeployment(GetDeploymentRequest) Gets information about a deployment.
Public Method GetDeploymentAsync(GetDeploymentRequest, CancellationToken) Initiates the asynchronous execution of the GetDeployment operation.
Public Method GetDeploymentConfig(GetDeploymentConfigRequest) Gets information about a deployment configuration.
Public Method GetDeploymentConfigAsync(GetDeploymentConfigRequest, CancellationToken) Initiates the asynchronous execution of the GetDeploymentConfig operation.
Public Method GetDeploymentGroup(GetDeploymentGroupRequest) Gets information about a deployment group.
Public Method GetDeploymentGroupAsync(GetDeploymentGroupRequest, CancellationToken) Initiates the asynchronous execution of the GetDeploymentGroup operation.
Public Method GetDeploymentInstance(GetDeploymentInstanceRequest) Gets information about an instance as part of a deployment.
Public Method GetDeploymentInstanceAsync(GetDeploymentInstanceRequest, CancellationToken) Initiates the asynchronous execution of the GetDeploymentInstance operation.
Public Method GetOnPremisesInstance(GetOnPremisesInstanceRequest) Gets information about an on-premises instance.
Public Method GetOnPremisesInstanceAsync(GetOnPremisesInstanceRequest, CancellationToken) Initiates the asynchronous execution of the GetOnPremisesInstance operation.
Public Method ListApplicationRevisions(ListApplicationRevisionsRequest) Lists information about revisions for an application.
Public Method ListApplicationRevisionsAsync(ListApplicationRevisionsRequest, CancellationToken) Initiates the asynchronous execution of the ListApplicationRevisions operation.
Public Method ListApplications() Lists the applications registered with the applicable IAM user or AWS account.
Public Method ListApplications(ListApplicationsRequest) Lists the applications registered with the applicable IAM user or AWS account.
Public Method ListApplicationsAsync(ListApplicationsRequest, CancellationToken) Initiates the asynchronous execution of the ListApplications operation.
Public Method ListDeploymentConfigs() Lists the deployment configurations with the applicable IAM user or AWS account.
Public Method ListDeploymentConfigs(ListDeploymentConfigsRequest) Lists the deployment configurations with the applicable IAM user or AWS account.
Public Method ListDeploymentConfigsAsync(ListDeploymentConfigsRequest, CancellationToken) Initiates the asynchronous execution of the ListDeploymentConfigs operation.
Public Method ListDeploymentGroups(ListDeploymentGroupsRequest) Lists the deployment groups for an application registered with the applicable IAM user or AWS account.
Public Method ListDeploymentGroupsAsync(ListDeploymentGroupsRequest, CancellationToken) Initiates the asynchronous execution of the ListDeploymentGroups operation.
Public Method ListDeploymentInstances(ListDeploymentInstancesRequest) Lists the instances for a deployment associated with the applicable IAM user or AWS account.
Public Method ListDeploymentInstancesAsync(ListDeploymentInstancesRequest, CancellationToken) Initiates the asynchronous execution of the ListDeploymentInstances operation.
Public Method ListDeployments(ListDeploymentsRequest) Lists the deployments within a deployment group for an application registered with the applicable IAM user or AWS account.
Public Method ListDeploymentsAsync(ListDeploymentsRequest, CancellationToken) Initiates the asynchronous execution of the ListDeployments operation.
Public Method ListOnPremisesInstances(ListOnPremisesInstancesRequest) Gets a list of one or more on-premises instance names.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

Public Method ListOnPremisesInstancesAsync(ListOnPremisesInstancesRequest, CancellationToken) Initiates the asynchronous execution of the ListOnPremisesInstances operation.
Public Method RegisterApplicationRevision(RegisterApplicationRevisionRequest) Registers with AWS CodeDeploy a revision for the specified application.
Public Method RegisterApplicationRevisionAsync(RegisterApplicationRevisionRequest, CancellationToken) Initiates the asynchronous execution of the RegisterApplicationRevision operation.
Public Method RegisterOnPremisesInstance(RegisterOnPremisesInstanceRequest) Registers an on-premises instance.
Public Method RegisterOnPremisesInstanceAsync(RegisterOnPremisesInstanceRequest, CancellationToken) Initiates the asynchronous execution of the RegisterOnPremisesInstance operation.
Public Method RemoveTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest) Removes one or more tags from one or more on-premises instances.
Public Method RemoveTagsFromOnPremisesInstancesAsync(RemoveTagsFromOnPremisesInstancesRequest, CancellationToken) Initiates the asynchronous execution of the RemoveTagsFromOnPremisesInstances operation.
Public Method StopDeployment(StopDeploymentRequest) Attempts to stop an ongoing deployment.
Public Method StopDeploymentAsync(StopDeploymentRequest, CancellationToken) Initiates the asynchronous execution of the StopDeployment operation.
Public Method UpdateApplication(UpdateApplicationRequest) Changes an existing application's name.
Public Method UpdateApplicationAsync(UpdateApplicationRequest, CancellationToken) Initiates the asynchronous execution of the UpdateApplication operation.
Public Method UpdateDeploymentGroup(UpdateDeploymentGroupRequest) Changes information about an existing deployment group.
Public Method UpdateDeploymentGroupAsync(UpdateDeploymentGroupRequest, CancellationToken) Initiates the asynchronous execution of the UpdateDeploymentGroup operation.

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 Framework:
Supported in: 4.5, 4.0, 3.5