Class KubernetesManifest
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.eks.KubernetesManifest
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.476Z")
@Stability(Stable)
public class KubernetesManifest
extends software.constructs.Construct
Represents a manifest within the Kubernetes system.
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);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
KubernetesManifest
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
KubernetesManifest
(software.amazon.jsii.JsiiObjectRef objRef) KubernetesManifest
(software.constructs.Construct scope, String id, KubernetesManifestProps props) -
Method Summary
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
RESOURCE_TYPE
The CloudFormation reosurce type.
-
-
Constructor Details
-
KubernetesManifest
protected KubernetesManifest(software.amazon.jsii.JsiiObjectRef objRef) -
KubernetesManifest
protected KubernetesManifest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
KubernetesManifest
@Stability(Stable) public KubernetesManifest(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubernetesManifestProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-