Class KubectlProviderProps.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class KubectlProviderProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements KubectlProviderProps
An implementation for KubectlProviderProps
  • 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(KubectlProviderProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the KubectlProviderProps.Builder.
  • Method Details

    • getCluster

      public final ICluster getCluster()
      Description copied from interface: KubectlProviderProps
      The cluster to control.
      Specified by:
      getCluster in interface KubectlProviderProps
    • getKubectlLayer

      public final ILayerVersion getKubectlLayer()
      Description copied from interface: KubectlProviderOptions
      An AWS Lambda layer that includes kubectl and helm.
      Specified by:
      getKubectlLayer in interface KubectlProviderOptions
    • getAwscliLayer

      public final ILayerVersion getAwscliLayer()
      Description copied from interface: KubectlProviderOptions
      An AWS Lambda layer that contains the aws CLI.

      Default: - If not defined, a default layer will be used containing the AWS CLI 2.x.

      Specified by:
      getAwscliLayer in interface KubectlProviderOptions
    • getEnvironment

      public final Map<String,String> getEnvironment()
      Description copied from interface: KubectlProviderOptions
      Custom environment variables when running kubectl against this cluster.

      Default: - No custom environment variables

      Specified by:
      getEnvironment in interface KubectlProviderOptions
    • getMemory

      public final Size getMemory()
      Description copied from interface: KubectlProviderOptions
      The amount of memory allocated to the kubectl provider's lambda function.

      Default: - 1024

      Specified by:
      getMemory in interface KubectlProviderOptions
    • getPrivateSubnets

      public final List<ISubnet> getPrivateSubnets()
      Description copied from interface: KubectlProviderOptions
      Subnets to host the kubectl compute resources.

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

      Default: - the k8s is accessible publicly

      Specified by:
      getPrivateSubnets in interface KubectlProviderOptions
    • getRemovalPolicy

      public final RemovalPolicy getRemovalPolicy()
      Description copied from interface: KubectlProviderOptions
      The removal policy applied to the custom resource that provides kubectl.

      The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:

      • The resource is removed from the template, so CloudFormation stops managing it
      • A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
      • The stack is deleted, so CloudFormation stops managing all resources in it

      Default: RemovalPolicy.DESTROY

      Specified by:
      getRemovalPolicy in interface KubectlProviderOptions
    • getRole

      public final IRole getRole()
      Description copied from interface: KubectlProviderOptions
      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:
      getRole in interface KubectlProviderOptions
    • getSecurityGroup

      public final ISecurityGroup getSecurityGroup()
      Description copied from interface: KubectlProviderOptions
      A security group to use for kubectl execution.

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

      Specified by:
      getSecurityGroup in interface KubectlProviderOptions
    • $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