Package org.cdk8s.plus24.k8s
Class KubeCustomResourceDefinition
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.ApiObject
-
- org.cdk8s.plus24.k8s.KubeCustomResourceDefinition
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.80.0 (build bce6a1d)", date="2023-05-05T16:22:34.004Z") @Stability(Stable) public class KubeCustomResourceDefinition extends org.cdk8s.ApiObject
CustomResourceDefinition represents a resource that should be exposed on the API server.Its name MUST be in the format <.spec.name>.<.spec.group>.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubeCustomResourceDefinition.Builder
A fluent builder forKubeCustomResourceDefinition
.
-
Field Summary
Fields Modifier and Type Field Description static org.cdk8s.GroupVersionKind
GVK
Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition".
-
Constructor Summary
Constructors Modifier Constructor Description protected
KubeCustomResourceDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
KubeCustomResourceDefinition(software.amazon.jsii.JsiiObjectRef objRef)
KubeCustomResourceDefinition(software.constructs.Construct scope, String id, KubeCustomResourceDefinitionProps props)
Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" API object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Object
manifest(KubeCustomResourceDefinitionProps props)
Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition".Object
toJson()
Renders the object to Kubernetes JSON.-
Methods inherited from class org.cdk8s.ApiObject
addDependency, addJsonPatch, getApiGroup, getApiVersion, getChart, getKind, getMetadata, getName, isApiObject, of
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
KubeCustomResourceDefinition
protected KubeCustomResourceDefinition(software.amazon.jsii.JsiiObjectRef objRef)
-
KubeCustomResourceDefinition
protected KubeCustomResourceDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
KubeCustomResourceDefinition
@Stability(Stable) public KubeCustomResourceDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubeCustomResourceDefinitionProps props)
Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" API object.- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.props
- initialization props. This parameter is required.
-
-
Method Detail
-
manifest
@Stability(Stable) @NotNull public static Object manifest(@NotNull KubeCustomResourceDefinitionProps props)
Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition".This can be used to inline resource manifests inside other objects (e.g. as templates).
- Parameters:
props
- initialization props. This parameter is required.
-
toJson
@Stability(Stable) @NotNull public Object toJson()
Renders the object to Kubernetes JSON.- Overrides:
toJson
in classorg.cdk8s.ApiObject
-
-