Class KubernetesObjectValue
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.eks.KubernetesObjectValue
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.479Z")
@Stability(Stable)
public class KubernetesObjectValue
extends software.constructs.Construct
Represents a value of a specific object deployed in the cluster.
Use this to fetch any information available by the kubectl get
command.
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
KubernetesObjectValue
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
KubernetesObjectValue
(software.amazon.jsii.JsiiObjectRef objRef) KubernetesObjectValue
(software.constructs.Construct scope, String id, KubernetesObjectValueProps props) -
Method Summary
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
RESOURCE_TYPE
The CloudFormation reosurce type.
-
-
Constructor Details
-
KubernetesObjectValue
protected KubernetesObjectValue(software.amazon.jsii.JsiiObjectRef objRef) -
KubernetesObjectValue
protected KubernetesObjectValue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
KubernetesObjectValue
@Stability(Stable) public KubernetesObjectValue(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubernetesObjectValueProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
getValue
The value as a string token.
-