Interface KubernetesPatchProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KubernetesPatchProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:10.765Z")
@Stability(Stable)
public interface KubernetesPatchProps
extends software.amazon.jsii.JsiiSerializable
Properties for KubernetesPatch.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKubernetesPatchPropsstatic final classAn implementation forKubernetesPatchProps -
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesPatchProps.Builderbuilder()The JSON object to pass tokubectl patchwhen the resource is created/updated.The cluster to apply the patch to.default PatchTypeThe patch type to pass tokubectl patch.default RemovalPolicyThe removal policy applied to the custom resource that manages the Kubernetes patch.The full name of the resource to patch (e.g.default StringThe kubernetes API namespace.The JSON object to pass tokubectl patchwhen the resource is removed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplyPatch
The JSON object to pass tokubectl patchwhen the resource is created/updated. -
getCluster
The cluster to apply the patch to.[disable-awslint:ref-via-interface]
-
getResourceName
The full name of the resource to patch (e.g.deployment/coredns). -
getRestorePatch
The JSON object to pass tokubectl patchwhen the resource is removed. -
getPatchType
The patch type to pass tokubectl patch.The default type used by
kubectl patchis "strategic".Default: PatchType.STRATEGIC
-
getRemovalPolicy
The removal policy applied to the custom resource that manages the Kubernetes patch.The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:
- The resource is removed from the template, so CloudFormation stops managing it
- A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
- The stack is deleted, so CloudFormation stops managing all resources in it
Default: RemovalPolicy.DESTROY
-
getResourceNamespace
The kubernetes API namespace.Default: "default"
-
builder
- Returns:
- a
KubernetesPatchProps.BuilderofKubernetesPatchProps
-