Class KubernetesResourceProps.Builder

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

@Stability(Deprecated) @Deprecated public static final class KubernetesResourceProps.Builder extends Object implements software.amazon.jsii.Builder<KubernetesResourceProps>
Deprecated.
  • Constructor Details

    • Builder

      public Builder()
      Deprecated.
  • Method Details

    • cluster

      @Stability(Deprecated) @Deprecated public KubernetesResourceProps.Builder cluster(Cluster cluster)
      Deprecated.
      Parameters:
      cluster - The EKS cluster to apply this configuration to. This parameter is required. [disable-awslint:ref-via-interface]
      Returns:
      this
    • manifest

      @Stability(Deprecated) @Deprecated public KubernetesResourceProps.Builder manifest(List<? extends Object> manifest)
      Deprecated.
      Parameters:
      manifest - The resource manifest. This parameter is required. 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 } ] } ]
                          }
                       }
                       
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public KubernetesResourceProps build()
      Deprecated.
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<KubernetesResourceProps>
      Returns:
      a new instance of KubernetesResourceProps
      Throws:
      NullPointerException - if any required attribute was not provided