@Stability(value=Experimental) public static final class KubernetesResourceProps.Builder extends Object implements software.amazon.jsii.Builder<KubernetesResourceProps>
KubernetesResourceProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
KubernetesResourceProps |
build()
Builds the configured instance.
|
KubernetesResourceProps.Builder |
cluster(Cluster cluster)
Sets the value of
KubernetesResourceProps.getCluster() |
KubernetesResourceProps.Builder |
manifest(List<? extends Object> manifest)
Sets the value of
KubernetesResourceProps.getManifest() |
@Stability(value=Experimental) public KubernetesResourceProps.Builder cluster(Cluster cluster)
KubernetesResourceProps.getCluster()cluster - The EKS cluster to apply this configuration to. This parameter is required.
[disable-awslint:ref-via-interface]this@Stability(value=Experimental) public KubernetesResourceProps.Builder manifest(List<? extends Object> manifest)
KubernetesResourceProps.getManifest()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 } ] } ]
}
}
this@Stability(value=Experimental) public KubernetesResourceProps build()
build in interface software.amazon.jsii.Builder<KubernetesResourceProps>KubernetesResourcePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.