Package com.pulumi.aws.appstream
Class UserStackAssociation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.appstream.UserStackAssociation
-
public class UserStackAssociation extends com.pulumi.resources.CustomResourceManages an AppStream User Stack association. ## Example Usage
## Import Using `pulumi import`, import AppStream User Stack Association using the `userName`, `authenticationType`, and `stackName`, separated by a slash (`/`). For example: ```sh $ pulumi import aws:appstream/userStackAssociation:UserStackAssociation example userName/auhtenticationType/stackName ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.appstream.Stack; import com.pulumi.aws.appstream.StackArgs; import com.pulumi.aws.appstream.User; import com.pulumi.aws.appstream.UserArgs; import com.pulumi.aws.appstream.UserStackAssociation; import com.pulumi.aws.appstream.UserStackAssociationArgs; import java.util.ArrayList; import java.util.Arrays; 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 test = new Stack("test", StackArgs.builder() .name("STACK NAME") .build()); var testUser = new User("testUser", UserArgs.builder() .authenticationType("USERPOOL") .userName("EMAIL") .build()); var testUserStackAssociation = new UserStackAssociation("testUserStackAssociation", UserStackAssociationArgs.builder() .authenticationType(testUser.authenticationType()) .stackName(test.name()) .userName(testUser.userName()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description UserStackAssociation(java.lang.String name)UserStackAssociation(java.lang.String name, UserStackAssociationArgs args)UserStackAssociation(java.lang.String name, UserStackAssociationArgs 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.lang.String>authenticationType()static UserStackAssociationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, UserStackAssociationState 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>region()com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>sendEmailNotification()com.pulumi.core.Output<java.lang.String>stackName()com.pulumi.core.Output<java.lang.String>userName()
-
-
-
Constructor Detail
-
UserStackAssociation
public UserStackAssociation(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
UserStackAssociation
public UserStackAssociation(java.lang.String name, UserStackAssociationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
UserStackAssociation
public UserStackAssociation(java.lang.String name, UserStackAssociationArgs 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
-
authenticationType
public com.pulumi.core.Output<java.lang.String> authenticationType()
- Returns:
- Authentication type for the user.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
sendEmailNotification
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> sendEmailNotification()
- Returns:
- Whether a welcome email is sent to a user after the user is created in the user pool.
-
stackName
public com.pulumi.core.Output<java.lang.String> stackName()
- Returns:
- Name of the stack that is associated with the user.
-
userName
public com.pulumi.core.Output<java.lang.String> userName()
- Returns:
- Email address of the user who is associated with the stack. The following arguments are optional:
-
get
public static UserStackAssociation get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable UserStackAssociationState 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.
-
-