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.119.0 (build 1634eac)",
date="2025-11-17T14:40:51.388Z")
@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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKubernetesPatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedKubernetesPatch(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, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.
-