aws-sdk-eks 1.62.0 → 1.63.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
  SHA256:
3
- metadata.gz: 4da6c49978a6bd220c310fdc843be379743a5665b07201c27154b54539cc4432
4
- data.tar.gz: f3448566a4b10a4de52c4b22aeef61731c4a7bfa8dd474610edcfa4275783319
3
+ metadata.gz: 199bc05d308a57a316bfc8ccca850ba154f1d649fa4b090be22bfb58962a52be
4
+ data.tar.gz: 969d16f56e25a8156dc5a324da47de5d022ab3d0e756232ba4e4170b1f884d38
5
5
  SHA512:
6
- metadata.gz: bc045e0cb4efc699d057995cae20f47bcc1bccdf22dcb4c8ab182599191c6d950142940e3d59ac5cb9e0d0cf7e239e3369089ffffdf4dd317469a384716d22b1
7
- data.tar.gz: 8cf727275761f198c08a3bfd7451b6aeb6a71afc108df0430e2ba8691e08dd9d33573f5618877c1e813a3d188d686fcb75e0abbb5207c3cee11dea1f0abce98f
6
+ metadata.gz: 9c8a7a33a93a0d7d049f75e27b48f9c7e7a49789f651f4535c64b1671d6f311db6be1db437e3665ae9f21fca53ce218e941079311e33adf77ea843a72295e4d2
7
+ data.tar.gz: c95e9deef16681061669d053430269109cf0a93a35bf7b06ff2006da399381e23233659623effc15a092e2769064392194e50de496faab5461114780d18574cb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.63.0 (2021-09-07)
5
+ ------------------
6
+
7
+ * Feature - Adding RegisterCluster and DeregisterCluster operations, to support connecting external clusters to EKS.
8
+
4
9
  1.62.0 (2021-09-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.62.0
1
+ 1.63.0
@@ -776,7 +776,7 @@ module Aws::EKS
776
776
  # resp.cluster.logging.cluster_logging[0].types[0] #=> String, one of "api", "audit", "authenticator", "controllerManager", "scheduler"
777
777
  # resp.cluster.logging.cluster_logging[0].enabled #=> Boolean
778
778
  # resp.cluster.identity.oidc.issuer #=> String
779
- # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING"
779
+ # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING", "PENDING"
780
780
  # resp.cluster.certificate_authority.data #=> String
781
781
  # resp.cluster.client_request_token #=> String
782
782
  # resp.cluster.platform_version #=> String
@@ -786,6 +786,11 @@ module Aws::EKS
786
786
  # resp.cluster.encryption_config[0].resources #=> Array
787
787
  # resp.cluster.encryption_config[0].resources[0] #=> String
788
788
  # resp.cluster.encryption_config[0].provider.key_arn #=> String
789
+ # resp.cluster.connector_config.activation_id #=> String
790
+ # resp.cluster.connector_config.activation_code #=> String
791
+ # resp.cluster.connector_config.activation_expiry #=> Time
792
+ # resp.cluster.connector_config.provider #=> String
793
+ # resp.cluster.connector_config.role_arn #=> String
789
794
  #
790
795
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster AWS API Documentation
791
796
  #
@@ -1346,7 +1351,7 @@ module Aws::EKS
1346
1351
  # resp.cluster.logging.cluster_logging[0].types[0] #=> String, one of "api", "audit", "authenticator", "controllerManager", "scheduler"
1347
1352
  # resp.cluster.logging.cluster_logging[0].enabled #=> Boolean
1348
1353
  # resp.cluster.identity.oidc.issuer #=> String
1349
- # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING"
1354
+ # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING", "PENDING"
1350
1355
  # resp.cluster.certificate_authority.data #=> String
1351
1356
  # resp.cluster.client_request_token #=> String
1352
1357
  # resp.cluster.platform_version #=> String
@@ -1356,6 +1361,11 @@ module Aws::EKS
1356
1361
  # resp.cluster.encryption_config[0].resources #=> Array
1357
1362
  # resp.cluster.encryption_config[0].resources[0] #=> String
1358
1363
  # resp.cluster.encryption_config[0].provider.key_arn #=> String
1364
+ # resp.cluster.connector_config.activation_id #=> String
1365
+ # resp.cluster.connector_config.activation_code #=> String
1366
+ # resp.cluster.connector_config.activation_expiry #=> Time
1367
+ # resp.cluster.connector_config.provider #=> String
1368
+ # resp.cluster.connector_config.role_arn #=> String
1359
1369
  #
1360
1370
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster AWS API Documentation
1361
1371
  #
@@ -1497,6 +1507,71 @@ module Aws::EKS
1497
1507
  req.send_request(options)
1498
1508
  end
1499
1509
 
1510
+ # Deregisters a connected cluster to remove it from the Amazon EKS
1511
+ # control plane.
1512
+ #
1513
+ # @option params [required, String] :name
1514
+ # The name of the connected cluster to deregister.
1515
+ #
1516
+ # @return [Types::DeregisterClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1517
+ #
1518
+ # * {Types::DeregisterClusterResponse#cluster #cluster} => Types::Cluster
1519
+ #
1520
+ # @example Request syntax with placeholder values
1521
+ #
1522
+ # resp = client.deregister_cluster({
1523
+ # name: "String", # required
1524
+ # })
1525
+ #
1526
+ # @example Response structure
1527
+ #
1528
+ # resp.cluster.name #=> String
1529
+ # resp.cluster.arn #=> String
1530
+ # resp.cluster.created_at #=> Time
1531
+ # resp.cluster.version #=> String
1532
+ # resp.cluster.endpoint #=> String
1533
+ # resp.cluster.role_arn #=> String
1534
+ # resp.cluster.resources_vpc_config.subnet_ids #=> Array
1535
+ # resp.cluster.resources_vpc_config.subnet_ids[0] #=> String
1536
+ # resp.cluster.resources_vpc_config.security_group_ids #=> Array
1537
+ # resp.cluster.resources_vpc_config.security_group_ids[0] #=> String
1538
+ # resp.cluster.resources_vpc_config.cluster_security_group_id #=> String
1539
+ # resp.cluster.resources_vpc_config.vpc_id #=> String
1540
+ # resp.cluster.resources_vpc_config.endpoint_public_access #=> Boolean
1541
+ # resp.cluster.resources_vpc_config.endpoint_private_access #=> Boolean
1542
+ # resp.cluster.resources_vpc_config.public_access_cidrs #=> Array
1543
+ # resp.cluster.resources_vpc_config.public_access_cidrs[0] #=> String
1544
+ # resp.cluster.kubernetes_network_config.service_ipv_4_cidr #=> String
1545
+ # resp.cluster.logging.cluster_logging #=> Array
1546
+ # resp.cluster.logging.cluster_logging[0].types #=> Array
1547
+ # resp.cluster.logging.cluster_logging[0].types[0] #=> String, one of "api", "audit", "authenticator", "controllerManager", "scheduler"
1548
+ # resp.cluster.logging.cluster_logging[0].enabled #=> Boolean
1549
+ # resp.cluster.identity.oidc.issuer #=> String
1550
+ # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING", "PENDING"
1551
+ # resp.cluster.certificate_authority.data #=> String
1552
+ # resp.cluster.client_request_token #=> String
1553
+ # resp.cluster.platform_version #=> String
1554
+ # resp.cluster.tags #=> Hash
1555
+ # resp.cluster.tags["TagKey"] #=> String
1556
+ # resp.cluster.encryption_config #=> Array
1557
+ # resp.cluster.encryption_config[0].resources #=> Array
1558
+ # resp.cluster.encryption_config[0].resources[0] #=> String
1559
+ # resp.cluster.encryption_config[0].provider.key_arn #=> String
1560
+ # resp.cluster.connector_config.activation_id #=> String
1561
+ # resp.cluster.connector_config.activation_code #=> String
1562
+ # resp.cluster.connector_config.activation_expiry #=> Time
1563
+ # resp.cluster.connector_config.provider #=> String
1564
+ # resp.cluster.connector_config.role_arn #=> String
1565
+ #
1566
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeregisterCluster AWS API Documentation
1567
+ #
1568
+ # @overload deregister_cluster(params = {})
1569
+ # @param [Hash] params ({})
1570
+ def deregister_cluster(params = {}, options = {})
1571
+ req = build_request(:deregister_cluster, params)
1572
+ req.send_request(options)
1573
+ end
1574
+
1500
1575
  # Describes an Amazon EKS add-on.
1501
1576
  #
1502
1577
  # @option params [required, String] :cluster_name
@@ -1712,7 +1787,7 @@ module Aws::EKS
1712
1787
  # resp.cluster.logging.cluster_logging[0].types[0] #=> String, one of "api", "audit", "authenticator", "controllerManager", "scheduler"
1713
1788
  # resp.cluster.logging.cluster_logging[0].enabled #=> Boolean
1714
1789
  # resp.cluster.identity.oidc.issuer #=> String
1715
- # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING"
1790
+ # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING", "PENDING"
1716
1791
  # resp.cluster.certificate_authority.data #=> String
1717
1792
  # resp.cluster.client_request_token #=> String
1718
1793
  # resp.cluster.platform_version #=> String
@@ -1722,6 +1797,11 @@ module Aws::EKS
1722
1797
  # resp.cluster.encryption_config[0].resources #=> Array
1723
1798
  # resp.cluster.encryption_config[0].resources[0] #=> String
1724
1799
  # resp.cluster.encryption_config[0].provider.key_arn #=> String
1800
+ # resp.cluster.connector_config.activation_id #=> String
1801
+ # resp.cluster.connector_config.activation_code #=> String
1802
+ # resp.cluster.connector_config.activation_expiry #=> Time
1803
+ # resp.cluster.connector_config.provider #=> String
1804
+ # resp.cluster.connector_config.role_arn #=> String
1725
1805
  #
1726
1806
  #
1727
1807
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2120,6 +2200,10 @@ module Aws::EKS
2120
2200
  #
2121
2201
  # </note>
2122
2202
  #
2203
+ # @option params [Array<String>] :include
2204
+ # Indicates whether connected clusters are included in the returned
2205
+ # list. Default value is 'ALL'.
2206
+ #
2123
2207
  # @return [Types::ListClustersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2124
2208
  #
2125
2209
  # * {Types::ListClustersResponse#clusters #clusters} => Array&lt;String&gt;
@@ -2148,6 +2232,7 @@ module Aws::EKS
2148
2232
  # resp = client.list_clusters({
2149
2233
  # max_results: 1,
2150
2234
  # next_token: "String",
2235
+ # include: ["String"],
2151
2236
  # })
2152
2237
  #
2153
2238
  # @example Response structure
@@ -2437,6 +2522,105 @@ module Aws::EKS
2437
2522
  req.send_request(options)
2438
2523
  end
2439
2524
 
2525
+ # Connects a Kubernetes cluster to the Amazon EKS control plane.
2526
+ #
2527
+ # Any Kubernetes cluster can be connected to the Amazon EKS control
2528
+ # plane to view current information about the cluster and its nodes.
2529
+ #
2530
+ # Cluster connection requires two steps. First, send a `
2531
+ # RegisterClusterRequest ` to add it to the Amazon EKS control plane.
2532
+ #
2533
+ # Second, a [Manifest][1] containing the `activationID` and
2534
+ # `activationCode` must be applied to the Kubernetes cluster through
2535
+ # it's native provider to provide visibility.
2536
+ #
2537
+ # After the Manifest is updated and applied, then the connected cluster
2538
+ # is visible to the Amazon EKS control plane. If the Manifest is not
2539
+ # applied within a set amount of time, then the connected cluster will
2540
+ # no longer be visible and must be deregistered. See DeregisterCluster.
2541
+ #
2542
+ #
2543
+ #
2544
+ # [1]: https://amazon-eks.s3.us-west-2.amazonaws.com/eks-connector/manifests/eks-connector/latest/eks-connector.yaml
2545
+ #
2546
+ # @option params [required, String] :name
2547
+ # Define a unique name for this cluster within your AWS account.
2548
+ #
2549
+ # @option params [required, Types::ConnectorConfigRequest] :connector_config
2550
+ # The configuration settings required to connect the Kubernetes cluster
2551
+ # to the Amazon EKS control plane.
2552
+ #
2553
+ # @option params [String] :client_request_token
2554
+ # Unique, case-sensitive identifier that you provide to ensure the
2555
+ # idempotency of the request.
2556
+ #
2557
+ # **A suitable default value is auto-generated.** You should normally
2558
+ # not need to pass this option.**
2559
+ #
2560
+ # @return [Types::RegisterClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2561
+ #
2562
+ # * {Types::RegisterClusterResponse#cluster #cluster} => Types::Cluster
2563
+ #
2564
+ # @example Request syntax with placeholder values
2565
+ #
2566
+ # resp = client.register_cluster({
2567
+ # name: "ClusterName", # required
2568
+ # connector_config: { # required
2569
+ # role_arn: "String", # required
2570
+ # provider: "EKS_ANYWHERE", # required, accepts EKS_ANYWHERE, ANTHOS, GKE, AKS, OPENSHIFT, TANZU, RANCHER, EC2, OTHER
2571
+ # },
2572
+ # client_request_token: "String",
2573
+ # })
2574
+ #
2575
+ # @example Response structure
2576
+ #
2577
+ # resp.cluster.name #=> String
2578
+ # resp.cluster.arn #=> String
2579
+ # resp.cluster.created_at #=> Time
2580
+ # resp.cluster.version #=> String
2581
+ # resp.cluster.endpoint #=> String
2582
+ # resp.cluster.role_arn #=> String
2583
+ # resp.cluster.resources_vpc_config.subnet_ids #=> Array
2584
+ # resp.cluster.resources_vpc_config.subnet_ids[0] #=> String
2585
+ # resp.cluster.resources_vpc_config.security_group_ids #=> Array
2586
+ # resp.cluster.resources_vpc_config.security_group_ids[0] #=> String
2587
+ # resp.cluster.resources_vpc_config.cluster_security_group_id #=> String
2588
+ # resp.cluster.resources_vpc_config.vpc_id #=> String
2589
+ # resp.cluster.resources_vpc_config.endpoint_public_access #=> Boolean
2590
+ # resp.cluster.resources_vpc_config.endpoint_private_access #=> Boolean
2591
+ # resp.cluster.resources_vpc_config.public_access_cidrs #=> Array
2592
+ # resp.cluster.resources_vpc_config.public_access_cidrs[0] #=> String
2593
+ # resp.cluster.kubernetes_network_config.service_ipv_4_cidr #=> String
2594
+ # resp.cluster.logging.cluster_logging #=> Array
2595
+ # resp.cluster.logging.cluster_logging[0].types #=> Array
2596
+ # resp.cluster.logging.cluster_logging[0].types[0] #=> String, one of "api", "audit", "authenticator", "controllerManager", "scheduler"
2597
+ # resp.cluster.logging.cluster_logging[0].enabled #=> Boolean
2598
+ # resp.cluster.identity.oidc.issuer #=> String
2599
+ # resp.cluster.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING", "PENDING"
2600
+ # resp.cluster.certificate_authority.data #=> String
2601
+ # resp.cluster.client_request_token #=> String
2602
+ # resp.cluster.platform_version #=> String
2603
+ # resp.cluster.tags #=> Hash
2604
+ # resp.cluster.tags["TagKey"] #=> String
2605
+ # resp.cluster.encryption_config #=> Array
2606
+ # resp.cluster.encryption_config[0].resources #=> Array
2607
+ # resp.cluster.encryption_config[0].resources[0] #=> String
2608
+ # resp.cluster.encryption_config[0].provider.key_arn #=> String
2609
+ # resp.cluster.connector_config.activation_id #=> String
2610
+ # resp.cluster.connector_config.activation_code #=> String
2611
+ # resp.cluster.connector_config.activation_expiry #=> Time
2612
+ # resp.cluster.connector_config.provider #=> String
2613
+ # resp.cluster.connector_config.role_arn #=> String
2614
+ #
2615
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/RegisterCluster AWS API Documentation
2616
+ #
2617
+ # @overload register_cluster(params = {})
2618
+ # @param [Hash] params ({})
2619
+ def register_cluster(params = {}, options = {})
2620
+ req = build_request(:register_cluster, params)
2621
+ req.send_request(options)
2622
+ end
2623
+
2440
2624
  # Associates the specified tags to a resource with the specified
2441
2625
  # `resourceArn`. If existing tags on a resource are not specified in the
2442
2626
  # request parameters, they are not changed. When a resource is deleted,
@@ -3024,7 +3208,7 @@ module Aws::EKS
3024
3208
  params: params,
3025
3209
  config: config)
3026
3210
  context[:gem_name] = 'aws-sdk-eks'
3027
- context[:gem_version] = '1.62.0'
3211
+ context[:gem_version] = '1.63.0'
3028
3212
  Seahorse::Client::Request.new(handlers, context)
3029
3213
  end
3030
3214
 
@@ -43,6 +43,9 @@ module Aws::EKS
43
43
  ClusterStatus = Shapes::StringShape.new(name: 'ClusterStatus')
44
44
  Compatibilities = Shapes::ListShape.new(name: 'Compatibilities')
45
45
  Compatibility = Shapes::StructureShape.new(name: 'Compatibility')
46
+ ConnectorConfigProvider = Shapes::StringShape.new(name: 'ConnectorConfigProvider')
47
+ ConnectorConfigRequest = Shapes::StructureShape.new(name: 'ConnectorConfigRequest')
48
+ ConnectorConfigResponse = Shapes::StructureShape.new(name: 'ConnectorConfigResponse')
46
49
  CreateAddonRequest = Shapes::StructureShape.new(name: 'CreateAddonRequest')
47
50
  CreateAddonResponse = Shapes::StructureShape.new(name: 'CreateAddonResponse')
48
51
  CreateClusterRequest = Shapes::StructureShape.new(name: 'CreateClusterRequest')
@@ -59,6 +62,8 @@ module Aws::EKS
59
62
  DeleteFargateProfileResponse = Shapes::StructureShape.new(name: 'DeleteFargateProfileResponse')
60
63
  DeleteNodegroupRequest = Shapes::StructureShape.new(name: 'DeleteNodegroupRequest')
61
64
  DeleteNodegroupResponse = Shapes::StructureShape.new(name: 'DeleteNodegroupResponse')
65
+ DeregisterClusterRequest = Shapes::StructureShape.new(name: 'DeregisterClusterRequest')
66
+ DeregisterClusterResponse = Shapes::StructureShape.new(name: 'DeregisterClusterResponse')
62
67
  DescribeAddonRequest = Shapes::StructureShape.new(name: 'DescribeAddonRequest')
63
68
  DescribeAddonResponse = Shapes::StructureShape.new(name: 'DescribeAddonResponse')
64
69
  DescribeAddonVersionsRequest = Shapes::StructureShape.new(name: 'DescribeAddonVersionsRequest')
@@ -91,6 +96,7 @@ module Aws::EKS
91
96
  IdentityProviderConfig = Shapes::StructureShape.new(name: 'IdentityProviderConfig')
92
97
  IdentityProviderConfigResponse = Shapes::StructureShape.new(name: 'IdentityProviderConfigResponse')
93
98
  IdentityProviderConfigs = Shapes::ListShape.new(name: 'IdentityProviderConfigs')
99
+ IncludeClustersList = Shapes::ListShape.new(name: 'IncludeClustersList')
94
100
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
95
101
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
96
102
  Issue = Shapes::StructureShape.new(name: 'Issue')
@@ -136,6 +142,8 @@ module Aws::EKS
136
142
  OidcIdentityProviderConfigRequest = Shapes::StructureShape.new(name: 'OidcIdentityProviderConfigRequest')
137
143
  PercentCapacity = Shapes::IntegerShape.new(name: 'PercentCapacity')
138
144
  Provider = Shapes::StructureShape.new(name: 'Provider')
145
+ RegisterClusterRequest = Shapes::StructureShape.new(name: 'RegisterClusterRequest')
146
+ RegisterClusterResponse = Shapes::StructureShape.new(name: 'RegisterClusterResponse')
139
147
  RemoteAccessConfig = Shapes::StructureShape.new(name: 'RemoteAccessConfig')
140
148
  ResolveConflicts = Shapes::StringShape.new(name: 'ResolveConflicts')
141
149
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
@@ -278,6 +286,7 @@ module Aws::EKS
278
286
  Cluster.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
279
287
  Cluster.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
280
288
  Cluster.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfigList, location_name: "encryptionConfig"))
289
+ Cluster.add_member(:connector_config, Shapes::ShapeRef.new(shape: ConnectorConfigResponse, location_name: "connectorConfig"))
281
290
  Cluster.struct_class = Types::Cluster
282
291
 
283
292
  Compatibilities.member = Shapes::ShapeRef.new(shape: Compatibility)
@@ -287,6 +296,17 @@ module Aws::EKS
287
296
  Compatibility.add_member(:default_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "defaultVersion"))
288
297
  Compatibility.struct_class = Types::Compatibility
289
298
 
299
+ ConnectorConfigRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "roleArn"))
300
+ ConnectorConfigRequest.add_member(:provider, Shapes::ShapeRef.new(shape: ConnectorConfigProvider, required: true, location_name: "provider"))
301
+ ConnectorConfigRequest.struct_class = Types::ConnectorConfigRequest
302
+
303
+ ConnectorConfigResponse.add_member(:activation_id, Shapes::ShapeRef.new(shape: String, location_name: "activationId"))
304
+ ConnectorConfigResponse.add_member(:activation_code, Shapes::ShapeRef.new(shape: String, location_name: "activationCode"))
305
+ ConnectorConfigResponse.add_member(:activation_expiry, Shapes::ShapeRef.new(shape: Timestamp, location_name: "activationExpiry"))
306
+ ConnectorConfigResponse.add_member(:provider, Shapes::ShapeRef.new(shape: String, location_name: "provider"))
307
+ ConnectorConfigResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: String, location_name: "roleArn"))
308
+ ConnectorConfigResponse.struct_class = Types::ConnectorConfigResponse
309
+
290
310
  CreateAddonRequest.add_member(:cluster_name, Shapes::ShapeRef.new(shape: ClusterName, required: true, location: "uri", location_name: "name"))
291
311
  CreateAddonRequest.add_member(:addon_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "addonName"))
292
312
  CreateAddonRequest.add_member(:addon_version, Shapes::ShapeRef.new(shape: String, location_name: "addonVersion"))
@@ -376,6 +396,12 @@ module Aws::EKS
376
396
  DeleteNodegroupResponse.add_member(:nodegroup, Shapes::ShapeRef.new(shape: Nodegroup, location_name: "nodegroup"))
377
397
  DeleteNodegroupResponse.struct_class = Types::DeleteNodegroupResponse
378
398
 
399
+ DeregisterClusterRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "name"))
400
+ DeregisterClusterRequest.struct_class = Types::DeregisterClusterRequest
401
+
402
+ DeregisterClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
403
+ DeregisterClusterResponse.struct_class = Types::DeregisterClusterResponse
404
+
379
405
  DescribeAddonRequest.add_member(:cluster_name, Shapes::ShapeRef.new(shape: ClusterName, required: true, location: "uri", location_name: "name"))
380
406
  DescribeAddonRequest.add_member(:addon_name, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "addonName"))
381
407
  DescribeAddonRequest.struct_class = Types::DescribeAddonRequest
@@ -482,6 +508,8 @@ module Aws::EKS
482
508
 
483
509
  IdentityProviderConfigs.member = Shapes::ShapeRef.new(shape: IdentityProviderConfig)
484
510
 
511
+ IncludeClustersList.member = Shapes::ShapeRef.new(shape: String)
512
+
485
513
  InvalidParameterException.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, location_name: "clusterName"))
486
514
  InvalidParameterException.add_member(:nodegroup_name, Shapes::ShapeRef.new(shape: String, location_name: "nodegroupName"))
487
515
  InvalidParameterException.add_member(:fargate_profile_name, Shapes::ShapeRef.new(shape: String, location_name: "fargateProfileName"))
@@ -524,6 +552,7 @@ module Aws::EKS
524
552
 
525
553
  ListClustersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListClustersRequestMaxResults, location: "querystring", location_name: "maxResults"))
526
554
  ListClustersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
555
+ ListClustersRequest.add_member(:include, Shapes::ShapeRef.new(shape: IncludeClustersList, location: "querystring", location_name: "include"))
527
556
  ListClustersRequest.struct_class = Types::ListClustersRequest
528
557
 
529
558
  ListClustersResponse.add_member(:clusters, Shapes::ShapeRef.new(shape: StringList, location_name: "clusters"))
@@ -659,6 +688,14 @@ module Aws::EKS
659
688
  Provider.add_member(:key_arn, Shapes::ShapeRef.new(shape: String, location_name: "keyArn"))
660
689
  Provider.struct_class = Types::Provider
661
690
 
691
+ RegisterClusterRequest.add_member(:name, Shapes::ShapeRef.new(shape: ClusterName, required: true, location_name: "name"))
692
+ RegisterClusterRequest.add_member(:connector_config, Shapes::ShapeRef.new(shape: ConnectorConfigRequest, required: true, location_name: "connectorConfig"))
693
+ RegisterClusterRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
694
+ RegisterClusterRequest.struct_class = Types::RegisterClusterRequest
695
+
696
+ RegisterClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
697
+ RegisterClusterResponse.struct_class = Types::RegisterClusterResponse
698
+
662
699
  RemoteAccessConfig.add_member(:ec2_ssh_key, Shapes::ShapeRef.new(shape: String, location_name: "ec2SshKey"))
663
700
  RemoteAccessConfig.add_member(:source_security_groups, Shapes::ShapeRef.new(shape: StringList, location_name: "sourceSecurityGroups"))
664
701
  RemoteAccessConfig.struct_class = Types::RemoteAccessConfig
@@ -977,6 +1014,19 @@ module Aws::EKS
977
1014
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
978
1015
  end)
979
1016
 
1017
+ api.add_operation(:deregister_cluster, Seahorse::Model::Operation.new.tap do |o|
1018
+ o.name = "DeregisterCluster"
1019
+ o.http_method = "DELETE"
1020
+ o.http_request_uri = "/cluster-registrations/{name}"
1021
+ o.input = Shapes::ShapeRef.new(shape: DeregisterClusterRequest)
1022
+ o.output = Shapes::ShapeRef.new(shape: DeregisterClusterResponse)
1023
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1024
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1025
+ o.errors << Shapes::ShapeRef.new(shape: ClientException)
1026
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
1027
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1028
+ end)
1029
+
980
1030
  api.add_operation(:describe_addon, Seahorse::Model::Operation.new.tap do |o|
981
1031
  o.name = "DescribeAddon"
982
1032
  o.http_method = "GET"
@@ -1204,6 +1254,19 @@ module Aws::EKS
1204
1254
  )
1205
1255
  end)
1206
1256
 
1257
+ api.add_operation(:register_cluster, Seahorse::Model::Operation.new.tap do |o|
1258
+ o.name = "RegisterCluster"
1259
+ o.http_method = "POST"
1260
+ o.http_request_uri = "/cluster-registrations"
1261
+ o.input = Shapes::ShapeRef.new(shape: RegisterClusterRequest)
1262
+ o.output = Shapes::ShapeRef.new(shape: RegisterClusterResponse)
1263
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
1264
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1265
+ o.errors << Shapes::ShapeRef.new(shape: ClientException)
1266
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
1267
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1268
+ end)
1269
+
1207
1270
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1208
1271
  o.name = "TagResource"
1209
1272
  o.http_method = "POST"
@@ -456,6 +456,10 @@ module Aws::EKS
456
456
  # The encryption configuration for the cluster.
457
457
  # @return [Array<Types::EncryptionConfig>]
458
458
  #
459
+ # @!attribute [rw] connector_config
460
+ # The configuration used to connect to a cluster for registration.
461
+ # @return [Types::ConnectorConfigResponse]
462
+ #
459
463
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/Cluster AWS API Documentation
460
464
  #
461
465
  class Cluster < Struct.new(
@@ -474,7 +478,8 @@ module Aws::EKS
474
478
  :client_request_token,
475
479
  :platform_version,
476
480
  :tags,
477
- :encryption_config)
481
+ :encryption_config,
482
+ :connector_config)
478
483
  SENSITIVE = []
479
484
  include Aws::Structure
480
485
  end
@@ -503,6 +508,71 @@ module Aws::EKS
503
508
  include Aws::Structure
504
509
  end
505
510
 
511
+ # The configuration sent to a cluster for configuration.
512
+ #
513
+ # @note When making an API call, you may pass ConnectorConfigRequest
514
+ # data as a hash:
515
+ #
516
+ # {
517
+ # role_arn: "String", # required
518
+ # provider: "EKS_ANYWHERE", # required, accepts EKS_ANYWHERE, ANTHOS, GKE, AKS, OPENSHIFT, TANZU, RANCHER, EC2, OTHER
519
+ # }
520
+ #
521
+ # @!attribute [rw] role_arn
522
+ # The Amazon Resource Name (ARN) of the role that is authorized to
523
+ # request the connector configuration.
524
+ # @return [String]
525
+ #
526
+ # @!attribute [rw] provider
527
+ # The cloud provider for the target cluster to connect.
528
+ # @return [String]
529
+ #
530
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ConnectorConfigRequest AWS API Documentation
531
+ #
532
+ class ConnectorConfigRequest < Struct.new(
533
+ :role_arn,
534
+ :provider)
535
+ SENSITIVE = []
536
+ include Aws::Structure
537
+ end
538
+
539
+ # The full description of your connected cluster.
540
+ #
541
+ # @!attribute [rw] activation_id
542
+ # A unique ID associated with the cluster for registration purposes.
543
+ # @return [String]
544
+ #
545
+ # @!attribute [rw] activation_code
546
+ # A unique code associated with the cluster for registration purposes.
547
+ # @return [String]
548
+ #
549
+ # @!attribute [rw] activation_expiry
550
+ # The expiration time of the connected cluster. The cluster's YAML
551
+ # file must be applied through the native provider.
552
+ # @return [Time]
553
+ #
554
+ # @!attribute [rw] provider
555
+ # The cluster's cloud service provider.
556
+ # @return [String]
557
+ #
558
+ # @!attribute [rw] role_arn
559
+ # The Amazon Resource Name (ARN) of the role that is used by the EKS
560
+ # connector to communicate with AWS services from the connected
561
+ # Kubernetes cluster.
562
+ # @return [String]
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ConnectorConfigResponse AWS API Documentation
565
+ #
566
+ class ConnectorConfigResponse < Struct.new(
567
+ :activation_id,
568
+ :activation_code,
569
+ :activation_expiry,
570
+ :provider,
571
+ :role_arn)
572
+ SENSITIVE = []
573
+ include Aws::Structure
574
+ end
575
+
506
576
  # @note When making an API call, you may pass CreateAddonRequest
507
577
  # data as a hash:
508
578
  #
@@ -1272,6 +1342,37 @@ module Aws::EKS
1272
1342
  include Aws::Structure
1273
1343
  end
1274
1344
 
1345
+ # @note When making an API call, you may pass DeregisterClusterRequest
1346
+ # data as a hash:
1347
+ #
1348
+ # {
1349
+ # name: "String", # required
1350
+ # }
1351
+ #
1352
+ # @!attribute [rw] name
1353
+ # The name of the connected cluster to deregister.
1354
+ # @return [String]
1355
+ #
1356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeregisterClusterRequest AWS API Documentation
1357
+ #
1358
+ class DeregisterClusterRequest < Struct.new(
1359
+ :name)
1360
+ SENSITIVE = []
1361
+ include Aws::Structure
1362
+ end
1363
+
1364
+ # @!attribute [rw] cluster
1365
+ # An object representing an Amazon EKS cluster.
1366
+ # @return [Types::Cluster]
1367
+ #
1368
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeregisterClusterResponse AWS API Documentation
1369
+ #
1370
+ class DeregisterClusterResponse < Struct.new(
1371
+ :cluster)
1372
+ SENSITIVE = []
1373
+ include Aws::Structure
1374
+ end
1375
+
1275
1376
  # @note When making an API call, you may pass DescribeAddonRequest
1276
1377
  # data as a hash:
1277
1378
  #
@@ -1868,7 +1969,7 @@ module Aws::EKS
1868
1969
  include Aws::Structure
1869
1970
  end
1870
1971
 
1871
- # An object that represents an identity configuration.
1972
+ # The full description of your identity configuration.
1872
1973
  #
1873
1974
  # @!attribute [rw] oidc
1874
1975
  # An object that represents an OpenID Connect (OIDC) identity provider
@@ -2228,6 +2329,7 @@ module Aws::EKS
2228
2329
  # {
2229
2330
  # max_results: 1,
2230
2331
  # next_token: "String",
2332
+ # include: ["String"],
2231
2333
  # }
2232
2334
  #
2233
2335
  # @!attribute [rw] max_results
@@ -2254,11 +2356,17 @@ module Aws::EKS
2254
2356
  # </note>
2255
2357
  # @return [String]
2256
2358
  #
2359
+ # @!attribute [rw] include
2360
+ # Indicates whether connected clusters are included in the returned
2361
+ # list. Default value is 'ALL'.
2362
+ # @return [Array<String>]
2363
+ #
2257
2364
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListClustersRequest AWS API Documentation
2258
2365
  #
2259
2366
  class ListClustersRequest < Struct.new(
2260
2367
  :max_results,
2261
- :next_token)
2368
+ :next_token,
2369
+ :include)
2262
2370
  SENSITIVE = []
2263
2371
  include Aws::Structure
2264
2372
  end
@@ -3165,6 +3273,57 @@ module Aws::EKS
3165
3273
  include Aws::Structure
3166
3274
  end
3167
3275
 
3276
+ # @note When making an API call, you may pass RegisterClusterRequest
3277
+ # data as a hash:
3278
+ #
3279
+ # {
3280
+ # name: "ClusterName", # required
3281
+ # connector_config: { # required
3282
+ # role_arn: "String", # required
3283
+ # provider: "EKS_ANYWHERE", # required, accepts EKS_ANYWHERE, ANTHOS, GKE, AKS, OPENSHIFT, TANZU, RANCHER, EC2, OTHER
3284
+ # },
3285
+ # client_request_token: "String",
3286
+ # }
3287
+ #
3288
+ # @!attribute [rw] name
3289
+ # Define a unique name for this cluster within your AWS account.
3290
+ # @return [String]
3291
+ #
3292
+ # @!attribute [rw] connector_config
3293
+ # The configuration settings required to connect the Kubernetes
3294
+ # cluster to the Amazon EKS control plane.
3295
+ # @return [Types::ConnectorConfigRequest]
3296
+ #
3297
+ # @!attribute [rw] client_request_token
3298
+ # Unique, case-sensitive identifier that you provide to ensure the
3299
+ # idempotency of the request.
3300
+ #
3301
+ # **A suitable default value is auto-generated.** You should normally
3302
+ # not need to pass this option.
3303
+ # @return [String]
3304
+ #
3305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/RegisterClusterRequest AWS API Documentation
3306
+ #
3307
+ class RegisterClusterRequest < Struct.new(
3308
+ :name,
3309
+ :connector_config,
3310
+ :client_request_token)
3311
+ SENSITIVE = []
3312
+ include Aws::Structure
3313
+ end
3314
+
3315
+ # @!attribute [rw] cluster
3316
+ # An object representing an Amazon EKS cluster.
3317
+ # @return [Types::Cluster]
3318
+ #
3319
+ # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/RegisterClusterResponse AWS API Documentation
3320
+ #
3321
+ class RegisterClusterResponse < Struct.new(
3322
+ :cluster)
3323
+ SENSITIVE = []
3324
+ include Aws::Structure
3325
+ end
3326
+
3168
3327
  # An object representing the remote access configuration for the managed
3169
3328
  # node group.
3170
3329
  #
@@ -251,6 +251,12 @@ module Aws::EKS
251
251
  "state" => "failure",
252
252
  "argument" => "cluster.status"
253
253
  },
254
+ {
255
+ "expected" => "PENDING",
256
+ "matcher" => "path",
257
+ "state" => "failure",
258
+ "argument" => "cluster.status"
259
+ },
254
260
  {
255
261
  "expected" => "ResourceNotFoundException",
256
262
  "matcher" => "error",
data/lib/aws-sdk-eks.rb CHANGED
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-eks/customizations'
49
49
  # @!group service
50
50
  module Aws::EKS
51
51
 
52
- GEM_VERSION = '1.62.0'
52
+ GEM_VERSION = '1.63.0'
53
53
 
54
54
  end
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.62.0
4
+ version: 1.63.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: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2021-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core