@Stability(value=Experimental) public static final class KubernetesManifest.Builder extends Object implements software.amazon.jsii.Builder<KubernetesManifest>
KubernetesManifest.| Modifier and Type | Method and Description |
|---|---|
KubernetesManifest |
build() |
KubernetesManifest.Builder |
cluster(ICluster cluster)
(experimental) The EKS cluster to apply this manifest to.
|
static KubernetesManifest.Builder |
create(software.constructs.Construct scope,
String id) |
KubernetesManifest.Builder |
manifest(List<? extends Object> manifest)
(experimental) The manifest to apply.
|
@Stability(value=Experimental) public static KubernetesManifest.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.KubernetesManifest.Builder.@Stability(value=Experimental) public KubernetesManifest.Builder cluster(ICluster cluster)
[disable-awslint:ref-via-interface]
cluster - The EKS cluster to apply this manifest to. This parameter is required.this@Stability(value=Experimental) public KubernetesManifest.Builder manifest(List<? extends Object> manifest)
Consists of any number of child resources.
When the resources are created/updated, this manifest will be applied to the
cluster through kubectl apply and when the resources or the stack is
deleted, the resources in the manifest will be deleted through kubectl delete.
Example:
// Example automatically generated. See https://github.com/aws/jsii/issues/826 asList(Map.of( "apiVersion", "v1", "kind", "Pod", "metadata", Map.of("name", "mypod"), "spec", Map.of( "containers", asList(Map.of("name", "hello", "image", "paulbouwer/hello-kubernetes:1.5", "ports", asList(Map.of("containerPort", 8080)))))));
manifest - The manifest to apply. This parameter is required.this@Stability(value=Experimental) public KubernetesManifest build()
build in interface software.amazon.jsii.Builder<KubernetesManifest>Copyright © 2020. All rights reserved.