Skip to content

Commit ec3ed43

Browse files
This release removes hookDetails for the Amazon ECS native blue/green deployments.
1 parent 08b1637 commit ec3ed43

File tree

13 files changed

+914
-932
lines changed

13 files changed

+914
-932
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.604
1+
1.11.605

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,16 @@ namespace ECS
204204
* ECS services</a> in the <i>Amazon Elastic Container Service Developer
205205
* Guide</i>.</p> </li> </ul> <p>The deployment controller is the mechanism that
206206
* determines how tasks are deployed for your service. The valid options are:</p>
207-
* <ul> <li> <p>ECS</p> <p>When you create a service which uses the
207+
* <ul> <li> <p>ECS</p> <p> When you create a service which uses the
208208
* <code>ECS</code> deployment controller, you can choose between the following
209-
* deployment strategies:</p> <ul> <li> <p> <code>ROLLING</code>: When you create a
210-
* service which uses the <i>rolling update</i> (<code>ROLLING</code>) deployment
211-
* strategy, the Amazon ECS service scheduler replaces the currently running tasks
212-
* with new tasks. The number of tasks that Amazon ECS adds or removes from the
213-
* service during a rolling update is controlled by the service deployment
214-
* configuration. For more information, see <a
209+
* deployment strategies (which you can set in the “<code>strategy</code>” field in
210+
* “<code>deploymentConfiguration</code>”): :</p> <ul> <li> <p>
211+
* <code>ROLLING</code>: When you create a service which uses the <i>rolling
212+
* update</i> (<code>ROLLING</code>) deployment strategy, the Amazon ECS service
213+
* scheduler replaces the currently running tasks with new tasks. The number of
214+
* tasks that Amazon ECS adds or removes from the service during a rolling update
215+
* is controlled by the service deployment configuration. For more information, see
216+
* <a
215217
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html">Deploy
216218
* Amazon ECS services by replacing tasks</a> in the <i>Amazon Elastic Container
217219
* Service Developer Guide</i>.</p> <p>Rolling update deployments are best suited

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/AdvancedConfiguration.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace Model
4545
///@{
4646
/**
4747
* <p>The Amazon Resource Name (ARN) of the alternate target group for Amazon ECS
48-
* blue/green deployments. </p>
48+
* blue/green deployments.</p>
4949
*/
5050
inline const Aws::String& GetAlternateTargetGroupArn() const { return m_alternateTargetGroupArn; }
5151
inline bool AlternateTargetGroupArnHasBeenSet() const { return m_alternateTargetGroupArnHasBeenSet; }
@@ -57,8 +57,9 @@ namespace Model
5757

5858
///@{
5959
/**
60-
* <p>The Amazon Resource Name (ARN) that identifies the production listener rule
61-
* for routing production traffic.</p>
60+
* <p>The Amazon Resource Name (ARN) that that identifies the production listener
61+
* rule (in the case of an Application Load Balancer) or listener (in the case for
62+
* an Network Load Balancer) for routing production traffic.</p>
6263
*/
6364
inline const Aws::String& GetProductionListenerRule() const { return m_productionListenerRule; }
6465
inline bool ProductionListenerRuleHasBeenSet() const { return m_productionListenerRuleHasBeenSet; }
@@ -70,8 +71,9 @@ namespace Model
7071

7172
///@{
7273
/**
73-
* <p>The Amazon Resource Name (ARN) that identifies the test listener rule or
74-
* listener for routing test traffic.</p>
74+
* <p>The Amazon Resource Name (ARN) that identifies ) that identifies the test
75+
* listener rule (in the case of an Application Load Balancer) or listener (in the
76+
* case for an Network Load Balancer) for routing test traffic.</p>
7577
*/
7678
inline const Aws::String& GetTestListenerRule() const { return m_testListenerRule; }
7779
inline bool TestListenerRuleHasBeenSet() const { return m_testListenerRuleHasBeenSet; }

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentAlarms.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ namespace Model
3131
* service deployment to failed. Set the rollback parameter to have Amazon ECS to
3232
* roll back your service to the last completed deployment after a failure.</p>
3333
* <p>You can only use the <code>DeploymentAlarms</code> method to detect failures
34-
* when the <code>DeploymentController</code> is set to <code>ECS</code> (rolling
35-
* update).</p> <p>For more information, see <a
34+
* when the <code>DeploymentController</code> is set to <code>ECS</code>.</p>
35+
* <p>For more information, see <a
3636
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html">Rolling
3737
* update</a> in the <i> <i>Amazon Elastic Container Service Developer Guide</i>
3838
* </i>.</p><p><h3>See Also:</h3> <a

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentConfiguration.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ namespace Model
206206

207207
///@{
208208
/**
209-
* <p>The duration when both blue and green service revisions are running
209+
* <p>The time period when both blue and green service revisions are running
210210
* simultaneously after the production traffic has shifted.</p> <p>You must provide
211211
* this parameter when you use the <code>BLUE_GREEN</code> deployment strategy.</p>
212212
*/
@@ -219,8 +219,7 @@ namespace Model
219219
///@{
220220
/**
221221
* <p>An array of deployment lifecycle hook objects to run custom logic at specific
222-
* stages of the deployment lifecycle. These hooks allow you to run custom logic at
223-
* key points during the deployment process.</p>
222+
* stages of the deployment lifecycle.</p>
224223
*/
225224
inline const Aws::Vector<DeploymentLifecycleHook>& GetLifecycleHooks() const { return m_lifecycleHooks; }
226225
inline bool LifecycleHooksHasBeenSet() const { return m_lifecycleHooksHasBeenSet; }

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/DeploymentLifecycleHook.h

Lines changed: 22 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <aws/ecs/ECS_EXPORTS.h>
88
#include <aws/core/utils/memory/stl/AWSString.h>
99
#include <aws/core/utils/memory/stl/AWSVector.h>
10-
#include <aws/core/utils/Document.h>
1110
#include <aws/ecs/model/DeploymentLifecycleHookStage.h>
1211
#include <utility>
1312

@@ -28,8 +27,11 @@ namespace Model
2827

2928
/**
3029
* <p>A deployment lifecycle hook runs custom logic at specific stages of the
31-
* deployment process. Currently, you can use Lambda functions as hook
32-
* targets.</p><p><h3>See Also:</h3> <a
30+
* deployment process. Currently, you can use Lambda functions as hook targets.</p>
31+
* <p>For more information, see <a
32+
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-lifecycle-hooks.html">Lifecycle
33+
* hooks for Amazon ECS service deployments</a> in the <i> Amazon Elastic Container
34+
* Service Developer Guide</i>.</p><p><h3>See Also:</h3> <a
3335
* href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeploymentLifecycleHook">AWS
3436
* API Reference</a></p>
3537
*/
@@ -62,8 +64,8 @@ namespace Model
6264
* permission to call Lambda functions on your behalf.</p> <p>For more information,
6365
* see <a
6466
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-permissions.html">Permissions
65-
* required for Lambda functions in Amazon ECS blue/green deployments</a> in the<i>
66-
* Amazon Elastic Container Service Developer Guide</i>.</p>
67+
* required for Lambda functions in Amazon ECS blue/green deployments</a> in the
68+
* <i> Amazon Elastic Container Service Developer Guide</i>.</p>
6769
*/
6870
inline const Aws::String& GetRoleArn() const { return m_roleArn; }
6971
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
@@ -76,36 +78,29 @@ namespace Model
7678
///@{
7779
/**
7880
* <p>The lifecycle stages at which to run the hook. Choose from these valid
79-
* values:</p> <ul> <li> <p>RECONCILE_SERVICE</p> <p>This stage only happens when
80-
* you start a new service deployment with more than 1 service revision in an
81-
* ACTIVE state.</p> <p>You can use a lifecycle hook for this stage.</p> </li> <li>
82-
* <p>PRE_SCALE_UP</p> <p>The green service revision has not started. The blue
83-
* service revision is handling 100% of the production traffic. There is no test
81+
* values:</p> <ul> <li> <p>RECONCILE_SERVICE</p> <p>The reconciliation stage that
82+
* only happens when you start a new service deployment with more than 1 service
83+
* revision in an ACTIVE state.</p> <p>You can use a lifecycle hook for this
84+
* stage.</p> </li> <li> <p>PRE_SCALE_UP</p> <p>The green service revision has not
85+
* started. The blue service revision is handling 100% of the production traffic.
86+
* There is no test traffic.</p> <p>You can use a lifecycle hook for this
87+
* stage.</p> </li> <li> <p>POST_SCALE_UP</p> <p>The green service revision has
88+
* started. The blue service revision is handling 100% of the production traffic.
89+
* There is no test traffic.</p> <p>You can use a lifecycle hook for this
90+
* stage.</p> </li> <li> <p>TEST_TRAFFIC_SHIFT</p> <p>The blue and green service
91+
* revisions are running. The blue service revision handles 100% of the production
92+
* traffic. The green service revision is migrating from 0% to 100% of test
8493
* traffic.</p> <p>You can use a lifecycle hook for this stage.</p> </li> <li>
85-
* <p>SCALE_UP</p> <p>The time when the green service revision scales up to 100%
86-
* and launches new tasks. The green service revision is not serving any traffic at
87-
* this point.</p> <p>You can't use a lifecycle hook for this stage.</p> </li> <li>
88-
* <p>POST_SCALE_UP</p> <p>The green service revision has started. The blue service
89-
* revision is handling 100% of the production traffic. There is no test
90-
* traffic.</p> <p>You can use a lifecycle hook for this stage.</p> </li> <li>
91-
* <p>TEST_TRAFFIC_SHIFT</p> <p>The blue and green service revisions are running.
92-
* The blue service revision handles 100% of the production traffic. The green
93-
* service revision is migrating from 0% to 100% of test traffic.</p> <p>You can
94-
* use a lifecycle hook for this stage.</p> </li> <li>
9594
* <p>POST_TEST_TRAFFIC_SHIFT</p> <p>The test traffic shift is complete. The green
9695
* service revision handles 100% of the test traffic.</p> <p>You can use a
9796
* lifecycle hook for this stage.</p> </li> <li> <p>PRODUCTION_TRAFFIC_SHIFT</p>
9897
* <p>Production traffic is shifting to the green service revision. The green
9998
* service revision is migrating from 0% to 100% of production traffic.</p> <p>You
10099
* can use a lifecycle hook for this stage.</p> </li> <li>
101100
* <p>POST_PRODUCTION_TRAFFIC_SHIFT</p> <p>The production traffic shift is
102-
* complete.</p> <p>Yes</p> </li> <li> <p>BAKE_TIME</p> <p>The duration when both
103-
* blue and green service revisions are running simultaneously.</p> <p>You can't
104-
* use a lifecycle hook for this stage.</p> </li> <li> <p>CLEAN_UP</p> <p>The blue
105-
* service revision has completely scaled down to 0 running tasks. The green
106-
* service revision is now the production service revision after this stage.</p>
107-
* <p>You can't use a lifecycle hook for this stage.</p> </li> </ul> <p>You must
108-
* provide this parameter when configuring a deployment lifecycle hook.</p>
101+
* complete.</p> <p>You can use a lifecycle hook for this stage.</p> </li> </ul>
102+
* <p>You must provide this parameter when configuring a deployment lifecycle
103+
* hook.</p>
109104
*/
110105
inline const Aws::Vector<DeploymentLifecycleHookStage>& GetLifecycleStages() const { return m_lifecycleStages; }
111106
inline bool LifecycleStagesHasBeenSet() const { return m_lifecycleStagesHasBeenSet; }
@@ -115,19 +110,6 @@ namespace Model
115110
DeploymentLifecycleHook& WithLifecycleStages(LifecycleStagesT&& value) { SetLifecycleStages(std::forward<LifecycleStagesT>(value)); return *this;}
116111
inline DeploymentLifecycleHook& AddLifecycleStages(DeploymentLifecycleHookStage value) { m_lifecycleStagesHasBeenSet = true; m_lifecycleStages.push_back(value); return *this; }
117112
///@}
118-
119-
///@{
120-
/**
121-
* <p>Optionally provide details about the hook. Use this field to pass custom
122-
* parameters to your hook target (such as a Lambda function).</p>
123-
*/
124-
inline Aws::Utils::DocumentView GetHookDetails() const { return m_hookDetails; }
125-
inline bool HookDetailsHasBeenSet() const { return m_hookDetailsHasBeenSet; }
126-
template<typename HookDetailsT = Aws::Utils::Document>
127-
void SetHookDetails(HookDetailsT&& value) { m_hookDetailsHasBeenSet = true; m_hookDetails = std::forward<HookDetailsT>(value); }
128-
template<typename HookDetailsT = Aws::Utils::Document>
129-
DeploymentLifecycleHook& WithHookDetails(HookDetailsT&& value) { SetHookDetails(std::forward<HookDetailsT>(value)); return *this;}
130-
///@}
131113
private:
132114

133115
Aws::String m_hookTargetArn;
@@ -138,9 +120,6 @@ namespace Model
138120

139121
Aws::Vector<DeploymentLifecycleHookStage> m_lifecycleStages;
140122
bool m_lifecycleStagesHasBeenSet = false;
141-
142-
Aws::Utils::Document m_hookDetails;
143-
bool m_hookDetailsHasBeenSet = false;
144123
};
145124

146125
} // namespace Model

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/ServiceConnectTestTrafficHeaderRules.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ namespace Model
2727
/**
2828
* <p>The HTTP header rules used to identify and route test traffic during Amazon
2929
* ECS blue/green deployments. These rules specify which HTTP headers to examine
30-
* and what values to match for routing decisions.</p><p><h3>See Also:</h3> <a
30+
* and what values to match for routing decisions.</p> <p>For more information, see
31+
* <a
32+
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-blue-green.html">Service
33+
* Connect for Amazon ECS blue/green deployments</a> in the <i> Amazon Elastic
34+
* Container Service Developer Guide</i>.</p><p><h3>See Also:</h3> <a
3135
* href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceConnectTestTrafficHeaderRules">AWS
3236
* API Reference</a></p>
3337
*/

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/ServiceConnectTestTrafficRules.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ namespace Model
2727
* <p>The test traffic routing configuration for Amazon ECS blue/green deployments.
2828
* This configuration allows you to define rules for routing specific traffic to
2929
* the new service revision during the deployment process, allowing for safe
30-
* testing before full production traffic shift.</p><p><h3>See Also:</h3> <a
30+
* testing before full production traffic shift.</p> <p>For more information, see
31+
* <a
32+
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-blue-green.html">Service
33+
* Connect for Amazon ECS blue/green deployments</a> in the <i> Amazon Elastic
34+
* Container Service Developer Guide</i>.</p><p><h3>See Also:</h3> <a
3135
* href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceConnectTestTrafficRules">AWS
3236
* API Reference</a></p>
3337
*/

generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/ServiceDeployment.h

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,29 @@ namespace Model
208208
///@{
209209
/**
210210
* <p>The current lifecycle stage of the deployment. Possible values include:</p>
211-
* <ul> <li> <p> <code>SCALE_UP_IN_PROGRESS</code> - Creating the new (green)
212-
* tasks</p> </li> <li> <p> <code>TEST_TRAFFIC_SHIFT_IN_PROGRESS</code> - Shifting
213-
* test traffic to the new (green) tasks</p> </li> <li> <p>
214-
* <code>PRODUCTION_TRAFFIC_SHIFT_IN_PROGRESS</code> - Shifting production traffic
215-
* to the new (green) tasks</p> </li> <li> <p> <code>BAKE_TIME_IN_PROGRESS</code> -
216-
* The duration when both blue and green service revisions are running
217-
* simultaneously after the production traffic has shifted</p> </li> <li> <p>
218-
* <code>CLEAN_UP_IN_PROGRESS</code> - Stopping the old (blue) tasks</p> </li>
219-
* </ul>
211+
* <ul> <li> <p>RECONCILE_SERVICE</p> <p>The reconciliation stage that only happens
212+
* when you start a new service deployment with more than 1 service revision in an
213+
* ACTIVE state.</p> </li> <li> <p>PRE_SCALE_UP</p> <p>The green service revision
214+
* has not started. The blue service revision is handling 100% of the production
215+
* traffic. There is no test traffic.</p> </li> <li> <p>SCALE_UP</p> <p>The stage
216+
* when the green service revision scales up to 100% and launches new tasks. The
217+
* green service revision is not serving any traffic at this point.</p> </li> <li>
218+
* <p>POST_SCALE_UP</p> <p>The green service revision has started. The blue service
219+
* revision is handling 100% of the production traffic. There is no test
220+
* traffic.</p> </li> <li> <p>TEST_TRAFFIC_SHIFT</p> <p>The blue and green service
221+
* revisions are running. The blue service revision handles 100% of the production
222+
* traffic. The green service revision is migrating from 0% to 100% of test
223+
* traffic.</p> </li> <li> <p>POST_TEST_TRAFFIC_SHIFT</p> <p>The test traffic shift
224+
* is complete. The green service revision handles 100% of the test traffic.</p>
225+
* </li> <li> <p>PRODUCTION_TRAFFIC_SHIFT</p> <p>Production traffic is shifting to
226+
* the green service revision. The green service revision is migrating from 0% to
227+
* 100% of production traffic.</p> </li> <li> <p>POST_PRODUCTION_TRAFFIC_SHIFT</p>
228+
* <p>The production traffic shift is complete.</p> </li> <li> <p>BAKE_TIME</p>
229+
* <p>The stage when both blue and green service revisions are running
230+
* simultaneously after the production traffic has shifted.</p> </li> <li>
231+
* <p>CLEAN_UP</p> <p>The stage when the blue service revision has completely
232+
* scaled down to 0 running tasks. The green service revision is now the production
233+
* service revision after this stage.</p> </li> </ul>
220234
*/
221235
inline ServiceDeploymentLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
222236
inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }

generated/src/aws-cpp-sdk-ecs/source/model/DeploymentLifecycleHook.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ DeploymentLifecycleHook& DeploymentLifecycleHook::operator =(JsonView jsonValue)
4444
}
4545
m_lifecycleStagesHasBeenSet = true;
4646
}
47-
if(jsonValue.ValueExists("hookDetails"))
48-
{
49-
m_hookDetails = jsonValue.GetObject("hookDetails");
50-
m_hookDetailsHasBeenSet = true;
51-
}
5247
return *this;
5348
}
5449

@@ -79,14 +74,6 @@ JsonValue DeploymentLifecycleHook::Jsonize() const
7974

8075
}
8176

82-
if(m_hookDetailsHasBeenSet)
83-
{
84-
if(!m_hookDetails.View().IsNull())
85-
{
86-
payload.WithObject("hookDetails", JsonValue(m_hookDetails.View()));
87-
}
88-
}
89-
9077
return payload;
9178
}
9279

0 commit comments

Comments
 (0)