Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 098a1bf

Browse files
author
aws-sdk-cpp-automation
committed
AWS CodeDeploy can now detect instances running an outdated revision of your application and automatically update them with the latest revision.
Initial release of AWS Fault Injection Simulator, a managed service that enables you to perform fault injection experiments on your AWS workloads This is for ecs exec feature release which includes two new APIs - execute-command and update-cluster and an AWS CLI customization for execute-command API AWS Transcribe now supports real-time transcription for Chinese (zh-CN) and confidence scores in the transcription output. Amazon EMR customers can now specify Resource Group to target Capacity Reservations in their EMR clusters with instance fleets using allocation strategy.
1 parent c773b6e commit 098a1bf

214 files changed

Lines changed: 22902 additions & 1244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/CreateDeploymentGroupRequest.h

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <aws/core/utils/memory/stl/AWSVector.h>
1111
#include <aws/codedeploy/model/AlarmConfiguration.h>
1212
#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
13+
#include <aws/codedeploy/model/OutdatedInstancesStrategy.h>
1314
#include <aws/codedeploy/model/DeploymentStyle.h>
1415
#include <aws/codedeploy/model/BlueGreenDeploymentConfiguration.h>
1516
#include <aws/codedeploy/model/LoadBalancerInfo.h>
@@ -610,6 +611,73 @@ namespace Model
610611
inline CreateDeploymentGroupRequest& WithAutoRollbackConfiguration(AutoRollbackConfiguration&& value) { SetAutoRollbackConfiguration(std::move(value)); return *this;}
611612

612613

614+
/**
615+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
616+
* do not receive the deployed application revision.</p> <p>If this option is set
617+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
618+
* 'auto-update outdated instances' deployments to apply the deployed application
619+
* revision to the new EC2 instances.</p> <p>If this option is set to
620+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
621+
* EC2 instances. This may result in instances having different revisions.</p>
622+
*/
623+
inline const OutdatedInstancesStrategy& GetOutdatedInstancesStrategy() const{ return m_outdatedInstancesStrategy; }
624+
625+
/**
626+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
627+
* do not receive the deployed application revision.</p> <p>If this option is set
628+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
629+
* 'auto-update outdated instances' deployments to apply the deployed application
630+
* revision to the new EC2 instances.</p> <p>If this option is set to
631+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
632+
* EC2 instances. This may result in instances having different revisions.</p>
633+
*/
634+
inline bool OutdatedInstancesStrategyHasBeenSet() const { return m_outdatedInstancesStrategyHasBeenSet; }
635+
636+
/**
637+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
638+
* do not receive the deployed application revision.</p> <p>If this option is set
639+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
640+
* 'auto-update outdated instances' deployments to apply the deployed application
641+
* revision to the new EC2 instances.</p> <p>If this option is set to
642+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
643+
* EC2 instances. This may result in instances having different revisions.</p>
644+
*/
645+
inline void SetOutdatedInstancesStrategy(const OutdatedInstancesStrategy& value) { m_outdatedInstancesStrategyHasBeenSet = true; m_outdatedInstancesStrategy = value; }
646+
647+
/**
648+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
649+
* do not receive the deployed application revision.</p> <p>If this option is set
650+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
651+
* 'auto-update outdated instances' deployments to apply the deployed application
652+
* revision to the new EC2 instances.</p> <p>If this option is set to
653+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
654+
* EC2 instances. This may result in instances having different revisions.</p>
655+
*/
656+
inline void SetOutdatedInstancesStrategy(OutdatedInstancesStrategy&& value) { m_outdatedInstancesStrategyHasBeenSet = true; m_outdatedInstancesStrategy = std::move(value); }
657+
658+
/**
659+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
660+
* do not receive the deployed application revision.</p> <p>If this option is set
661+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
662+
* 'auto-update outdated instances' deployments to apply the deployed application
663+
* revision to the new EC2 instances.</p> <p>If this option is set to
664+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
665+
* EC2 instances. This may result in instances having different revisions.</p>
666+
*/
667+
inline CreateDeploymentGroupRequest& WithOutdatedInstancesStrategy(const OutdatedInstancesStrategy& value) { SetOutdatedInstancesStrategy(value); return *this;}
668+
669+
/**
670+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
671+
* do not receive the deployed application revision.</p> <p>If this option is set
672+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
673+
* 'auto-update outdated instances' deployments to apply the deployed application
674+
* revision to the new EC2 instances.</p> <p>If this option is set to
675+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
676+
* EC2 instances. This may result in instances having different revisions.</p>
677+
*/
678+
inline CreateDeploymentGroupRequest& WithOutdatedInstancesStrategy(OutdatedInstancesStrategy&& value) { SetOutdatedInstancesStrategy(std::move(value)); return *this;}
679+
680+
613681
/**
614682
* <p>Information about the type of deployment, in-place or blue/green, that you
615683
* want to run and whether to route deployment traffic behind a load balancer.</p>
@@ -954,6 +1022,9 @@ namespace Model
9541022
AutoRollbackConfiguration m_autoRollbackConfiguration;
9551023
bool m_autoRollbackConfigurationHasBeenSet;
9561024

1025+
OutdatedInstancesStrategy m_outdatedInstancesStrategy;
1026+
bool m_outdatedInstancesStrategyHasBeenSet;
1027+
9571028
DeploymentStyle m_deploymentStyle;
9581029
bool m_deploymentStyleHasBeenSet;
9591030

aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/DeploymentCreator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace Model
2020
autoscaling,
2121
codeDeployRollback,
2222
CodeDeploy,
23+
CodeDeployAutoUpdate,
2324
CloudFormation,
2425
CloudFormationRollback
2526
};

aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/DeploymentGroupInfo.h

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <aws/codedeploy/model/AlarmConfiguration.h>
1212
#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
1313
#include <aws/codedeploy/model/DeploymentStyle.h>
14+
#include <aws/codedeploy/model/OutdatedInstancesStrategy.h>
1415
#include <aws/codedeploy/model/BlueGreenDeploymentConfiguration.h>
1516
#include <aws/codedeploy/model/LoadBalancerInfo.h>
1617
#include <aws/codedeploy/model/LastDeploymentInfo.h>
@@ -612,6 +613,73 @@ namespace Model
612613
inline DeploymentGroupInfo& WithDeploymentStyle(DeploymentStyle&& value) { SetDeploymentStyle(std::move(value)); return *this;}
613614

614615

616+
/**
617+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
618+
* do not receive the deployed application revision.</p> <p>If this option is set
619+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
620+
* 'auto-update outdated instances' deployments to apply the deployed application
621+
* revision to the new EC2 instances.</p> <p>If this option is set to
622+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
623+
* EC2 instances. This may result in instances having different revisions.</p>
624+
*/
625+
inline const OutdatedInstancesStrategy& GetOutdatedInstancesStrategy() const{ return m_outdatedInstancesStrategy; }
626+
627+
/**
628+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
629+
* do not receive the deployed application revision.</p> <p>If this option is set
630+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
631+
* 'auto-update outdated instances' deployments to apply the deployed application
632+
* revision to the new EC2 instances.</p> <p>If this option is set to
633+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
634+
* EC2 instances. This may result in instances having different revisions.</p>
635+
*/
636+
inline bool OutdatedInstancesStrategyHasBeenSet() const { return m_outdatedInstancesStrategyHasBeenSet; }
637+
638+
/**
639+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
640+
* do not receive the deployed application revision.</p> <p>If this option is set
641+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
642+
* 'auto-update outdated instances' deployments to apply the deployed application
643+
* revision to the new EC2 instances.</p> <p>If this option is set to
644+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
645+
* EC2 instances. This may result in instances having different revisions.</p>
646+
*/
647+
inline void SetOutdatedInstancesStrategy(const OutdatedInstancesStrategy& value) { m_outdatedInstancesStrategyHasBeenSet = true; m_outdatedInstancesStrategy = value; }
648+
649+
/**
650+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
651+
* do not receive the deployed application revision.</p> <p>If this option is set
652+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
653+
* 'auto-update outdated instances' deployments to apply the deployed application
654+
* revision to the new EC2 instances.</p> <p>If this option is set to
655+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
656+
* EC2 instances. This may result in instances having different revisions.</p>
657+
*/
658+
inline void SetOutdatedInstancesStrategy(OutdatedInstancesStrategy&& value) { m_outdatedInstancesStrategyHasBeenSet = true; m_outdatedInstancesStrategy = std::move(value); }
659+
660+
/**
661+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
662+
* do not receive the deployed application revision.</p> <p>If this option is set
663+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
664+
* 'auto-update outdated instances' deployments to apply the deployed application
665+
* revision to the new EC2 instances.</p> <p>If this option is set to
666+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
667+
* EC2 instances. This may result in instances having different revisions.</p>
668+
*/
669+
inline DeploymentGroupInfo& WithOutdatedInstancesStrategy(const OutdatedInstancesStrategy& value) { SetOutdatedInstancesStrategy(value); return *this;}
670+
671+
/**
672+
* <p>Indicates what happens when new EC2 instances are launched mid-deployment and
673+
* do not receive the deployed application revision.</p> <p>If this option is set
674+
* to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more
675+
* 'auto-update outdated instances' deployments to apply the deployed application
676+
* revision to the new EC2 instances.</p> <p>If this option is set to
677+
* <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new
678+
* EC2 instances. This may result in instances having different revisions.</p>
679+
*/
680+
inline DeploymentGroupInfo& WithOutdatedInstancesStrategy(OutdatedInstancesStrategy&& value) { SetOutdatedInstancesStrategy(std::move(value)); return *this;}
681+
682+
615683
/**
616684
* <p>Information about blue/green deployment options for a deployment group.</p>
617685
*/
@@ -976,6 +1044,9 @@ namespace Model
9761044
DeploymentStyle m_deploymentStyle;
9771045
bool m_deploymentStyleHasBeenSet;
9781046

1047+
OutdatedInstancesStrategy m_outdatedInstancesStrategy;
1048+
bool m_outdatedInstancesStrategyHasBeenSet;
1049+
9791050
BlueGreenDeploymentConfiguration m_blueGreenDeploymentConfiguration;
9801051
bool m_blueGreenDeploymentConfigurationHasBeenSet;
9811052

aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/DeploymentInfo.h

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <aws/codedeploy/model/FileExistsBehavior.h>
2222
#include <aws/core/utils/memory/stl/AWSVector.h>
2323
#include <aws/codedeploy/model/ComputePlatform.h>
24+
#include <aws/codedeploy/model/RelatedDeployments.h>
2425
#include <utility>
2526

2627
namespace Aws
@@ -540,7 +541,9 @@ namespace Model
540541
* <code>user</code>: A user created the deployment.</p> </li> <li> <p>
541542
* <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p>
542543
* </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the
543-
* deployment.</p> </li> </ul>
544+
* deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update
545+
* process created the deployment when it detected outdated EC2 instances.</p>
546+
* </li> </ul>
544547
*/
545548
inline const DeploymentCreator& GetCreator() const{ return m_creator; }
546549

@@ -549,7 +552,9 @@ namespace Model
549552
* <code>user</code>: A user created the deployment.</p> </li> <li> <p>
550553
* <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p>
551554
* </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the
552-
* deployment.</p> </li> </ul>
555+
* deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update
556+
* process created the deployment when it detected outdated EC2 instances.</p>
557+
* </li> </ul>
553558
*/
554559
inline bool CreatorHasBeenSet() const { return m_creatorHasBeenSet; }
555560

@@ -558,7 +563,9 @@ namespace Model
558563
* <code>user</code>: A user created the deployment.</p> </li> <li> <p>
559564
* <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p>
560565
* </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the
561-
* deployment.</p> </li> </ul>
566+
* deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update
567+
* process created the deployment when it detected outdated EC2 instances.</p>
568+
* </li> </ul>
562569
*/
563570
inline void SetCreator(const DeploymentCreator& value) { m_creatorHasBeenSet = true; m_creator = value; }
564571

@@ -567,7 +574,9 @@ namespace Model
567574
* <code>user</code>: A user created the deployment.</p> </li> <li> <p>
568575
* <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p>
569576
* </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the
570-
* deployment.</p> </li> </ul>
577+
* deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update
578+
* process created the deployment when it detected outdated EC2 instances.</p>
579+
* </li> </ul>
571580
*/
572581
inline void SetCreator(DeploymentCreator&& value) { m_creatorHasBeenSet = true; m_creator = std::move(value); }
573582

@@ -576,7 +585,9 @@ namespace Model
576585
* <code>user</code>: A user created the deployment.</p> </li> <li> <p>
577586
* <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p>
578587
* </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the
579-
* deployment.</p> </li> </ul>
588+
* deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update
589+
* process created the deployment when it detected outdated EC2 instances.</p>
590+
* </li> </ul>
580591
*/
581592
inline DeploymentInfo& WithCreator(const DeploymentCreator& value) { SetCreator(value); return *this;}
582593

@@ -585,7 +596,9 @@ namespace Model
585596
* <code>user</code>: A user created the deployment.</p> </li> <li> <p>
586597
* <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p>
587598
* </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the
588-
* deployment.</p> </li> </ul>
599+
* deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update
600+
* process created the deployment when it detected outdated EC2 instances.</p>
601+
* </li> </ul>
589602
*/
590603
inline DeploymentInfo& WithCreator(DeploymentCreator&& value) { SetCreator(std::move(value)); return *this;}
591604

@@ -1214,6 +1227,25 @@ namespace Model
12141227
*/
12151228
inline DeploymentInfo& WithExternalId(const char* value) { SetExternalId(value); return *this;}
12161229

1230+
1231+
1232+
inline const RelatedDeployments& GetRelatedDeployments() const{ return m_relatedDeployments; }
1233+
1234+
1235+
inline bool RelatedDeploymentsHasBeenSet() const { return m_relatedDeploymentsHasBeenSet; }
1236+
1237+
1238+
inline void SetRelatedDeployments(const RelatedDeployments& value) { m_relatedDeploymentsHasBeenSet = true; m_relatedDeployments = value; }
1239+
1240+
1241+
inline void SetRelatedDeployments(RelatedDeployments&& value) { m_relatedDeploymentsHasBeenSet = true; m_relatedDeployments = std::move(value); }
1242+
1243+
1244+
inline DeploymentInfo& WithRelatedDeployments(const RelatedDeployments& value) { SetRelatedDeployments(value); return *this;}
1245+
1246+
1247+
inline DeploymentInfo& WithRelatedDeployments(RelatedDeployments&& value) { SetRelatedDeployments(std::move(value)); return *this;}
1248+
12171249
private:
12181250

12191251
Aws::String m_applicationName;
@@ -1299,6 +1331,9 @@ namespace Model
12991331

13001332
Aws::String m_externalId;
13011333
bool m_externalIdHasBeenSet;
1334+
1335+
RelatedDeployments m_relatedDeployments;
1336+
bool m_relatedDeploymentsHasBeenSet;
13021337
};
13031338

13041339
} // namespace Model

aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/MinimumHealthyHosts.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,6 @@ namespace Model
3737
Aws::Utils::Json::JsonValue Jsonize() const;
3838

3939

40-
/**
41-
* <p>The minimum healthy instance value.</p>
42-
*/
43-
inline int GetValue() const{ return m_value; }
44-
45-
/**
46-
* <p>The minimum healthy instance value.</p>
47-
*/
48-
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49-
50-
/**
51-
* <p>The minimum healthy instance value.</p>
52-
*/
53-
inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
54-
55-
/**
56-
* <p>The minimum healthy instance value.</p>
57-
*/
58-
inline MinimumHealthyHosts& WithValue(int value) { SetValue(value); return *this;}
59-
60-
6140
/**
6241
* <p>The minimum healthy instance type:</p> <ul> <li> <p> <code>HOST_COUNT</code>:
6342
* The minimum number of healthy instances as an absolute value.</p> </li> <li> <p>
@@ -208,13 +187,34 @@ namespace Model
208187
*/
209188
inline MinimumHealthyHosts& WithType(MinimumHealthyHostsType&& value) { SetType(std::move(value)); return *this;}
210189

211-
private:
212190

213-
int m_value;
214-
bool m_valueHasBeenSet;
191+
/**
192+
* <p>The minimum healthy instance value.</p>
193+
*/
194+
inline int GetValue() const{ return m_value; }
195+
196+
/**
197+
* <p>The minimum healthy instance value.</p>
198+
*/
199+
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
200+
201+
/**
202+
* <p>The minimum healthy instance value.</p>
203+
*/
204+
inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
205+
206+
/**
207+
* <p>The minimum healthy instance value.</p>
208+
*/
209+
inline MinimumHealthyHosts& WithValue(int value) { SetValue(value); return *this;}
210+
211+
private:
215212

216213
MinimumHealthyHostsType m_type;
217214
bool m_typeHasBeenSet;
215+
216+
int m_value;
217+
bool m_valueHasBeenSet;
218218
};
219219

220220
} // namespace Model
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace CodeDeploy
13+
{
14+
namespace Model
15+
{
16+
enum class OutdatedInstancesStrategy
17+
{
18+
NOT_SET,
19+
UPDATE,
20+
IGNORE
21+
};
22+
23+
namespace OutdatedInstancesStrategyMapper
24+
{
25+
AWS_CODEDEPLOY_API OutdatedInstancesStrategy GetOutdatedInstancesStrategyForName(const Aws::String& name);
26+
27+
AWS_CODEDEPLOY_API Aws::String GetNameForOutdatedInstancesStrategy(OutdatedInstancesStrategy value);
28+
} // namespace OutdatedInstancesStrategyMapper
29+
} // namespace Model
30+
} // namespace CodeDeploy
31+
} // namespace Aws

0 commit comments

Comments
 (0)