aws-sdk-eks 1.31.0 → 1.32.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3b5132779daad669f549a891d8c4a99f040bb0e
4
- data.tar.gz: 57c91f3dbeba36e188989b825b9ffaa925ffdb1d
3
+ metadata.gz: 35509c7263b61352667f37625da4910aa6684e65
4
+ data.tar.gz: cc8db9f3ecc1bd0d84d4f52bdbba1929f80c9bdb
5
5
  SHA512:
6
- metadata.gz: 90563045b6576a7d91754d9af115d9a3d24f3f6fbd28d893d7bd46f942e5c14b471bb2ddbfa5afd5698d6e40ee568a3fe3f4f37fa3b3f96bd6f781c54add730a
7
- data.tar.gz: 12a905db2b2e13b770b16e6ce94a03273a86235690110283e56beacc4a50065d5eaa48e1486609eebec3d77b3ded339eb839116e49ffdea08525ec336f294daf
6
+ metadata.gz: '049fbd4bbdf27b074d24d19c497ab2d2b0ed0a09eb052282b202de7c7de43f0875c40cd20e19f348e1bd4021920598320f8faa7bea2bf6b6a8848bbe13b7ef4b'
7
+ data.tar.gz: a144043e34b078b9a0f038b897b966b7e667c6f6f7ebe6c4bddccef1a490f3d95f0d51bb66e5c2582cfca07ac6597777fee12e9e20354ea23446f1946807bbbb
data/lib/aws-sdk-eks.rb CHANGED
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-eks/customizations'
25
25
  # methods each accept a hash of request parameters and return a response
26
26
  # structure.
27
27
  #
28
+ # eks = Aws::EKS::Client.new
29
+ # resp = eks.create_cluster(params)
30
+ #
28
31
  # See {Client} for more information.
29
32
  #
30
33
  # # Errors
31
34
  #
32
- # Errors returned from Amazon Elastic Kubernetes Service all
33
- # extend {Errors::ServiceError}.
35
+ # Errors returned from Amazon Elastic Kubernetes Service are defined in the
36
+ # {Errors} module and all extend {Errors::ServiceError}.
34
37
  #
35
38
  # begin
36
39
  # # do stuff
37
40
  # rescue Aws::EKS::Errors::ServiceError
38
- # # rescues all service API errors
41
+ # # rescues all Amazon Elastic Kubernetes Service API errors
39
42
  # end
40
43
  #
41
44
  # See {Errors} for more information.
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-eks/customizations'
43
46
  # @service
44
47
  module Aws::EKS
45
48
 
46
- GEM_VERSION = '1.31.0'
49
+ GEM_VERSION = '1.32.0'
47
50
 
48
51
  end
@@ -30,6 +30,16 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:eks)
31
31
 
32
32
  module Aws::EKS
33
+ # An API client for EKS. To construct a client, you need to configure a +:region+ and +:credentials+.
34
+ # client = Aws::EKS::Client.new(
35
+ # region: region_name,
36
+ # credentials: credentials,
37
+ # # ...
38
+ # )
39
+ # For details on configuring region and credentials see
40
+ # the {developer-guide}[https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html].
41
+ #
42
+ # See {#initialize} for a full list of supported configuration options.
33
43
  class Client < Seahorse::Client::Base
34
44
 
35
45
  include Aws::ClientStubs
@@ -209,16 +219,16 @@ module Aws::EKS
209
219
  # requests through. Formatted like 'http://proxy.com:123'.
210
220
  #
211
221
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
222
+ # seconds to wait when opening a HTTP session before raising a
213
223
  # `Timeout::Error`.
214
224
  #
215
225
  # @option options [Integer] :http_read_timeout (60) The default
216
226
  # number of seconds to wait for response data. This value can
217
227
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
228
+ # per-request on the session yielded by {#session_for}.
219
229
  #
220
230
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
231
+ # seconds a connection is allowed to sit idle before it is
222
232
  # considered stale. Stale connections are closed and removed
223
233
  # from the pool before making a request.
224
234
  #
@@ -227,7 +237,7 @@ module Aws::EKS
227
237
  # request body. This option has no effect unless the request has
228
238
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
239
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
240
+ # request on the session yielded by {#session_for}.
231
241
  #
232
242
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
243
  # HTTP debug output will be sent to the `:logger`.
@@ -369,6 +379,9 @@ module Aws::EKS
369
379
  # organization. Each tag consists of a key and an optional value, both
370
380
  # of which you define.
371
381
  #
382
+ # @option params [Array<Types::EncryptionConfig>] :encryption_config
383
+ # The encryption configuration for the cluster.
384
+ #
372
385
  # @return [Types::CreateClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
373
386
  #
374
387
  # * {Types::CreateClusterResponse#cluster #cluster} => Types::Cluster
@@ -423,6 +436,14 @@ module Aws::EKS
423
436
  # tags: {
424
437
  # "TagKey" => "TagValue",
425
438
  # },
439
+ # encryption_config: [
440
+ # {
441
+ # resources: ["String"],
442
+ # provider: {
443
+ # key_arn: "String",
444
+ # },
445
+ # },
446
+ # ],
426
447
  # })
427
448
  #
428
449
  # @example Response structure
@@ -454,6 +475,10 @@ module Aws::EKS
454
475
  # resp.cluster.platform_version #=> String
455
476
  # resp.cluster.tags #=> Hash
456
477
  # resp.cluster.tags["TagKey"] #=> String
478
+ # resp.cluster.encryption_config #=> Array
479
+ # resp.cluster.encryption_config[0].resources #=> Array
480
+ # resp.cluster.encryption_config[0].resources[0] #=> String
481
+ # resp.cluster.encryption_config[0].provider.key_arn #=> String
457
482
  #
458
483
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster AWS API Documentation
459
484
  #
@@ -850,6 +875,10 @@ module Aws::EKS
850
875
  # resp.cluster.platform_version #=> String
851
876
  # resp.cluster.tags #=> Hash
852
877
  # resp.cluster.tags["TagKey"] #=> String
878
+ # resp.cluster.encryption_config #=> Array
879
+ # resp.cluster.encryption_config[0].resources #=> Array
880
+ # resp.cluster.encryption_config[0].resources[0] #=> String
881
+ # resp.cluster.encryption_config[0].provider.key_arn #=> String
853
882
  #
854
883
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster AWS API Documentation
855
884
  #
@@ -1074,6 +1103,10 @@ module Aws::EKS
1074
1103
  # resp.cluster.platform_version #=> String
1075
1104
  # resp.cluster.tags #=> Hash
1076
1105
  # resp.cluster.tags["TagKey"] #=> String
1106
+ # resp.cluster.encryption_config #=> Array
1107
+ # resp.cluster.encryption_config[0].resources #=> Array
1108
+ # resp.cluster.encryption_config[0].resources[0] #=> String
1109
+ # resp.cluster.encryption_config[0].provider.key_arn #=> String
1077
1110
  #
1078
1111
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster AWS API Documentation
1079
1112
  #
@@ -1956,7 +1989,7 @@ module Aws::EKS
1956
1989
  params: params,
1957
1990
  config: config)
1958
1991
  context[:gem_name] = 'aws-sdk-eks'
1959
- context[:gem_version] = '1.31.0'
1992
+ context[:gem_version] = '1.32.0'
1960
1993
  Seahorse::Client::Request.new(handlers, context)
1961
1994
  end
1962
1995
 
@@ -44,6 +44,8 @@ module Aws::EKS
44
44
  DescribeNodegroupResponse = Shapes::StructureShape.new(name: 'DescribeNodegroupResponse')
45
45
  DescribeUpdateRequest = Shapes::StructureShape.new(name: 'DescribeUpdateRequest')
46
46
  DescribeUpdateResponse = Shapes::StructureShape.new(name: 'DescribeUpdateResponse')
47
+ EncryptionConfig = Shapes::StructureShape.new(name: 'EncryptionConfig')
48
+ EncryptionConfigList = Shapes::ListShape.new(name: 'EncryptionConfigList')
47
49
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
48
50
  ErrorDetail = Shapes::StructureShape.new(name: 'ErrorDetail')
49
51
  ErrorDetails = Shapes::ListShape.new(name: 'ErrorDetails')
@@ -84,6 +86,7 @@ module Aws::EKS
84
86
  NodegroupStatus = Shapes::StringShape.new(name: 'NodegroupStatus')
85
87
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
86
88
  OIDC = Shapes::StructureShape.new(name: 'OIDC')
89
+ Provider = Shapes::StructureShape.new(name: 'Provider')
87
90
  RemoteAccessConfig = Shapes::StructureShape.new(name: 'RemoteAccessConfig')
88
91
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
89
92
  ResourceLimitExceededException = Shapes::StructureShape.new(name: 'ResourceLimitExceededException')
@@ -154,6 +157,7 @@ module Aws::EKS
154
157
  Cluster.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken"))
155
158
  Cluster.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
156
159
  Cluster.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
160
+ Cluster.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfigList, location_name: "encryptionConfig"))
157
161
  Cluster.struct_class = Types::Cluster
158
162
 
159
163
  CreateClusterRequest.add_member(:name, Shapes::ShapeRef.new(shape: ClusterName, required: true, location_name: "name"))
@@ -163,6 +167,7 @@ module Aws::EKS
163
167
  CreateClusterRequest.add_member(:logging, Shapes::ShapeRef.new(shape: Logging, location_name: "logging"))
164
168
  CreateClusterRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
165
169
  CreateClusterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
170
+ CreateClusterRequest.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfigList, location_name: "encryptionConfig"))
166
171
  CreateClusterRequest.struct_class = Types::CreateClusterRequest
167
172
 
168
173
  CreateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
@@ -247,6 +252,12 @@ module Aws::EKS
247
252
  DescribeUpdateResponse.add_member(:update, Shapes::ShapeRef.new(shape: Update, location_name: "update"))
248
253
  DescribeUpdateResponse.struct_class = Types::DescribeUpdateResponse
249
254
 
255
+ EncryptionConfig.add_member(:resources, Shapes::ShapeRef.new(shape: StringList, location_name: "resources"))
256
+ EncryptionConfig.add_member(:provider, Shapes::ShapeRef.new(shape: Provider, location_name: "provider"))
257
+ EncryptionConfig.struct_class = Types::EncryptionConfig
258
+
259
+ EncryptionConfigList.member = Shapes::ShapeRef.new(shape: EncryptionConfig)
260
+
250
261
  ErrorDetail.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
251
262
  ErrorDetail.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
252
263
  ErrorDetail.add_member(:resource_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "resourceIds"))
@@ -387,6 +398,9 @@ module Aws::EKS
387
398
  OIDC.add_member(:issuer, Shapes::ShapeRef.new(shape: String, location_name: "issuer"))
388
399
  OIDC.struct_class = Types::OIDC
389
400
 
401
+ Provider.add_member(:key_arn, Shapes::ShapeRef.new(shape: String, location_name: "keyArn"))
402
+ Provider.struct_class = Types::Provider
403
+
390
404
  RemoteAccessConfig.add_member(:ec2_ssh_key, Shapes::ShapeRef.new(shape: String, location_name: "ec2SshKey"))
391
405
  RemoteAccessConfig.add_member(:source_security_groups, Shapes::ShapeRef.new(shape: StringList, location_name: "sourceSecurityGroups"))
392
406
  RemoteAccessConfig.struct_class = Types::RemoteAccessConfig
@@ -6,6 +6,43 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EKS
9
+
10
+ # When EKS returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::EKS::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all EKS errors using ServiceError:
14
+ # begin
15
+ # # do stuff
16
+ # rescue Aws::EKS::Errors::ServiceError
17
+ # # rescues all EKS API errors
18
+ # end
19
+ #
20
+ # ## Request Context
21
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
22
+ # information about the request that generated the error, including:
23
+ # *
24
+ # * #params - The request params
25
+ # * #operation_name - Name of the API operation invoked
26
+ # * #http_request
27
+ # * #http_response
28
+ # * etc ...
29
+ #
30
+ # See {Seahorse::Client::RequestContext} for more information.
31
+ #
32
+ # ## Error Classes
33
+ # * {BadRequestException}
34
+ # * {ClientException}
35
+ # * {InvalidParameterException}
36
+ # * {InvalidRequestException}
37
+ # * {NotFoundException}
38
+ # * {ResourceInUseException}
39
+ # * {ResourceLimitExceededException}
40
+ # * {ResourceNotFoundException}
41
+ # * {ServerException}
42
+ # * {ServiceUnavailableException}
43
+ # * {UnsupportedAvailabilityZoneException}
44
+ # Additionally, error classes are dynamically generated for service errors based on the error code
45
+ # if they are not defined above.
9
46
  module Errors
10
47
 
11
48
  extend Aws::Errors::DynamicErrors
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EKS
9
+ # This class provides a resource oriented interface for EKS.
10
+ # To create a resource object:
11
+ # resource = Aws::EKS::Resource.new(region: 'us-west-2')
12
+ # You can supply a client object with custom configuration that will be used for all resource operations.
13
+ # If you do not pass +:client+, a default client will be constructed.
14
+ # client = Aws::EKS::Client.new(region: 'us-west-2')
15
+ # resource = Aws::EKS::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -158,6 +158,10 @@ module Aws::EKS
158
158
  # propagate to any other resources associated with the cluster.
159
159
  # @return [Hash<String,String>]
160
160
  #
161
+ # @!attribute [rw] encryption_config
162
+ # The encryption configuration for the cluster.
163
+ # @return [Array<Types::EncryptionConfig>]
164
+ #
161
165
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/Cluster AWS API Documentation
162
166
  #
163
167
  class Cluster < Struct.new(
@@ -174,7 +178,8 @@ module Aws::EKS
174
178
  :certificate_authority,
175
179
  :client_request_token,
176
180
  :platform_version,
177
- :tags)
181
+ :tags,
182
+ :encryption_config)
178
183
  include Aws::Structure
179
184
  end
180
185
 
@@ -204,6 +209,14 @@ module Aws::EKS
204
209
  # tags: {
205
210
  # "TagKey" => "TagValue",
206
211
  # },
212
+ # encryption_config: [
213
+ # {
214
+ # resources: ["String"],
215
+ # provider: {
216
+ # key_arn: "String",
217
+ # },
218
+ # },
219
+ # ],
207
220
  # }
208
221
  #
209
222
  # @!attribute [rw] name
@@ -275,6 +288,10 @@ module Aws::EKS
275
288
  # both of which you define.
276
289
  # @return [Hash<String,String>]
277
290
  #
291
+ # @!attribute [rw] encryption_config
292
+ # The encryption configuration for the cluster.
293
+ # @return [Array<Types::EncryptionConfig>]
294
+ #
278
295
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateClusterRequest AWS API Documentation
279
296
  #
280
297
  class CreateClusterRequest < Struct.new(
@@ -284,7 +301,8 @@ module Aws::EKS
284
301
  :resources_vpc_config,
285
302
  :logging,
286
303
  :client_request_token,
287
- :tags)
304
+ :tags,
305
+ :encryption_config)
288
306
  include Aws::Structure
289
307
  end
290
308
 
@@ -798,6 +816,36 @@ module Aws::EKS
798
816
  include Aws::Structure
799
817
  end
800
818
 
819
+ # The encryption configuration for the cluster.
820
+ #
821
+ # @note When making an API call, you may pass EncryptionConfig
822
+ # data as a hash:
823
+ #
824
+ # {
825
+ # resources: ["String"],
826
+ # provider: {
827
+ # key_arn: "String",
828
+ # },
829
+ # }
830
+ #
831
+ # @!attribute [rw] resources
832
+ # Specifies the resources to be encrypted. The only supported value is
833
+ # "secrets".
834
+ # @return [Array<String>]
835
+ #
836
+ # @!attribute [rw] provider
837
+ # AWS Key Management Service (AWS KMS) customer master key (CMK).
838
+ # Either the ARN or the alias can be used.
839
+ # @return [Types::Provider]
840
+ #
841
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/EncryptionConfig AWS API Documentation
842
+ #
843
+ class EncryptionConfig < Struct.new(
844
+ :resources,
845
+ :provider)
846
+ include Aws::Structure
847
+ end
848
+
801
849
  # An object representing an error when an asynchronous operation fails.
802
850
  #
803
851
  # @!attribute [rw] error_code
@@ -1672,6 +1720,36 @@ module Aws::EKS
1672
1720
  include Aws::Structure
1673
1721
  end
1674
1722
 
1723
+ # Identifies the AWS Key Management Service (AWS KMS) customer master
1724
+ # key (CMK) used to encrypt the secrets.
1725
+ #
1726
+ # @note When making an API call, you may pass Provider
1727
+ # data as a hash:
1728
+ #
1729
+ # {
1730
+ # key_arn: "String",
1731
+ # }
1732
+ #
1733
+ # @!attribute [rw] key_arn
1734
+ # Amazon Resource Name (ARN) or alias of the customer master key
1735
+ # (CMK). The CMK must be symmetric, created in the same region as the
1736
+ # cluster, and if the CMK was created in a different account, the user
1737
+ # must have access to the CMK. For more information, see [Allowing
1738
+ # Users in Other Accounts to Use a CMK][1] in the *AWS Key Management
1739
+ # Service Developer Guide*.
1740
+ #
1741
+ #
1742
+ #
1743
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html
1744
+ # @return [String]
1745
+ #
1746
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/Provider AWS API Documentation
1747
+ #
1748
+ class Provider < Struct.new(
1749
+ :key_arn)
1750
+ include Aws::Structure
1751
+ end
1752
+
1675
1753
  # An object representing the remote access configuration for the managed
1676
1754
  # node group.
1677
1755
  #
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.31.0
4
+ version: 1.32.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: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core