AWS SDK Version 3 for .NET
API Reference

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

Deploys an application revision through the specified deployment group.

Note:

For .NET Core and PCL this operation is only available in asynchronous form. Please refer to CreateDeploymentAsync.

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

Syntax

C#
public abstract CreateDeploymentResponse CreateDeployment(
         CreateDeploymentRequest request
)
Parameters
request
Type: Amazon.CodeDeploy.Model.CreateDeploymentRequest

Container for the necessary parameters to execute the CreateDeployment service method.

Return Value
The response from the CreateDeployment service method, as returned by CodeDeploy.

Exceptions

ExceptionCondition
ApplicationDoesNotExistException The application does not exist with the applicable IAM user or AWS account.
ApplicationNameRequiredException The minimum number of required application names was not specified.
DeploymentConfigDoesNotExistException The deployment configuration does not exist with the applicable IAM user or AWS account.
DeploymentGroupDoesNotExistException The named deployment group does not exist with the applicable IAM user or AWS account.
DeploymentGroupNameRequiredException The deployment group name was not specified.
DeploymentLimitExceededException The number of allowed deployments was exceeded.
DescriptionTooLongException The description is too long.
InvalidApplicationNameException The application name was specified in an invalid format.
InvalidAutoRollbackConfigException 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.
InvalidAutoScalingGroupException The Auto Scaling group was specified in an invalid format or does not exist.
InvalidDeploymentConfigNameException The deployment configuration name was specified in an invalid format.
InvalidDeploymentGroupNameException The deployment group name was specified in an invalid format.
InvalidFileExistsBehaviorException An invalid fileExistsBehavior option was specified to determine how AWS 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".
InvalidGitHubAccountTokenException The GitHub token is not valid.
InvalidIgnoreApplicationStopFailuresValueException The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments, false is expected. For EC2/On-premises deployments, true or false is expected.
InvalidLoadBalancerInfoException An invalid load balancer name, or no load balancer name, was specified.
InvalidRevisionException The revision was specified in an invalid format.
InvalidRoleException 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 Auto Scaling.
InvalidTargetInstancesException 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.
InvalidUpdateOutdatedInstancesOnlyValueException The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments, false is expected. For EC2/On-premises deployments, true or false is expected.
RevisionDoesNotExistException The named revision does not exist with the applicable IAM user or AWS account.
RevisionRequiredException The revision ID was not specified.
ThrottlingException An API function was called too frequently.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also