KubernetesResource¶
-
class
aws_cdk.aws_eks_legacy.
KubernetesResource
(scope, id, *, cluster, manifest)¶ Bases:
aws_cdk.core.Construct
(deprecated) 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
deprecated
- Parameters
scope (
Construct
) –id (
str
) –cluster (
Cluster
) – (deprecated) The EKS cluster to apply this configuration to. [disable-awslint:ref-via-interface]manifest (
List
[Any
]) – (deprecated) The resource manifest. Consists of any number of child resources. When the resource is created/updated, this manifest will be applied to the cluster throughkubectl apply
and when the resource or the stack is deleted, the manifest will be deleted throughkubectl delete
.
- Stability
deprecated
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
Static Methods
-
classmethod
is_construct
(x)¶ Return whether the given object is a Construct.
- Parameters
x (
Any
) –- Return type
bool