Class Resource

    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
      • Nested classes/interfaces inherited from interface software.constructs.IConstruct

        software.constructs.IConstruct.Jsii$Default
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Resource​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected Resource​(software.amazon.jsii.JsiiObjectRef objRef)  
      protected Resource​(software.constructs.Construct scope, String id)  
    • Constructor Detail

      • Resource

        protected Resource​(software.amazon.jsii.JsiiObjectRef objRef)
      • Resource

        protected Resource​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • Resource

        @Stability(Stable)
        protected Resource​(@NotNull
                           software.constructs.Construct scope,
                           @NotNull
                           String id)
        Parameters:
        scope - This parameter is required.
        id - This parameter is required.
    • Method Detail

      • asApiResource

        @Stability(Stable)
        @Nullable
        public IApiResource asApiResource()
        Return the IApiResource this object represents.
        Specified by:
        asApiResource in interface IApiEndpoint
      • asNonApiResource

        @Stability(Stable)
        @Nullable
        public String asNonApiResource()
        Return the non resource url this object represents.
        Specified by:
        asNonApiResource in interface IApiEndpoint
      • getApiGroup

        @Stability(Stable)
        @NotNull
        public String getApiGroup()
        The group portion of the API version (e.g. "authorization.k8s.io").
        Specified by:
        getApiGroup in interface IApiResource
      • getApiObject

        @Stability(Stable)
        @NotNull
        protected abstract org.cdk8s.ApiObject getApiObject()
        The underlying cdk8s API object.
      • getApiVersion

        @Stability(Stable)
        @NotNull
        public String getApiVersion()
        The object's API version (e.g. "authorization.k8s.io/v1").
        Specified by:
        getApiVersion in interface IResource
      • getKind

        @Stability(Stable)
        @NotNull
        public String getKind()
        The object kind (e.g. "Deployment").
        Specified by:
        getKind in interface IResource
      • getMetadata

        @Stability(Stable)
        @NotNull
        public org.cdk8s.ApiObjectMetadataDefinition getMetadata()
      • getName

        @Stability(Stable)
        @NotNull
        public String getName()
        The name of this API object.
        Specified by:
        getName in interface IResource
      • getResourceName

        @Stability(Stable)
        @Nullable
        public 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.

        Specified by:
        getResourceName in interface IApiResource