aws-sdk-ecs 1.237.0 → 1.238.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +139 -1
- data/lib/aws-sdk-ecs/client_api.rb +20 -0
- data/lib/aws-sdk-ecs/types.rb +66 -3
- data/lib/aws-sdk-ecs.rb +1 -1
- data/sig/client.rbs +18 -2
- data/sig/types.rbs +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cb318724f73d1a7e40ec775154e7c7c35bdccc5d575c2eeb4b0845f9facb89e
|
|
4
|
+
data.tar.gz: 874349088dc3c7e751b772ed04e8e7d8090e425fadc927f18b3e0f8621ae3be4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3de3597aca2dfceaf276de4f0c0033dcba479dc3aa0fc143e292714a0eedbe2cb1b76c2822514b94bcb3d6e425ac32c95d6ea15f1e0d39a6b2c43cdf6d2759b5
|
|
7
|
+
data.tar.gz: b3042dd2689112a0043568fc4a913c019f29840b7f31cfd12e26a6888e95401f29bb78c60ac53c73200d78e90efbe38fdd87ce022a546b376296b0eda5f5ca71
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.238.0 (2026-06-18)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon ECS services now support high resolution (20 second) CloudWatch metrics for CPUUtilization and MemoryUtilization. Use these metrics for faster service auto scaling.
|
|
8
|
+
|
|
4
9
|
1.237.0 (2026-06-17)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.238.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
|
@@ -2171,6 +2171,12 @@ module Aws::ECS
|
|
|
2171
2171
|
# @option params [Array<Types::VpcLatticeConfiguration>] :vpc_lattice_configurations
|
|
2172
2172
|
# The VPC Lattice configuration for the service being created.
|
|
2173
2173
|
#
|
|
2174
|
+
# @option params [Types::MonitoringConfiguration] :monitoring
|
|
2175
|
+
# The optional monitoring configuration for the service, which defines
|
|
2176
|
+
# the resolution for the service-level `CPUUtilization` and
|
|
2177
|
+
# `MemoryUtilization` Amazon CloudWatch metrics. When not specified,
|
|
2178
|
+
# Amazon ECS uses the default resolution of `60` seconds.
|
|
2179
|
+
#
|
|
2174
2180
|
# @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2175
2181
|
#
|
|
2176
2182
|
# * {Types::CreateServiceResponse#service #service} => Types::Service
|
|
@@ -2368,6 +2374,47 @@ module Aws::ECS
|
|
|
2368
2374
|
# },
|
|
2369
2375
|
# }
|
|
2370
2376
|
#
|
|
2377
|
+
# @example Example: To create a service with a monitoring configuration
|
|
2378
|
+
#
|
|
2379
|
+
# # This example creates a service with a monitoring configuration that sets 20-second resolution for CPUUtilization and
|
|
2380
|
+
# # MemoryUtilization CloudWatch metrics. The monitoring configuration is not returned in the CreateService response. Use
|
|
2381
|
+
# # DescribeServiceRevisions to view the monitoring configuration.
|
|
2382
|
+
#
|
|
2383
|
+
# resp = client.create_service({
|
|
2384
|
+
# desired_count: 2,
|
|
2385
|
+
# monitoring: {
|
|
2386
|
+
# metric_configurations: [
|
|
2387
|
+
# {
|
|
2388
|
+
# metric_names: [
|
|
2389
|
+
# "CPUUtilization",
|
|
2390
|
+
# "MemoryUtilization",
|
|
2391
|
+
# ],
|
|
2392
|
+
# resolution_seconds: 20,
|
|
2393
|
+
# },
|
|
2394
|
+
# ],
|
|
2395
|
+
# },
|
|
2396
|
+
# service_name: "ecs-monitored-service",
|
|
2397
|
+
# task_definition: "my-app:1",
|
|
2398
|
+
# })
|
|
2399
|
+
#
|
|
2400
|
+
# resp.to_h outputs the following:
|
|
2401
|
+
# {
|
|
2402
|
+
# service: {
|
|
2403
|
+
# cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
|
|
2404
|
+
# deployment_configuration: {
|
|
2405
|
+
# maximum_percent: 200,
|
|
2406
|
+
# minimum_healthy_percent: 100,
|
|
2407
|
+
# },
|
|
2408
|
+
# desired_count: 2,
|
|
2409
|
+
# pending_count: 0,
|
|
2410
|
+
# running_count: 0,
|
|
2411
|
+
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-monitored-service",
|
|
2412
|
+
# service_name: "ecs-monitored-service",
|
|
2413
|
+
# status: "ACTIVE",
|
|
2414
|
+
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/my-app:1",
|
|
2415
|
+
# },
|
|
2416
|
+
# }
|
|
2417
|
+
#
|
|
2371
2418
|
# @example Request syntax with placeholder values
|
|
2372
2419
|
#
|
|
2373
2420
|
# resp = client.create_service({
|
|
@@ -2567,6 +2614,14 @@ module Aws::ECS
|
|
|
2567
2614
|
# port_name: "String", # required
|
|
2568
2615
|
# },
|
|
2569
2616
|
# ],
|
|
2617
|
+
# monitoring: {
|
|
2618
|
+
# metric_configurations: [
|
|
2619
|
+
# {
|
|
2620
|
+
# metric_names: ["MetricName"], # required
|
|
2621
|
+
# resolution_seconds: 1, # required
|
|
2622
|
+
# },
|
|
2623
|
+
# ],
|
|
2624
|
+
# },
|
|
2570
2625
|
# })
|
|
2571
2626
|
#
|
|
2572
2627
|
# @example Response structure
|
|
@@ -6299,6 +6354,46 @@ module Aws::ECS
|
|
|
6299
6354
|
# ],
|
|
6300
6355
|
# }
|
|
6301
6356
|
#
|
|
6357
|
+
# @example Example: To describe a service revision with a monitoring configuration
|
|
6358
|
+
#
|
|
6359
|
+
# # This example describes a service revision that has a monitoring configuration with 20-second resolution for
|
|
6360
|
+
# # CPUUtilization and MemoryUtilization CloudWatch metrics.
|
|
6361
|
+
#
|
|
6362
|
+
# resp = client.describe_service_revisions({
|
|
6363
|
+
# service_revision_arns: [
|
|
6364
|
+
# "arn:aws:ecs:us-east-1:012345678910:service-revision/default/ecs-monitored-service/8675309012345678901",
|
|
6365
|
+
# ],
|
|
6366
|
+
# })
|
|
6367
|
+
#
|
|
6368
|
+
# resp.to_h outputs the following:
|
|
6369
|
+
# {
|
|
6370
|
+
# failures: [
|
|
6371
|
+
# ],
|
|
6372
|
+
# service_revisions: [
|
|
6373
|
+
# {
|
|
6374
|
+
# cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
|
|
6375
|
+
# created_at: Time.parse("2026-06-10T12:00:00.00Z"),
|
|
6376
|
+
# launch_type: "FARGATE",
|
|
6377
|
+
# monitoring: {
|
|
6378
|
+
# metric_configurations: [
|
|
6379
|
+
# {
|
|
6380
|
+
# metric_names: [
|
|
6381
|
+
# "CPUUtilization",
|
|
6382
|
+
# "MemoryUtilization",
|
|
6383
|
+
# ],
|
|
6384
|
+
# resolution_seconds: 20,
|
|
6385
|
+
# },
|
|
6386
|
+
# ],
|
|
6387
|
+
# },
|
|
6388
|
+
# platform_family: "DockerLinux",
|
|
6389
|
+
# platform_version: "1.4.0",
|
|
6390
|
+
# service_arn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-monitored-service",
|
|
6391
|
+
# service_revision_arn: "arn:aws:ecs:us-east-1:012345678910:service-revision/default/ecs-monitored-service/8675309012345678901",
|
|
6392
|
+
# task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/my-app:1",
|
|
6393
|
+
# },
|
|
6394
|
+
# ],
|
|
6395
|
+
# }
|
|
6396
|
+
#
|
|
6302
6397
|
# @example Request syntax with placeholder values
|
|
6303
6398
|
#
|
|
6304
6399
|
# resp = client.describe_service_revisions({
|
|
@@ -6462,6 +6557,10 @@ module Aws::ECS
|
|
|
6462
6557
|
# resp.service_revisions[0].ecs_managed_resources.log_groups[0].status_reason #=> String
|
|
6463
6558
|
# resp.service_revisions[0].ecs_managed_resources.log_groups[0].updated_at #=> Time
|
|
6464
6559
|
# resp.service_revisions[0].ecs_managed_resources.log_groups[0].log_group_name #=> String
|
|
6560
|
+
# resp.service_revisions[0].monitoring.metric_configurations #=> Array
|
|
6561
|
+
# resp.service_revisions[0].monitoring.metric_configurations[0].metric_names #=> Array
|
|
6562
|
+
# resp.service_revisions[0].monitoring.metric_configurations[0].metric_names[0] #=> String
|
|
6563
|
+
# resp.service_revisions[0].monitoring.metric_configurations[0].resolution_seconds #=> Integer
|
|
6465
6564
|
# resp.failures #=> Array
|
|
6466
6565
|
# resp.failures[0].arn #=> String
|
|
6467
6566
|
# resp.failures[0].reason #=> String
|
|
@@ -15116,6 +15215,12 @@ module Aws::ECS
|
|
|
15116
15215
|
#
|
|
15117
15216
|
# This parameter triggers a new service deployment.
|
|
15118
15217
|
#
|
|
15218
|
+
# @option params [Types::MonitoringConfiguration] :monitoring
|
|
15219
|
+
# The optional monitoring configuration for the service, which defines
|
|
15220
|
+
# the resolution for the service-level `CPUUtilization` and
|
|
15221
|
+
# `MemoryUtilization` Amazon CloudWatch metrics. When not specified,
|
|
15222
|
+
# Amazon ECS uses the default resolution of `60` seconds.
|
|
15223
|
+
#
|
|
15119
15224
|
# @return [Types::UpdateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
15120
15225
|
#
|
|
15121
15226
|
# * {Types::UpdateServiceResponse#service #service} => Types::Service
|
|
@@ -15176,6 +15281,31 @@ module Aws::ECS
|
|
|
15176
15281
|
# {
|
|
15177
15282
|
# }
|
|
15178
15283
|
#
|
|
15284
|
+
# @example Example: To update a service with a monitoring configuration
|
|
15285
|
+
#
|
|
15286
|
+
# # This example updates a service to add a monitoring configuration that sets 20-second resolution for CPUUtilization and
|
|
15287
|
+
# # MemoryUtilization CloudWatch metrics. The monitoring configuration is not returned in the UpdateService response. Use
|
|
15288
|
+
# # DescribeServiceRevisions to view the monitoring configuration.
|
|
15289
|
+
#
|
|
15290
|
+
# resp = client.update_service({
|
|
15291
|
+
# monitoring: {
|
|
15292
|
+
# metric_configurations: [
|
|
15293
|
+
# {
|
|
15294
|
+
# metric_names: [
|
|
15295
|
+
# "CPUUtilization",
|
|
15296
|
+
# "MemoryUtilization",
|
|
15297
|
+
# ],
|
|
15298
|
+
# resolution_seconds: 20,
|
|
15299
|
+
# },
|
|
15300
|
+
# ],
|
|
15301
|
+
# },
|
|
15302
|
+
# service: "ecs-monitored-service",
|
|
15303
|
+
# })
|
|
15304
|
+
#
|
|
15305
|
+
# resp.to_h outputs the following:
|
|
15306
|
+
# {
|
|
15307
|
+
# }
|
|
15308
|
+
#
|
|
15179
15309
|
# @example Request syntax with placeholder values
|
|
15180
15310
|
#
|
|
15181
15311
|
# resp = client.update_service({
|
|
@@ -15366,6 +15496,14 @@ module Aws::ECS
|
|
|
15366
15496
|
# port_name: "String", # required
|
|
15367
15497
|
# },
|
|
15368
15498
|
# ],
|
|
15499
|
+
# monitoring: {
|
|
15500
|
+
# metric_configurations: [
|
|
15501
|
+
# {
|
|
15502
|
+
# metric_names: ["MetricName"], # required
|
|
15503
|
+
# resolution_seconds: 1, # required
|
|
15504
|
+
# },
|
|
15505
|
+
# ],
|
|
15506
|
+
# },
|
|
15369
15507
|
# })
|
|
15370
15508
|
#
|
|
15371
15509
|
# @example Response structure
|
|
@@ -16072,7 +16210,7 @@ module Aws::ECS
|
|
|
16072
16210
|
tracer: tracer
|
|
16073
16211
|
)
|
|
16074
16212
|
context[:gem_name] = 'aws-sdk-ecs'
|
|
16075
|
-
context[:gem_version] = '1.
|
|
16213
|
+
context[:gem_version] = '1.238.0'
|
|
16076
16214
|
Seahorse::Client::Request.new(handlers, context)
|
|
16077
16215
|
end
|
|
16078
16216
|
|
|
@@ -411,7 +411,13 @@ module Aws::ECS
|
|
|
411
411
|
ManagedTerminationProtection = Shapes::StringShape.new(name: 'ManagedTerminationProtection')
|
|
412
412
|
MemoryGiBPerVCpuRequest = Shapes::StructureShape.new(name: 'MemoryGiBPerVCpuRequest')
|
|
413
413
|
MemoryMiBRequest = Shapes::StructureShape.new(name: 'MemoryMiBRequest')
|
|
414
|
+
MetricConfiguration = Shapes::StructureShape.new(name: 'MetricConfiguration')
|
|
415
|
+
MetricConfigurationList = Shapes::ListShape.new(name: 'MetricConfigurationList')
|
|
416
|
+
MetricName = Shapes::StringShape.new(name: 'MetricName')
|
|
417
|
+
MetricNamesList = Shapes::ListShape.new(name: 'MetricNamesList')
|
|
418
|
+
MetricResolutionSeconds = Shapes::IntegerShape.new(name: 'MetricResolutionSeconds')
|
|
414
419
|
MissingVersionException = Shapes::StructureShape.new(name: 'MissingVersionException')
|
|
420
|
+
MonitoringConfiguration = Shapes::StructureShape.new(name: 'MonitoringConfiguration')
|
|
415
421
|
MountPoint = Shapes::StructureShape.new(name: 'MountPoint')
|
|
416
422
|
MountPointList = Shapes::ListShape.new(name: 'MountPointList')
|
|
417
423
|
NamespaceNotFoundException = Shapes::StructureShape.new(name: 'NamespaceNotFoundException')
|
|
@@ -1053,6 +1059,7 @@ module Aws::ECS
|
|
|
1053
1059
|
CreateServiceRequest.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
|
|
1054
1060
|
CreateServiceRequest.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: ServiceVolumeConfigurations, location_name: "volumeConfigurations"))
|
|
1055
1061
|
CreateServiceRequest.add_member(:vpc_lattice_configurations, Shapes::ShapeRef.new(shape: VpcLatticeConfigurations, location_name: "vpcLatticeConfigurations"))
|
|
1062
|
+
CreateServiceRequest.add_member(:monitoring, Shapes::ShapeRef.new(shape: MonitoringConfiguration, location_name: "monitoring"))
|
|
1056
1063
|
CreateServiceRequest.struct_class = Types::CreateServiceRequest
|
|
1057
1064
|
|
|
1058
1065
|
CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
|
@@ -2191,9 +2198,20 @@ module Aws::ECS
|
|
|
2191
2198
|
MemoryMiBRequest.add_member(:max, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "max"))
|
|
2192
2199
|
MemoryMiBRequest.struct_class = Types::MemoryMiBRequest
|
|
2193
2200
|
|
|
2201
|
+
MetricConfiguration.add_member(:metric_names, Shapes::ShapeRef.new(shape: MetricNamesList, required: true, location_name: "metricNames"))
|
|
2202
|
+
MetricConfiguration.add_member(:resolution_seconds, Shapes::ShapeRef.new(shape: MetricResolutionSeconds, required: true, location_name: "resolutionSeconds"))
|
|
2203
|
+
MetricConfiguration.struct_class = Types::MetricConfiguration
|
|
2204
|
+
|
|
2205
|
+
MetricConfigurationList.member = Shapes::ShapeRef.new(shape: MetricConfiguration)
|
|
2206
|
+
|
|
2207
|
+
MetricNamesList.member = Shapes::ShapeRef.new(shape: MetricName)
|
|
2208
|
+
|
|
2194
2209
|
MissingVersionException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
2195
2210
|
MissingVersionException.struct_class = Types::MissingVersionException
|
|
2196
2211
|
|
|
2212
|
+
MonitoringConfiguration.add_member(:metric_configurations, Shapes::ShapeRef.new(shape: MetricConfigurationList, location_name: "metricConfigurations"))
|
|
2213
|
+
MonitoringConfiguration.struct_class = Types::MonitoringConfiguration
|
|
2214
|
+
|
|
2197
2215
|
MountPoint.add_member(:source_volume, Shapes::ShapeRef.new(shape: String, location_name: "sourceVolume"))
|
|
2198
2216
|
MountPoint.add_member(:container_path, Shapes::ShapeRef.new(shape: String, location_name: "containerPath"))
|
|
2199
2217
|
MountPoint.add_member(:read_only, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "readOnly"))
|
|
@@ -2656,6 +2674,7 @@ module Aws::ECS
|
|
|
2656
2674
|
ServiceRevision.add_member(:vpc_lattice_configurations, Shapes::ShapeRef.new(shape: VpcLatticeConfigurations, location_name: "vpcLatticeConfigurations"))
|
|
2657
2675
|
ServiceRevision.add_member(:resolved_configuration, Shapes::ShapeRef.new(shape: ResolvedConfiguration, location_name: "resolvedConfiguration"))
|
|
2658
2676
|
ServiceRevision.add_member(:ecs_managed_resources, Shapes::ShapeRef.new(shape: ECSManagedResources, location_name: "ecsManagedResources"))
|
|
2677
|
+
ServiceRevision.add_member(:monitoring, Shapes::ShapeRef.new(shape: MonitoringConfiguration, location_name: "monitoring"))
|
|
2659
2678
|
ServiceRevision.struct_class = Types::ServiceRevision
|
|
2660
2679
|
|
|
2661
2680
|
ServiceRevisionLoadBalancer.add_member(:target_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "targetGroupArn"))
|
|
@@ -3093,6 +3112,7 @@ module Aws::ECS
|
|
|
3093
3112
|
UpdateServiceRequest.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
|
|
3094
3113
|
UpdateServiceRequest.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: ServiceVolumeConfigurations, location_name: "volumeConfigurations"))
|
|
3095
3114
|
UpdateServiceRequest.add_member(:vpc_lattice_configurations, Shapes::ShapeRef.new(shape: VpcLatticeConfigurations, location_name: "vpcLatticeConfigurations"))
|
|
3115
|
+
UpdateServiceRequest.add_member(:monitoring, Shapes::ShapeRef.new(shape: MonitoringConfiguration, location_name: "monitoring"))
|
|
3096
3116
|
UpdateServiceRequest.struct_class = Types::UpdateServiceRequest
|
|
3097
3117
|
|
|
3098
3118
|
UpdateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
|
@@ -3829,6 +3829,13 @@ module Aws::ECS
|
|
|
3829
3829
|
# The VPC Lattice configuration for the service being created.
|
|
3830
3830
|
# @return [Array<Types::VpcLatticeConfiguration>]
|
|
3831
3831
|
#
|
|
3832
|
+
# @!attribute [rw] monitoring
|
|
3833
|
+
# The optional monitoring configuration for the service, which defines
|
|
3834
|
+
# the resolution for the service-level `CPUUtilization` and
|
|
3835
|
+
# `MemoryUtilization` Amazon CloudWatch metrics. When not specified,
|
|
3836
|
+
# Amazon ECS uses the default resolution of `60` seconds.
|
|
3837
|
+
# @return [Types::MonitoringConfiguration]
|
|
3838
|
+
#
|
|
3832
3839
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateServiceRequest AWS API Documentation
|
|
3833
3840
|
#
|
|
3834
3841
|
class CreateServiceRequest < Struct.new(
|
|
@@ -3857,7 +3864,8 @@ module Aws::ECS
|
|
|
3857
3864
|
:enable_execute_command,
|
|
3858
3865
|
:service_connect_configuration,
|
|
3859
3866
|
:volume_configurations,
|
|
3860
|
-
:vpc_lattice_configurations
|
|
3867
|
+
:vpc_lattice_configurations,
|
|
3868
|
+
:monitoring)
|
|
3861
3869
|
SENSITIVE = []
|
|
3862
3870
|
include Aws::Structure
|
|
3863
3871
|
end
|
|
@@ -11675,6 +11683,28 @@ module Aws::ECS
|
|
|
11675
11683
|
include Aws::Structure
|
|
11676
11684
|
end
|
|
11677
11685
|
|
|
11686
|
+
# The configuration for a specific set of metrics to collect for a
|
|
11687
|
+
# service.
|
|
11688
|
+
#
|
|
11689
|
+
# @!attribute [rw] metric_names
|
|
11690
|
+
# The list of metric names to configure. The supported metric names
|
|
11691
|
+
# are `CPUUtilization` and `MemoryUtilization`.
|
|
11692
|
+
# @return [Array<String>]
|
|
11693
|
+
#
|
|
11694
|
+
# @!attribute [rw] resolution_seconds
|
|
11695
|
+
# The resolution, in seconds, at which to collect the metrics. The
|
|
11696
|
+
# valid values are `20` and `60`.
|
|
11697
|
+
# @return [Integer]
|
|
11698
|
+
#
|
|
11699
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/MetricConfiguration AWS API Documentation
|
|
11700
|
+
#
|
|
11701
|
+
class MetricConfiguration < Struct.new(
|
|
11702
|
+
:metric_names,
|
|
11703
|
+
:resolution_seconds)
|
|
11704
|
+
SENSITIVE = []
|
|
11705
|
+
include Aws::Structure
|
|
11706
|
+
end
|
|
11707
|
+
|
|
11678
11708
|
# Amazon ECS can't determine the current version of the Amazon ECS
|
|
11679
11709
|
# container agent on the container instance and doesn't have enough
|
|
11680
11710
|
# information to proceed with an update. This could be because the agent
|
|
@@ -11693,6 +11723,23 @@ module Aws::ECS
|
|
|
11693
11723
|
include Aws::Structure
|
|
11694
11724
|
end
|
|
11695
11725
|
|
|
11726
|
+
# The optional monitoring configuration for a service, which defines the
|
|
11727
|
+
# resolution for the service-level `CPUUtilization` and
|
|
11728
|
+
# `MemoryUtilization` Amazon CloudWatch metrics. When not specified,
|
|
11729
|
+
# Amazon ECS uses the default resolution of `60` seconds.
|
|
11730
|
+
#
|
|
11731
|
+
# @!attribute [rw] metric_configurations
|
|
11732
|
+
# The list of metric configurations for the service monitoring.
|
|
11733
|
+
# @return [Array<Types::MetricConfiguration>]
|
|
11734
|
+
#
|
|
11735
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/MonitoringConfiguration AWS API Documentation
|
|
11736
|
+
#
|
|
11737
|
+
class MonitoringConfiguration < Struct.new(
|
|
11738
|
+
:metric_configurations)
|
|
11739
|
+
SENSITIVE = []
|
|
11740
|
+
include Aws::Structure
|
|
11741
|
+
end
|
|
11742
|
+
|
|
11696
11743
|
# The details for a volume mount point that's used in a container
|
|
11697
11744
|
# definition.
|
|
11698
11745
|
#
|
|
@@ -15853,6 +15900,13 @@ module Aws::ECS
|
|
|
15853
15900
|
# Express service for Amazon ECS.
|
|
15854
15901
|
# @return [Types::ECSManagedResources]
|
|
15855
15902
|
#
|
|
15903
|
+
# @!attribute [rw] monitoring
|
|
15904
|
+
# The optional monitoring configuration for the service, which defines
|
|
15905
|
+
# the resolution for the service-level `CPUUtilization` and
|
|
15906
|
+
# `MemoryUtilization` Amazon CloudWatch metrics. When not specified,
|
|
15907
|
+
# Amazon ECS uses the default resolution of `60` seconds.
|
|
15908
|
+
# @return [Types::MonitoringConfiguration]
|
|
15909
|
+
#
|
|
15856
15910
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ServiceRevision AWS API Documentation
|
|
15857
15911
|
#
|
|
15858
15912
|
class ServiceRevision < Struct.new(
|
|
@@ -15875,7 +15929,8 @@ module Aws::ECS
|
|
|
15875
15929
|
:created_at,
|
|
15876
15930
|
:vpc_lattice_configurations,
|
|
15877
15931
|
:resolved_configuration,
|
|
15878
|
-
:ecs_managed_resources
|
|
15932
|
+
:ecs_managed_resources,
|
|
15933
|
+
:monitoring)
|
|
15879
15934
|
SENSITIVE = []
|
|
15880
15935
|
include Aws::Structure
|
|
15881
15936
|
end
|
|
@@ -19169,6 +19224,13 @@ module Aws::ECS
|
|
|
19169
19224
|
# This parameter triggers a new service deployment.
|
|
19170
19225
|
# @return [Array<Types::VpcLatticeConfiguration>]
|
|
19171
19226
|
#
|
|
19227
|
+
# @!attribute [rw] monitoring
|
|
19228
|
+
# The optional monitoring configuration for the service, which defines
|
|
19229
|
+
# the resolution for the service-level `CPUUtilization` and
|
|
19230
|
+
# `MemoryUtilization` Amazon CloudWatch metrics. When not specified,
|
|
19231
|
+
# Amazon ECS uses the default resolution of `60` seconds.
|
|
19232
|
+
# @return [Types::MonitoringConfiguration]
|
|
19233
|
+
#
|
|
19172
19234
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServiceRequest AWS API Documentation
|
|
19173
19235
|
#
|
|
19174
19236
|
class UpdateServiceRequest < Struct.new(
|
|
@@ -19193,7 +19255,8 @@ module Aws::ECS
|
|
|
19193
19255
|
:service_registries,
|
|
19194
19256
|
:service_connect_configuration,
|
|
19195
19257
|
:volume_configurations,
|
|
19196
|
-
:vpc_lattice_configurations
|
|
19258
|
+
:vpc_lattice_configurations,
|
|
19259
|
+
:monitoring)
|
|
19197
19260
|
SENSITIVE = []
|
|
19198
19261
|
include Aws::Structure
|
|
19199
19262
|
end
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -325,7 +325,15 @@ module Aws
|
|
|
325
325
|
target_group_arn: ::String,
|
|
326
326
|
port_name: ::String
|
|
327
327
|
}
|
|
328
|
-
]
|
|
328
|
+
],
|
|
329
|
+
?monitoring: {
|
|
330
|
+
metric_configurations: Array[
|
|
331
|
+
{
|
|
332
|
+
metric_names: Array[::String],
|
|
333
|
+
resolution_seconds: ::Integer
|
|
334
|
+
}
|
|
335
|
+
]?
|
|
336
|
+
}
|
|
329
337
|
) -> _CreateServiceResponseSuccess
|
|
330
338
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateServiceResponseSuccess
|
|
331
339
|
|
|
@@ -1878,7 +1886,15 @@ module Aws
|
|
|
1878
1886
|
target_group_arn: ::String,
|
|
1879
1887
|
port_name: ::String
|
|
1880
1888
|
}
|
|
1881
|
-
]
|
|
1889
|
+
],
|
|
1890
|
+
?monitoring: {
|
|
1891
|
+
metric_configurations: Array[
|
|
1892
|
+
{
|
|
1893
|
+
metric_names: Array[::String],
|
|
1894
|
+
resolution_seconds: ::Integer
|
|
1895
|
+
}
|
|
1896
|
+
]?
|
|
1897
|
+
}
|
|
1882
1898
|
) -> _UpdateServiceResponseSuccess
|
|
1883
1899
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateServiceResponseSuccess
|
|
1884
1900
|
|
data/sig/types.rbs
CHANGED
|
@@ -470,6 +470,7 @@ module Aws::ECS
|
|
|
470
470
|
attr_accessor service_connect_configuration: Types::ServiceConnectConfiguration
|
|
471
471
|
attr_accessor volume_configurations: ::Array[Types::ServiceVolumeConfiguration]
|
|
472
472
|
attr_accessor vpc_lattice_configurations: ::Array[Types::VpcLatticeConfiguration]
|
|
473
|
+
attr_accessor monitoring: Types::MonitoringConfiguration
|
|
473
474
|
SENSITIVE: []
|
|
474
475
|
end
|
|
475
476
|
|
|
@@ -1880,11 +1881,22 @@ module Aws::ECS
|
|
|
1880
1881
|
SENSITIVE: []
|
|
1881
1882
|
end
|
|
1882
1883
|
|
|
1884
|
+
class MetricConfiguration
|
|
1885
|
+
attr_accessor metric_names: ::Array[::String]
|
|
1886
|
+
attr_accessor resolution_seconds: ::Integer
|
|
1887
|
+
SENSITIVE: []
|
|
1888
|
+
end
|
|
1889
|
+
|
|
1883
1890
|
class MissingVersionException
|
|
1884
1891
|
attr_accessor message: ::String
|
|
1885
1892
|
SENSITIVE: []
|
|
1886
1893
|
end
|
|
1887
1894
|
|
|
1895
|
+
class MonitoringConfiguration
|
|
1896
|
+
attr_accessor metric_configurations: ::Array[Types::MetricConfiguration]
|
|
1897
|
+
SENSITIVE: []
|
|
1898
|
+
end
|
|
1899
|
+
|
|
1888
1900
|
class MountPoint
|
|
1889
1901
|
attr_accessor source_volume: ::String
|
|
1890
1902
|
attr_accessor container_path: ::String
|
|
@@ -2430,6 +2442,7 @@ module Aws::ECS
|
|
|
2430
2442
|
attr_accessor vpc_lattice_configurations: ::Array[Types::VpcLatticeConfiguration]
|
|
2431
2443
|
attr_accessor resolved_configuration: Types::ResolvedConfiguration
|
|
2432
2444
|
attr_accessor ecs_managed_resources: Types::ECSManagedResources
|
|
2445
|
+
attr_accessor monitoring: Types::MonitoringConfiguration
|
|
2433
2446
|
SENSITIVE: []
|
|
2434
2447
|
end
|
|
2435
2448
|
|
|
@@ -2938,6 +2951,7 @@ module Aws::ECS
|
|
|
2938
2951
|
attr_accessor service_connect_configuration: Types::ServiceConnectConfiguration
|
|
2939
2952
|
attr_accessor volume_configurations: ::Array[Types::ServiceVolumeConfiguration]
|
|
2940
2953
|
attr_accessor vpc_lattice_configurations: ::Array[Types::VpcLatticeConfiguration]
|
|
2954
|
+
attr_accessor monitoring: Types::MonitoringConfiguration
|
|
2941
2955
|
SENSITIVE: []
|
|
2942
2956
|
end
|
|
2943
2957
|
|