Class ComponentResource

  • Direct Known Subclasses:
    Stack

    public class ComponentResource
    extends Resource
    A @see Resource that aggregates one or more other child resources into a higher level abstraction. The component resource itself is a resource, but does not require custom CRUD operations for provisioning.
    • Constructor Detail

      • ComponentResource

        public ComponentResource​(java.lang.String type,
                                 java.lang.String name,
                                 @Nullable
                                 ResourceArgs args,
                                 @Nullable
                                 ComponentResourceOptions options,
                                 boolean remote)
        Creates and registers a new component resource. Given "type" is the fully qualified type token and "name" is the "name" part to use in creating a stable and globally unique URN for the object. The "options.parent" is the optional parent for this component, and "options.dependsOn" is an optional list of other resources that this resource depends on, controlling the order in which we perform resource operations.
        Parameters:
        type - The type of the resource
        name - The unique name of the resource
        args - The arguments to use to populate the new resource
        options - A bag of options that control this resource's behavior
        remote - True if this is a remote component resource
    • Method Detail

      • registerOutputs

        protected void registerOutputs​(java.util.Map<java.lang.String,​Output<?>> outputs)
      • registerOutputs

        protected void registerOutputs​(java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​Output<?>>> outputs)
      • registerOutputs

        protected void registerOutputs​(Output<java.util.Map<java.lang.String,​Output<?>>> outputs)