/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the codedeploy-2014-10-06.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CodeDeploy.Model; using Amazon.CodeDeploy.Model.Internal.MarshallTransformations; using Amazon.CodeDeploy.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CodeDeploy { /// /// Implementation for accessing CodeDeploy /// /// CodeDeploy is a deployment service that automates application deployments to Amazon /// EC2 instances, on-premises instances running in your own facility, serverless Lambda /// functions, or applications in an Amazon ECS service. /// /// /// /// You can deploy a nearly unlimited variety of application content, such as an updated /// Lambda function, updated applications in an Amazon ECS service, code, web and configuration /// files, executables, packages, scripts, multimedia files, and so on. CodeDeploy can /// deploy application content stored in Amazon S3 buckets, GitHub repositories, or Bitbucket /// repositories. You do not need to make changes to your existing code before you can /// use CodeDeploy. /// /// /// /// CodeDeploy makes it easier for you to rapidly release new features, helps you avoid /// downtime during application deployment, and handles the complexity of updating your /// applications, without many of the risks associated with error-prone manual deployments. /// /// /// /// CodeDeploy Components /// /// /// /// Use the information in this guide to help you work with the following CodeDeploy components: /// /// /// /// This guide also contains information to help you get details about the instances in /// your deployments, to make on-premises instances available for CodeDeploy deployments, /// to get details about a Lambda function deployment, and to get details about Amazon /// ECS service deployments. /// /// /// /// CodeDeploy Information Resources /// /// /// public partial class AmazonCodeDeployClient : AmazonServiceClient, IAmazonCodeDeploy { private static IServiceMetadata serviceMetadata = new AmazonCodeDeployMetadata(); #region Constructors /// /// 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 AmazonCodeDeployClient() : base(FallbackCredentialsFactory.GetCredentials(), new 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> /// /// /// /// The region to connect. public AmazonCodeDeployClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeDeployConfig{RegionEndpoint = region}) { } /// /// 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> /// /// /// /// The AmazonCodeDeployClient Configuration Object public AmazonCodeDeployClient(AmazonCodeDeployConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCodeDeployClient with AWS Credentials /// /// AWS Credentials public AmazonCodeDeployClient(AWSCredentials credentials) : this(credentials, new AmazonCodeDeployConfig()) { } /// /// Constructs AmazonCodeDeployClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCodeDeployClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCodeDeployConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeDeployClient with AWS Credentials and an /// AmazonCodeDeployClient Configuration object. /// /// AWS Credentials /// The AmazonCodeDeployClient Configuration Object public AmazonCodeDeployClient(AWSCredentials credentials, AmazonCodeDeployConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCodeDeployClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeDeployConfig()) { } /// /// Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCodeDeployClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeDeployConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCodeDeployClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeDeployClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCodeDeployClient Configuration Object public AmazonCodeDeployClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeDeployConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCodeDeployClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeDeployConfig()) { } /// /// Constructs AmazonCodeDeployClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonCodeDeployClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeDeployConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeDeployClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeDeployClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCodeDeployClient Configuration Object public AmazonCodeDeployClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeDeployConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICodeDeployPaginatorFactory _paginators; /// /// Paginators for the service /// public ICodeDeployPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CodeDeployPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonCodeDeployEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddTagsToOnPremisesInstances internal virtual AddTagsToOnPremisesInstancesResponse AddTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToOnPremisesInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds tags to on-premises instances. /// /// Container for the necessary parameters to execute the AddTagsToOnPremisesInstances service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AddTagsToOnPremisesInstances service method, as returned by CodeDeploy. /// /// The maximum number of allowed on-premises instances in a single call was exceeded. /// /// /// An on-premises instance name was not specified. /// /// /// The specified on-premises instance is not registered. /// /// /// The on-premises instance name was specified in an invalid format. /// /// /// The tag was specified in an invalid format. /// /// /// The maximum allowed number of tags was exceeded. /// /// /// A tag was not specified. /// /// REST API Reference for AddTagsToOnPremisesInstances Operation public virtual Task AddTagsToOnPremisesInstancesAsync(AddTagsToOnPremisesInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToOnPremisesInstancesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetApplicationRevisions internal virtual BatchGetApplicationRevisionsResponse BatchGetApplicationRevisions(BatchGetApplicationRevisionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetApplicationRevisionsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetApplicationRevisionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more application revisions. The maximum number of application /// revisions that can be returned is 25. /// /// Container for the necessary parameters to execute the BatchGetApplicationRevisions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetApplicationRevisions service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The maximum number of names or IDs allowed for this request (100) was exceeded. /// /// /// The application name was specified in an invalid format. /// /// /// The revision was specified in an invalid format. /// /// /// The revision ID was not specified. /// /// REST API Reference for BatchGetApplicationRevisions Operation public virtual Task BatchGetApplicationRevisionsAsync(BatchGetApplicationRevisionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetApplicationRevisionsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetApplicationRevisionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetApplications internal virtual BatchGetApplicationsResponse BatchGetApplications(BatchGetApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetApplicationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more applications. The maximum number of applications /// that can be returned is 100. /// /// Container for the necessary parameters to execute the BatchGetApplications service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetApplications service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The maximum number of names or IDs allowed for this request (100) was exceeded. /// /// /// The application name was specified in an invalid format. /// /// REST API Reference for BatchGetApplications Operation public virtual Task BatchGetApplicationsAsync(BatchGetApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetApplicationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetDeploymentGroups internal virtual BatchGetDeploymentGroupsResponse BatchGetDeploymentGroups(BatchGetDeploymentGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more deployment groups. /// /// Container for the necessary parameters to execute the BatchGetDeploymentGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetDeploymentGroups service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The maximum number of names or IDs allowed for this request (100) was exceeded. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// The deployment group name was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// REST API Reference for BatchGetDeploymentGroups Operation public virtual Task BatchGetDeploymentGroupsAsync(BatchGetDeploymentGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetDeploymentInstances [Obsolete("This operation is deprecated, use BatchGetDeploymentTargets instead.")] internal virtual BatchGetDeploymentInstancesResponse BatchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// /// /// This method works, but is deprecated. Use BatchGetDeploymentTargets /// instead. /// /// /// /// Returns an array of one or more instances associated with a deployment. This method /// works with EC2/On-premises and Lambda compute platforms. The newer BatchGetDeploymentTargets /// works with all compute platforms. The maximum number of instances that can be returned /// is 25. /// /// /// Container for the necessary parameters to execute the BatchGetDeploymentInstances service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetDeploymentInstances service method, as returned by CodeDeploy. /// /// The maximum number of names or IDs allowed for this request (100) was exceeded. /// /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The instance ID was not specified. /// /// /// The computePlatform is invalid. The computePlatform should be Lambda, /// Server, or ECS. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// The on-premises instance name was specified in an invalid format. /// /// REST API Reference for BatchGetDeploymentInstances Operation [Obsolete("This operation is deprecated, use BatchGetDeploymentTargets instead.")] public virtual Task BatchGetDeploymentInstancesAsync(BatchGetDeploymentInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentInstancesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetDeployments internal virtual BatchGetDeploymentsResponse BatchGetDeployments(BatchGetDeploymentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more deployments. The maximum number of deployments /// that can be returned is 25. /// /// Container for the necessary parameters to execute the BatchGetDeployments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetDeployments service method, as returned by CodeDeploy. /// /// The maximum number of names or IDs allowed for this request (100) was exceeded. /// /// /// At least one deployment ID must be specified. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// REST API Reference for BatchGetDeployments Operation public virtual Task BatchGetDeploymentsAsync(BatchGetDeploymentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetDeploymentTargets internal virtual BatchGetDeploymentTargetsResponse BatchGetDeploymentTargets(BatchGetDeploymentTargetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentTargetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an array of one or more targets associated with a deployment. This method /// works with all compute types and should be used instead of the deprecated BatchGetDeploymentInstances. /// The maximum number of targets that can be returned is 25. /// /// /// /// The type of targets returned depends on the deployment's compute platform or deployment /// method: /// ///
  • /// /// EC2/On-premises: Information about Amazon EC2 instance targets. /// ///
  • /// /// Lambda: Information about Lambda functions targets. /// ///
  • /// /// Amazon ECS: Information about Amazon ECS service targets. /// ///
  • /// /// CloudFormation: Information about targets of blue/green deployments initiated /// by a CloudFormation stack update. /// ///
///
/// Container for the necessary parameters to execute the BatchGetDeploymentTargets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetDeploymentTargets service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The specified deployment has not started. /// /// /// The provided target ID does not belong to the attempted deployment. /// /// /// A deployment target ID was not provided. /// /// /// The maximum number of targets that can be associated with an Amazon ECS or Lambda /// deployment was exceeded. The target list of both types of deployments must have exactly /// one item. This exception does not apply to EC2/On-premises deployments. /// /// /// The specified instance does not exist in the deployment group. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// The target ID provided was not valid. /// /// REST API Reference for BatchGetDeploymentTargets Operation public virtual Task BatchGetDeploymentTargetsAsync(BatchGetDeploymentTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetDeploymentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetDeploymentTargetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetOnPremisesInstances internal virtual BatchGetOnPremisesInstancesResponse BatchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetOnPremisesInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more on-premises instances. The maximum number of on-premises /// instances that can be returned is 25. /// /// Container for the necessary parameters to execute the BatchGetOnPremisesInstances service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetOnPremisesInstances service method, as returned by CodeDeploy. /// /// The maximum number of names or IDs allowed for this request (100) was exceeded. /// /// /// An on-premises instance name was not specified. /// /// /// The on-premises instance name was specified in an invalid format. /// /// REST API Reference for BatchGetOnPremisesInstances Operation public virtual Task BatchGetOnPremisesInstancesAsync(BatchGetOnPremisesInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetOnPremisesInstancesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ContinueDeployment internal virtual ContinueDeploymentResponse ContinueDeployment(ContinueDeploymentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueDeploymentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// For a blue/green deployment, starts the process of rerouting traffic from instances /// in the original environment to instances in the replacement environment without waiting /// for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering /// instances in the replacement environment with the load balancer, can start as soon /// as all instances have a status of Ready.) /// /// Container for the necessary parameters to execute the ContinueDeployment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ContinueDeployment service method, as returned by CodeDeploy. /// /// The deployment is already complete. /// /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The deployment does not have a status of Ready and can't continue yet. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// The specified deployment status doesn't exist or cannot be determined. /// /// /// The wait type is invalid. /// /// /// A call was submitted that is not supported for the specified deployment type. /// /// REST API Reference for ContinueDeployment Operation public virtual Task ContinueDeploymentAsync(ContinueDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ContinueDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = ContinueDeploymentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateApplication internal virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an application. /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApplication service method, as returned by CodeDeploy. /// /// An application with the specified name with the IAM user or Amazon Web Services account /// already exists. /// /// /// More applications were attempted to be created than are allowed. /// /// /// The minimum number of required application names was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The computePlatform is invalid. The computePlatform should be Lambda, /// Server, or ECS. /// /// /// The specified tags are not valid. /// /// REST API Reference for CreateApplication Operation public virtual Task CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDeployment internal virtual CreateDeploymentResponse CreateDeployment(CreateDeploymentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deploys an application revision through the specified deployment group. /// /// Container for the necessary parameters to execute the CreateDeployment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDeployment service method, as returned by CodeDeploy. /// /// The maximum number of alarms for a deployment group (10) was exceeded. /// /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// The deployment group name was not specified. /// /// /// The number of allowed deployments was exceeded. /// /// /// The description is too long. /// /// /// The format of the alarm configuration is invalid. Possible causes include: /// ///
  • /// /// The alarm list is null. /// ///
  • /// /// The alarm object is null. /// ///
  • /// /// The alarm name is empty or null or exceeds the limit of 255 characters. /// ///
  • /// /// Two alarms with the same name have been specified. /// ///
  • /// /// The alarm configuration is enabled, but the alarm list is empty. /// ///
///
/// /// The application name was specified in an invalid format. /// /// /// The automatic rollback configuration was specified in an invalid format. For example, /// automatic rollback is enabled, but an invalid triggering event type or no event types /// were listed. /// /// /// The Auto Scaling group was specified in an invalid format or does not exist. /// /// /// The deployment configuration name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// /// An invalid fileExistsBehavior option was specified to determine how CodeDeploy handles /// files or directories that already exist in a deployment target location, but weren't /// part of the previous successful deployment. Valid values include "DISALLOW," "OVERWRITE," /// and "RETAIN." /// /// /// The GitHub token is not valid. /// /// /// The IgnoreApplicationStopFailures value is invalid. For Lambda deployments, false /// is expected. For EC2/On-premises deployments, true or false /// is expected. /// /// /// An invalid load balancer name, or no load balancer name, was specified. /// /// /// The revision was specified in an invalid format. /// /// /// The service role ARN was specified in an invalid format. Or, if an Auto Scaling group /// was specified, the specified service role does not grant the appropriate permissions /// to Amazon EC2 Auto Scaling. /// /// /// The target instance configuration is invalid. Possible causes include: /// ///
  • /// /// Configuration data for target instances was entered for an in-place deployment. /// ///
  • /// /// The limit of 10 tags for a tag type was exceeded. /// ///
  • /// /// The combined length of the tag names exceeded the limit. /// ///
  • /// /// A specified tag is not currently applied to any instances. /// ///
///
/// /// The configuration that specifies how traffic is routed during a deployment is invalid. /// /// /// The UpdateOutdatedInstancesOnly value is invalid. For Lambda deployments, false /// is expected. For EC2/On-premises deployments, true or false /// is expected. /// /// /// The named revision does not exist with the IAM user or Amazon Web Services account. /// /// /// The revision ID was not specified. /// /// /// An API function was called too frequently. /// /// REST API Reference for CreateDeployment Operation public virtual Task CreateDeploymentAsync(CreateDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDeploymentConfig internal virtual CreateDeploymentConfigResponse CreateDeploymentConfig(CreateDeploymentConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a deployment configuration. /// /// Container for the necessary parameters to execute the CreateDeploymentConfig service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDeploymentConfig service method, as returned by CodeDeploy. /// /// A deployment configuration with the specified name with the IAM user or Amazon Web /// Services account already exists. /// /// /// The deployment configurations limit was exceeded. /// /// /// The deployment configuration name was not specified. /// /// /// The computePlatform is invalid. The computePlatform should be Lambda, /// Server, or ECS. /// /// /// The deployment configuration name was specified in an invalid format. /// /// /// The minimum healthy instance value was specified in an invalid format. /// /// /// The configuration that specifies how traffic is routed during a deployment is invalid. /// /// REST API Reference for CreateDeploymentConfig Operation public virtual Task CreateDeploymentConfigAsync(CreateDeploymentConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDeploymentGroup internal virtual CreateDeploymentGroupResponse CreateDeploymentGroup(CreateDeploymentGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a deployment group to which application revisions are deployed. /// /// Container for the necessary parameters to execute the CreateDeploymentGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDeploymentGroup service method, as returned by CodeDeploy. /// /// The maximum number of alarms for a deployment group (10) was exceeded. /// /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// A deployment group with the specified name with the IAM user or Amazon Web Services /// account already exists. /// /// /// The deployment groups limit was exceeded. /// /// /// The deployment group name was not specified. /// /// /// The Amazon ECS service is associated with more than one deployment groups. An Amazon /// ECS service can be associated with only one deployment group. /// /// /// The format of the alarm configuration is invalid. Possible causes include: /// ///
  • /// /// The alarm list is null. /// ///
  • /// /// The alarm object is null. /// ///
  • /// /// The alarm name is empty or null or exceeds the limit of 255 characters. /// ///
  • /// /// Two alarms with the same name have been specified. /// ///
  • /// /// The alarm configuration is enabled, but the alarm list is empty. /// ///
///
/// /// The application name was specified in an invalid format. /// /// /// The automatic rollback configuration was specified in an invalid format. For example, /// automatic rollback is enabled, but an invalid triggering event type or no event types /// were listed. /// /// /// The Auto Scaling group was specified in an invalid format or does not exist. /// /// /// The configuration for the blue/green deployment group was provided in an invalid format. /// For information about deployment configuration format, see CreateDeploymentConfig. /// /// /// The deployment configuration name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// /// An invalid deployment style was specified. Valid deployment types include "IN_PLACE" /// and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL." /// /// /// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but only one /// of these data types can be used in a single call. /// /// /// The tag was specified in an invalid format. /// /// /// The Amazon ECS service identifier is not valid. /// /// /// The input was specified in an invalid format. /// /// /// An invalid load balancer name, or no load balancer name, was specified. /// /// /// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, /// but only one of these data types can be used in a single call. /// /// /// The service role ARN was specified in an invalid format. Or, if an Auto Scaling group /// was specified, the specified service role does not grant the appropriate permissions /// to Amazon EC2 Auto Scaling. /// /// /// The tag was specified in an invalid format. /// /// /// The specified tags are not valid. /// /// /// A target group pair associated with this deployment is not valid. /// /// /// The configuration that specifies how traffic is routed during a deployment is invalid. /// /// /// The trigger was specified in an invalid format. /// /// /// The limit for lifecycle hooks was exceeded. /// /// /// The role ID was not specified. /// /// /// The number of tag groups included in the tag set list exceeded the maximum allowed /// limit of 3. /// /// /// An API function was called too frequently. /// /// /// The maximum allowed number of triggers was exceeded. /// /// REST API Reference for CreateDeploymentGroup Operation public virtual Task CreateDeploymentGroupAsync(CreateDeploymentGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDeploymentGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApplication internal virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an application. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApplication service method, as returned by CodeDeploy. /// /// The minimum number of required application names was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The service role ARN was specified in an invalid format. Or, if an Auto Scaling group /// was specified, the specified service role does not grant the appropriate permissions /// to Amazon EC2 Auto Scaling. /// /// REST API Reference for DeleteApplication Operation public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDeploymentConfig internal virtual DeleteDeploymentConfigResponse DeleteDeploymentConfig(DeleteDeploymentConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDeploymentConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDeploymentConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a deployment configuration. /// /// /// /// A deployment configuration cannot be deleted if it is currently in use. Predefined /// configurations cannot be deleted. /// /// /// /// Container for the necessary parameters to execute the DeleteDeploymentConfig service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDeploymentConfig service method, as returned by CodeDeploy. /// /// The deployment configuration is still in use. /// /// /// The deployment configuration name was not specified. /// /// /// The deployment configuration name was specified in an invalid format. /// /// /// An invalid operation was detected. /// /// REST API Reference for DeleteDeploymentConfig Operation public virtual Task DeleteDeploymentConfigAsync(DeleteDeploymentConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDeploymentConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDeploymentConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDeploymentGroup internal virtual DeleteDeploymentGroupResponse DeleteDeploymentGroup(DeleteDeploymentGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDeploymentGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a deployment group. /// /// Container for the necessary parameters to execute the DeleteDeploymentGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDeploymentGroup service method, as returned by CodeDeploy. /// /// The minimum number of required application names was not specified. /// /// /// The deployment group name was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// /// The service role ARN was specified in an invalid format. Or, if an Auto Scaling group /// was specified, the specified service role does not grant the appropriate permissions /// to Amazon EC2 Auto Scaling. /// /// REST API Reference for DeleteDeploymentGroup Operation public virtual Task DeleteDeploymentGroupAsync(DeleteDeploymentGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDeploymentGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteGitHubAccountToken internal virtual DeleteGitHubAccountTokenResponse DeleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGitHubAccountTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGitHubAccountTokenResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a GitHub account connection. /// /// Container for the necessary parameters to execute the DeleteGitHubAccountToken service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteGitHubAccountToken service method, as returned by CodeDeploy. /// /// No GitHub account connection exists with the named specified in the call. /// /// /// The call is missing a required GitHub account connection name. /// /// /// The format of the specified GitHub account connection name is invalid. /// /// /// The API used does not support the deployment. /// /// /// The specified resource could not be validated. /// /// REST API Reference for DeleteGitHubAccountToken Operation public virtual Task DeleteGitHubAccountTokenAsync(DeleteGitHubAccountTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGitHubAccountTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGitHubAccountTokenResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteResourcesByExternalId internal virtual DeleteResourcesByExternalIdResponse DeleteResourcesByExternalId(DeleteResourcesByExternalIdRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcesByExternalIdRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcesByExternalIdResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes resources linked to an external ID. /// /// Container for the necessary parameters to execute the DeleteResourcesByExternalId service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteResourcesByExternalId service method, as returned by CodeDeploy. /// REST API Reference for DeleteResourcesByExternalId Operation public virtual Task DeleteResourcesByExternalIdAsync(DeleteResourcesByExternalIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcesByExternalIdRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcesByExternalIdResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeregisterOnPremisesInstance internal virtual DeregisterOnPremisesInstanceResponse DeregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterOnPremisesInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterOnPremisesInstanceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deregisters an on-premises instance. /// /// Container for the necessary parameters to execute the DeregisterOnPremisesInstance service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeregisterOnPremisesInstance service method, as returned by CodeDeploy. /// /// An on-premises instance name was not specified. /// /// /// The on-premises instance name was specified in an invalid format. /// /// REST API Reference for DeregisterOnPremisesInstance Operation public virtual Task DeregisterOnPremisesInstanceAsync(DeregisterOnPremisesInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterOnPremisesInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterOnPremisesInstanceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApplication internal virtual GetApplicationResponse GetApplication(GetApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about an application. /// /// Container for the necessary parameters to execute the GetApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApplication service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The application name was specified in an invalid format. /// /// REST API Reference for GetApplication Operation public virtual Task GetApplicationAsync(GetApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApplicationRevision internal virtual GetApplicationRevisionResponse GetApplicationRevision(GetApplicationRevisionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRevisionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationRevisionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about an application revision. /// /// Container for the necessary parameters to execute the GetApplicationRevision service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApplicationRevision service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The revision was specified in an invalid format. /// /// /// The named revision does not exist with the IAM user or Amazon Web Services account. /// /// /// The revision ID was not specified. /// /// REST API Reference for GetApplicationRevision Operation public virtual Task GetApplicationRevisionAsync(GetApplicationRevisionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRevisionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationRevisionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDeployment internal virtual GetDeploymentResponse GetDeployment(GetDeploymentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a deployment. /// /// /// /// The content property of the appSpecContent object in the /// returned revision is always null. Use GetApplicationRevision and the /// sha256 property of the returned appSpecContent object to /// get the content of the deployment’s AppSpec file. /// /// /// /// Container for the necessary parameters to execute the GetDeployment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDeployment service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// REST API Reference for GetDeployment Operation public virtual Task GetDeploymentAsync(GetDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDeploymentConfig internal virtual GetDeploymentConfigResponse GetDeploymentConfig(GetDeploymentConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a deployment configuration. /// /// Container for the necessary parameters to execute the GetDeploymentConfig service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDeploymentConfig service method, as returned by CodeDeploy. /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// The deployment configuration name was not specified. /// /// /// The computePlatform is invalid. The computePlatform should be Lambda, /// Server, or ECS. /// /// /// The deployment configuration name was specified in an invalid format. /// /// REST API Reference for GetDeploymentConfig Operation public virtual Task GetDeploymentConfigAsync(GetDeploymentConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentConfigResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDeploymentGroup internal virtual GetDeploymentGroupResponse GetDeploymentGroup(GetDeploymentGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a deployment group. /// /// Container for the necessary parameters to execute the GetDeploymentGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDeploymentGroup service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// The deployment group name was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// REST API Reference for GetDeploymentGroup Operation public virtual Task GetDeploymentGroupAsync(GetDeploymentGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDeploymentInstance [Obsolete("This operation is deprecated, use GetDeploymentTarget instead.")] internal virtual GetDeploymentInstanceResponse GetDeploymentInstance(GetDeploymentInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentInstanceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about an instance as part of a deployment. /// /// Container for the necessary parameters to execute the GetDeploymentInstance service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDeploymentInstance service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The specified instance does not exist in the deployment group. /// /// /// The instance ID was not specified. /// /// /// The computePlatform is invalid. The computePlatform should be Lambda, /// Server, or ECS. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// The on-premises instance name was specified in an invalid format. /// /// REST API Reference for GetDeploymentInstance Operation [Obsolete("This operation is deprecated, use GetDeploymentTarget instead.")] public virtual Task GetDeploymentInstanceAsync(GetDeploymentInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentInstanceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDeploymentTarget internal virtual GetDeploymentTargetResponse GetDeploymentTarget(GetDeploymentTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a deployment target. /// /// Container for the necessary parameters to execute the GetDeploymentTarget service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDeploymentTarget service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The specified deployment has not started. /// /// /// The provided target ID does not belong to the attempted deployment. /// /// /// A deployment target ID was not provided. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// The target ID provided was not valid. /// /// /// The on-premises instance name was specified in an invalid format. /// /// REST API Reference for GetDeploymentTarget Operation public virtual Task GetDeploymentTargetAsync(GetDeploymentTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeploymentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeploymentTargetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetOnPremisesInstance internal virtual GetOnPremisesInstanceResponse GetOnPremisesInstance(GetOnPremisesInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetOnPremisesInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetOnPremisesInstanceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about an on-premises instance. /// /// Container for the necessary parameters to execute the GetOnPremisesInstance service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetOnPremisesInstance service method, as returned by CodeDeploy. /// /// An on-premises instance name was not specified. /// /// /// The specified on-premises instance is not registered. /// /// /// The on-premises instance name was specified in an invalid format. /// /// REST API Reference for GetOnPremisesInstance Operation public virtual Task GetOnPremisesInstanceAsync(GetOnPremisesInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetOnPremisesInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetOnPremisesInstanceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplicationRevisions internal virtual ListApplicationRevisionsResponse ListApplicationRevisions(ListApplicationRevisionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationRevisionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationRevisionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists information about revisions for an application. /// /// Container for the necessary parameters to execute the ListApplicationRevisions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplicationRevisions service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// A bucket name is required, but was not provided. /// /// /// The application name was specified in an invalid format. /// /// /// The bucket name either doesn't exist or was specified in an invalid format. /// /// /// The deployed state filter was specified in an invalid format. /// /// /// The specified key prefix filter was specified in an invalid format. /// /// /// The next token was specified in an invalid format. /// /// /// The column name to sort by is either not present or was specified in an invalid format. /// /// /// The sort order was specified in an invalid format. /// /// REST API Reference for ListApplicationRevisions Operation public virtual Task ListApplicationRevisionsAsync(ListApplicationRevisionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationRevisionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationRevisionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplications internal virtual ListApplicationsResponse ListApplications() { return ListApplications(new ListApplicationsRequest()); } internal virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the applications registered with the IAM user or Amazon Web Services account. /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplications service method, as returned by CodeDeploy. /// /// The next token was specified in an invalid format. /// /// REST API Reference for ListApplications Operation public virtual Task ListApplicationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListApplicationsAsync(new ListApplicationsRequest(), cancellationToken); } /// /// Lists the applications registered with the IAM user or Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplications service method, as returned by CodeDeploy. /// /// The next token was specified in an invalid format. /// /// REST API Reference for ListApplications Operation public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDeploymentConfigs internal virtual ListDeploymentConfigsResponse ListDeploymentConfigs() { return ListDeploymentConfigs(new ListDeploymentConfigsRequest()); } internal virtual ListDeploymentConfigsResponse ListDeploymentConfigs(ListDeploymentConfigsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentConfigsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the deployment configurations with the IAM user or Amazon Web Services account. /// /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeploymentConfigs service method, as returned by CodeDeploy. /// /// The next token was specified in an invalid format. /// /// REST API Reference for ListDeploymentConfigs Operation public virtual Task ListDeploymentConfigsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListDeploymentConfigsAsync(new ListDeploymentConfigsRequest(), cancellationToken); } /// /// Lists the deployment configurations with the IAM user or Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListDeploymentConfigs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeploymentConfigs service method, as returned by CodeDeploy. /// /// The next token was specified in an invalid format. /// /// REST API Reference for ListDeploymentConfigs Operation public virtual Task ListDeploymentConfigsAsync(ListDeploymentConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentConfigsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDeploymentGroups internal virtual ListDeploymentGroupsResponse ListDeploymentGroups(ListDeploymentGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the deployment groups for an application registered with the IAM user or Amazon /// Web Services account. /// /// Container for the necessary parameters to execute the ListDeploymentGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeploymentGroups service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The next token was specified in an invalid format. /// /// REST API Reference for ListDeploymentGroups Operation public virtual Task ListDeploymentGroupsAsync(ListDeploymentGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDeploymentInstances [Obsolete("This operation is deprecated, use ListDeploymentTargets instead.")] internal virtual ListDeploymentInstancesResponse ListDeploymentInstances(ListDeploymentInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// /// /// The newer BatchGetDeploymentTargets should be used instead because it /// works with all compute types. ListDeploymentInstances throws an exception /// if it is used with a compute platform other than EC2/On-premises or Lambda. /// /// /// /// Lists the instance for a deployment associated with the IAM user or Amazon Web Services /// account. /// /// /// Container for the necessary parameters to execute the ListDeploymentInstances service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeploymentInstances service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The specified deployment has not started. /// /// /// The computePlatform is invalid. The computePlatform should be Lambda, /// Server, or ECS. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// An instance type was specified for an in-place deployment. Instance types are supported /// for blue/green deployments only. /// /// /// The specified instance status does not exist. /// /// /// An invalid instance type was specified for instances in a blue/green deployment. Valid /// values include "Blue" for an original environment and "Green" for a replacement environment. /// /// /// The next token was specified in an invalid format. /// /// /// The target filter name is invalid. /// /// REST API Reference for ListDeploymentInstances Operation [Obsolete("This operation is deprecated, use ListDeploymentTargets instead.")] public virtual Task ListDeploymentInstancesAsync(ListDeploymentInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentInstancesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDeployments internal virtual ListDeploymentsResponse ListDeployments(ListDeploymentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the deployments in a deployment group for an application registered with the /// IAM user or Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListDeployments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeployments service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// The deployment group name was not specified. /// /// /// The application name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// /// The specified deployment status doesn't exist or cannot be determined. /// /// /// The external ID was specified in an invalid format. /// /// /// The input was specified in an invalid format. /// /// /// The next token was specified in an invalid format. /// /// /// The specified time range was specified in an invalid format. /// /// REST API Reference for ListDeployments Operation public virtual Task ListDeploymentsAsync(ListDeploymentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDeploymentTargets internal virtual ListDeploymentTargetsResponse ListDeploymentTargets(ListDeploymentTargetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentTargetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an array of target IDs that are associated a deployment. /// /// Container for the necessary parameters to execute the ListDeploymentTargets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDeploymentTargets service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The specified deployment has not started. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// An instance type was specified for an in-place deployment. Instance types are supported /// for blue/green deployments only. /// /// /// The specified instance status does not exist. /// /// /// An invalid instance type was specified for instances in a blue/green deployment. Valid /// values include "Blue" for an original environment and "Green" for a replacement environment. /// /// /// The next token was specified in an invalid format. /// /// REST API Reference for ListDeploymentTargets Operation public virtual Task ListDeploymentTargetsAsync(ListDeploymentTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDeploymentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDeploymentTargetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListGitHubAccountTokenNames internal virtual ListGitHubAccountTokenNamesResponse ListGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGitHubAccountTokenNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGitHubAccountTokenNamesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the names of stored connections to GitHub accounts. /// /// Container for the necessary parameters to execute the ListGitHubAccountTokenNames service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListGitHubAccountTokenNames service method, as returned by CodeDeploy. /// /// The next token was specified in an invalid format. /// /// /// The API used does not support the deployment. /// /// /// The specified resource could not be validated. /// /// REST API Reference for ListGitHubAccountTokenNames Operation public virtual Task ListGitHubAccountTokenNamesAsync(ListGitHubAccountTokenNamesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGitHubAccountTokenNamesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGitHubAccountTokenNamesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListOnPremisesInstances internal virtual ListOnPremisesInstancesResponse ListOnPremisesInstances(ListOnPremisesInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOnPremisesInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of names for one or more on-premises instances. /// /// /// /// Unless otherwise specified, both registered and deregistered on-premises instance /// names are listed. To list only registered or deregistered on-premises instance names, /// use the registration status parameter. /// /// /// Container for the necessary parameters to execute the ListOnPremisesInstances service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListOnPremisesInstances service method, as returned by CodeDeploy. /// /// The next token was specified in an invalid format. /// /// /// The registration status was specified in an invalid format. /// /// /// The tag filter was specified in an invalid format. /// /// REST API Reference for ListOnPremisesInstances Operation public virtual Task ListOnPremisesInstancesAsync(ListOnPremisesInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOnPremisesInstancesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of tags for the resource identified by a specified Amazon Resource /// Name (ARN). Tags are used to organize and categorize your CodeDeploy resources. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by CodeDeploy. /// /// The specified ARN is not supported. For example, it might be an ARN for a resource /// that is not expected. /// /// /// The specified ARN is not in a valid format. /// /// /// The ARN of a resource is required, but was not found. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutLifecycleEventHookExecutionStatus internal virtual PutLifecycleEventHookExecutionStatusResponse PutLifecycleEventHookExecutionStatus(PutLifecycleEventHookExecutionStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleEventHookExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleEventHookExecutionStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the result of a Lambda validation function. The function validates lifecycle /// hooks during a deployment that uses the Lambda or Amazon ECS compute platform. For /// Lambda deployments, the available lifecycle hooks are BeforeAllowTraffic /// and AfterAllowTraffic. For Amazon ECS deployments, the available lifecycle /// hooks are BeforeInstall, AfterInstall, AfterAllowTestTraffic, /// BeforeAllowTraffic, and AfterAllowTraffic. Lambda validation /// functions return Succeeded or Failed. For more information, /// see AppSpec /// 'hooks' Section for an Lambda Deployment and AppSpec /// 'hooks' Section for an Amazon ECS Deployment. /// /// Container for the necessary parameters to execute the PutLifecycleEventHookExecutionStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutLifecycleEventHookExecutionStatus service method, as returned by CodeDeploy. /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// A lifecycle event hook is invalid. Review the hooks section in your AppSpec /// file to ensure the lifecycle events and hooks functions are valid. /// /// /// The result of a Lambda validation function that verifies a lifecycle event is invalid. /// It should return Succeeded or Failed. /// /// /// An attempt to return the status of an already completed lifecycle event occurred. /// /// /// A call was submitted that is not supported for the specified deployment type. /// /// REST API Reference for PutLifecycleEventHookExecutionStatus Operation public virtual Task PutLifecycleEventHookExecutionStatusAsync(PutLifecycleEventHookExecutionStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleEventHookExecutionStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleEventHookExecutionStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RegisterApplicationRevision internal virtual RegisterApplicationRevisionResponse RegisterApplicationRevision(RegisterApplicationRevisionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterApplicationRevisionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterApplicationRevisionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Registers with CodeDeploy a revision for the specified application. /// /// Container for the necessary parameters to execute the RegisterApplicationRevision service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RegisterApplicationRevision service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The description is too long. /// /// /// The application name was specified in an invalid format. /// /// /// The revision was specified in an invalid format. /// /// /// The revision ID was not specified. /// /// REST API Reference for RegisterApplicationRevision Operation public virtual Task RegisterApplicationRevisionAsync(RegisterApplicationRevisionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterApplicationRevisionRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterApplicationRevisionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RegisterOnPremisesInstance internal virtual RegisterOnPremisesInstanceResponse RegisterOnPremisesInstance(RegisterOnPremisesInstanceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterOnPremisesInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterOnPremisesInstanceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Registers an on-premises instance. /// /// /// /// Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. /// You cannot use both. /// /// /// /// Container for the necessary parameters to execute the RegisterOnPremisesInstance service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RegisterOnPremisesInstance service method, as returned by CodeDeploy. /// /// No IAM ARN was included in the request. You must use an IAM session ARN or IAM user /// ARN in the request. /// /// /// The request included an IAM session ARN that has already been used to register a different /// instance. /// /// /// The specified IAM user ARN is already registered with an on-premises instance. /// /// /// An IAM user ARN was not specified. /// /// /// The specified on-premises instance name is already registered. /// /// /// An on-premises instance name was not specified. /// /// /// The IAM session ARN was specified in an invalid format. /// /// /// The IAM user ARN was specified in an invalid format. /// /// /// The on-premises instance name was specified in an invalid format. /// /// /// Both an IAM user ARN and an IAM session ARN were included in the request. Use only /// one ARN type. /// /// REST API Reference for RegisterOnPremisesInstance Operation public virtual Task RegisterOnPremisesInstanceAsync(RegisterOnPremisesInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterOnPremisesInstanceRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterOnPremisesInstanceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RemoveTagsFromOnPremisesInstances internal virtual RemoveTagsFromOnPremisesInstancesResponse RemoveTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromOnPremisesInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes one or more tags from one or more on-premises instances. /// /// Container for the necessary parameters to execute the RemoveTagsFromOnPremisesInstances service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveTagsFromOnPremisesInstances service method, as returned by CodeDeploy. /// /// The maximum number of allowed on-premises instances in a single call was exceeded. /// /// /// An on-premises instance name was not specified. /// /// /// The specified on-premises instance is not registered. /// /// /// The on-premises instance name was specified in an invalid format. /// /// /// The tag was specified in an invalid format. /// /// /// The maximum allowed number of tags was exceeded. /// /// /// A tag was not specified. /// /// REST API Reference for RemoveTagsFromOnPremisesInstances Operation public virtual Task RemoveTagsFromOnPremisesInstancesAsync(RemoveTagsFromOnPremisesInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromOnPremisesInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromOnPremisesInstancesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SkipWaitTimeForInstanceTermination [Obsolete("This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead.")] internal virtual SkipWaitTimeForInstanceTerminationResponse SkipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SkipWaitTimeForInstanceTerminationRequestMarshaller.Instance; options.ResponseUnmarshaller = SkipWaitTimeForInstanceTerminationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// In a blue/green deployment, overrides any specified wait time and starts terminating /// instances immediately after the traffic routing is complete. /// /// Container for the necessary parameters to execute the SkipWaitTimeForInstanceTermination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SkipWaitTimeForInstanceTermination service method, as returned by CodeDeploy. /// /// The deployment is already complete. /// /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// At least one deployment ID must be specified. /// /// /// The specified deployment has not started. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// A call was submitted that is not supported for the specified deployment type. /// /// REST API Reference for SkipWaitTimeForInstanceTermination Operation [Obsolete("This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead.")] public virtual Task SkipWaitTimeForInstanceTerminationAsync(SkipWaitTimeForInstanceTerminationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SkipWaitTimeForInstanceTerminationRequestMarshaller.Instance; options.ResponseUnmarshaller = SkipWaitTimeForInstanceTerminationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopDeployment internal virtual StopDeploymentResponse StopDeployment(StopDeploymentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDeploymentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Attempts to stop an ongoing deployment. /// /// Container for the necessary parameters to execute the StopDeployment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopDeployment service method, as returned by CodeDeploy. /// /// The deployment is already complete. /// /// /// The deployment with the IAM user or Amazon Web Services account does not exist. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// At least one deployment ID must be specified. /// /// /// At least one of the deployment IDs was specified in an invalid format. /// /// /// A call was submitted that is not supported for the specified deployment type. /// /// REST API Reference for StopDeployment Operation public virtual Task StopDeploymentAsync(StopDeploymentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopDeploymentRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDeploymentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates the list of tags in the input Tags parameter with the resource /// identified by the ResourceArn input parameter. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The specified ARN is not supported. For example, it might be an ARN for a resource /// that is not expected. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// The specified ARN is not in a valid format. /// /// /// The specified tags are not valid. /// /// /// The ARN of a resource is required, but was not found. /// /// /// A tag was not specified. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates a resource from a list of tags. The resource is identified by the ResourceArn /// input parameter. The tags are identified by the list of keys in the TagKeys /// input parameter. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by CodeDeploy. /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The specified ARN is not supported. For example, it might be an ARN for a resource /// that is not expected. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// The specified ARN is not in a valid format. /// /// /// The specified tags are not valid. /// /// /// The ARN of a resource is required, but was not found. /// /// /// A tag was not specified. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateApplication internal virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes the name of an application. /// /// Container for the necessary parameters to execute the UpdateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApplication service method, as returned by CodeDeploy. /// /// An application with the specified name with the IAM user or Amazon Web Services account /// already exists. /// /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The application name was specified in an invalid format. /// /// REST API Reference for UpdateApplication Operation public virtual Task UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDeploymentGroup internal virtual UpdateDeploymentGroupResponse UpdateDeploymentGroup(UpdateDeploymentGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDeploymentGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes information about a deployment group. /// /// Container for the necessary parameters to execute the UpdateDeploymentGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDeploymentGroup service method, as returned by CodeDeploy. /// /// The maximum number of alarms for a deployment group (10) was exceeded. /// /// /// The application does not exist with the IAM user or Amazon Web Services account. /// /// /// The minimum number of required application names was not specified. /// /// /// The deployment configuration does not exist with the IAM user or Amazon Web Services /// account. /// /// /// A deployment group with the specified name with the IAM user or Amazon Web Services /// account already exists. /// /// /// The named deployment group with the IAM user or Amazon Web Services account does not /// exist. /// /// /// The deployment group name was not specified. /// /// /// The Amazon ECS service is associated with more than one deployment groups. An Amazon /// ECS service can be associated with only one deployment group. /// /// /// The format of the alarm configuration is invalid. Possible causes include: /// ///
  • /// /// The alarm list is null. /// ///
  • /// /// The alarm object is null. /// ///
  • /// /// The alarm name is empty or null or exceeds the limit of 255 characters. /// ///
  • /// /// Two alarms with the same name have been specified. /// ///
  • /// /// The alarm configuration is enabled, but the alarm list is empty. /// ///
///
/// /// The application name was specified in an invalid format. /// /// /// The automatic rollback configuration was specified in an invalid format. For example, /// automatic rollback is enabled, but an invalid triggering event type or no event types /// were listed. /// /// /// The Auto Scaling group was specified in an invalid format or does not exist. /// /// /// The configuration for the blue/green deployment group was provided in an invalid format. /// For information about deployment configuration format, see CreateDeploymentConfig. /// /// /// The deployment configuration name was specified in an invalid format. /// /// /// The deployment group name was specified in an invalid format. /// /// /// An invalid deployment style was specified. Valid deployment types include "IN_PLACE" /// and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL." /// /// /// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but only one /// of these data types can be used in a single call. /// /// /// The tag was specified in an invalid format. /// /// /// The Amazon ECS service identifier is not valid. /// /// /// The input was specified in an invalid format. /// /// /// An invalid load balancer name, or no load balancer name, was specified. /// /// /// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, /// but only one of these data types can be used in a single call. /// /// /// The service role ARN was specified in an invalid format. Or, if an Auto Scaling group /// was specified, the specified service role does not grant the appropriate permissions /// to Amazon EC2 Auto Scaling. /// /// /// The tag was specified in an invalid format. /// /// /// A target group pair associated with this deployment is not valid. /// /// /// The configuration that specifies how traffic is routed during a deployment is invalid. /// /// /// The trigger was specified in an invalid format. /// /// /// The limit for lifecycle hooks was exceeded. /// /// /// The number of tag groups included in the tag set list exceeded the maximum allowed /// limit of 3. /// /// /// An API function was called too frequently. /// /// /// The maximum allowed number of triggers was exceeded. /// /// REST API Reference for UpdateDeploymentGroup Operation public virtual Task UpdateDeploymentGroupAsync(UpdateDeploymentGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDeploymentGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDeploymentGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }