@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.954Z") @Stability(value=Stable) public interface KubernetesObjectValueProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
KubernetesObjectValueProps.Builder
A builder for
KubernetesObjectValueProps |
static class |
KubernetesObjectValueProps.Jsii$Proxy
An implementation for
KubernetesObjectValueProps |
| Modifier and Type | Method and Description |
|---|---|
static KubernetesObjectValueProps.Builder |
builder() |
ICluster |
getCluster()
The EKS cluster to fetch attributes from.
|
String |
getJsonPath()
JSONPath to the specific value.
|
String |
getObjectName()
The name of the object to query.
|
default String |
getObjectNamespace()
The namespace the object belongs to.
|
String |
getObjectType()
The object type to query.
|
default Duration |
getTimeout()
Timeout for waiting on a value.
|
@Stability(value=Stable) @NotNull ICluster getCluster()
[disable-awslint:ref-via-interface]
@Stability(value=Stable) @NotNull String getJsonPath()
@Stability(value=Stable) @NotNull String getObjectName()
@Stability(value=Stable) @NotNull String getObjectType()
(e.g 'service', 'pod'...)
@Stability(value=Stable) @Nullable default String getObjectNamespace()
Default: 'default'
@Stability(value=Stable) @Nullable default Duration getTimeout()
Default: Duration.minutes(5)
@Stability(value=Stable) static KubernetesObjectValueProps.Builder builder()
KubernetesObjectValueProps.Builder of KubernetesObjectValuePropsCopyright © 2022. All rights reserved.