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.
A builder for
KubernetesResourceProps
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
cluster
Deprecated.Sets the value ofKubernetesResourceProps.getCluster()
- 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.Sets the value ofKubernetesResourceProps.getManifest()
- 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 throughkubectl 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
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubernetesResourceProps>
- Returns:
- a new instance of
KubernetesResourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-