Class KubernetesManifest

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.eks.KubernetesManifest
All Implemented Interfaces:
IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.633Z") @Stability(Stable) public class KubernetesManifest extends 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
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for KubernetesManifest.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct

    IConstruct.Jsii$Default, IConstruct.Jsii$Proxy

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The CloudFormation reosurce type.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    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.amazon.awscdk.core.Construct

    getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate

    Methods inherited from class software.constructs.Construct

    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

      @Stability(Stable) public static final String 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.