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.104.0 (build e79254c)", date="2024-11-22T02:24:01.480Z") @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.