Interface KubernetesObjectValueProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KubernetesObjectValueProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:10.764Z")
@Stability(Stable)
public interface KubernetesObjectValueProps
extends software.amazon.jsii.JsiiSerializable
Properties for KubernetesObjectValue.
Example:
Cluster cluster;
// query the load balancer address
KubernetesObjectValue myServiceAddress = KubernetesObjectValue.Builder.create(this, "LoadBalancerAttribute")
.cluster(cluster)
.objectType("service")
.objectName("my-service")
.jsonPath(".status.loadBalancer.ingress[0].hostname")
.build();
// pass the address to a lambda function
Function proxyFunction = Function.Builder.create(this, "ProxyFunction")
.handler("index.handler")
.code(Code.fromInline("my-code"))
.runtime(Runtime.NODEJS_LATEST)
.environment(Map.of(
"myServiceAddress", myServiceAddress.getValue()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKubernetesObjectValuePropsstatic final classAn implementation forKubernetesObjectValueProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The EKS cluster to fetch attributes from.JSONPath to the specific value.The name of the object to query.default StringThe namespace the object belongs to.The object type to query.default RemovalPolicyThe removal policy applied to the custom resource that manages the Kubernetes object value.default DurationTimeout for waiting on a value.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCluster
The EKS cluster to fetch attributes from.[disable-awslint:ref-via-interface]
-
getJsonPath
JSONPath to the specific value.- See Also:
-
getObjectName
The name of the object to query. -
getObjectType
The object type to query.(e.g 'service', 'pod'...)
-
getObjectNamespace
The namespace the object belongs to.Default: 'default'
-
getRemovalPolicy
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
-
getTimeout
Timeout for waiting on a value.Default: Duration.minutes(5)
-
builder
- Returns:
- a
KubernetesObjectValueProps.BuilderofKubernetesObjectValueProps
-