Paws::CodeDeploy::CreateDeployment - Arguments for method CreateDeployment on Paws::CodeDeploy
This class represents the parameters used for calling the method CreateDeployment on the AWS CodeDeploy service. Use the attributes of this class as arguments to method CreateDeployment.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDeployment.
my $codedeploy = Paws->service('CodeDeploy'); my $CreateDeploymentOutput = $codedeploy->CreateDeployment( ApplicationName => 'MyApplicationName', AutoRollbackConfiguration => { Enabled => 1, # OPTIONAL Events => [ 'DEPLOYMENT_FAILURE', ... # values: DEPLOYMENT_FAILURE, DEPLOYMENT_STOP_ON_ALARM, DEPLOYMENT_STOP_ON_REQUEST ], # OPTIONAL }, # OPTIONAL DeploymentConfigName => 'MyDeploymentConfigName', # OPTIONAL DeploymentGroupName => 'MyDeploymentGroupName', # OPTIONAL Description => 'MyDescription', # OPTIONAL FileExistsBehavior => 'DISALLOW', # OPTIONAL IgnoreApplicationStopFailures => 1, # OPTIONAL Revision => { AppSpecContent => { Content => 'MyRawStringContent', # OPTIONAL Sha256 => 'MyRawStringSha256', # OPTIONAL }, # OPTIONAL GitHubLocation => { CommitId => 'MyCommitId', # OPTIONAL Repository => 'MyRepository', # OPTIONAL }, # OPTIONAL RevisionType => 'S3', # values: S3, GitHub, String, AppSpecContent; OPTIONAL S3Location => { Bucket => 'MyS3Bucket', # OPTIONAL BundleType => 'tar', # values: tar, tgz, zip, YAML, JSON; OPTIONAL ETag => 'MyETag', # OPTIONAL Key => 'MyS3Key', # OPTIONAL Version => 'MyVersionId', # OPTIONAL }, # OPTIONAL String => { Content => 'MyRawStringContent', # OPTIONAL Sha256 => 'MyRawStringSha256', # OPTIONAL }, # OPTIONAL }, # OPTIONAL TargetInstances => { AutoScalingGroups => [ 'MyAutoScalingGroupName', ... ], # OPTIONAL Ec2TagSet => { Ec2TagSetList => [ [ { Key => 'MyKey', # OPTIONAL Type => 'KEY_ONLY' , # values: KEY_ONLY, VALUE_ONLY, KEY_AND_VALUE; OPTIONAL Value => 'MyValue', # OPTIONAL }, ... ], ... ], # OPTIONAL }, # OPTIONAL TagFilters => [ { Key => 'MyKey', # OPTIONAL Type => 'KEY_ONLY' , # values: KEY_ONLY, VALUE_ONLY, KEY_AND_VALUE; OPTIONAL Value => 'MyValue', # OPTIONAL }, ... ], }, # OPTIONAL UpdateOutdatedInstancesOnly => 1, # OPTIONAL ); # Results: my $DeploymentId = $CreateDeploymentOutput->DeploymentId; # Returns a L<Paws::CodeDeploy::CreateDeploymentOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/codedeploy/CreateDeployment
The name of an AWS CodeDeploy application associated with the IAM user or AWS account.
Configuration information for an automatic rollback that is added when a deployment is created.
The name of a deployment configuration associated with the IAM user or AWS account.
If not specified, the value configured in the deployment group is used as the default. If the deployment group does not have a deployment configuration associated with it, CodeDeployDefault.OneAtATime is used by default.
CodeDeployDefault
OneAtATime
The name of the deployment group.
A comment about the deployment.
Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.
The fileExistsBehavior parameter takes any of the following values:
fileExistsBehavior
DISALLOW: The deployment fails. This is also the default behavior if no option is specified.
OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance.
RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.
Valid values are: "DISALLOW", "OVERWRITE", "RETAIN"
"DISALLOW"
"OVERWRITE"
"RETAIN"
If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if ApplicationStop fails, the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the deployment continues with ApplicationStop.
ApplicationStop
BeforeBlockTraffic
AfterBlockTraffic
DownloadBundle
BlockTraffic
If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.
During a deployment, the AWS CodeDeploy agent runs the scripts specified for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.
If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use ignoreApplicationStopFailures to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be ignored.
ignoreApplicationStopFailures
The type and location of the revision to deploy.
Information about the instances that belong to the replacement environment in a blue/green deployment.
Indicates whether to deploy to all instances or only to instances that are not running the latest application revision.
This class forms part of Paws, documenting arguments for method CreateDeployment in Paws::CodeDeploy
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.