aws-sdk-eks 1.25.0 → 1.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf9361b5310f3fb3e4598e1d09cadc4e9e480894
4
- data.tar.gz: 1bff16e8812e3a4f56ae6c099408cfaf80d72e9b
3
+ metadata.gz: 28cd462ebbecd0da237dca5b3f33a092b69a13b6
4
+ data.tar.gz: bb0cef39df86be6cb6151d1df0e20ecd6a2df4e5
5
5
  SHA512:
6
- metadata.gz: 3ba5917724a7537fbc6873072c6810e2bd28697846b14e95718432a0976ae8320ef00232cfeae76de88605552cf5d9f5f99f11866c450ba1fbcbb0e813d442d8
7
- data.tar.gz: 20104cedb7a09a55807340202d3946fb8df089a0a6f976913a7db3b04e92f57f51db13139a5c9d499acd084e752e9003f43a82498b3372d0e6a00eb26994f986
6
+ metadata.gz: 4f6bb27f69f90c6da4128a9e808729ce372b480f45b47ed3c57273eadc093a4f360aebf6bf4dc8c73ebb700b83ca70af2972229f3d98d620fb9c729df2887e30
7
+ data.tar.gz: 8c3fadabd4b3d9532ac2da67daeffdee6432d1ca957a967e6fdef4fffbc18459a4674e2039cc56fda8ca928f12b5fde4b1d9b8027630bb2a0c0b2bb0b40b8856
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-eks/customizations'
43
43
  # @service
44
44
  module Aws::EKS
45
45
 
46
- GEM_VERSION = '1.25.0'
46
+ GEM_VERSION = '1.26.0'
47
47
 
48
48
  end
@@ -364,6 +364,11 @@ module Aws::EKS
364
364
  # **A suitable default value is auto-generated.** You should normally
365
365
  # not need to pass this option.**
366
366
  #
367
+ # @option params [Hash<String,String>] :tags
368
+ # The metadata to apply to the cluster to assist with categorization and
369
+ # organization. Each tag consists of a key and an optional value, both
370
+ # of which you define.
371
+ #
367
372
  # @return [Types::CreateClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
368
373
  #
369
374
  # * {Types::CreateClusterResponse#cluster #cluster} => Types::Cluster
@@ -414,6 +419,9 @@ module Aws::EKS
414
419
  # ],
415
420
  # },
416
421
  # client_request_token: "String",
422
+ # tags: {
423
+ # "TagKey" => "TagValue",
424
+ # },
417
425
  # })
418
426
  #
419
427
  # @example Response structure
@@ -440,6 +448,8 @@ module Aws::EKS
440
448
  # resp.cluster.certificate_authority.data #=> String
441
449
  # resp.cluster.client_request_token #=> String
442
450
  # resp.cluster.platform_version #=> String
451
+ # resp.cluster.tags #=> Hash
452
+ # resp.cluster.tags["TagKey"] #=> String
443
453
  #
444
454
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster AWS API Documentation
445
455
  #
@@ -515,6 +525,8 @@ module Aws::EKS
515
525
  # resp.cluster.certificate_authority.data #=> String
516
526
  # resp.cluster.client_request_token #=> String
517
527
  # resp.cluster.platform_version #=> String
528
+ # resp.cluster.tags #=> Hash
529
+ # resp.cluster.tags["TagKey"] #=> String
518
530
  #
519
531
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster AWS API Documentation
520
532
  #
@@ -613,6 +625,8 @@ module Aws::EKS
613
625
  # resp.cluster.certificate_authority.data #=> String
614
626
  # resp.cluster.client_request_token #=> String
615
627
  # resp.cluster.platform_version #=> String
628
+ # resp.cluster.tags #=> Hash
629
+ # resp.cluster.tags["TagKey"] #=> String
616
630
  #
617
631
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster AWS API Documentation
618
632
  #
@@ -739,6 +753,37 @@ module Aws::EKS
739
753
  req.send_request(options)
740
754
  end
741
755
 
756
+ # List the tags for an Amazon EKS resource.
757
+ #
758
+ # @option params [required, String] :resource_arn
759
+ # The Amazon Resource Name (ARN) that identifies the resource for which
760
+ # to list the tags. Currently, the supported resources are Amazon EKS
761
+ # clusters.
762
+ #
763
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
764
+ #
765
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
766
+ #
767
+ # @example Request syntax with placeholder values
768
+ #
769
+ # resp = client.list_tags_for_resource({
770
+ # resource_arn: "String", # required
771
+ # })
772
+ #
773
+ # @example Response structure
774
+ #
775
+ # resp.tags #=> Hash
776
+ # resp.tags["TagKey"] #=> String
777
+ #
778
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListTagsForResource AWS API Documentation
779
+ #
780
+ # @overload list_tags_for_resource(params = {})
781
+ # @param [Hash] params ({})
782
+ def list_tags_for_resource(params = {}, options = {})
783
+ req = build_request(:list_tags_for_resource, params)
784
+ req.send_request(options)
785
+ end
786
+
742
787
  # Lists the updates associated with an Amazon EKS cluster in your AWS
743
788
  # account, in the specified Region.
744
789
  #
@@ -789,6 +834,65 @@ module Aws::EKS
789
834
  req.send_request(options)
790
835
  end
791
836
 
837
+ # Associates the specified tags to a resource with the specified
838
+ # `resourceArn`. If existing tags on a resource are not specified in the
839
+ # request parameters, they are not changed. When a resource is deleted,
840
+ # the tags associated with that resource are deleted as well.
841
+ #
842
+ # @option params [required, String] :resource_arn
843
+ # The Amazon Resource Name (ARN) of the resource to which to add tags.
844
+ # Currently, the supported resources are Amazon EKS clusters.
845
+ #
846
+ # @option params [required, Hash<String,String>] :tags
847
+ # The tags to add to the resource. A tag is an array of key-value pairs.
848
+ #
849
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
850
+ #
851
+ # @example Request syntax with placeholder values
852
+ #
853
+ # resp = client.tag_resource({
854
+ # resource_arn: "String", # required
855
+ # tags: { # required
856
+ # "TagKey" => "TagValue",
857
+ # },
858
+ # })
859
+ #
860
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/TagResource AWS API Documentation
861
+ #
862
+ # @overload tag_resource(params = {})
863
+ # @param [Hash] params ({})
864
+ def tag_resource(params = {}, options = {})
865
+ req = build_request(:tag_resource, params)
866
+ req.send_request(options)
867
+ end
868
+
869
+ # Deletes specified tags from a resource.
870
+ #
871
+ # @option params [required, String] :resource_arn
872
+ # The Amazon Resource Name (ARN) of the resource from which to delete
873
+ # tags. Currently, the supported resources are Amazon EKS clusters.
874
+ #
875
+ # @option params [required, Array<String>] :tag_keys
876
+ # The keys of the tags to be removed.
877
+ #
878
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
879
+ #
880
+ # @example Request syntax with placeholder values
881
+ #
882
+ # resp = client.untag_resource({
883
+ # resource_arn: "String", # required
884
+ # tag_keys: ["TagKey"], # required
885
+ # })
886
+ #
887
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UntagResource AWS API Documentation
888
+ #
889
+ # @overload untag_resource(params = {})
890
+ # @param [Hash] params ({})
891
+ def untag_resource(params = {}, options = {})
892
+ req = build_request(:untag_resource, params)
893
+ req.send_request(options)
894
+ end
895
+
792
896
  # Updates an Amazon EKS cluster configuration. Your cluster continues to
793
897
  # function during the update. The response output includes an update ID
794
898
  # that you can use to track the status of your cluster update with the
@@ -981,7 +1085,7 @@ module Aws::EKS
981
1085
  params: params,
982
1086
  config: config)
983
1087
  context[:gem_name] = 'aws-sdk-eks'
984
- context[:gem_version] = '1.25.0'
1088
+ context[:gem_version] = '1.26.0'
985
1089
  Seahorse::Client::Request.new(handlers, context)
986
1090
  end
987
1091
 
@@ -11,6 +11,7 @@ module Aws::EKS
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
14
15
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
15
16
  BoxedBoolean = Shapes::BooleanShape.new(name: 'BoxedBoolean')
16
17
  Certificate = Shapes::StructureShape.new(name: 'Certificate')
@@ -35,6 +36,8 @@ module Aws::EKS
35
36
  ListClustersRequest = Shapes::StructureShape.new(name: 'ListClustersRequest')
36
37
  ListClustersRequestMaxResults = Shapes::IntegerShape.new(name: 'ListClustersRequestMaxResults')
37
38
  ListClustersResponse = Shapes::StructureShape.new(name: 'ListClustersResponse')
39
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
40
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
38
41
  ListUpdatesRequest = Shapes::StructureShape.new(name: 'ListUpdatesRequest')
39
42
  ListUpdatesRequestMaxResults = Shapes::IntegerShape.new(name: 'ListUpdatesRequestMaxResults')
40
43
  ListUpdatesResponse = Shapes::StructureShape.new(name: 'ListUpdatesResponse')
@@ -43,6 +46,7 @@ module Aws::EKS
43
46
  LogType = Shapes::StringShape.new(name: 'LogType')
44
47
  LogTypes = Shapes::ListShape.new(name: 'LogTypes')
45
48
  Logging = Shapes::StructureShape.new(name: 'Logging')
49
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
46
50
  OIDC = Shapes::StructureShape.new(name: 'OIDC')
47
51
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
48
52
  ResourceLimitExceededException = Shapes::StructureShape.new(name: 'ResourceLimitExceededException')
@@ -51,8 +55,16 @@ module Aws::EKS
51
55
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
52
56
  String = Shapes::StringShape.new(name: 'String')
53
57
  StringList = Shapes::ListShape.new(name: 'StringList')
58
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
59
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
60
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
61
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
62
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
63
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
54
64
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
55
65
  UnsupportedAvailabilityZoneException = Shapes::StructureShape.new(name: 'UnsupportedAvailabilityZoneException')
66
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
67
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
56
68
  Update = Shapes::StructureShape.new(name: 'Update')
57
69
  UpdateClusterConfigRequest = Shapes::StructureShape.new(name: 'UpdateClusterConfigRequest')
58
70
  UpdateClusterConfigResponse = Shapes::StructureShape.new(name: 'UpdateClusterConfigResponse')
@@ -66,6 +78,9 @@ module Aws::EKS
66
78
  VpcConfigRequest = Shapes::StructureShape.new(name: 'VpcConfigRequest')
67
79
  VpcConfigResponse = Shapes::StructureShape.new(name: 'VpcConfigResponse')
68
80
 
81
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
82
+ BadRequestException.struct_class = Types::BadRequestException
83
+
69
84
  Certificate.add_member(:data, Shapes::ShapeRef.new(shape: String, location_name: "data"))
70
85
  Certificate.struct_class = Types::Certificate
71
86
 
@@ -86,6 +101,7 @@ module Aws::EKS
86
101
  Cluster.add_member(:certificate_authority, Shapes::ShapeRef.new(shape: Certificate, location_name: "certificateAuthority"))
87
102
  Cluster.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken"))
88
103
  Cluster.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
104
+ Cluster.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
89
105
  Cluster.struct_class = Types::Cluster
90
106
 
91
107
  CreateClusterRequest.add_member(:name, Shapes::ShapeRef.new(shape: ClusterName, required: true, location_name: "name"))
@@ -94,6 +110,7 @@ module Aws::EKS
94
110
  CreateClusterRequest.add_member(:resources_vpc_config, Shapes::ShapeRef.new(shape: VpcConfigRequest, required: true, location_name: "resourcesVpcConfig"))
95
111
  CreateClusterRequest.add_member(:logging, Shapes::ShapeRef.new(shape: Logging, location_name: "logging"))
96
112
  CreateClusterRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
113
+ CreateClusterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
97
114
  CreateClusterRequest.struct_class = Types::CreateClusterRequest
98
115
 
99
116
  CreateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
@@ -144,6 +161,12 @@ module Aws::EKS
144
161
  ListClustersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
145
162
  ListClustersResponse.struct_class = Types::ListClustersResponse
146
163
 
164
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
165
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
166
+
167
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
168
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
169
+
147
170
  ListUpdatesRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "name"))
148
171
  ListUpdatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
149
172
  ListUpdatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListUpdatesRequestMaxResults, location: "querystring", location_name: "maxResults"))
@@ -164,6 +187,9 @@ module Aws::EKS
164
187
  Logging.add_member(:cluster_logging, Shapes::ShapeRef.new(shape: LogSetups, location_name: "clusterLogging"))
165
188
  Logging.struct_class = Types::Logging
166
189
 
190
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
191
+ NotFoundException.struct_class = Types::NotFoundException
192
+
167
193
  OIDC.add_member(:issuer, Shapes::ShapeRef.new(shape: String, location_name: "issuer"))
168
194
  OIDC.struct_class = Types::OIDC
169
195
 
@@ -188,11 +214,28 @@ module Aws::EKS
188
214
 
189
215
  StringList.member = Shapes::ShapeRef.new(shape: String)
190
216
 
217
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
218
+
219
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
220
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
221
+
222
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
223
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
224
+ TagResourceRequest.struct_class = Types::TagResourceRequest
225
+
226
+ TagResourceResponse.struct_class = Types::TagResourceResponse
227
+
191
228
  UnsupportedAvailabilityZoneException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
192
229
  UnsupportedAvailabilityZoneException.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, location_name: "clusterName"))
193
230
  UnsupportedAvailabilityZoneException.add_member(:valid_zones, Shapes::ShapeRef.new(shape: StringList, location_name: "validZones"))
194
231
  UnsupportedAvailabilityZoneException.struct_class = Types::UnsupportedAvailabilityZoneException
195
232
 
233
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
234
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
235
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
236
+
237
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
238
+
196
239
  Update.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
197
240
  Update.add_member(:status, Shapes::ShapeRef.new(shape: UpdateStatus, location_name: "status"))
198
241
  Update.add_member(:type, Shapes::ShapeRef.new(shape: UpdateType, location_name: "type"))
@@ -326,6 +369,16 @@ module Aws::EKS
326
369
  )
327
370
  end)
328
371
 
372
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
373
+ o.name = "ListTagsForResource"
374
+ o.http_method = "GET"
375
+ o.http_request_uri = "/tags/{resourceArn}"
376
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
377
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
378
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
379
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
380
+ end)
381
+
329
382
  api.add_operation(:list_updates, Seahorse::Model::Operation.new.tap do |o|
330
383
  o.name = "ListUpdates"
331
384
  o.http_method = "GET"
@@ -344,6 +397,26 @@ module Aws::EKS
344
397
  )
345
398
  end)
346
399
 
400
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
401
+ o.name = "TagResource"
402
+ o.http_method = "POST"
403
+ o.http_request_uri = "/tags/{resourceArn}"
404
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
405
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
406
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
407
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
408
+ end)
409
+
410
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
411
+ o.name = "UntagResource"
412
+ o.http_method = "DELETE"
413
+ o.http_request_uri = "/tags/{resourceArn}"
414
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
415
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
416
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
417
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
418
+ end)
419
+
347
420
  api.add_operation(:update_cluster_config, Seahorse::Model::Operation.new.tap do |o|
348
421
  o.name = "UpdateClusterConfig"
349
422
  o.http_method = "POST"
@@ -10,6 +10,22 @@ module Aws::EKS
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class BadRequestException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::EKS::Types::BadRequestException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
13
29
  class ClientException < ServiceError
14
30
 
15
31
  # @param [Seahorse::Client::RequestContext] context
@@ -73,6 +89,22 @@ module Aws::EKS
73
89
 
74
90
  end
75
91
 
92
+ class NotFoundException < ServiceError
93
+
94
+ # @param [Seahorse::Client::RequestContext] context
95
+ # @param [String] message
96
+ # @param [Aws::EKS::Types::NotFoundException] data
97
+ def initialize(context, message, data = Aws::EmptyStructure.new)
98
+ super(context, message, data)
99
+ end
100
+
101
+ # @return [String]
102
+ def message
103
+ @message || @data[:message]
104
+ end
105
+
106
+ end
107
+
76
108
  class ResourceInUseException < ServiceError
77
109
 
78
110
  # @param [Seahorse::Client::RequestContext] context
@@ -8,6 +8,20 @@
8
8
  module Aws::EKS
9
9
  module Types
10
10
 
11
+ # This exception is thrown if the request contains a semantic error. The
12
+ # precise meaning will depend on the API, and will be documented in the
13
+ # error message.
14
+ #
15
+ # @!attribute [rw] message
16
+ # @return [String]
17
+ #
18
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/BadRequestException AWS API Documentation
19
+ #
20
+ class BadRequestException < Struct.new(
21
+ :message)
22
+ include Aws::Structure
23
+ end
24
+
11
25
  # An object representing the `certificate-authority-data` for your
12
26
  # cluster.
13
27
  #
@@ -117,6 +131,12 @@ module Aws::EKS
117
131
  # [1]: https://docs.aws.amazon.com/eks/latest/userguide/platform-versions.html
118
132
  # @return [String]
119
133
  #
134
+ # @!attribute [rw] tags
135
+ # The metadata that you apply to the cluster to assist with
136
+ # categorization and organization. Each tag consists of a key and an
137
+ # optional value, both of which you define.
138
+ # @return [Hash<String,String>]
139
+ #
120
140
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/Cluster AWS API Documentation
121
141
  #
122
142
  class Cluster < Struct.new(
@@ -132,7 +152,8 @@ module Aws::EKS
132
152
  :status,
133
153
  :certificate_authority,
134
154
  :client_request_token,
135
- :platform_version)
155
+ :platform_version,
156
+ :tags)
136
157
  include Aws::Structure
137
158
  end
138
159
 
@@ -158,6 +179,9 @@ module Aws::EKS
158
179
  # ],
159
180
  # },
160
181
  # client_request_token: "String",
182
+ # tags: {
183
+ # "TagKey" => "TagValue",
184
+ # },
161
185
  # }
162
186
  #
163
187
  # @!attribute [rw] name
@@ -223,6 +247,12 @@ module Aws::EKS
223
247
  # not need to pass this option.
224
248
  # @return [String]
225
249
  #
250
+ # @!attribute [rw] tags
251
+ # The metadata to apply to the cluster to assist with categorization
252
+ # and organization. Each tag consists of a key and an optional value,
253
+ # both of which you define.
254
+ # @return [Hash<String,String>]
255
+ #
226
256
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateClusterRequest AWS API Documentation
227
257
  #
228
258
  class CreateClusterRequest < Struct.new(
@@ -231,7 +261,8 @@ module Aws::EKS
231
261
  :role_arn,
232
262
  :resources_vpc_config,
233
263
  :logging,
234
- :client_request_token)
264
+ :client_request_token,
265
+ :tags)
235
266
  include Aws::Structure
236
267
  end
237
268
 
@@ -500,6 +531,37 @@ module Aws::EKS
500
531
  include Aws::Structure
501
532
  end
502
533
 
534
+ # @note When making an API call, you may pass ListTagsForResourceRequest
535
+ # data as a hash:
536
+ #
537
+ # {
538
+ # resource_arn: "String", # required
539
+ # }
540
+ #
541
+ # @!attribute [rw] resource_arn
542
+ # The Amazon Resource Name (ARN) that identifies the resource for
543
+ # which to list the tags. Currently, the supported resources are
544
+ # Amazon EKS clusters.
545
+ # @return [String]
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListTagsForResourceRequest AWS API Documentation
548
+ #
549
+ class ListTagsForResourceRequest < Struct.new(
550
+ :resource_arn)
551
+ include Aws::Structure
552
+ end
553
+
554
+ # @!attribute [rw] tags
555
+ # The tags for the resource.
556
+ # @return [Hash<String,String>]
557
+ #
558
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListTagsForResourceResponse AWS API Documentation
559
+ #
560
+ class ListTagsForResourceResponse < Struct.new(
561
+ :tags)
562
+ include Aws::Structure
563
+ end
564
+
503
565
  # @note When making an API call, you may pass ListUpdatesRequest
504
566
  # data as a hash:
505
567
  #
@@ -615,6 +677,19 @@ module Aws::EKS
615
677
  include Aws::Structure
616
678
  end
617
679
 
680
+ # A service resource associated with the request could not be found.
681
+ # Clients should not retry such requests.
682
+ #
683
+ # @!attribute [rw] message
684
+ # @return [String]
685
+ #
686
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/NotFoundException AWS API Documentation
687
+ #
688
+ class NotFoundException < Struct.new(
689
+ :message)
690
+ include Aws::Structure
691
+ end
692
+
618
693
  # An object representing the [OpenID Connect][1] identity provider
619
694
  # information for the cluster.
620
695
  #
@@ -714,6 +789,38 @@ module Aws::EKS
714
789
  include Aws::Structure
715
790
  end
716
791
 
792
+ # @note When making an API call, you may pass TagResourceRequest
793
+ # data as a hash:
794
+ #
795
+ # {
796
+ # resource_arn: "String", # required
797
+ # tags: { # required
798
+ # "TagKey" => "TagValue",
799
+ # },
800
+ # }
801
+ #
802
+ # @!attribute [rw] resource_arn
803
+ # The Amazon Resource Name (ARN) of the resource to which to add tags.
804
+ # Currently, the supported resources are Amazon EKS clusters.
805
+ # @return [String]
806
+ #
807
+ # @!attribute [rw] tags
808
+ # The tags to add to the resource. A tag is an array of key-value
809
+ # pairs.
810
+ # @return [Hash<String,String>]
811
+ #
812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/TagResourceRequest AWS API Documentation
813
+ #
814
+ class TagResourceRequest < Struct.new(
815
+ :resource_arn,
816
+ :tags)
817
+ include Aws::Structure
818
+ end
819
+
820
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/TagResourceResponse AWS API Documentation
821
+ #
822
+ class TagResourceResponse < Aws::EmptyStructure; end
823
+
717
824
  # At least one of your specified cluster subnets is in an Availability
718
825
  # Zone that does not support Amazon EKS. The exception output specifies
719
826
  # the supported Availability Zones for your account, from which you can
@@ -740,6 +847,35 @@ module Aws::EKS
740
847
  include Aws::Structure
741
848
  end
742
849
 
850
+ # @note When making an API call, you may pass UntagResourceRequest
851
+ # data as a hash:
852
+ #
853
+ # {
854
+ # resource_arn: "String", # required
855
+ # tag_keys: ["TagKey"], # required
856
+ # }
857
+ #
858
+ # @!attribute [rw] resource_arn
859
+ # The Amazon Resource Name (ARN) of the resource from which to delete
860
+ # tags. Currently, the supported resources are Amazon EKS clusters.
861
+ # @return [String]
862
+ #
863
+ # @!attribute [rw] tag_keys
864
+ # The keys of the tags to be removed.
865
+ # @return [Array<String>]
866
+ #
867
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UntagResourceRequest AWS API Documentation
868
+ #
869
+ class UntagResourceRequest < Struct.new(
870
+ :resource_arn,
871
+ :tag_keys)
872
+ include Aws::Structure
873
+ end
874
+
875
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UntagResourceResponse AWS API Documentation
876
+ #
877
+ class UntagResourceResponse < Aws::EmptyStructure; end
878
+
743
879
  # An object representing an asynchronous update.
744
880
  #
745
881
  # @!attribute [rw] id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-eks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core