aws-sdk-ecs 1.110.0 → 1.112.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +330 -55
- data/lib/aws-sdk-ecs/client_api.rb +24 -0
- data/lib/aws-sdk-ecs/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-ecs/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-ecs/endpoints.rb +14 -0
- data/lib/aws-sdk-ecs/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ecs/types.rb +210 -141
- data/lib/aws-sdk-ecs.rb +1 -1
- metadata +2 -2
@@ -96,6 +96,8 @@ module Aws::ECS
|
|
96
96
|
DeleteClusterResponse = Shapes::StructureShape.new(name: 'DeleteClusterResponse')
|
97
97
|
DeleteServiceRequest = Shapes::StructureShape.new(name: 'DeleteServiceRequest')
|
98
98
|
DeleteServiceResponse = Shapes::StructureShape.new(name: 'DeleteServiceResponse')
|
99
|
+
DeleteTaskDefinitionsRequest = Shapes::StructureShape.new(name: 'DeleteTaskDefinitionsRequest')
|
100
|
+
DeleteTaskDefinitionsResponse = Shapes::StructureShape.new(name: 'DeleteTaskDefinitionsResponse')
|
99
101
|
DeleteTaskSetRequest = Shapes::StructureShape.new(name: 'DeleteTaskSetRequest')
|
100
102
|
DeleteTaskSetResponse = Shapes::StructureShape.new(name: 'DeleteTaskSetResponse')
|
101
103
|
Deployment = Shapes::StructureShape.new(name: 'Deployment')
|
@@ -335,6 +337,7 @@ module Aws::ECS
|
|
335
337
|
TaskDefinitionFamilyStatus = Shapes::StringShape.new(name: 'TaskDefinitionFamilyStatus')
|
336
338
|
TaskDefinitionField = Shapes::StringShape.new(name: 'TaskDefinitionField')
|
337
339
|
TaskDefinitionFieldList = Shapes::ListShape.new(name: 'TaskDefinitionFieldList')
|
340
|
+
TaskDefinitionList = Shapes::ListShape.new(name: 'TaskDefinitionList')
|
338
341
|
TaskDefinitionPlacementConstraint = Shapes::StructureShape.new(name: 'TaskDefinitionPlacementConstraint')
|
339
342
|
TaskDefinitionPlacementConstraintType = Shapes::StringShape.new(name: 'TaskDefinitionPlacementConstraintType')
|
340
343
|
TaskDefinitionPlacementConstraints = Shapes::ListShape.new(name: 'TaskDefinitionPlacementConstraints')
|
@@ -719,6 +722,13 @@ module Aws::ECS
|
|
719
722
|
DeleteServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
720
723
|
DeleteServiceResponse.struct_class = Types::DeleteServiceResponse
|
721
724
|
|
725
|
+
DeleteTaskDefinitionsRequest.add_member(:task_definitions, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "taskDefinitions"))
|
726
|
+
DeleteTaskDefinitionsRequest.struct_class = Types::DeleteTaskDefinitionsRequest
|
727
|
+
|
728
|
+
DeleteTaskDefinitionsResponse.add_member(:task_definitions, Shapes::ShapeRef.new(shape: TaskDefinitionList, location_name: "taskDefinitions"))
|
729
|
+
DeleteTaskDefinitionsResponse.add_member(:failures, Shapes::ShapeRef.new(shape: Failures, location_name: "failures"))
|
730
|
+
DeleteTaskDefinitionsResponse.struct_class = Types::DeleteTaskDefinitionsResponse
|
731
|
+
|
722
732
|
DeleteTaskSetRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
723
733
|
DeleteTaskSetRequest.add_member(:service, Shapes::ShapeRef.new(shape: String, required: true, location_name: "service"))
|
724
734
|
DeleteTaskSetRequest.add_member(:task_set, Shapes::ShapeRef.new(shape: String, required: true, location_name: "taskSet"))
|
@@ -1620,6 +1630,8 @@ module Aws::ECS
|
|
1620
1630
|
|
1621
1631
|
TaskDefinitionFieldList.member = Shapes::ShapeRef.new(shape: TaskDefinitionField)
|
1622
1632
|
|
1633
|
+
TaskDefinitionList.member = Shapes::ShapeRef.new(shape: TaskDefinition)
|
1634
|
+
|
1623
1635
|
TaskDefinitionPlacementConstraint.add_member(:type, Shapes::ShapeRef.new(shape: TaskDefinitionPlacementConstraintType, location_name: "type"))
|
1624
1636
|
TaskDefinitionPlacementConstraint.add_member(:expression, Shapes::ShapeRef.new(shape: String, location_name: "expression"))
|
1625
1637
|
TaskDefinitionPlacementConstraint.struct_class = Types::TaskDefinitionPlacementConstraint
|
@@ -1945,6 +1957,18 @@ module Aws::ECS
|
|
1945
1957
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFoundException)
|
1946
1958
|
end)
|
1947
1959
|
|
1960
|
+
api.add_operation(:delete_task_definitions, Seahorse::Model::Operation.new.tap do |o|
|
1961
|
+
o.name = "DeleteTaskDefinitions"
|
1962
|
+
o.http_method = "POST"
|
1963
|
+
o.http_request_uri = "/"
|
1964
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteTaskDefinitionsRequest)
|
1965
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteTaskDefinitionsResponse)
|
1966
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1967
|
+
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
1968
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1969
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1970
|
+
end)
|
1971
|
+
|
1948
1972
|
api.add_operation(:delete_task_set, Seahorse::Model::Operation.new.tap do |o|
|
1949
1973
|
o.name = "DeleteTaskSet"
|
1950
1974
|
o.http_method = "POST"
|
@@ -50,9 +50,6 @@ module Aws::ECS
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::ECS
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
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
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
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"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -137,6 +137,20 @@ module Aws::ECS
|
|
137
137
|
end
|
138
138
|
end
|
139
139
|
|
140
|
+
class DeleteTaskDefinitions
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::ECS::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
140
154
|
class DeleteTaskSet
|
141
155
|
def self.build(context)
|
142
156
|
unless context.config.regional_endpoint
|
@@ -74,6 +74,8 @@ module Aws::ECS
|
|
74
74
|
Aws::ECS::Endpoints::DeleteCluster.build(context)
|
75
75
|
when :delete_service
|
76
76
|
Aws::ECS::Endpoints::DeleteService.build(context)
|
77
|
+
when :delete_task_definitions
|
78
|
+
Aws::ECS::Endpoints::DeleteTaskDefinitions.build(context)
|
77
79
|
when :delete_task_set
|
78
80
|
Aws::ECS::Endpoints::DeleteTaskSet.build(context)
|
79
81
|
when :deregister_container_instance
|