@cdklabs/cdk-ecs-codedeploy 0.0.461 → 0.0.462

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +49 -11
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/enums.js +6 -0
  8. package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/errors.js +13 -0
  9. package/node_modules/@aws-sdk/client-codedeploy/dist-es/schemas/schemas_0.js +27 -11
  10. package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +2 -1
  11. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +5 -0
  12. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +5 -0
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +11 -0
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +11 -0
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +5 -0
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +5 -0
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +11 -0
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/enums.d.ts +14 -0
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/errors.d.ts +16 -0
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +64 -1
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-types/schemas/schemas_0.d.ts +2 -0
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/enums.d.ts +8 -0
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/errors.d.ts +8 -0
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/models_0.d.ts +9 -0
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  26. package/node_modules/@aws-sdk/client-codedeploy/package.json +5 -5
  27. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
  31. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
  32. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  36. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
  37. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  38. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  39. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  40. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  41. package/node_modules/@aws-sdk/core/package.json +3 -3
  42. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  43. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  44. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  45. package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
  46. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  47. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  48. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  49. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  55. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
  56. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +2 -1
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +2 -1
  60. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  61. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  62. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
  63. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
  64. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  65. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
  66. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
  67. package/node_modules/@aws-sdk/types/package.json +1 -1
  68. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -37
  69. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +15 -2
  70. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -0
  71. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -0
  72. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +49 -34
  73. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
  74. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +16 -2
  75. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +10 -0
  76. package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
  77. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +4 -1
  78. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  79. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
  80. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +5 -5
  81. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  82. package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  83. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
  84. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  85. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  86. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  87. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  88. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
  89. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  90. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  91. package/node_modules/@smithy/core/package.json +1 -1
  92. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +48 -6
  93. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +9 -1
  94. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +20 -2
  95. package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  96. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +16 -3
  97. package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  98. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +6 -1
  99. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  100. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +6 -1
  101. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  102. package/package.json +2 -2
  103. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
  104. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -20
  105. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
  106. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +0 -160
  107. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +0 -193
  108. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
  109. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
  110. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +0 -200
  111. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +0 -519
  112. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -18
  113. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -46
  114. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -121
  115. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +0 -41
  116. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +0 -89
  117. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
  118. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -15
  119. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
  120. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -14
  121. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -29
  122. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -51
  123. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -13
  124. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -30
  125. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -60
  126. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
  127. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -21
  128. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -15
  129. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -11
  130. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +0 -22
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
  139. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
  140. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
  141. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
  142. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
  143. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
  144. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
@@ -203,6 +203,11 @@ declare const GetDeploymentGroupCommand_base: {
203
203
  * // clusterName: "STRING_VALUE",
204
204
  * // },
205
205
  * // ],
206
+ * // ec2DeploymentOptions: { // EC2DeploymentOptions
207
+ * // autoScalingGroupProcessesToSuspend: [ // AutoScalingGroupProcessesToSuspendList
208
+ * // "Terminate" || "AZRebalance" || "InstanceRefresh" || "ScheduledActions",
209
+ * // ],
210
+ * // },
206
211
  * // terminationHookEnabled: true || false,
207
212
  * // },
208
213
  * // };
@@ -157,6 +157,11 @@ declare const UpdateDeploymentGroupCommand_base: {
157
157
  * ],
158
158
  * ],
159
159
  * },
160
+ * ec2DeploymentOptions: { // EC2DeploymentOptions
161
+ * autoScalingGroupProcessesToSuspend: [ // AutoScalingGroupProcessesToSuspendList
162
+ * "Terminate" || "AZRebalance" || "InstanceRefresh" || "ScheduledActions",
163
+ * ],
164
+ * },
160
165
  * terminationHookEnabled: true || false,
161
166
  * };
162
167
  * const command = new UpdateDeploymentGroupCommand(input);
@@ -238,6 +243,12 @@ declare const UpdateDeploymentGroupCommand_base: {
238
243
  * <p>The Auto Scaling group was specified in an invalid format or does not
239
244
  * exist.</p>
240
245
  *
246
+ * @throws {@link InvalidAutoScalingGroupProcessToSuspendException} (client fault)
247
+ * <p>The <code>autoScalingGroupProcessesToSuspend</code> list in
248
+ * <code>ec2DeploymentOptions</code> contains a process that is not valid. Valid values
249
+ * are <code>Terminate</code>, <code>AZRebalance</code>, <code>InstanceRefresh</code>,
250
+ * and <code>ScheduledActions</code>. Process names are case sensitive.</p>
251
+ *
241
252
  * @throws {@link InvalidBlueGreenDeploymentConfigurationException} (client fault)
242
253
  * <p>The configuration for the blue/green deployment group was provided in an invalid
243
254
  * format. For information about deployment configuration format, see <a>CreateDeploymentConfig</a>.</p>
@@ -37,6 +37,20 @@ export declare const AutoRollbackEvent: {
37
37
  * @public
38
38
  */
39
39
  export type AutoRollbackEvent = (typeof AutoRollbackEvent)[keyof typeof AutoRollbackEvent];
40
+ /**
41
+ * @public
42
+ * @enum
43
+ */
44
+ export declare const AutoScalingGroupProcess: {
45
+ readonly AZ_REBALANCE: "AZRebalance";
46
+ readonly INSTANCE_REFRESH: "InstanceRefresh";
47
+ readonly SCHEDULED_ACTIONS: "ScheduledActions";
48
+ readonly TERMINATE: "Terminate";
49
+ };
50
+ /**
51
+ * @public
52
+ */
53
+ export type AutoScalingGroupProcess = (typeof AutoScalingGroupProcess)[keyof typeof AutoScalingGroupProcess];
40
54
  /**
41
55
  * @public
42
56
  * @enum
@@ -616,6 +616,22 @@ export declare class InvalidAutoScalingGroupException extends __BaseException {
616
616
  */
617
617
  constructor(opts: __ExceptionOptionType<InvalidAutoScalingGroupException, __BaseException>);
618
618
  }
619
+ /**
620
+ * <p>The <code>autoScalingGroupProcessesToSuspend</code> list in
621
+ * <code>ec2DeploymentOptions</code> contains a process that is not valid. Valid values
622
+ * are <code>Terminate</code>, <code>AZRebalance</code>, <code>InstanceRefresh</code>,
623
+ * and <code>ScheduledActions</code>. Process names are case sensitive.</p>
624
+ * @public
625
+ */
626
+ export declare class InvalidAutoScalingGroupProcessToSuspendException extends __BaseException {
627
+ static readonly shapeId: string;
628
+ readonly name: "InvalidAutoScalingGroupProcessToSuspendException";
629
+ readonly $fault: "client";
630
+ /**
631
+ * @internal
632
+ */
633
+ constructor(opts: __ExceptionOptionType<InvalidAutoScalingGroupProcessToSuspendException, __BaseException>);
634
+ }
619
635
  /**
620
636
  * <p>The deployment configuration name was specified in an invalid format.</p>
621
637
  * @public
@@ -1,4 +1,4 @@
1
- import type { _InstanceType, ApplicationRevisionSortBy, AutoRollbackEvent, BundleType, ComputePlatform, DeploymentCreator, DeploymentMode, DeploymentOption, DeploymentReadyAction, DeploymentStatus, DeploymentTargetType, DeploymentType, DeploymentWaitType, EC2TagFilterType, ErrorCode, FileExistsBehavior, GreenFleetProvisioningAction, InstanceAction, InstanceStatus, LifecycleErrorCode, LifecycleEventStatus, ListStateFilterAction, MinimumHealthyHostsPerZoneType, MinimumHealthyHostsType, OutdatedInstancesStrategy, RegistrationStatus, RevisionLocationType, SortOrder, StopStatus, TagFilterType, TargetFilterName, TargetLabel, TargetStatus, TrafficRoutingType, TriggerEventType } from "./enums";
1
+ import type { _InstanceType, ApplicationRevisionSortBy, AutoRollbackEvent, AutoScalingGroupProcess, BundleType, ComputePlatform, DeploymentCreator, DeploymentMode, DeploymentOption, DeploymentReadyAction, DeploymentStatus, DeploymentTargetType, DeploymentType, DeploymentWaitType, EC2TagFilterType, ErrorCode, FileExistsBehavior, GreenFleetProvisioningAction, InstanceAction, InstanceStatus, LifecycleErrorCode, LifecycleEventStatus, ListStateFilterAction, MinimumHealthyHostsPerZoneType, MinimumHealthyHostsType, OutdatedInstancesStrategy, RegistrationStatus, RevisionLocationType, SortOrder, StopStatus, TagFilterType, TargetFilterName, TargetLabel, TargetStatus, TrafficRoutingType, TriggerEventType } from "./enums";
2
2
  /**
3
3
  * <p>Information about a tag.</p>
4
4
  * @public
@@ -605,6 +605,39 @@ export interface DeploymentStyle {
605
605
  */
606
606
  deploymentOption?: DeploymentOption | undefined;
607
607
  }
608
+ /**
609
+ * <p>Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups
610
+ * during a deployment.</p>
611
+ * @public
612
+ */
613
+ export interface EC2DeploymentOptions {
614
+ /**
615
+ * <p>The Amazon EC2 Auto Scaling processes to suspend during the deployment.
616
+ * CodeDeploy suspends these processes before it deploys to instances in an
617
+ * Auto Scaling group, and resumes them when the deployment succeeds, fails, or is
618
+ * stopped. Valid values are <code>Terminate</code>, <code>AZRebalance</code>,
619
+ * <code>InstanceRefresh</code>, and <code>ScheduledActions</code>.</p>
620
+ * <p>This parameter applies only to in-place deployments on the EC2/On-premises compute
621
+ * platform. If the list is empty, or if the deployment does not target instances in an
622
+ * Auto Scaling group, no processes are suspended.</p>
623
+ * <p>The service role for the deployment group must have permission to call
624
+ * <code>autoscaling:SuspendProcesses</code> and <code>autoscaling:ResumeProcesses</code>
625
+ * on the target Auto Scaling groups. If the processes cannot be suspended, the
626
+ * deployment fails before any instance is updated.</p>
627
+ * <p>If you suspend <code>ScheduledActions</code>, scheduled actions with a start time
628
+ * during the deployment are skipped and do not run after the process resumes.</p>
629
+ * <note>
630
+ * <p>If CodeDeploy cannot resume the processes, the deployment fails and the
631
+ * processes stay suspended until you resume them with the Auto Scaling
632
+ * <code>ResumeProcesses</code> action. While <code>Terminate</code> is suspended,
633
+ * Auto Scaling does not replace unhealthy instances. If you suspend
634
+ * <code>Terminate</code>, configure a trigger that notifies you when a deployment
635
+ * fails.</p>
636
+ * </note>
637
+ * @public
638
+ */
639
+ autoScalingGroupProcessesToSuspend?: AutoScalingGroupProcess[] | undefined;
640
+ }
608
641
  /**
609
642
  * <p>Information about an EC2 tag filter.</p>
610
643
  * @public
@@ -1021,6 +1054,12 @@ export interface DeploymentGroupInfo {
1021
1054
  * @public
1022
1055
  */
1023
1056
  ecsServices?: ECSService[] | undefined;
1057
+ /**
1058
+ * <p>Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups
1059
+ * during a deployment.</p>
1060
+ * @public
1061
+ */
1062
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
1024
1063
  /**
1025
1064
  * <p>Indicates whether the deployment group was configured to have CodeDeploy
1026
1065
  * install a termination hook into an Auto Scaling group.</p>
@@ -1701,6 +1740,12 @@ export interface DeploymentInfo {
1701
1740
  * @public
1702
1741
  */
1703
1742
  overrideAlarmConfiguration?: AlarmConfiguration | undefined;
1743
+ /**
1744
+ * <p>Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups
1745
+ * during a deployment.</p>
1746
+ * @public
1747
+ */
1748
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
1704
1749
  }
1705
1750
  /**
1706
1751
  * <p> Represents the output of a <code>BatchGetDeployments</code> operation. </p>
@@ -2393,6 +2438,12 @@ export interface CreateDeploymentInput {
2393
2438
  * @public
2394
2439
  */
2395
2440
  overrideAlarmConfiguration?: AlarmConfiguration | undefined;
2441
+ /**
2442
+ * <p>Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups
2443
+ * during a deployment.</p>
2444
+ * @public
2445
+ */
2446
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
2396
2447
  }
2397
2448
  /**
2398
2449
  * <p> Represents the output of a <code>CreateDeployment</code> operation. </p>
@@ -2786,6 +2837,12 @@ export interface CreateDeploymentGroupInput {
2786
2837
  * @public
2787
2838
  */
2788
2839
  tags?: Tag[] | undefined;
2840
+ /**
2841
+ * <p>Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups
2842
+ * during a deployment.</p>
2843
+ * @public
2844
+ */
2845
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
2789
2846
  /**
2790
2847
  * <p>This parameter only applies if you are using CodeDeploy with Amazon EC2 Auto Scaling. For more information, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html">Integrating
2791
2848
  * CodeDeploy with Amazon EC2 Auto Scaling</a> in the <i>CodeDeploy User Guide</i>.</p>
@@ -4082,6 +4139,12 @@ export interface UpdateDeploymentGroupInput {
4082
4139
  * @public
4083
4140
  */
4084
4141
  onPremisesTagSet?: OnPremisesTagSet | undefined;
4142
+ /**
4143
+ * <p>Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups
4144
+ * during a deployment.</p>
4145
+ * @public
4146
+ */
4147
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
4085
4148
  /**
4086
4149
  * <p>This parameter only applies if you are using CodeDeploy with Amazon EC2 Auto Scaling. For more information, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/integrations-aws-auto-scaling.html">Integrating
4087
4150
  * CodeDeploy with Amazon EC2 Auto Scaling</a> in the <i>CodeDeploy User Guide</i>.</p>
@@ -46,6 +46,7 @@ export declare var InvalidApplicationNameException$: StaticErrorSchema;
46
46
  export declare var InvalidArnException$: StaticErrorSchema;
47
47
  export declare var InvalidAutoRollbackConfigException$: StaticErrorSchema;
48
48
  export declare var InvalidAutoScalingGroupException$: StaticErrorSchema;
49
+ export declare var InvalidAutoScalingGroupProcessToSuspendException$: StaticErrorSchema;
49
50
  export declare var InvalidBlueGreenDeploymentConfigurationException$: StaticErrorSchema;
50
51
  export declare var InvalidBucketNameFilterException$: StaticErrorSchema;
51
52
  export declare var InvalidComputePlatformException$: StaticErrorSchema;
@@ -167,6 +168,7 @@ export declare var DeploymentStyle$: StaticStructureSchema;
167
168
  export declare var DeploymentTarget$: StaticStructureSchema;
168
169
  export declare var DeregisterOnPremisesInstanceInput$: StaticStructureSchema;
169
170
  export declare var Diagnostics$: StaticStructureSchema;
171
+ export declare var EC2DeploymentOptions$: StaticStructureSchema;
170
172
  export declare var EC2TagFilter$: StaticStructureSchema;
171
173
  export declare var EC2TagSet$: StaticStructureSchema;
172
174
  export declare var ECSService$: StaticStructureSchema;
@@ -17,6 +17,14 @@ export declare const AutoRollbackEvent: {
17
17
  readonly DEPLOYMENT_STOP_ON_REQUEST: "DEPLOYMENT_STOP_ON_REQUEST";
18
18
  };
19
19
  export type AutoRollbackEvent = (typeof AutoRollbackEvent)[keyof typeof AutoRollbackEvent];
20
+ export declare const AutoScalingGroupProcess: {
21
+ readonly AZ_REBALANCE: "AZRebalance";
22
+ readonly INSTANCE_REFRESH: "InstanceRefresh";
23
+ readonly SCHEDULED_ACTIONS: "ScheduledActions";
24
+ readonly TERMINATE: "Terminate";
25
+ };
26
+ export type AutoScalingGroupProcess =
27
+ (typeof AutoScalingGroupProcess)[keyof typeof AutoScalingGroupProcess];
20
28
  export declare const RevisionLocationType: {
21
29
  readonly AppSpecContent: "AppSpecContent";
22
30
  readonly GitHub: "GitHub";
@@ -274,6 +274,14 @@ export declare class InvalidAutoScalingGroupException extends __BaseException {
274
274
  readonly $fault: "client";
275
275
  constructor(opts: __ExceptionOptionType<InvalidAutoScalingGroupException, __BaseException>);
276
276
  }
277
+ export declare class InvalidAutoScalingGroupProcessToSuspendException extends __BaseException {
278
+ static readonly shapeId: string;
279
+ readonly name: "InvalidAutoScalingGroupProcessToSuspendException";
280
+ readonly $fault: "client";
281
+ constructor(
282
+ opts: __ExceptionOptionType<InvalidAutoScalingGroupProcessToSuspendException, __BaseException>,
283
+ );
284
+ }
277
285
  export declare class InvalidDeploymentConfigNameException extends __BaseException {
278
286
  static readonly shapeId: string;
279
287
  readonly name: "InvalidDeploymentConfigNameException";
@@ -2,6 +2,7 @@ import {
2
2
  _InstanceType,
3
3
  ApplicationRevisionSortBy,
4
4
  AutoRollbackEvent,
5
+ AutoScalingGroupProcess,
5
6
  BundleType,
6
7
  ComputePlatform,
7
8
  DeploymentCreator,
@@ -144,6 +145,9 @@ export interface DeploymentStyle {
144
145
  deploymentType?: DeploymentType | undefined;
145
146
  deploymentOption?: DeploymentOption | undefined;
146
147
  }
148
+ export interface EC2DeploymentOptions {
149
+ autoScalingGroupProcessesToSuspend?: AutoScalingGroupProcess[] | undefined;
150
+ }
147
151
  export interface EC2TagFilter {
148
152
  Key?: string | undefined;
149
153
  Value?: string | undefined;
@@ -217,6 +221,7 @@ export interface DeploymentGroupInfo {
217
221
  onPremisesTagSet?: OnPremisesTagSet | undefined;
218
222
  computePlatform?: ComputePlatform | undefined;
219
223
  ecsServices?: ECSService[] | undefined;
224
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
220
225
  terminationHookEnabled?: boolean | undefined;
221
226
  }
222
227
  export interface BatchGetDeploymentGroupsOutput {
@@ -313,6 +318,7 @@ export interface DeploymentInfo {
313
318
  externalId?: string | undefined;
314
319
  relatedDeployments?: RelatedDeployments | undefined;
315
320
  overrideAlarmConfiguration?: AlarmConfiguration | undefined;
321
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
316
322
  }
317
323
  export interface BatchGetDeploymentsOutput {
318
324
  deploymentsInfo?: DeploymentInfo[] | undefined;
@@ -424,6 +430,7 @@ export interface CreateDeploymentInput {
424
430
  fileExistsBehavior?: FileExistsBehavior | undefined;
425
431
  deploymentMode?: DeploymentMode | undefined;
426
432
  overrideAlarmConfiguration?: AlarmConfiguration | undefined;
433
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
427
434
  }
428
435
  export interface CreateDeploymentOutput {
429
436
  deploymentId?: string | undefined;
@@ -483,6 +490,7 @@ export interface CreateDeploymentGroupInput {
483
490
  ecsServices?: ECSService[] | undefined;
484
491
  onPremisesTagSet?: OnPremisesTagSet | undefined;
485
492
  tags?: Tag[] | undefined;
493
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
486
494
  terminationHookEnabled?: boolean | undefined;
487
495
  }
488
496
  export interface CreateDeploymentGroupOutput {
@@ -738,6 +746,7 @@ export interface UpdateDeploymentGroupInput {
738
746
  ec2TagSet?: EC2TagSet | undefined;
739
747
  ecsServices?: ECSService[] | undefined;
740
748
  onPremisesTagSet?: OnPremisesTagSet | undefined;
749
+ ec2DeploymentOptions?: EC2DeploymentOptions | undefined;
741
750
  terminationHookEnabled?: boolean | undefined;
742
751
  }
743
752
  export interface UpdateDeploymentGroupOutput {
@@ -46,6 +46,7 @@ export declare var InvalidApplicationNameException$: StaticErrorSchema;
46
46
  export declare var InvalidArnException$: StaticErrorSchema;
47
47
  export declare var InvalidAutoRollbackConfigException$: StaticErrorSchema;
48
48
  export declare var InvalidAutoScalingGroupException$: StaticErrorSchema;
49
+ export declare var InvalidAutoScalingGroupProcessToSuspendException$: StaticErrorSchema;
49
50
  export declare var InvalidBlueGreenDeploymentConfigurationException$: StaticErrorSchema;
50
51
  export declare var InvalidBucketNameFilterException$: StaticErrorSchema;
51
52
  export declare var InvalidComputePlatformException$: StaticErrorSchema;
@@ -162,6 +163,7 @@ export declare var DeploymentStyle$: StaticStructureSchema;
162
163
  export declare var DeploymentTarget$: StaticStructureSchema;
163
164
  export declare var DeregisterOnPremisesInstanceInput$: StaticStructureSchema;
164
165
  export declare var Diagnostics$: StaticStructureSchema;
166
+ export declare var EC2DeploymentOptions$: StaticStructureSchema;
165
167
  export declare var EC2TagFilter$: StaticStructureSchema;
166
168
  export declare var EC2TagSet$: StaticStructureSchema;
167
169
  export declare var ECSService$: StaticStructureSchema;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codedeploy",
3
- "version": "3.1152.0",
3
+ "version": "3.1156.0",
4
4
  "description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-codedeploy",
6
6
  "license": "Apache-2.0",
@@ -48,10 +48,10 @@
48
48
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.978.3",
52
- "@aws-sdk/credential-provider-node": "^3.972.86",
53
- "@aws-sdk/types": "^3.974.6",
54
- "@smithy/core": "^3.35.2",
51
+ "@aws-sdk/core": "^3.978.5",
52
+ "@aws-sdk/credential-provider-node": "^3.972.88",
53
+ "@aws-sdk/types": "^3.975.0",
54
+ "@smithy/core": "^3.36.1",
55
55
  "@smithy/fetch-http-handler": "^5.8.0",
56
56
  "@smithy/node-http-handler": "^4.12.1",
57
57
  "@smithy/types": "^4.19.0",