@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:46.721Z") @Stability(value=Stable) public class KubernetesManifest extends Construct
Alternatively, you can use cluster.addManifest(resource[, resource, ...])
to define resources on this cluster.
Applies/deletes the manifest using kubectl.
Example:
Cluster cluster;
KubernetesManifest namespace = cluster.addManifest("my-namespace", Map.of(
"apiVersion", "v1",
"kind", "Namespace",
"metadata", Map.of("name", "my-app")));
KubernetesManifest service = cluster.addManifest("my-service", Map.of(
"metadata", Map.of(
"name", "myservice",
"namespace", "my-app"),
"spec", Map.of()));
service.node.addDependency(namespace);
| Modifier and Type | Class and Description |
|---|---|
static class |
KubernetesManifest.Builder
A fluent builder for
KubernetesManifest. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE
The CloudFormation reosurce type.
|
| Modifier | Constructor and Description |
|---|---|
|
KubernetesManifest(software.constructs.Construct scope,
String id,
KubernetesManifestProps props) |
protected |
KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String RESOURCE_TYPE
protected KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef)
protected KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public KubernetesManifest(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
KubernetesManifestProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.