Interface KubernetesObjectValueProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KubernetesObjectValueProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.642Z")
@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_14_X)
.environment(Map.of(
"myServiceAddress", myServiceAddress.getValue()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKubernetesObjectValuePropsstatic final classAn implementation forKubernetesObjectValueProps -
Method Summary
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. -
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'
-
getTimeout
Timeout for waiting on a value.Default: Duration.minutes(5)
-
builder
- Returns:
- a
KubernetesObjectValueProps.BuilderofKubernetesObjectValueProps
-