Class StackV1


  • public class StackV1
    extends com.pulumi.resources.CustomResource
    Manages a V1 stack resource within OpenStack. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.orchestration.StackV1; import com.pulumi.openstack.orchestration.StackV1Args; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var stack1 = new StackV1("stack1", StackV1Args.builder() .disableRollback(true) .environmentOpts(Map.of("Bin", """ """)) .parameters(Map.of("length", 4)) .templateOpts(Map.of("Bin", """ heat_template_version: 2013-05-23 parameters: length: type: number resources: test_res: type: OS::Heat::TestResource random: type: OS::Heat::RandomString properties: length: {get_param: length} """)) .timeout(30) .build()); } } ``` ## Import stacks can be imported using the `id`, e.g. ```sh $ pulumi import openstack:orchestration/stackV1:StackV1 stack_1 ea257959-eeb1-4c10-8d33-26f0409a755d ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      StackV1​(java.lang.String name)  
      StackV1​(java.lang.String name, StackV1Args args)  
      StackV1​(java.lang.String name, StackV1Args args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.List<java.lang.String>> capabilities()  
      com.pulumi.core.Output<java.lang.String> creationTime()  
      com.pulumi.core.Output<java.lang.String> description()  
      com.pulumi.core.Output<java.lang.Boolean> disableRollback()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> environmentOpts()  
      static StackV1 get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, StackV1State state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> notificationTopics()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> parameters()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.List<StackV1StackOutput>> StackOutputs()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.lang.String> statusReason()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> tags()  
      com.pulumi.core.Output<java.lang.String> templateDescription()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> templateOpts()  
      com.pulumi.core.Output<java.lang.Integer> timeout()  
      com.pulumi.core.Output<java.lang.String> updatedTime()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StackV1

        public StackV1​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • StackV1

        public StackV1​(java.lang.String name,
                       StackV1Args args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • StackV1

        public StackV1​(java.lang.String name,
                       StackV1Args args,
                       @Nullable
                       com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • StackOutputs

        public com.pulumi.core.Output<java.util.List<StackV1StackOutput>> StackOutputs()
        Returns:
        A list of stack outputs.
      • capabilities

        public com.pulumi.core.Output<java.util.List<java.lang.String>> capabilities()
        Returns:
        List of stack capabilities for stack.
      • creationTime

        public com.pulumi.core.Output<java.lang.String> creationTime()
        Returns:
        The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
      • description

        public com.pulumi.core.Output<java.lang.String> description()
        Returns:
        The description of the stack resource.
      • disableRollback

        public com.pulumi.core.Output<java.lang.Boolean> disableRollback()
        Returns:
        Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
      • environmentOpts

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> environmentOpts()
        Returns:
        Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
      • notificationTopics

        public com.pulumi.core.Output<java.util.List<java.lang.String>> notificationTopics()
        Returns:
        List of notification topics for stack.
      • parameters

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> parameters()
        Returns:
        User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to create the stack. If omitted, the `region` argument of the provider is used. Changing this creates a new stack.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        The status of the stack.
      • statusReason

        public com.pulumi.core.Output<java.lang.String> statusReason()
        Returns:
        The reason for the current status of the stack.
      • tags

        public com.pulumi.core.Output<java.util.List<java.lang.String>> tags()
        Returns:
        A list of tags to assosciate with the Stack
      • templateDescription

        public com.pulumi.core.Output<java.lang.String> templateDescription()
        Returns:
        The description of the stack template.
      • templateOpts

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> templateOpts()
        Returns:
        Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
      • timeout

        public com.pulumi.core.Output<java.lang.Integer> timeout()
        Returns:
        The timeout for stack action in minutes.
      • updatedTime

        public com.pulumi.core.Output<java.lang.String> updatedTime()
        Returns:
        The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
      • get

        public static StackV1 get​(java.lang.String name,
                                  com.pulumi.core.Output<java.lang.String> id,
                                  @Nullable
                                  StackV1State state,
                                  @Nullable
                                  com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.