@Stability(value=Experimental) @Internal public static final class ClusterAttributes.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ClusterAttributes
ClusterAttributessoftware.amazon.jsii.JsiiObject.InitializationModeClusterAttributes.Builder, ClusterAttributes.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String clusterName,
String clusterCertificateAuthorityData,
String clusterEncryptionConfigKeyArn,
String clusterEndpoint,
String clusterSecurityGroupId,
Map<String,String> kubectlEnvironment,
ILayerVersion kubectlLayer,
List<String> kubectlPrivateSubnetIds,
String kubectlRoleArn,
String kubectlSecurityGroupId,
IOpenIdConnectProvider openIdConnectProvider,
List<String> securityGroupIds,
IVpc vpc)
Constructor that initializes the object based on literal property values passed by the
ClusterAttributes.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getClusterCertificateAuthorityData()
(experimental) The certificate-authority-data for your cluster.
|
String |
getClusterEncryptionConfigKeyArn()
(experimental) Amazon Resource Name (ARN) or alias of the customer master key (CMK).
|
String |
getClusterEndpoint()
(experimental) The API Server endpoint URL.
|
String |
getClusterName()
(experimental) The physical name of the Cluster.
|
String |
getClusterSecurityGroupId()
(experimental) The cluster security group that was created by Amazon EKS for the cluster.
|
Map<String,String> |
getKubectlEnvironment()
(experimental) Environment variables to use when running `kubectl` against this cluster.
|
ILayerVersion |
getKubectlLayer()
(experimental) An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
List<String> |
getKubectlPrivateSubnetIds()
(experimental) Subnets to host the `kubectl` compute resources.
|
String |
getKubectlRoleArn()
(experimental) An IAM role with cluster administrator and "system:masters" permissions.
|
String |
getKubectlSecurityGroupId()
(experimental) A security group to use for `kubectl` execution.
|
IOpenIdConnectProvider |
getOpenIdConnectProvider()
(experimental) An Open ID Connect provider for this cluster that can be used to configure service accounts.
|
List<String> |
getSecurityGroupIds()
(experimental) Additional security groups associated with this cluster.
|
IVpc |
getVpc()
(experimental) The VPC in which this Cluster was created.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String clusterName, String clusterCertificateAuthorityData, String clusterEncryptionConfigKeyArn, String clusterEndpoint, String clusterSecurityGroupId, Map<String,String> kubectlEnvironment, ILayerVersion kubectlLayer, List<String> kubectlPrivateSubnetIds, String kubectlRoleArn, String kubectlSecurityGroupId, IOpenIdConnectProvider openIdConnectProvider, List<String> securityGroupIds, IVpc vpc)
ClusterAttributes.Builder.public final String getClusterName()
ClusterAttributesgetClusterName in interface ClusterAttributespublic final String getClusterCertificateAuthorityData()
ClusterAttributesDefault: - if not specified `cluster.clusterCertificateAuthorityData` will throw an error
getClusterCertificateAuthorityData in interface ClusterAttributespublic final String getClusterEncryptionConfigKeyArn()
ClusterAttributesDefault: - if not specified `cluster.clusterEncryptionConfigKeyArn` will throw an error
getClusterEncryptionConfigKeyArn in interface ClusterAttributespublic final String getClusterEndpoint()
ClusterAttributesDefault: - if not specified `cluster.clusterEndpoint` will throw an error.
getClusterEndpoint in interface ClusterAttributespublic final String getClusterSecurityGroupId()
ClusterAttributesDefault: - if not specified `cluster.clusterSecurityGroupId` will throw an error
getClusterSecurityGroupId in interface ClusterAttributespublic final Map<String,String> getKubectlEnvironment()
ClusterAttributesDefault: - no additional variables
getKubectlEnvironment in interface ClusterAttributespublic final ILayerVersion getKubectlLayer()
ClusterAttributesBy default, the provider will use the layer included in the "aws-lambda-layer-kubectl" SAR application which is available in all commercial regions.
To deploy the layer locally, visit https://github.com/aws-samples/aws-lambda-layer-kubectl/blob/master/cdk/README.md for instructions on how to prepare the .zip file and then define it in your app as follows:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
var layer = LayerVersion.Builder.create(this, "kubectl-layer")
.code(lambda.Code.fromAsset(__dirname + "/layer.zip"))
.build();
var compatibleRuntimes = ;
Or;you;can;use;the;standard;layer;like;this();with options
tocustomize;the;version;and;SAR;application;ID;
```ts
const layer = new eks.KubectlLayer(this, 'KubectlLayer');;
Default: - the layer provided by the `aws-lambda-layer-kubectl` SAR app.
getKubectlLayer in interface ClusterAttributeshttps://github.com/aws-samples/aws-lambda-layer-kubectlpublic final List<String> getKubectlPrivateSubnetIds()
ClusterAttributesIf not specified, the k8s endpoint is expected to be accessible publicly.
Default: - k8s endpoint is expected to be accessible publicly
getKubectlPrivateSubnetIds in interface ClusterAttributespublic final String getKubectlRoleArn()
ClusterAttributesDefault: - if not specified, it not be possible to issue `kubectl` commands against an imported cluster.
getKubectlRoleArn in interface ClusterAttributespublic final String getKubectlSecurityGroupId()
ClusterAttributesIf not specified, the k8s endpoint is expected to be accessible publicly.
Default: - k8s endpoint is expected to be accessible publicly
getKubectlSecurityGroupId in interface ClusterAttributespublic final IOpenIdConnectProvider getOpenIdConnectProvider()
ClusterAttributes
You can either import an existing provider using iam.OpenIdConnectProvider.fromProviderArn,
or create a new provider using new eks.OpenIdConnectProvider
Default: - if not specified `cluster.openIdConnectProvider` and `cluster.addServiceAccount` will throw an error.
getOpenIdConnectProvider in interface ClusterAttributespublic final List<String> getSecurityGroupIds()
ClusterAttributesDefault: - if not specified, no additional security groups will be considered in `cluster.connections`.
getSecurityGroupIds in interface ClusterAttributespublic final IVpc getVpc()
ClusterAttributesDefault: - if not specified `cluster.vpc` will throw an error
getVpc in interface ClusterAttributes@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.