Class KubernetesPatch

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

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:18.672Z") @Stability(Stable) public class KubernetesPatch extends software.constructs.Construct
A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.

Example:

 Cluster cluster;
 KubernetesPatch.Builder.create(this, "hello-kub-deployment-label")
         .cluster(cluster)
         .resourceName("deployment/hello-kubernetes")
         .applyPatch(Map.of("spec", Map.of("replicas", 5)))
         .restorePatch(Map.of("spec", Map.of("replicas", 3)))
         .build();
 

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for KubernetesPatch.

    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
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    KubernetesPatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    KubernetesPatch(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    KubernetesPatch(software.constructs.Construct scope, String id, KubernetesPatchProps 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
  • Constructor Details

    • KubernetesPatch

      protected KubernetesPatch(software.amazon.jsii.JsiiObjectRef objRef)
    • KubernetesPatch

      protected KubernetesPatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • KubernetesPatch

      @Stability(Stable) public KubernetesPatch(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubernetesPatchProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.