KubernetesObjectValue

class aws_cdk.aws_eks.KubernetesObjectValue(scope, id, *, cluster, json_path, object_name, object_type, object_namespace=None, timeout=None)

Bases: aws_cdk.core.Construct

(experimental) Represents a value of a specific object deployed in the cluster.

Use this to fetch any information available by the kubectl get command.

Stability

experimental

Parameters
  • scope (Construct) –

  • id (str) –

  • cluster (ICluster) – (experimental) The EKS cluster to fetch attributes from. [disable-awslint:ref-via-interface]

  • json_path (str) – (experimental) JSONPath to the specific value.

  • object_name (str) – (experimental) The name of the object to query.

  • object_type (str) – (experimental) The object type to query. (e.g ‘service’, ‘pod’…)

  • object_namespace (Optional[str]) – (experimental) The namespace the object belongs to. Default: ‘default’

  • timeout (Optional[Duration]) – (experimental) Timeout for waiting on a value. Default: Duration.minutes(5)

Stability

experimental

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

RESOURCE_TYPE = 'Custom::AWSCDK-EKS-KubernetesObjectValue'
node

The construct tree node associated with this construct.

Return type

ConstructNode

value

(experimental) The value as a string token.

Stability

experimental

Return type

str

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool