Class ClusterAttributes.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.eks.ClusterAttributes.Jsii$Proxy
All Implemented Interfaces:
ClusterAttributes, software.amazon.jsii.JsiiSerializable
Enclosing interface:
ClusterAttributes

@Stability(Stable) @Internal public static final class ClusterAttributes.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ClusterAttributes
An implementation for ClusterAttributes
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(ClusterAttributes.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ClusterAttributes.Builder.
  • Method Details

    • getClusterName

      public final String getClusterName()
      Description copied from interface: ClusterAttributes
      The physical name of the Cluster.
      Specified by:
      getClusterName in interface ClusterAttributes
    • getClusterCertificateAuthorityData

      public final String getClusterCertificateAuthorityData()
      Description copied from interface: ClusterAttributes
      The certificate-authority-data for your cluster.

      Default: - if not specified `cluster.clusterCertificateAuthorityData` will throw an error

      Specified by:
      getClusterCertificateAuthorityData in interface ClusterAttributes
    • getClusterEncryptionConfigKeyArn

      public final String getClusterEncryptionConfigKeyArn()
      Description copied from interface: ClusterAttributes
      Amazon Resource Name (ARN) or alias of the customer master key (CMK).

      Default: - if not specified `cluster.clusterEncryptionConfigKeyArn` will throw an error

      Specified by:
      getClusterEncryptionConfigKeyArn in interface ClusterAttributes
    • getClusterEndpoint

      public final String getClusterEndpoint()
      Description copied from interface: ClusterAttributes
      The API Server endpoint URL.

      Default: - if not specified `cluster.clusterEndpoint` will throw an error.

      Specified by:
      getClusterEndpoint in interface ClusterAttributes
    • getClusterHandlerSecurityGroupId

      public final String getClusterHandlerSecurityGroupId()
      Description copied from interface: ClusterAttributes
      A security group id to associate with the Cluster Handler's Lambdas.

      The Cluster Handler's Lambdas are responsible for calling AWS's EKS API.

      Default: - No security group.

      Specified by:
      getClusterHandlerSecurityGroupId in interface ClusterAttributes
    • getClusterSecurityGroupId

      public final String getClusterSecurityGroupId()
      Description copied from interface: ClusterAttributes
      The cluster security group that was created by Amazon EKS for the cluster.

      Default: - if not specified `cluster.clusterSecurityGroupId` will throw an error

      Specified by:
      getClusterSecurityGroupId in interface ClusterAttributes
    • getKubectlEnvironment

      public final Map<String,String> getKubectlEnvironment()
      Description copied from interface: ClusterAttributes
      Environment variables to use when running kubectl against this cluster.

      Default: - no additional variables

      Specified by:
      getKubectlEnvironment in interface ClusterAttributes
    • getKubectlLambdaRole

      public final IRole getKubectlLambdaRole()
      Description copied from interface: ClusterAttributes
      An IAM role that can perform kubectl operations against this cluster.

      The role should be mapped to the system:masters Kubernetes RBAC role.

      This role is directly passed to the lambda handler that sends Kube Ctl commands to the cluster.

      Default: - if not specified, the default role created by a lambda function will be used.

      Specified by:
      getKubectlLambdaRole in interface ClusterAttributes
    • getKubectlLayer

      public final ILayerVersion getKubectlLayer()
      Description copied from interface: ClusterAttributes
      An AWS Lambda Layer which includes kubectl, Helm and the AWS CLI.

      This layer is used by the kubectl handler to apply manifests and install helm charts.

      The handler expects the layer to include the following executables:

       helm/helm
       kubectl/kubectl
       awscli/aws
       

      Default: - a layer bundled with this module.

      Specified by:
      getKubectlLayer in interface ClusterAttributes
    • getKubectlMemory

      public final Size getKubectlMemory()
      Description copied from interface: ClusterAttributes
      Amount of memory to allocate to the provider's lambda function.

      Default: Size.gibibytes(1)

      Specified by:
      getKubectlMemory in interface ClusterAttributes
    • getKubectlPrivateSubnetIds

      public final List<String> getKubectlPrivateSubnetIds()
      Description copied from interface: ClusterAttributes
      Subnets to host the kubectl compute resources.

      If not specified, the k8s endpoint is expected to be accessible publicly.

      Default: - k8s endpoint is expected to be accessible publicly

      Specified by:
      getKubectlPrivateSubnetIds in interface ClusterAttributes
    • getKubectlProvider

      public final IKubectlProvider getKubectlProvider()
      Description copied from interface: ClusterAttributes
      KubectlProvider for issuing kubectl commands.

      Default: - Default CDK provider

      Specified by:
      getKubectlProvider in interface ClusterAttributes
    • getKubectlRoleArn

      public final String getKubectlRoleArn()
      Description copied from interface: ClusterAttributes
      An IAM role with cluster administrator and "system:masters" permissions.

      Default: - if not specified, it not be possible to issue `kubectl` commands against an imported cluster.

      Specified by:
      getKubectlRoleArn in interface ClusterAttributes
    • getKubectlSecurityGroupId

      public final String getKubectlSecurityGroupId()
      Description copied from interface: ClusterAttributes
      A security group to use for kubectl execution.

      If not specified, the k8s endpoint is expected to be accessible publicly.

      Default: - k8s endpoint is expected to be accessible publicly

      Specified by:
      getKubectlSecurityGroupId in interface ClusterAttributes
    • getOnEventLayer

      public final ILayerVersion getOnEventLayer()
      Description copied from interface: ClusterAttributes
      An AWS Lambda Layer which includes the NPM dependency proxy-agent.

      This layer is used by the onEvent handler to route AWS SDK requests through a proxy.

      The handler expects the layer to include the following node_modules:

       proxy-agent
       

      Default: - a layer bundled with this module.

      Specified by:
      getOnEventLayer in interface ClusterAttributes
    • getOpenIdConnectProvider

      public final IOpenIdConnectProvider getOpenIdConnectProvider()
      Description copied from interface: ClusterAttributes
      An Open ID Connect provider for this cluster that can be used to configure service accounts.

      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.

      Specified by:
      getOpenIdConnectProvider in interface ClusterAttributes
    • getPrune

      public final Boolean getPrune()
      Description copied from interface: ClusterAttributes
      Indicates whether Kubernetes resources added through addManifest() can be automatically pruned.

      When this is enabled (default), prune labels will be allocated and injected to each resource. These labels will then be used when issuing the kubectl apply operation with the --prune switch.

      Default: true

      Specified by:
      getPrune in interface ClusterAttributes
    • getSecurityGroupIds

      public final List<String> getSecurityGroupIds()
      Description copied from interface: ClusterAttributes
      Additional security groups associated with this cluster.

      Default: - if not specified, no additional security groups will be considered in `cluster.connections`.

      Specified by:
      getSecurityGroupIds in interface ClusterAttributes
    • getVpc

      public final IVpc getVpc()
      Description copied from interface: ClusterAttributes
      The VPC in which this Cluster was created.

      Default: - if not specified `cluster.vpc` will throw an error

      Specified by:
      getVpc in interface ClusterAttributes
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object