@Stability(value=Experimental) public static final class KubernetesResource.Builder extends Object implements software.amazon.jsii.Builder<KubernetesResource>
KubernetesResource.| Modifier and Type | Method and Description |
|---|---|
KubernetesResource |
build() |
KubernetesResource.Builder |
cluster(Cluster cluster)
(experimental) The EKS cluster to apply this configuration to.
|
static KubernetesResource.Builder |
create(Construct scope,
String id) |
KubernetesResource.Builder |
manifest(List<? extends Object> manifest)
(experimental) The resource manifest.
|
@Stability(value=Experimental) public static KubernetesResource.Builder create(Construct scope, String id)
scope - This parameter is required.id - This parameter is required.KubernetesResource.Builder.@Stability(value=Experimental) public KubernetesResource.Builder cluster(Cluster cluster)
[disable-awslint:ref-via-interface]
cluster - The EKS cluster to apply this configuration to. This parameter is required.this@Stability(value=Experimental) public KubernetesResource.Builder manifest(List<? extends Object> 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.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 {apiVersion: 'v1', kind"Pod" , metadata;{name: 'mypod' }spec: { containers: [ { name: 'hello', image: 'paulbouwer/hello-kubernetes:1.5', ports: [ { containerPort: 8080 } ] } ] } }
manifest - The resource manifest. This parameter is required.this@Stability(value=Experimental) public KubernetesResource build()
build in interface software.amazon.jsii.Builder<KubernetesResource>Copyright © 2021. All rights reserved.