Class Resource.ResourceInternal

    • Field Detail

      • resource

        protected final Resource resource
    • Constructor Detail

      • ResourceInternal

        protected ResourceInternal​(Resource resource)
    • Method Detail

      • getAliases

        @InternalUse
        public java.util.List<Output<java.lang.String>> getAliases()
        A list of aliases applied to this resource.
      • getRemote

        @InternalUse
        public boolean getRemote()
      • getProvider

        @InternalUse
        public java.util.Optional<ProviderResource> getProvider()
        The specified provider or provider determined from the parent for custom resources.
      • getProvider

        @InternalUse
        public java.util.Optional<ProviderResource> getProvider​(java.lang.String moduleMember)
        Fetches the provider for the given module member, if any.
      • getVersion

        @InternalUse
        public java.util.Optional<java.lang.String> getVersion()
        The specified provider version.
      • setUrn

        @InternalUse
        public void setUrn​(Output<java.lang.String> urn)
      • trySetUrn

        @InternalUse
        public boolean trySetUrn​(Output<java.lang.String> urn)
      • getProvider

        @Nullable
        @InternalUse
        public static ProviderResource getProvider​(Resource resource,
                                                   java.lang.String moduleMember)
        Fetches the provider for the given module member, if any.
        Parameters:
        moduleMember - the module member to look for
        Returns:
        the @see ProviderResource or empty if not found
      • findOutputs

        @InternalUse
        public static java.util.Map<java.lang.String,​Output<?>> findOutputs​(java.lang.Object object)
        Finds all Output fields annotated with Export, validates the annotation presence and content, validates non-null-ness of fields, ensures the field type is Output and uses reflection to get the references to them. Returns a map of export names and output references. Not to be confused with OutputCompletionSource.from(com.pulumi.resources.Resource)