Package com.pulumi.resources
Class StackOptions
- java.lang.Object
-
- com.pulumi.resources.StackOptions
-
@ParametersAreNonnullByDefault public class StackOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StackOptions.Builder
TheStackOptions
builder.
-
Field Summary
Fields Modifier and Type Field Description static StackOptions
Empty
-
Constructor Summary
Constructors Constructor Description StackOptions(java.util.List<ResourceTransformation> resourceTransformations)
Creates aStackOptions
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StackOptions.Builder
builder()
static StackOptions
merge(StackOptions options1, StackOptions options2)
Takes twoStackOptions
values and produces a newStackOptions
with the respective properties of "options2" merged over the same properties in "options1".java.util.List<ResourceTransformation>
resourceTransformations()
Optional list of transformations to apply to this stack's resources during construction.
-
-
-
Field Detail
-
Empty
public static final StackOptions Empty
-
-
Constructor Detail
-
StackOptions
public StackOptions(java.util.List<ResourceTransformation> resourceTransformations)
Creates aStackOptions
instance.- Parameters:
resourceTransformations
- the resource transformations to use- See Also:
builder()
-
-
Method Detail
-
resourceTransformations
public java.util.List<ResourceTransformation> resourceTransformations()
Optional list of transformations to apply to this stack's resources during construction. The transformations are applied in order, and are applied after all the transformations of custom and component resources in the stack.- Returns:
- list of transformations to apply to children resources
-
builder
public static StackOptions.Builder builder()
- Returns:
- a
StackOptions
builder instance
-
merge
public static StackOptions merge(@Nullable StackOptions options1, @Nullable StackOptions options2)
Takes twoStackOptions
values and produces a newStackOptions
with the respective properties of "options2" merged over the same properties in "options1".The original options objects will be unchanged. A new instance will always be returned.
- Parameters:
options1
- first options to mergeoptions2
- second options to merge- Returns:
- a new
StackOptions
with merged values
-
-