Class KubernetesPatch.Builder
java.lang.Object
software.amazon.awscdk.services.eks.KubernetesPatch.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubernetesPatch>
- Enclosing class:
KubernetesPatch
@Stability(Stable)
public static final class KubernetesPatch.Builder
extends Object
implements software.amazon.jsii.Builder<KubernetesPatch>
A fluent builder for
KubernetesPatch
.-
Method Summary
Modifier and TypeMethodDescriptionapplyPatch
(Map<String, ? extends Object> applyPatch) The JSON object to pass tokubectl patch
when the resource is created/updated.build()
The cluster to apply the patch to.static KubernetesPatch.Builder
The patch type to pass tokubectl patch
.resourceName
(String resourceName) The full name of the resource to patch (e.g.resourceNamespace
(String resourceNamespace) The kubernetes API namespace.restorePatch
(Map<String, ? extends Object> restorePatch) The JSON object to pass tokubectl patch
when the resource is removed.
-
Method Details
-
create
@Stability(Stable) public static KubernetesPatch.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
KubernetesPatch.Builder
.
-
applyPatch
@Stability(Stable) public KubernetesPatch.Builder applyPatch(Map<String, ? extends Object> applyPatch) The JSON object to pass tokubectl patch
when the resource is created/updated.- Parameters:
applyPatch
- The JSON object to pass tokubectl patch
when the resource is created/updated. This parameter is required.- Returns:
this
-
cluster
The cluster to apply the patch to.[disable-awslint:ref-via-interface]
- Parameters:
cluster
- The cluster to apply the patch to. This parameter is required.- Returns:
this
-
resourceName
The full name of the resource to patch (e.g.deployment/coredns
).- Parameters:
resourceName
- The full name of the resource to patch (e.g.deployment/coredns
). This parameter is required.- Returns:
this
-
restorePatch
@Stability(Stable) public KubernetesPatch.Builder restorePatch(Map<String, ? extends Object> restorePatch) The JSON object to pass tokubectl patch
when the resource is removed.- Parameters:
restorePatch
- The JSON object to pass tokubectl patch
when the resource is removed. This parameter is required.- Returns:
this
-
patchType
The patch type to pass tokubectl patch
.The default type used by
kubectl patch
is "strategic".Default: PatchType.STRATEGIC
- Parameters:
patchType
- The patch type to pass tokubectl patch
. This parameter is required.- Returns:
this
-
resourceNamespace
The kubernetes API namespace.Default: "default"
- Parameters:
resourceNamespace
- The kubernetes API namespace. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubernetesPatch>
- Returns:
- a newly built instance of
KubernetesPatch
.
-