Class KubernetesObjectValue.Builder
java.lang.Object
software.amazon.awscdk.services.eks.KubernetesObjectValue.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubernetesObjectValue>
- Enclosing class:
KubernetesObjectValue
@Stability(Stable)
public static final class KubernetesObjectValue.Builder
extends Object
implements software.amazon.jsii.Builder<KubernetesObjectValue>
A fluent builder for
KubernetesObjectValue.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The EKS cluster to fetch attributes from.JSONPath to the specific value.objectName(String objectName) The name of the object to query.objectNamespace(String objectNamespace) The namespace the object belongs to.objectType(String objectType) The object type to query.removalPolicy(RemovalPolicy removalPolicy) The removal policy applied to the custom resource that manages the Kubernetes object value.Timeout for waiting on a value.
-
Method Details
-
create
@Stability(Stable) public static KubernetesObjectValue.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
KubernetesObjectValue.Builder.
-
cluster
The EKS cluster to fetch attributes from.[disable-awslint:ref-via-interface]
- Parameters:
cluster- The EKS cluster to fetch attributes from. This parameter is required.- Returns:
this
-
jsonPath
JSONPath to the specific value.- Parameters:
jsonPath- JSONPath to the specific value. This parameter is required.- Returns:
this- See Also:
-
objectName
The name of the object to query.- Parameters:
objectName- The name of the object to query. This parameter is required.- Returns:
this
-
objectType
The object type to query.(e.g 'service', 'pod'...)
- Parameters:
objectType- The object type to query. This parameter is required.- Returns:
this
-
objectNamespace
The namespace the object belongs to.Default: 'default'
- Parameters:
objectNamespace- The namespace the object belongs to. This parameter is required.- Returns:
this
-
removalPolicy
The removal policy applied to the custom resource that manages the Kubernetes object value.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
- Parameters:
removalPolicy- The removal policy applied to the custom resource that manages the Kubernetes object value. This parameter is required.- Returns:
this
-
timeout
Timeout for waiting on a value.Default: Duration.minutes(5)
- Parameters:
timeout- Timeout for waiting on a value. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubernetesObjectValue>- Returns:
- a newly built instance of
KubernetesObjectValue.
-