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
0 commit comments