KubernetesResource

class aws_cdk.aws_eks_legacy.KubernetesResource(scope, id, *, cluster, manifest)

Bases: aws_cdk.core.Construct

Represents a resource within the Kubernetes system.

Alternatively, you can use cluster.addResource(resource[, resource, ...]) to define resources on this cluster.

Applies/deletes the resources using kubectl in sync with the resource.

stability :stability: deprecated

__init__(scope, id, *, cluster, manifest)
Parameters
  • scope (Construct) –

  • id (str) –

  • cluster (Cluster) – The EKS cluster to apply this configuration to. [disable-awslint:ref-via-interface]

  • manifest (List[Any]) – The resource manifest. Consists of any number of child resources. When the resource is created/updated, this manifest will be applied to the cluster through kubectl apply and when the resource or the stack is deleted, the manifest will be deleted through kubectl delete.

stability :stability: deprecated

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

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

The construct tree node associated with this construct.

Return type

ConstructNode

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool