Class KubernetesResource.Builder

java.lang.Object
software.amazon.awscdk.services.eks.legacy.KubernetesResource.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<KubernetesResource>
Enclosing class:
KubernetesResource

@Stability(Deprecated) @Deprecated public static final class KubernetesResource.Builder extends Object implements software.amazon.jsii.Builder<KubernetesResource>
Deprecated.
(deprecated) A fluent builder for KubernetesResource.
  • Method Details

    • create

      @Stability(Deprecated) @Deprecated public static KubernetesResource.Builder create(Construct scope, String id)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of KubernetesResource.Builder.
    • cluster

      @Stability(Deprecated) @Deprecated public KubernetesResource.Builder cluster(Cluster cluster)
      Deprecated.
      (deprecated) The EKS cluster to apply this configuration to.

      [disable-awslint:ref-via-interface]

      Parameters:
      cluster - The EKS cluster to apply this configuration to. This parameter is required.
      Returns:
      this
    • manifest

      @Stability(Deprecated) @Deprecated public KubernetesResource.Builder manifest(List<? extends Object> manifest)
      Deprecated.
      (deprecated) The resource manifest.

      Consists of any number of child resources.

      When the resource is created/updated, this manifest will be applied to the cluster through kubectl apply and when the resource or the stack is deleted, the manifest will be deleted through kubectl delete.

       const manifest = {
          apiVersion: 'v1',
          kind: 'Pod',
          metadata: { name: 'mypod' },
          spec: {
            containers: [ { name: 'hello', image: 'paulbouwer/hello-kubernetes:1.5', ports: [ { containerPort: 8080 } ] } ]
          }
       }
       

      Parameters:
      manifest - The resource manifest. This parameter is required.
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public KubernetesResource build()
      Deprecated.
      Specified by:
      build in interface software.amazon.jsii.Builder<KubernetesResource>
      Returns:
      a newly built instance of KubernetesResource.