Package org.cdk8s.plus20
Interface IApiResource
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IApiResource.Jsii$Default
- All Known Implementing Classes:
AbstractPod,ApiResource,AwsElasticBlockStorePersistentVolume,AzureDiskPersistentVolume,BasicAuthSecret,ClusterRole,ClusterRoleBinding,ConfigMap,DaemonSet,Deployment,DockerConfigSecret,GCEPersistentDiskPersistentVolume,IApiResource.Jsii$Proxy,IngressV1Beta1,Job,PersistentVolume,PersistentVolumeClaim,Pod,Resource,Role,RoleBinding,Secret,Service,ServiceAccount,ServiceAccountTokenSecret,SshAuthSecret,StatefulSet,TlsSecret,Workload
@Generated(value="jsii-pacmak/1.59.0 (build eb02c92)", date="2022-05-18T23:19:48.600Z") @Stability(Stable) public interface IApiResource extends software.amazon.jsii.JsiiSerializable
Represents a resource or collection of resources.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIApiResource.Jsii$DefaultInternal default implementation forIApiResource.static classIApiResource.Jsii$ProxyA proxy class which represents a concrete javascript instance of this type.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetApiGroup()The group portion of the API version (e.g.default StringgetResourceName()The unique, namespace-global, name of an object inside the Kubernetes cluster.StringgetResourceType()The name of a resource type as it appears in the relevant API endpoint.
-
-
-
Method Detail
-
getApiGroup
@Stability(Stable) @NotNull String getApiGroup()
The group portion of the API version (e.g. `authorization.k8s.io`).
-
getResourceType
@Stability(Stable) @NotNull String getResourceType()
The name of a resource type as it appears in the relevant API endpoint.Example:
- "pods" or "pods/log"
-
getResourceName
@Stability(Stable) @Nullable default String getResourceName()
The unique, namespace-global, name of an object inside the Kubernetes cluster.If this is omitted, the ApiResource should represent all objects of the given type.
-
-