@aws-sdk/client-ecs 3.1047.0 → 3.1049.0

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 (54) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/endpoint/endpointResolver.js +2 -2
  3. package/dist-cjs/index.js +42 -13
  4. package/dist-cjs/models/errors.js +14 -14
  5. package/dist-cjs/runtimeConfig.browser.js +5 -5
  6. package/dist-cjs/runtimeConfig.js +2 -3
  7. package/dist-cjs/schemas/schemas_0.js +69 -28
  8. package/dist-es/ECS.js +2 -0
  9. package/dist-es/ECSClient.js +1 -4
  10. package/dist-es/commands/ContinueServiceDeploymentCommand.js +16 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/endpoint/endpointResolver.js +1 -1
  13. package/dist-es/models/enums.js +16 -0
  14. package/dist-es/models/errors.js +12 -12
  15. package/dist-es/runtimeConfig.browser.js +1 -1
  16. package/dist-es/runtimeConfig.js +1 -2
  17. package/dist-es/runtimeExtensions.js +1 -1
  18. package/dist-es/schemas/schemas_0.js +60 -20
  19. package/dist-types/ECS.d.ts +7 -0
  20. package/dist-types/ECSClient.d.ts +4 -4
  21. package/dist-types/commands/ContinueServiceDeploymentCommand.d.ts +130 -0
  22. package/dist-types/commands/CreateServiceCommand.d.ts +85 -2
  23. package/dist-types/commands/DeleteServiceCommand.d.ts +6 -1
  24. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -2
  25. package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +79 -1
  26. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +2 -1
  27. package/dist-types/commands/DescribeServicesCommand.d.ts +67 -1
  28. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateServiceCommand.d.ts +40 -2
  30. package/dist-types/commands/index.d.ts +1 -0
  31. package/dist-types/models/enums.d.ts +40 -0
  32. package/dist-types/models/errors.d.ts +12 -12
  33. package/dist-types/models/models_0.d.ts +101 -49
  34. package/dist-types/models/models_1.d.ts +46 -1
  35. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  36. package/dist-types/runtimeConfig.d.ts +1 -1
  37. package/dist-types/runtimeConfig.native.d.ts +1 -1
  38. package/dist-types/schemas/schemas_0.d.ts +5 -0
  39. package/dist-types/ts3.4/ECS.d.ts +17 -0
  40. package/dist-types/ts3.4/ECSClient.d.ts +7 -3
  41. package/dist-types/ts3.4/commands/ContinueServiceDeploymentCommand.d.ts +53 -0
  42. package/dist-types/ts3.4/commands/DeleteTaskDefinitionsCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/DescribeServiceRevisionsCommand.d.ts +2 -4
  44. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  46. package/dist-types/ts3.4/models/enums.d.ts +22 -0
  47. package/dist-types/ts3.4/models/errors.d.ts +10 -10
  48. package/dist-types/ts3.4/models/models_0.d.ts +28 -12
  49. package/dist-types/ts3.4/models/models_1.d.ts +13 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  53. package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  54. package/package.json +6 -14
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AcceleratorManufacturer, AcceleratorName, AcceleratorType, AccessType, AgentUpdateStatus, ApplicationProtocol, AssignPublicIp, AutoRepairActionsStatus, AvailabilityZoneRebalancing, BareMetal, BurstablePerformance, CapacityOptionType, CapacityProviderField, CapacityProviderStatus, CapacityProviderType, CapacityProviderUpdateStatus, CapacityReservationPreference, ClusterField, ClusterSettingName, Compatibility, ContainerCondition, ContainerInstanceField, ContainerInstanceStatus, CPUArchitecture, CpuManufacturer, DaemonDeploymentRollbackMonitorsStatus, DaemonDeploymentStatus, DaemonPropagateTags, DaemonStatus, DaemonTaskDefinitionRevisionFilter, DaemonTaskDefinitionStatus, DaemonTaskDefinitionStatusFilter, DeploymentControllerType, DeploymentLifecycleHookStage, DeploymentRolloutState, DeploymentStrategy, DesiredStatus, DeviceCgroupPermission, EBSResourceType, EFSAuthorizationConfigIAM, EFSTransitEncryption, EnvironmentFileType, ExecuteCommandLogging, ExpressGatewayServiceInclude, ExpressGatewayServiceScalingMetric, ExpressGatewayServiceStatusCode, FirelensConfigurationType, InstanceGeneration, InstanceHealthCheckState, InstanceHealthCheckType, IpcMode, LaunchType, LocalStorage, LocalStorageType, LogDriver, ManagedAgentName, ManagedDraining, ManagedInstancesMonitoringOptions, ManagedResourceStatus, ManagedScalingStatus, ManagedTerminationProtection, NetworkMode, OSFamily, PidMode, PlacementConstraintType, PlacementStrategyType, PlatformDeviceType, PropagateMITags, PropagateTags, ProxyConfigurationType, ResourceManagementType, ResourceType, ScaleUnit, SchedulingStrategy, Scope, ServiceConnectAccessLoggingFormat, ServiceConnectIncludeQueryParameters, ServiceDeploymentLifecycleStage, ServiceDeploymentRollbackMonitorsStatus, ServiceDeploymentStatus, ServiceField, SettingName, SettingType, SortOrder, StabilityStatus, StopServiceDeploymentStopType, TargetType, TaskDefinitionFamilyStatus, TaskDefinitionField, TaskDefinitionPlacementConstraintType, TaskDefinitionStatus, TaskFilesystemType, TransportProtocol, UlimitName, VersionConsistency } from "./enums";
2
+ import type { AcceleratorManufacturer, AcceleratorName, AcceleratorType, AccessType, AgentUpdateStatus, ApplicationProtocol, AssignPublicIp, AutoRepairActionsStatus, AvailabilityZoneRebalancing, BareMetal, BurstablePerformance, CapacityOptionType, CapacityProviderField, CapacityProviderStatus, CapacityProviderType, CapacityProviderUpdateStatus, CapacityReservationPreference, ClusterField, ClusterSettingName, Compatibility, ContainerCondition, ContainerInstanceField, ContainerInstanceStatus, CPUArchitecture, CpuManufacturer, DaemonDeploymentRollbackMonitorsStatus, DaemonDeploymentStatus, DaemonPropagateTags, DaemonStatus, DaemonTaskDefinitionRevisionFilter, DaemonTaskDefinitionStatus, DaemonTaskDefinitionStatusFilter, DeploymentControllerType, DeploymentLifecycleHookAction, DeploymentLifecycleHookStage, DeploymentLifecycleHookStatus, DeploymentLifecycleHookTargetType, DeploymentRolloutState, DeploymentStrategy, DesiredStatus, DeviceCgroupPermission, EBSResourceType, EFSAuthorizationConfigIAM, EFSTransitEncryption, EnvironmentFileType, ExecuteCommandLogging, ExpressGatewayServiceInclude, ExpressGatewayServiceScalingMetric, ExpressGatewayServiceStatusCode, FirelensConfigurationType, InstanceGeneration, InstanceHealthCheckState, InstanceHealthCheckType, IpcMode, LaunchType, LocalStorage, LocalStorageType, LogDriver, ManagedAgentName, ManagedDraining, ManagedInstancesMonitoringOptions, ManagedResourceStatus, ManagedScalingStatus, ManagedTerminationProtection, NetworkMode, OSFamily, PidMode, PlacementConstraintType, PlacementStrategyType, PlatformDeviceType, PropagateMITags, PropagateTags, ProxyConfigurationType, ResourceManagementType, ResourceType, ScaleUnit, SchedulingStrategy, Scope, ServiceConnectAccessLoggingFormat, ServiceConnectIncludeQueryParameters, ServiceDeploymentLifecycleStage, ServiceDeploymentRollbackMonitorsStatus, ServiceDeploymentStatus, ServiceField, SettingName, SettingType, SortOrder, StabilityStatus, StopServiceDeploymentStopType, TargetType, TaskDefinitionFamilyStatus, TaskDefinitionField, TaskDefinitionPlacementConstraintType, TaskDefinitionStatus, TaskFilesystemType, TransportProtocol, UlimitName, VersionConsistency } from "./enums";
3
3
  /**
4
4
  * <p>The minimum and maximum number of accelerators (such as GPUs) for instance type selection. This is used for workloads that require specific numbers of accelerators.</p>
5
5
  * @public
@@ -2402,6 +2402,36 @@ export interface UpdateContainerInstancesStateResponse {
2402
2402
  */
2403
2403
  failures?: Failure[] | undefined;
2404
2404
  }
2405
+ /**
2406
+ * @public
2407
+ */
2408
+ export interface ContinueServiceDeploymentRequest {
2409
+ /**
2410
+ * <p>The ARN of the service deployment to continue or roll back.</p>
2411
+ * @public
2412
+ */
2413
+ serviceDeploymentArn: string | undefined;
2414
+ /**
2415
+ * <p>The ID of the paused lifecycle hook to act on. You can find the <code>hookId</code> by calling <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a> and inspecting the <code>lifecycleHookDetails</code> field of the service deployment.</p>
2416
+ * @public
2417
+ */
2418
+ hookId: string | undefined;
2419
+ /**
2420
+ * <p>The action to take on the paused lifecycle hook. Valid values are:</p> <ul> <li> <p> <code>CONTINUE</code> - Proceeds the deployment to the next lifecycle stage.</p> </li> <li> <p> <code>ROLLBACK</code> - Rolls back the deployment to the previous service revision.</p> </li> </ul> <p>If no value is specified, the default action is <code>CONTINUE</code>.</p>
2421
+ * @public
2422
+ */
2423
+ action?: DeploymentLifecycleHookAction | undefined;
2424
+ }
2425
+ /**
2426
+ * @public
2427
+ */
2428
+ export interface ContinueServiceDeploymentResponse {
2429
+ /**
2430
+ * <p>The ARN of the service deployment that was continued or rolled back.</p>
2431
+ * @public
2432
+ */
2433
+ serviceDeploymentArn?: string | undefined;
2434
+ }
2405
2435
  /**
2406
2436
  * @public
2407
2437
  */
@@ -4544,7 +4574,7 @@ export interface FSxWindowsFileServerVolumeConfiguration {
4544
4574
  authorizationConfig: FSxWindowsFileServerAuthorizationConfig | undefined;
4545
4575
  }
4546
4576
  /**
4547
- * <p>This parameter is specified when you're using an Amazon S3 Files file system for task storage. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/s3files-volumes.html">Amazon S3 Files volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <important> <p>Your task definition must include a Task IAM Role. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-prereq-policies.html#s3-files-prereq-iam-compute-role"> IAM role for attaching your file system to AWS compute resources</a> for required permissions.</p> </important>
4577
+ * <p>This parameter is specified when you're using an Amazon S3 Files file system for task storage. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/s3files-volumes.html">Amazon S3 Files volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <important> <p>Your task definition must include a Task IAM Role. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-prereq-policies.html#s3-files-prereq-iam-compute-role"> IAM role for attaching your file system to Amazon Web Services compute resources</a> for required permissions.</p> </important>
4548
4578
  * @public
4549
4579
  */
4550
4580
  export interface S3FilesVolumeConfiguration {
@@ -5135,11 +5165,32 @@ export interface DeploymentCircuitBreaker {
5135
5165
  */
5136
5166
  rollback: boolean | undefined;
5137
5167
  }
5168
+ /**
5169
+ * <p>The timeout configuration for a deployment lifecycle hook. This determines how long Amazon ECS waits for the hook to complete before taking the specified timeout action.</p>
5170
+ * @public
5171
+ */
5172
+ export interface DeploymentLifecycleHookTimeoutConfiguration {
5173
+ /**
5174
+ * <p>The number of minutes Amazon ECS waits for the lifecycle hook to complete before taking the timeout action.</p>
5175
+ * @public
5176
+ */
5177
+ timeoutInMinutes?: number | undefined;
5178
+ /**
5179
+ * <p>The action Amazon ECS takes when the lifecycle hook times out. Valid values are:</p> <ul> <li> <p> <code>CONTINUE</code> - Proceeds the deployment to the next lifecycle stage.</p> </li> <li> <p> <code>ROLLBACK</code> - Rolls back the deployment to the previous service revision.</p> </li> </ul>
5180
+ * @public
5181
+ */
5182
+ action?: DeploymentLifecycleHookAction | undefined;
5183
+ }
5138
5184
  /**
5139
5185
  * <p>A deployment lifecycle hook runs custom logic at specific stages of the deployment process. Currently, you can use Lambda functions as hook targets.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-lifecycle-hooks.html">Lifecycle hooks for Amazon ECS service deployments</a> in the <i> Amazon Elastic Container Service Developer Guide</i>.</p>
5140
5186
  * @public
5141
5187
  */
5142
5188
  export interface DeploymentLifecycleHook {
5189
+ /**
5190
+ * <p>The type of action the lifecycle hook performs. Valid values are:</p> <ul> <li> <p> <code>AWS_LAMBDA</code> - Invokes a Lambda function at the specified lifecycle stage. This is the default value.</p> </li> <li> <p> <code>PAUSE</code> - Pauses the deployment at the specified lifecycle stage until you call <code>ContinueServiceDeployment</code> to continue or roll back.</p> </li> </ul> <p>This field is optional. If not specified, the default value is <code>AWS_LAMBDA</code>.</p>
5191
+ * @public
5192
+ */
5193
+ targetType?: DeploymentLifecycleHookTargetType | undefined;
5143
5194
  /**
5144
5195
  * <p>The Amazon Resource Name (ARN) of the hook target. Currently, only Lambda function ARNs are supported.</p> <p>You must provide this parameter when configuring a deployment lifecycle hook.</p>
5145
5196
  * @public
@@ -5160,6 +5211,11 @@ export interface DeploymentLifecycleHook {
5160
5211
  * @public
5161
5212
  */
5162
5213
  hookDetails?: __DocumentType | undefined;
5214
+ /**
5215
+ * <p>The timeout configuration for the lifecycle hook. This specifies how long Amazon ECS waits before taking the timeout action if the hook is not resolved.</p>
5216
+ * @public
5217
+ */
5218
+ timeoutConfiguration?: DeploymentLifecycleHookTimeoutConfiguration | undefined;
5163
5219
  }
5164
5220
  /**
5165
5221
  * <p>Configuration for linear deployment strategy that shifts production traffic in equal percentage increments with configurable wait times between each step until 100% of traffic is shifted to the new service revision. This is only valid when you run <code>CreateService</code> or <code>UpdateService</code> with <code>deploymentController</code> set to <code>ECS</code> and a <code>deploymentConfiguration</code> with a strategy set to <code>LINEAR</code>. </p>
@@ -5228,6 +5284,42 @@ export interface DeploymentConfiguration {
5228
5284
  */
5229
5285
  canaryConfiguration?: CanaryConfiguration | undefined;
5230
5286
  }
5287
+ /**
5288
+ * <p>The details of a deployment lifecycle hook that is active during a service deployment.</p> <p>You can view lifecycle hook details by calling <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>.</p>
5289
+ * @public
5290
+ */
5291
+ export interface DeploymentLifecycleHookDetail {
5292
+ /**
5293
+ * <p>The ID of the lifecycle hook. Use this value when calling <code>ContinueServiceDeployment</code> to continue or roll back a paused deployment.</p>
5294
+ * @public
5295
+ */
5296
+ hookId?: string | undefined;
5297
+ /**
5298
+ * <p>The type of action the lifecycle hook performs, such as <code>AWS_LAMBDA</code> or <code>PAUSE</code>.</p>
5299
+ * @public
5300
+ */
5301
+ targetType?: DeploymentLifecycleHookTargetType | undefined;
5302
+ /**
5303
+ * <p>The Amazon Resource Name (ARN) of the hook target. For <code>AWS_LAMBDA</code> hooks, this is the Lambda function ARN. For <code>PAUSE</code> hooks, this field is not set.</p>
5304
+ * @public
5305
+ */
5306
+ targetArn?: string | undefined;
5307
+ /**
5308
+ * <p>The status of the lifecycle hook. Valid values depend on the hook type:</p> <ul> <li> <p>For <code>AWS_LAMBDA</code> hooks: <code>IN_PROGRESS</code>, <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>TIMED_OUT</code>.</p> </li> <li> <p>For <code>PAUSE</code> hooks: <code>AWAITING_ACTION</code>, <code>SUCCEEDED</code>, <code>FAILED</code>, and <code>TIMED_OUT</code>.</p> </li> </ul>
5309
+ * @public
5310
+ */
5311
+ status?: DeploymentLifecycleHookStatus | undefined;
5312
+ /**
5313
+ * <p>The time when the lifecycle hook times out. If the hook has not been completed by this time, Amazon ECS takes the timeout action.</p>
5314
+ * @public
5315
+ */
5316
+ expiresAt?: Date | undefined;
5317
+ /**
5318
+ * <p>The action Amazon ECS takes when the lifecycle hook times out. Valid values are <code>CONTINUE</code> and <code>ROLLBACK</code>.</p>
5319
+ * @public
5320
+ */
5321
+ timeoutAction?: DeploymentLifecycleHookAction | undefined;
5322
+ }
5231
5323
  /**
5232
5324
  * <p>Information about the service deployment rollback.</p>
5233
5325
  * @public
@@ -5355,6 +5447,11 @@ export interface ServiceDeployment {
5355
5447
  * @public
5356
5448
  */
5357
5449
  lifecycleStage?: ServiceDeploymentLifecycleStage | undefined;
5450
+ /**
5451
+ * <p>The details of the lifecycle hooks for the current service deployment.</p>
5452
+ * @public
5453
+ */
5454
+ lifecycleHookDetails?: DeploymentLifecycleHookDetail[] | undefined;
5358
5455
  /**
5359
5456
  * <p>Optional deployment parameters that control how many tasks run during a deployment and the ordering of stopping and starting tasks.</p>
5360
5457
  * @public
@@ -6821,7 +6918,7 @@ export interface Service {
6821
6918
  */
6822
6919
  export interface CreateServiceResponse {
6823
6920
  /**
6824
- * <p>The full description of your service following the create call.</p> <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p> <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p> <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p>
6921
+ * <p>The full description of your service following the create call.</p> <p>A service will return either a <code>capacityProviderStrategy</code> or <code>launchType</code> parameter, but not both, depending where one was specified when it was created.</p> <p>If a service is using the <code>ECS</code> deployment controller, the <code>deploymentController</code> and <code>taskSets</code> parameters will not be returned.</p> <p>if the service uses the <code>CODE_DEPLOY</code> deployment controller, the <code>deploymentController</code>, <code>taskSets</code> and <code>deployments</code> parameters will be returned, however the <code>deployments</code> parameter will be an empty list.</p> <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
6825
6922
  * @public
6826
6923
  */
6827
6924
  service?: Service | undefined;
@@ -7341,7 +7438,7 @@ export interface UpdateServiceRequest {
7341
7438
  */
7342
7439
  export interface UpdateServiceResponse {
7343
7440
  /**
7344
- * <p>The full description of your service following the update call.</p>
7441
+ * <p>The full description of your service following the update call.</p> <p>The response includes a <code>lifecycleHookDetails</code> field, which is an empty array when the service is created or updated. The values are populated when a lifecycle hook executes and are available as part of the service deployment details (<a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a>).</p>
7345
7442
  * @public
7346
7443
  */
7347
7444
  service?: Service | undefined;
@@ -7958,48 +8055,3 @@ export interface ServiceRevision {
7958
8055
  */
7959
8056
  ecsManagedResources?: ECSManagedResources | undefined;
7960
8057
  }
7961
- /**
7962
- * @public
7963
- */
7964
- export interface DescribeServiceRevisionsResponse {
7965
- /**
7966
- * <p>The list of service revisions described.</p>
7967
- * @public
7968
- */
7969
- serviceRevisions?: ServiceRevision[] | undefined;
7970
- /**
7971
- * <p>Any failures associated with the call.</p>
7972
- * @public
7973
- */
7974
- failures?: Failure[] | undefined;
7975
- }
7976
- /**
7977
- * @public
7978
- */
7979
- export interface TagResourceRequest {
7980
- /**
7981
- * <p>The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances.</p> <p>In order to tag a service that has the following ARN format, you need to migrate the service to the long ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-arn-migration.html">Migrate an Amazon ECS short service ARN to a long ARN</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p> <code>arn:aws:ecs:region:aws_account_id:service/service-name</code> </p> <p>After the migration is complete, the service has the long ARN format, as shown below. Use this ARN to tag the service.</p> <p> <code>arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name</code> </p> <p>If you try to tag a service with a short ARN, you receive an <code>InvalidParameterException</code> error.</p>
7982
- * @public
7983
- */
7984
- resourceArn: string | undefined;
7985
- /**
7986
- * <p>The tags to add to the resource. A tag is an array of key-value pairs.</p> <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in UTF-8</p> </li> <li> <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p> </li> </ul>
7987
- * @public
7988
- */
7989
- tags: Tag[] | undefined;
7990
- }
7991
- /**
7992
- * @public
7993
- */
7994
- export interface TagResourceResponse {
7995
- }
7996
- /**
7997
- * @public
7998
- */
7999
- export interface DeleteTaskDefinitionsRequest {
8000
- /**
8001
- * <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full Amazon Resource Name (ARN) of the task definition to delete. You must specify a <code>revision</code>.</p> <p>You can specify up to 10 task definitions as a comma separated list.</p>
8002
- * @public
8003
- */
8004
- taskDefinitions: string[] | undefined;
8005
- }
@@ -1,5 +1,50 @@
1
1
  import type { Compatibility, Connectivity, HealthStatus, IpcMode, LaunchType, ManagedAgentName, NetworkMode, PidMode, PropagateTags, SortOrder, TaskDefinitionStatus, TaskField, TaskFilesystemType, TaskSetField, TaskStopCode } from "./enums";
2
- import type { Attachment, Attribute, CapacityProviderStrategyItem, ContainerDefinition, EBSTagSpecification, EnvironmentFile, EphemeralStorage, Failure, InferenceAccelerator, KeyValuePair, LoadBalancer, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, ProxyConfiguration, ResourceRequirement, RuntimePlatform, Scale, ServiceRegistry, Tag, TaskDefinition, TaskDefinitionPlacementConstraint, TaskSet, Volume } from "./models_0";
2
+ import type { Attachment, Attribute, CapacityProviderStrategyItem, ContainerDefinition, EBSTagSpecification, EnvironmentFile, EphemeralStorage, Failure, InferenceAccelerator, KeyValuePair, LoadBalancer, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, ProxyConfiguration, ResourceRequirement, RuntimePlatform, Scale, ServiceRegistry, ServiceRevision, Tag, TaskDefinition, TaskDefinitionPlacementConstraint, TaskSet, Volume } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface DescribeServiceRevisionsResponse {
7
+ /**
8
+ * <p>The list of service revisions described.</p>
9
+ * @public
10
+ */
11
+ serviceRevisions?: ServiceRevision[] | undefined;
12
+ /**
13
+ * <p>Any failures associated with the call.</p>
14
+ * @public
15
+ */
16
+ failures?: Failure[] | undefined;
17
+ }
18
+ /**
19
+ * @public
20
+ */
21
+ export interface TagResourceRequest {
22
+ /**
23
+ * <p>The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances.</p> <p>In order to tag a service that has the following ARN format, you need to migrate the service to the long ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-arn-migration.html">Migrate an Amazon ECS short service ARN to a long ARN</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p> <code>arn:aws:ecs:region:aws_account_id:service/service-name</code> </p> <p>After the migration is complete, the service has the long ARN format, as shown below. Use this ARN to tag the service.</p> <p> <code>arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name</code> </p> <p>If you try to tag a service with a short ARN, you receive an <code>InvalidParameterException</code> error.</p>
24
+ * @public
25
+ */
26
+ resourceArn: string | undefined;
27
+ /**
28
+ * <p>The tags to add to the resource. A tag is an array of key-value pairs.</p> <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in UTF-8</p> </li> <li> <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p> </li> </ul>
29
+ * @public
30
+ */
31
+ tags: Tag[] | undefined;
32
+ }
33
+ /**
34
+ * @public
35
+ */
36
+ export interface TagResourceResponse {
37
+ }
38
+ /**
39
+ * @public
40
+ */
41
+ export interface DeleteTaskDefinitionsRequest {
42
+ /**
43
+ * <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full Amazon Resource Name (ARN) of the task definition to delete. You must specify a <code>revision</code>.</p> <p>You can specify up to 10 task definitions as a comma separated list.</p>
44
+ * @public
45
+ */
46
+ taskDefinitions: string[] | undefined;
47
+ }
3
48
  /**
4
49
  * @public
5
50
  */
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
9
9
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
12
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
26
26
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
27
  region: string | import("@smithy/types").Provider<any>;
28
28
  profile?: string;
29
- defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
29
+ defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
30
30
  credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
31
31
  maxAttempts: number | import("@smithy/types").Provider<number>;
32
32
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -66,6 +66,8 @@ export declare var ContainerInstanceHealthStatus$: StaticStructureSchema;
66
66
  export declare var ContainerOverride$: StaticStructureSchema;
67
67
  export declare var ContainerRestartPolicy$: StaticStructureSchema;
68
68
  export declare var ContainerStateChange$: StaticStructureSchema;
69
+ export declare var ContinueServiceDeploymentRequest$: StaticStructureSchema;
70
+ export declare var ContinueServiceDeploymentResponse$: StaticStructureSchema;
69
71
  export declare var CreateCapacityProviderRequest$: StaticStructureSchema;
70
72
  export declare var CreateCapacityProviderResponse$: StaticStructureSchema;
71
73
  export declare var CreateClusterRequest$: StaticStructureSchema;
@@ -127,6 +129,8 @@ export declare var DeploymentConfiguration$: StaticStructureSchema;
127
129
  export declare var DeploymentController$: StaticStructureSchema;
128
130
  export declare var DeploymentEphemeralStorage$: StaticStructureSchema;
129
131
  export declare var DeploymentLifecycleHook$: StaticStructureSchema;
132
+ export declare var DeploymentLifecycleHookDetail$: StaticStructureSchema;
133
+ export declare var DeploymentLifecycleHookTimeoutConfiguration$: StaticStructureSchema;
130
134
  export declare var DeregisterContainerInstanceRequest$: StaticStructureSchema;
131
135
  export declare var DeregisterContainerInstanceResponse$: StaticStructureSchema;
132
136
  export declare var DeregisterTaskDefinitionRequest$: StaticStructureSchema;
@@ -376,6 +380,7 @@ export declare var VersionInfo$: StaticStructureSchema;
376
380
  export declare var Volume$: StaticStructureSchema;
377
381
  export declare var VolumeFrom$: StaticStructureSchema;
378
382
  export declare var VpcLatticeConfiguration$: StaticStructureSchema;
383
+ export declare var ContinueServiceDeployment$: StaticOperationSchema;
379
384
  export declare var CreateCapacityProvider$: StaticOperationSchema;
380
385
  export declare var CreateCluster$: StaticOperationSchema;
381
386
  export declare var CreateDaemon$: StaticOperationSchema;
@@ -5,6 +5,10 @@ import {
5
5
  Paginator,
6
6
  WaiterConfiguration,
7
7
  } from "@smithy/types";
8
+ import {
9
+ ContinueServiceDeploymentCommandInput,
10
+ ContinueServiceDeploymentCommandOutput,
11
+ } from "./commands/ContinueServiceDeploymentCommand";
8
12
  import {
9
13
  CreateCapacityProviderCommandInput,
10
14
  CreateCapacityProviderCommandOutput,
@@ -311,6 +315,19 @@ import {
311
315
  } from "./commands/UpdateTaskSetCommand";
312
316
  import { ECSClient } from "./ECSClient";
313
317
  export interface ECS {
318
+ continueServiceDeployment(
319
+ args: ContinueServiceDeploymentCommandInput,
320
+ options?: __HttpHandlerOptions
321
+ ): Promise<ContinueServiceDeploymentCommandOutput>;
322
+ continueServiceDeployment(
323
+ args: ContinueServiceDeploymentCommandInput,
324
+ cb: (err: any, data?: ContinueServiceDeploymentCommandOutput) => void
325
+ ): void;
326
+ continueServiceDeployment(
327
+ args: ContinueServiceDeploymentCommandInput,
328
+ options: __HttpHandlerOptions,
329
+ cb: (err: any, data?: ContinueServiceDeploymentCommandOutput) => void
330
+ ): void;
314
331
  createCapacityProvider(
315
332
  args: CreateCapacityProviderCommandInput,
316
333
  options?: __HttpHandlerOptions
@@ -1,11 +1,9 @@
1
1
  import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
- } from "@aws-sdk/middleware-host-header";
5
- import {
6
4
  UserAgentInputConfig,
7
5
  UserAgentResolvedConfig,
8
- } from "@aws-sdk/middleware-user-agent";
6
+ } from "@aws-sdk/core/client";
9
7
  import {
10
8
  DefaultsMode as __DefaultsMode,
11
9
  SmithyConfiguration as __SmithyConfiguration,
@@ -38,6 +36,10 @@ import {
38
36
  HttpAuthSchemeInputConfig,
39
37
  HttpAuthSchemeResolvedConfig,
40
38
  } from "./auth/httpAuthSchemeProvider";
39
+ import {
40
+ ContinueServiceDeploymentCommandInput,
41
+ ContinueServiceDeploymentCommandOutput,
42
+ } from "./commands/ContinueServiceDeploymentCommand";
41
43
  import {
42
44
  CreateCapacityProviderCommandInput,
43
45
  CreateCapacityProviderCommandOutput,
@@ -350,6 +352,7 @@ import {
350
352
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
351
353
  export { __Client };
352
354
  export type ServiceInputTypes =
355
+ | ContinueServiceDeploymentCommandInput
353
356
  | CreateCapacityProviderCommandInput
354
357
  | CreateClusterCommandInput
355
358
  | CreateDaemonCommandInput
@@ -427,6 +430,7 @@ export type ServiceInputTypes =
427
430
  | UpdateTaskProtectionCommandInput
428
431
  | UpdateTaskSetCommandInput;
429
432
  export type ServiceOutputTypes =
433
+ | ContinueServiceDeploymentCommandOutput
430
434
  | CreateCapacityProviderCommandOutput
431
435
  | CreateClusterCommandOutput
432
436
  | CreateDaemonCommandOutput
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ECSClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../ECSClient";
8
+ import {
9
+ ContinueServiceDeploymentRequest,
10
+ ContinueServiceDeploymentResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ContinueServiceDeploymentCommandInput
15
+ extends ContinueServiceDeploymentRequest {}
16
+ export interface ContinueServiceDeploymentCommandOutput
17
+ extends ContinueServiceDeploymentResponse,
18
+ __MetadataBearer {}
19
+ declare const ContinueServiceDeploymentCommand_base: {
20
+ new (
21
+ input: ContinueServiceDeploymentCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ ContinueServiceDeploymentCommandInput,
24
+ ContinueServiceDeploymentCommandOutput,
25
+ ECSClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: ContinueServiceDeploymentCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ ContinueServiceDeploymentCommandInput,
33
+ ContinueServiceDeploymentCommandOutput,
34
+ ECSClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class ContinueServiceDeploymentCommand extends ContinueServiceDeploymentCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: ContinueServiceDeploymentRequest;
46
+ output: ContinueServiceDeploymentResponse;
47
+ };
48
+ sdk: {
49
+ input: ContinueServiceDeploymentCommandInput;
50
+ output: ContinueServiceDeploymentCommandOutput;
51
+ };
52
+ };
53
+ }
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ECSClient";
8
- import { DeleteTaskDefinitionsRequest } from "../models/models_0";
9
- import { DeleteTaskDefinitionsResponse } from "../models/models_1";
8
+ import {
9
+ DeleteTaskDefinitionsRequest,
10
+ DeleteTaskDefinitionsResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface DeleteTaskDefinitionsCommandInput
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ECSClient";
8
- import {
9
- DescribeServiceRevisionsRequest,
10
- DescribeServiceRevisionsResponse,
11
- } from "../models/models_0";
8
+ import { DescribeServiceRevisionsRequest } from "../models/models_0";
9
+ import { DescribeServiceRevisionsResponse } from "../models/models_1";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface DescribeServiceRevisionsCommandInput
@@ -5,7 +5,7 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ECSClient";
8
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
8
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
9
9
  export { __MetadataBearer };
10
10
  export { $Command };
11
11
  export interface TagResourceCommandInput extends TagResourceRequest {}
@@ -1,3 +1,4 @@
1
+ export * from "./ContinueServiceDeploymentCommand";
1
2
  export * from "./CreateCapacityProviderCommand";
2
3
  export * from "./CreateClusterCommand";
3
4
  export * from "./CreateDaemonCommand";
@@ -250,6 +250,12 @@ export declare const PlatformDeviceType: {
250
250
  };
251
251
  export type PlatformDeviceType =
252
252
  (typeof PlatformDeviceType)[keyof typeof PlatformDeviceType];
253
+ export declare const DeploymentLifecycleHookAction: {
254
+ readonly CONTINUE: "CONTINUE";
255
+ readonly ROLLBACK: "ROLLBACK";
256
+ };
257
+ export type DeploymentLifecycleHookAction =
258
+ (typeof DeploymentLifecycleHookAction)[keyof typeof DeploymentLifecycleHookAction];
253
259
  export declare const DaemonDeploymentRollbackMonitorsStatus: {
254
260
  readonly DISABLED: "DISABLED";
255
261
  readonly MONITORING: "MONITORING";
@@ -499,6 +505,7 @@ export declare const DeploymentLifecycleHookStage: {
499
505
  readonly POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT";
500
506
  readonly POST_SCALE_UP: "POST_SCALE_UP";
501
507
  readonly POST_TEST_TRAFFIC_SHIFT: "POST_TEST_TRAFFIC_SHIFT";
508
+ readonly PRE_PRODUCTION_TRAFFIC_SHIFT: "PRE_PRODUCTION_TRAFFIC_SHIFT";
502
509
  readonly PRE_SCALE_UP: "PRE_SCALE_UP";
503
510
  readonly PRODUCTION_TRAFFIC_SHIFT: "PRODUCTION_TRAFFIC_SHIFT";
504
511
  readonly RECONCILE_SERVICE: "RECONCILE_SERVICE";
@@ -506,6 +513,12 @@ export declare const DeploymentLifecycleHookStage: {
506
513
  };
507
514
  export type DeploymentLifecycleHookStage =
508
515
  (typeof DeploymentLifecycleHookStage)[keyof typeof DeploymentLifecycleHookStage];
516
+ export declare const DeploymentLifecycleHookTargetType: {
517
+ readonly AWS_LAMBDA: "AWS_LAMBDA";
518
+ readonly PAUSE: "PAUSE";
519
+ };
520
+ export type DeploymentLifecycleHookTargetType =
521
+ (typeof DeploymentLifecycleHookTargetType)[keyof typeof DeploymentLifecycleHookTargetType];
509
522
  export declare const DeploymentStrategy: {
510
523
  readonly BLUE_GREEN: "BLUE_GREEN";
511
524
  readonly CANARY: "CANARY";
@@ -514,6 +527,15 @@ export declare const DeploymentStrategy: {
514
527
  };
515
528
  export type DeploymentStrategy =
516
529
  (typeof DeploymentStrategy)[keyof typeof DeploymentStrategy];
530
+ export declare const DeploymentLifecycleHookStatus: {
531
+ readonly AWAITING_ACTION: "AWAITING_ACTION";
532
+ readonly FAILED: "FAILED";
533
+ readonly IN_PROGRESS: "IN_PROGRESS";
534
+ readonly SUCCEEDED: "SUCCEEDED";
535
+ readonly TIMED_OUT: "TIMED_OUT";
536
+ };
537
+ export type DeploymentLifecycleHookStatus =
538
+ (typeof DeploymentLifecycleHookStatus)[keyof typeof DeploymentLifecycleHookStatus];
517
539
  export declare const ServiceDeploymentLifecycleStage: {
518
540
  readonly BAKE_TIME: "BAKE_TIME";
519
541
  readonly CLEAN_UP: "CLEAN_UP";
@@ -148,6 +148,16 @@ export declare class NoUpdateAvailableException extends __BaseException {
148
148
  opts: __ExceptionOptionType<NoUpdateAvailableException, __BaseException>
149
149
  );
150
150
  }
151
+ export declare class ServiceDeploymentNotFoundException extends __BaseException {
152
+ readonly name: "ServiceDeploymentNotFoundException";
153
+ readonly $fault: "client";
154
+ constructor(
155
+ opts: __ExceptionOptionType<
156
+ ServiceDeploymentNotFoundException,
157
+ __BaseException
158
+ >
159
+ );
160
+ }
151
161
  export declare class PlatformUnknownException extends __BaseException {
152
162
  readonly name: "PlatformUnknownException";
153
163
  readonly $fault: "client";
@@ -199,16 +209,6 @@ export declare class ConflictException extends __BaseException {
199
209
  resourceIds?: string[] | undefined;
200
210
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
201
211
  }
202
- export declare class ServiceDeploymentNotFoundException extends __BaseException {
203
- readonly name: "ServiceDeploymentNotFoundException";
204
- readonly $fault: "client";
205
- constructor(
206
- opts: __ExceptionOptionType<
207
- ServiceDeploymentNotFoundException,
208
- __BaseException
209
- >
210
- );
211
- }
212
212
  export declare class TaskSetNotFoundException extends __BaseException {
213
213
  readonly name: "TaskSetNotFoundException";
214
214
  readonly $fault: "client";