aws-sdk-ecs 1.99.0 → 1.110.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +58 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +723 -77
- data/lib/aws-sdk-ecs/client_api.rb +159 -0
- data/lib/aws-sdk-ecs/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-ecs/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-ecs/endpoints.rb +785 -0
- data/lib/aws-sdk-ecs/errors.rb +11 -0
- data/lib/aws-sdk-ecs/plugins/endpoints.rb +178 -0
- data/lib/aws-sdk-ecs/types.rb +1301 -2247
- data/lib/aws-sdk-ecs.rb +5 -1
- metadata +8 -4
@@ -15,6 +15,7 @@ module Aws::ECS
|
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
17
|
AgentUpdateStatus = Shapes::StringShape.new(name: 'AgentUpdateStatus')
|
18
|
+
ApplicationProtocol = Shapes::StringShape.new(name: 'ApplicationProtocol')
|
18
19
|
AssignPublicIp = Shapes::StringShape.new(name: 'AssignPublicIp')
|
19
20
|
Attachment = Shapes::StructureShape.new(name: 'Attachment')
|
20
21
|
AttachmentDetails = Shapes::ListShape.new(name: 'AttachmentDetails')
|
@@ -51,6 +52,8 @@ module Aws::ECS
|
|
51
52
|
ClusterField = Shapes::StringShape.new(name: 'ClusterField')
|
52
53
|
ClusterFieldList = Shapes::ListShape.new(name: 'ClusterFieldList')
|
53
54
|
ClusterNotFoundException = Shapes::StructureShape.new(name: 'ClusterNotFoundException')
|
55
|
+
ClusterServiceConnectDefaults = Shapes::StructureShape.new(name: 'ClusterServiceConnectDefaults')
|
56
|
+
ClusterServiceConnectDefaultsRequest = Shapes::StructureShape.new(name: 'ClusterServiceConnectDefaultsRequest')
|
54
57
|
ClusterSetting = Shapes::StructureShape.new(name: 'ClusterSetting')
|
55
58
|
ClusterSettingName = Shapes::StringShape.new(name: 'ClusterSettingName')
|
56
59
|
ClusterSettings = Shapes::ListShape.new(name: 'ClusterSettings')
|
@@ -96,6 +99,7 @@ module Aws::ECS
|
|
96
99
|
DeleteTaskSetRequest = Shapes::StructureShape.new(name: 'DeleteTaskSetRequest')
|
97
100
|
DeleteTaskSetResponse = Shapes::StructureShape.new(name: 'DeleteTaskSetResponse')
|
98
101
|
Deployment = Shapes::StructureShape.new(name: 'Deployment')
|
102
|
+
DeploymentAlarms = Shapes::StructureShape.new(name: 'DeploymentAlarms')
|
99
103
|
DeploymentCircuitBreaker = Shapes::StructureShape.new(name: 'DeploymentCircuitBreaker')
|
100
104
|
DeploymentConfiguration = Shapes::StructureShape.new(name: 'DeploymentConfiguration')
|
101
105
|
DeploymentController = Shapes::StructureShape.new(name: 'DeploymentController')
|
@@ -151,6 +155,8 @@ module Aws::ECS
|
|
151
155
|
FirelensConfiguration = Shapes::StructureShape.new(name: 'FirelensConfiguration')
|
152
156
|
FirelensConfigurationOptionsMap = Shapes::MapShape.new(name: 'FirelensConfigurationOptionsMap')
|
153
157
|
FirelensConfigurationType = Shapes::StringShape.new(name: 'FirelensConfigurationType')
|
158
|
+
GetTaskProtectionRequest = Shapes::StructureShape.new(name: 'GetTaskProtectionRequest')
|
159
|
+
GetTaskProtectionResponse = Shapes::StructureShape.new(name: 'GetTaskProtectionResponse')
|
154
160
|
GpuIds = Shapes::ListShape.new(name: 'GpuIds')
|
155
161
|
HealthCheck = Shapes::StructureShape.new(name: 'HealthCheck')
|
156
162
|
HealthStatus = Shapes::StringShape.new(name: 'HealthStatus')
|
@@ -181,6 +187,8 @@ module Aws::ECS
|
|
181
187
|
ListClustersResponse = Shapes::StructureShape.new(name: 'ListClustersResponse')
|
182
188
|
ListContainerInstancesRequest = Shapes::StructureShape.new(name: 'ListContainerInstancesRequest')
|
183
189
|
ListContainerInstancesResponse = Shapes::StructureShape.new(name: 'ListContainerInstancesResponse')
|
190
|
+
ListServicesByNamespaceRequest = Shapes::StructureShape.new(name: 'ListServicesByNamespaceRequest')
|
191
|
+
ListServicesByNamespaceResponse = Shapes::StructureShape.new(name: 'ListServicesByNamespaceResponse')
|
184
192
|
ListServicesRequest = Shapes::StructureShape.new(name: 'ListServicesRequest')
|
185
193
|
ListServicesResponse = Shapes::StructureShape.new(name: 'ListServicesResponse')
|
186
194
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
@@ -211,6 +219,7 @@ module Aws::ECS
|
|
211
219
|
MissingVersionException = Shapes::StructureShape.new(name: 'MissingVersionException')
|
212
220
|
MountPoint = Shapes::StructureShape.new(name: 'MountPoint')
|
213
221
|
MountPointList = Shapes::ListShape.new(name: 'MountPointList')
|
222
|
+
NamespaceNotFoundException = Shapes::StructureShape.new(name: 'NamespaceNotFoundException')
|
214
223
|
NetworkBinding = Shapes::StructureShape.new(name: 'NetworkBinding')
|
215
224
|
NetworkBindings = Shapes::ListShape.new(name: 'NetworkBindings')
|
216
225
|
NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
|
@@ -233,7 +242,10 @@ module Aws::ECS
|
|
233
242
|
PlatformUnknownException = Shapes::StructureShape.new(name: 'PlatformUnknownException')
|
234
243
|
PortMapping = Shapes::StructureShape.new(name: 'PortMapping')
|
235
244
|
PortMappingList = Shapes::ListShape.new(name: 'PortMappingList')
|
245
|
+
PortNumber = Shapes::IntegerShape.new(name: 'PortNumber')
|
236
246
|
PropagateTags = Shapes::StringShape.new(name: 'PropagateTags')
|
247
|
+
ProtectedTask = Shapes::StructureShape.new(name: 'ProtectedTask')
|
248
|
+
ProtectedTasks = Shapes::ListShape.new(name: 'ProtectedTasks')
|
237
249
|
ProxyConfiguration = Shapes::StructureShape.new(name: 'ProxyConfiguration')
|
238
250
|
ProxyConfigurationProperties = Shapes::ListShape.new(name: 'ProxyConfigurationProperties')
|
239
251
|
ProxyConfigurationType = Shapes::StringShape.new(name: 'ProxyConfigurationType')
|
@@ -270,6 +282,13 @@ module Aws::ECS
|
|
270
282
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
271
283
|
ServerException = Shapes::StructureShape.new(name: 'ServerException')
|
272
284
|
Service = Shapes::StructureShape.new(name: 'Service')
|
285
|
+
ServiceConnectClientAlias = Shapes::StructureShape.new(name: 'ServiceConnectClientAlias')
|
286
|
+
ServiceConnectClientAliasList = Shapes::ListShape.new(name: 'ServiceConnectClientAliasList')
|
287
|
+
ServiceConnectConfiguration = Shapes::StructureShape.new(name: 'ServiceConnectConfiguration')
|
288
|
+
ServiceConnectService = Shapes::StructureShape.new(name: 'ServiceConnectService')
|
289
|
+
ServiceConnectServiceList = Shapes::ListShape.new(name: 'ServiceConnectServiceList')
|
290
|
+
ServiceConnectServiceResource = Shapes::StructureShape.new(name: 'ServiceConnectServiceResource')
|
291
|
+
ServiceConnectServiceResourceList = Shapes::ListShape.new(name: 'ServiceConnectServiceResourceList')
|
273
292
|
ServiceEvent = Shapes::StructureShape.new(name: 'ServiceEvent')
|
274
293
|
ServiceEvents = Shapes::ListShape.new(name: 'ServiceEvents')
|
275
294
|
ServiceField = Shapes::StringShape.new(name: 'ServiceField')
|
@@ -355,6 +374,8 @@ module Aws::ECS
|
|
355
374
|
UpdateServicePrimaryTaskSetResponse = Shapes::StructureShape.new(name: 'UpdateServicePrimaryTaskSetResponse')
|
356
375
|
UpdateServiceRequest = Shapes::StructureShape.new(name: 'UpdateServiceRequest')
|
357
376
|
UpdateServiceResponse = Shapes::StructureShape.new(name: 'UpdateServiceResponse')
|
377
|
+
UpdateTaskProtectionRequest = Shapes::StructureShape.new(name: 'UpdateTaskProtectionRequest')
|
378
|
+
UpdateTaskProtectionResponse = Shapes::StructureShape.new(name: 'UpdateTaskProtectionResponse')
|
358
379
|
UpdateTaskSetRequest = Shapes::StructureShape.new(name: 'UpdateTaskSetRequest')
|
359
380
|
UpdateTaskSetResponse = Shapes::StructureShape.new(name: 'UpdateTaskSetResponse')
|
360
381
|
VersionInfo = Shapes::StructureShape.new(name: 'VersionInfo')
|
@@ -445,6 +466,7 @@ module Aws::ECS
|
|
445
466
|
Cluster.add_member(:default_capacity_provider_strategy, Shapes::ShapeRef.new(shape: CapacityProviderStrategy, location_name: "defaultCapacityProviderStrategy"))
|
446
467
|
Cluster.add_member(:attachments, Shapes::ShapeRef.new(shape: Attachments, location_name: "attachments"))
|
447
468
|
Cluster.add_member(:attachments_status, Shapes::ShapeRef.new(shape: String, location_name: "attachmentsStatus"))
|
469
|
+
Cluster.add_member(:service_connect_defaults, Shapes::ShapeRef.new(shape: ClusterServiceConnectDefaults, location_name: "serviceConnectDefaults"))
|
448
470
|
Cluster.struct_class = Types::Cluster
|
449
471
|
|
450
472
|
ClusterConfiguration.add_member(:execute_command_configuration, Shapes::ShapeRef.new(shape: ExecuteCommandConfiguration, location_name: "executeCommandConfiguration"))
|
@@ -460,6 +482,12 @@ module Aws::ECS
|
|
460
482
|
|
461
483
|
ClusterNotFoundException.struct_class = Types::ClusterNotFoundException
|
462
484
|
|
485
|
+
ClusterServiceConnectDefaults.add_member(:namespace, Shapes::ShapeRef.new(shape: String, location_name: "namespace"))
|
486
|
+
ClusterServiceConnectDefaults.struct_class = Types::ClusterServiceConnectDefaults
|
487
|
+
|
488
|
+
ClusterServiceConnectDefaultsRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: String, required: true, location_name: "namespace"))
|
489
|
+
ClusterServiceConnectDefaultsRequest.struct_class = Types::ClusterServiceConnectDefaultsRequest
|
490
|
+
|
463
491
|
ClusterSetting.add_member(:name, Shapes::ShapeRef.new(shape: ClusterSettingName, location_name: "name"))
|
464
492
|
ClusterSetting.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
465
493
|
ClusterSetting.struct_class = Types::ClusterSetting
|
@@ -605,6 +633,7 @@ module Aws::ECS
|
|
605
633
|
CreateClusterRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ClusterConfiguration, location_name: "configuration"))
|
606
634
|
CreateClusterRequest.add_member(:capacity_providers, Shapes::ShapeRef.new(shape: StringList, location_name: "capacityProviders"))
|
607
635
|
CreateClusterRequest.add_member(:default_capacity_provider_strategy, Shapes::ShapeRef.new(shape: CapacityProviderStrategy, location_name: "defaultCapacityProviderStrategy"))
|
636
|
+
CreateClusterRequest.add_member(:service_connect_defaults, Shapes::ShapeRef.new(shape: ClusterServiceConnectDefaultsRequest, location_name: "serviceConnectDefaults"))
|
608
637
|
CreateClusterRequest.struct_class = Types::CreateClusterRequest
|
609
638
|
|
610
639
|
CreateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
|
@@ -632,6 +661,7 @@ module Aws::ECS
|
|
632
661
|
CreateServiceRequest.add_member(:enable_ecs_managed_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableECSManagedTags"))
|
633
662
|
CreateServiceRequest.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
|
634
663
|
CreateServiceRequest.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
664
|
+
CreateServiceRequest.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
|
635
665
|
CreateServiceRequest.struct_class = Types::CreateServiceRequest
|
636
666
|
|
637
667
|
CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
@@ -714,8 +744,15 @@ module Aws::ECS
|
|
714
744
|
Deployment.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
715
745
|
Deployment.add_member(:rollout_state, Shapes::ShapeRef.new(shape: DeploymentRolloutState, location_name: "rolloutState"))
|
716
746
|
Deployment.add_member(:rollout_state_reason, Shapes::ShapeRef.new(shape: String, location_name: "rolloutStateReason"))
|
747
|
+
Deployment.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
|
748
|
+
Deployment.add_member(:service_connect_resources, Shapes::ShapeRef.new(shape: ServiceConnectServiceResourceList, location_name: "serviceConnectResources"))
|
717
749
|
Deployment.struct_class = Types::Deployment
|
718
750
|
|
751
|
+
DeploymentAlarms.add_member(:alarm_names, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "alarmNames"))
|
752
|
+
DeploymentAlarms.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
|
753
|
+
DeploymentAlarms.add_member(:rollback, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "rollback"))
|
754
|
+
DeploymentAlarms.struct_class = Types::DeploymentAlarms
|
755
|
+
|
719
756
|
DeploymentCircuitBreaker.add_member(:enable, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enable"))
|
720
757
|
DeploymentCircuitBreaker.add_member(:rollback, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "rollback"))
|
721
758
|
DeploymentCircuitBreaker.struct_class = Types::DeploymentCircuitBreaker
|
@@ -723,6 +760,7 @@ module Aws::ECS
|
|
723
760
|
DeploymentConfiguration.add_member(:deployment_circuit_breaker, Shapes::ShapeRef.new(shape: DeploymentCircuitBreaker, location_name: "deploymentCircuitBreaker"))
|
724
761
|
DeploymentConfiguration.add_member(:maximum_percent, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "maximumPercent"))
|
725
762
|
DeploymentConfiguration.add_member(:minimum_healthy_percent, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "minimumHealthyPercent"))
|
763
|
+
DeploymentConfiguration.add_member(:alarms, Shapes::ShapeRef.new(shape: DeploymentAlarms, location_name: "alarms"))
|
726
764
|
DeploymentConfiguration.struct_class = Types::DeploymentConfiguration
|
727
765
|
|
728
766
|
DeploymentController.add_member(:type, Shapes::ShapeRef.new(shape: DeploymentControllerType, required: true, location_name: "type"))
|
@@ -823,6 +861,7 @@ module Aws::ECS
|
|
823
861
|
|
824
862
|
DiscoverPollEndpointResponse.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
|
825
863
|
DiscoverPollEndpointResponse.add_member(:telemetry_endpoint, Shapes::ShapeRef.new(shape: String, location_name: "telemetryEndpoint"))
|
864
|
+
DiscoverPollEndpointResponse.add_member(:service_connect_endpoint, Shapes::ShapeRef.new(shape: String, location_name: "serviceConnectEndpoint"))
|
826
865
|
DiscoverPollEndpointResponse.struct_class = Types::DiscoverPollEndpointResponse
|
827
866
|
|
828
867
|
DockerLabelsMap.key = Shapes::ShapeRef.new(shape: String)
|
@@ -907,6 +946,14 @@ module Aws::ECS
|
|
907
946
|
FirelensConfigurationOptionsMap.key = Shapes::ShapeRef.new(shape: String)
|
908
947
|
FirelensConfigurationOptionsMap.value = Shapes::ShapeRef.new(shape: String)
|
909
948
|
|
949
|
+
GetTaskProtectionRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
950
|
+
GetTaskProtectionRequest.add_member(:tasks, Shapes::ShapeRef.new(shape: StringList, location_name: "tasks"))
|
951
|
+
GetTaskProtectionRequest.struct_class = Types::GetTaskProtectionRequest
|
952
|
+
|
953
|
+
GetTaskProtectionResponse.add_member(:protected_tasks, Shapes::ShapeRef.new(shape: ProtectedTasks, location_name: "protectedTasks"))
|
954
|
+
GetTaskProtectionResponse.add_member(:failures, Shapes::ShapeRef.new(shape: Failures, location_name: "failures"))
|
955
|
+
GetTaskProtectionResponse.struct_class = Types::GetTaskProtectionResponse
|
956
|
+
|
910
957
|
GpuIds.member = Shapes::ShapeRef.new(shape: String)
|
911
958
|
|
912
959
|
HealthCheck.add_member(:command, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "command"))
|
@@ -1009,6 +1056,15 @@ module Aws::ECS
|
|
1009
1056
|
ListContainerInstancesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
1010
1057
|
ListContainerInstancesResponse.struct_class = Types::ListContainerInstancesResponse
|
1011
1058
|
|
1059
|
+
ListServicesByNamespaceRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: String, required: true, location_name: "namespace"))
|
1060
|
+
ListServicesByNamespaceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
1061
|
+
ListServicesByNamespaceRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "maxResults"))
|
1062
|
+
ListServicesByNamespaceRequest.struct_class = Types::ListServicesByNamespaceRequest
|
1063
|
+
|
1064
|
+
ListServicesByNamespaceResponse.add_member(:service_arns, Shapes::ShapeRef.new(shape: StringList, location_name: "serviceArns"))
|
1065
|
+
ListServicesByNamespaceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
1066
|
+
ListServicesByNamespaceResponse.struct_class = Types::ListServicesByNamespaceResponse
|
1067
|
+
|
1012
1068
|
ListServicesRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
1013
1069
|
ListServicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
1014
1070
|
ListServicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "maxResults"))
|
@@ -1110,10 +1166,14 @@ module Aws::ECS
|
|
1110
1166
|
|
1111
1167
|
MountPointList.member = Shapes::ShapeRef.new(shape: MountPoint)
|
1112
1168
|
|
1169
|
+
NamespaceNotFoundException.struct_class = Types::NamespaceNotFoundException
|
1170
|
+
|
1113
1171
|
NetworkBinding.add_member(:bind_ip, Shapes::ShapeRef.new(shape: String, location_name: "bindIP"))
|
1114
1172
|
NetworkBinding.add_member(:container_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "containerPort"))
|
1115
1173
|
NetworkBinding.add_member(:host_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "hostPort"))
|
1116
1174
|
NetworkBinding.add_member(:protocol, Shapes::ShapeRef.new(shape: TransportProtocol, location_name: "protocol"))
|
1175
|
+
NetworkBinding.add_member(:container_port_range, Shapes::ShapeRef.new(shape: String, location_name: "containerPortRange"))
|
1176
|
+
NetworkBinding.add_member(:host_port_range, Shapes::ShapeRef.new(shape: String, location_name: "hostPortRange"))
|
1117
1177
|
NetworkBinding.struct_class = Types::NetworkBinding
|
1118
1178
|
|
1119
1179
|
NetworkBindings.member = Shapes::ShapeRef.new(shape: NetworkBinding)
|
@@ -1155,10 +1215,20 @@ module Aws::ECS
|
|
1155
1215
|
PortMapping.add_member(:container_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "containerPort"))
|
1156
1216
|
PortMapping.add_member(:host_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "hostPort"))
|
1157
1217
|
PortMapping.add_member(:protocol, Shapes::ShapeRef.new(shape: TransportProtocol, location_name: "protocol"))
|
1218
|
+
PortMapping.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
1219
|
+
PortMapping.add_member(:app_protocol, Shapes::ShapeRef.new(shape: ApplicationProtocol, location_name: "appProtocol"))
|
1220
|
+
PortMapping.add_member(:container_port_range, Shapes::ShapeRef.new(shape: String, location_name: "containerPortRange"))
|
1158
1221
|
PortMapping.struct_class = Types::PortMapping
|
1159
1222
|
|
1160
1223
|
PortMappingList.member = Shapes::ShapeRef.new(shape: PortMapping)
|
1161
1224
|
|
1225
|
+
ProtectedTask.add_member(:task_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskArn"))
|
1226
|
+
ProtectedTask.add_member(:protection_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "protectionEnabled"))
|
1227
|
+
ProtectedTask.add_member(:expiration_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "expirationDate"))
|
1228
|
+
ProtectedTask.struct_class = Types::ProtectedTask
|
1229
|
+
|
1230
|
+
ProtectedTasks.member = Shapes::ShapeRef.new(shape: ProtectedTask)
|
1231
|
+
|
1162
1232
|
ProxyConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: ProxyConfigurationType, location_name: "type"))
|
1163
1233
|
ProxyConfiguration.add_member(:container_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "containerName"))
|
1164
1234
|
ProxyConfiguration.add_member(:properties, Shapes::ShapeRef.new(shape: ProxyConfigurationProperties, location_name: "properties"))
|
@@ -1331,6 +1401,32 @@ module Aws::ECS
|
|
1331
1401
|
Service.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
1332
1402
|
Service.struct_class = Types::Service
|
1333
1403
|
|
1404
|
+
ServiceConnectClientAlias.add_member(:port, Shapes::ShapeRef.new(shape: PortNumber, required: true, location_name: "port"))
|
1405
|
+
ServiceConnectClientAlias.add_member(:dns_name, Shapes::ShapeRef.new(shape: String, location_name: "dnsName"))
|
1406
|
+
ServiceConnectClientAlias.struct_class = Types::ServiceConnectClientAlias
|
1407
|
+
|
1408
|
+
ServiceConnectClientAliasList.member = Shapes::ShapeRef.new(shape: ServiceConnectClientAlias)
|
1409
|
+
|
1410
|
+
ServiceConnectConfiguration.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enabled"))
|
1411
|
+
ServiceConnectConfiguration.add_member(:namespace, Shapes::ShapeRef.new(shape: String, location_name: "namespace"))
|
1412
|
+
ServiceConnectConfiguration.add_member(:services, Shapes::ShapeRef.new(shape: ServiceConnectServiceList, location_name: "services"))
|
1413
|
+
ServiceConnectConfiguration.add_member(:log_configuration, Shapes::ShapeRef.new(shape: LogConfiguration, location_name: "logConfiguration"))
|
1414
|
+
ServiceConnectConfiguration.struct_class = Types::ServiceConnectConfiguration
|
1415
|
+
|
1416
|
+
ServiceConnectService.add_member(:port_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "portName"))
|
1417
|
+
ServiceConnectService.add_member(:discovery_name, Shapes::ShapeRef.new(shape: String, location_name: "discoveryName"))
|
1418
|
+
ServiceConnectService.add_member(:client_aliases, Shapes::ShapeRef.new(shape: ServiceConnectClientAliasList, location_name: "clientAliases"))
|
1419
|
+
ServiceConnectService.add_member(:ingress_port_override, Shapes::ShapeRef.new(shape: PortNumber, location_name: "ingressPortOverride"))
|
1420
|
+
ServiceConnectService.struct_class = Types::ServiceConnectService
|
1421
|
+
|
1422
|
+
ServiceConnectServiceList.member = Shapes::ShapeRef.new(shape: ServiceConnectService)
|
1423
|
+
|
1424
|
+
ServiceConnectServiceResource.add_member(:discovery_name, Shapes::ShapeRef.new(shape: String, location_name: "discoveryName"))
|
1425
|
+
ServiceConnectServiceResource.add_member(:discovery_arn, Shapes::ShapeRef.new(shape: String, location_name: "discoveryArn"))
|
1426
|
+
ServiceConnectServiceResource.struct_class = Types::ServiceConnectServiceResource
|
1427
|
+
|
1428
|
+
ServiceConnectServiceResourceList.member = Shapes::ShapeRef.new(shape: ServiceConnectServiceResource)
|
1429
|
+
|
1334
1430
|
ServiceEvent.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
1335
1431
|
ServiceEvent.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
1336
1432
|
ServiceEvent.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
@@ -1607,6 +1703,7 @@ module Aws::ECS
|
|
1607
1703
|
UpdateClusterRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
1608
1704
|
UpdateClusterRequest.add_member(:settings, Shapes::ShapeRef.new(shape: ClusterSettings, location_name: "settings"))
|
1609
1705
|
UpdateClusterRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ClusterConfiguration, location_name: "configuration"))
|
1706
|
+
UpdateClusterRequest.add_member(:service_connect_defaults, Shapes::ShapeRef.new(shape: ClusterServiceConnectDefaultsRequest, location_name: "serviceConnectDefaults"))
|
1610
1707
|
UpdateClusterRequest.struct_class = Types::UpdateClusterRequest
|
1611
1708
|
|
1612
1709
|
UpdateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
|
@@ -1662,11 +1759,22 @@ module Aws::ECS
|
|
1662
1759
|
UpdateServiceRequest.add_member(:load_balancers, Shapes::ShapeRef.new(shape: LoadBalancers, location_name: "loadBalancers"))
|
1663
1760
|
UpdateServiceRequest.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
|
1664
1761
|
UpdateServiceRequest.add_member(:service_registries, Shapes::ShapeRef.new(shape: ServiceRegistries, location_name: "serviceRegistries"))
|
1762
|
+
UpdateServiceRequest.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
|
1665
1763
|
UpdateServiceRequest.struct_class = Types::UpdateServiceRequest
|
1666
1764
|
|
1667
1765
|
UpdateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
1668
1766
|
UpdateServiceResponse.struct_class = Types::UpdateServiceResponse
|
1669
1767
|
|
1768
|
+
UpdateTaskProtectionRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
1769
|
+
UpdateTaskProtectionRequest.add_member(:tasks, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "tasks"))
|
1770
|
+
UpdateTaskProtectionRequest.add_member(:protection_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "protectionEnabled"))
|
1771
|
+
UpdateTaskProtectionRequest.add_member(:expires_in_minutes, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "expiresInMinutes"))
|
1772
|
+
UpdateTaskProtectionRequest.struct_class = Types::UpdateTaskProtectionRequest
|
1773
|
+
|
1774
|
+
UpdateTaskProtectionResponse.add_member(:protected_tasks, Shapes::ShapeRef.new(shape: ProtectedTasks, location_name: "protectedTasks"))
|
1775
|
+
UpdateTaskProtectionResponse.add_member(:failures, Shapes::ShapeRef.new(shape: Failures, location_name: "failures"))
|
1776
|
+
UpdateTaskProtectionResponse.struct_class = Types::UpdateTaskProtectionResponse
|
1777
|
+
|
1670
1778
|
UpdateTaskSetRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
1671
1779
|
UpdateTaskSetRequest.add_member(:service, Shapes::ShapeRef.new(shape: String, required: true, location_name: "service"))
|
1672
1780
|
UpdateTaskSetRequest.add_member(:task_set, Shapes::ShapeRef.new(shape: String, required: true, location_name: "taskSet"))
|
@@ -1753,6 +1861,7 @@ module Aws::ECS
|
|
1753
1861
|
o.errors << Shapes::ShapeRef.new(shape: PlatformUnknownException)
|
1754
1862
|
o.errors << Shapes::ShapeRef.new(shape: PlatformTaskDefinitionIncompatibilityException)
|
1755
1863
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1864
|
+
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFoundException)
|
1756
1865
|
end)
|
1757
1866
|
|
1758
1867
|
api.add_operation(:create_task_set, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1771,6 +1880,7 @@ module Aws::ECS
|
|
1771
1880
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1772
1881
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFoundException)
|
1773
1882
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotActiveException)
|
1883
|
+
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFoundException)
|
1774
1884
|
end)
|
1775
1885
|
|
1776
1886
|
api.add_operation(:delete_account_setting, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1984,6 +2094,21 @@ module Aws::ECS
|
|
1984
2094
|
o.errors << Shapes::ShapeRef.new(shape: TargetNotConnectedException)
|
1985
2095
|
end)
|
1986
2096
|
|
2097
|
+
api.add_operation(:get_task_protection, Seahorse::Model::Operation.new.tap do |o|
|
2098
|
+
o.name = "GetTaskProtection"
|
2099
|
+
o.http_method = "POST"
|
2100
|
+
o.http_request_uri = "/"
|
2101
|
+
o.input = Shapes::ShapeRef.new(shape: GetTaskProtectionRequest)
|
2102
|
+
o.output = Shapes::ShapeRef.new(shape: GetTaskProtectionResponse)
|
2103
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2104
|
+
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
2105
|
+
o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundException)
|
2106
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2107
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2108
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
2109
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
|
2110
|
+
end)
|
2111
|
+
|
1987
2112
|
api.add_operation(:list_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
1988
2113
|
o.name = "ListAccountSettings"
|
1989
2114
|
o.http_method = "POST"
|
@@ -2070,6 +2195,24 @@ module Aws::ECS
|
|
2070
2195
|
)
|
2071
2196
|
end)
|
2072
2197
|
|
2198
|
+
api.add_operation(:list_services_by_namespace, Seahorse::Model::Operation.new.tap do |o|
|
2199
|
+
o.name = "ListServicesByNamespace"
|
2200
|
+
o.http_method = "POST"
|
2201
|
+
o.http_request_uri = "/"
|
2202
|
+
o.input = Shapes::ShapeRef.new(shape: ListServicesByNamespaceRequest)
|
2203
|
+
o.output = Shapes::ShapeRef.new(shape: ListServicesByNamespaceResponse)
|
2204
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
2205
|
+
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
2206
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2207
|
+
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFoundException)
|
2208
|
+
o[:pager] = Aws::Pager.new(
|
2209
|
+
limit_key: "max_results",
|
2210
|
+
tokens: {
|
2211
|
+
"next_token" => "next_token"
|
2212
|
+
}
|
2213
|
+
)
|
2214
|
+
end)
|
2215
|
+
|
2073
2216
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
2074
2217
|
o.name = "ListTagsForResource"
|
2075
2218
|
o.http_method = "POST"
|
@@ -2384,6 +2527,7 @@ module Aws::ECS
|
|
2384
2527
|
o.errors << Shapes::ShapeRef.new(shape: PlatformUnknownException)
|
2385
2528
|
o.errors << Shapes::ShapeRef.new(shape: PlatformTaskDefinitionIncompatibilityException)
|
2386
2529
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2530
|
+
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFoundException)
|
2387
2531
|
end)
|
2388
2532
|
|
2389
2533
|
api.add_operation(:update_service_primary_task_set, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2403,6 +2547,21 @@ module Aws::ECS
|
|
2403
2547
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2404
2548
|
end)
|
2405
2549
|
|
2550
|
+
api.add_operation(:update_task_protection, Seahorse::Model::Operation.new.tap do |o|
|
2551
|
+
o.name = "UpdateTaskProtection"
|
2552
|
+
o.http_method = "POST"
|
2553
|
+
o.http_request_uri = "/"
|
2554
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateTaskProtectionRequest)
|
2555
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateTaskProtectionResponse)
|
2556
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2557
|
+
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
2558
|
+
o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundException)
|
2559
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2560
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2561
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
2562
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
|
2563
|
+
end)
|
2564
|
+
|
2406
2565
|
api.add_operation(:update_task_set, Seahorse::Model::Operation.new.tap do |o|
|
2407
2566
|
o.name = "UpdateTaskSet"
|
2408
2567
|
o.http_method = "POST"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ECS
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ECS
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|