1. Packages
  2. AWS Classic
  3. API Docs
  4. appstream
  5. UserStackAssociation

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

aws.appstream.UserStackAssociation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

    Manages an AppStream User Stack association.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var testStack = new Aws.AppStream.Stack("testStack");
    
        var testUser = new Aws.AppStream.User("testUser", new()
        {
            AuthenticationType = "USERPOOL",
            UserName = "EMAIL",
        });
    
        var testUserStackAssociation = new Aws.AppStream.UserStackAssociation("testUserStackAssociation", new()
        {
            AuthenticationType = testUser.AuthenticationType,
            StackName = testStack.Name,
            UserName = testUser.UserName,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/appstream"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testStack, err := appstream.NewStack(ctx, "testStack", nil)
    		if err != nil {
    			return err
    		}
    		testUser, err := appstream.NewUser(ctx, "testUser", &appstream.UserArgs{
    			AuthenticationType: pulumi.String("USERPOOL"),
    			UserName:           pulumi.String("EMAIL"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appstream.NewUserStackAssociation(ctx, "testUserStackAssociation", &appstream.UserStackAssociationArgs{
    			AuthenticationType: testUser.AuthenticationType,
    			StackName:          testStack.Name,
    			UserName:           testUser.UserName,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.User;
    import com.pulumi.aws.appstream.UserArgs;
    import com.pulumi.aws.appstream.UserStackAssociation;
    import com.pulumi.aws.appstream.UserStackAssociationArgs;
    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 testStack = new Stack("testStack");
    
            var testUser = new User("testUser", UserArgs.builder()        
                .authenticationType("USERPOOL")
                .userName("EMAIL")
                .build());
    
            var testUserStackAssociation = new UserStackAssociation("testUserStackAssociation", UserStackAssociationArgs.builder()        
                .authenticationType(testUser.authenticationType())
                .stackName(testStack.name())
                .userName(testUser.userName())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    test_stack = aws.appstream.Stack("testStack")
    test_user = aws.appstream.User("testUser",
        authentication_type="USERPOOL",
        user_name="EMAIL")
    test_user_stack_association = aws.appstream.UserStackAssociation("testUserStackAssociation",
        authentication_type=test_user.authentication_type,
        stack_name=test_stack.name,
        user_name=test_user.user_name)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const testStack = new aws.appstream.Stack("testStack", {});
    const testUser = new aws.appstream.User("testUser", {
        authenticationType: "USERPOOL",
        userName: "EMAIL",
    });
    const testUserStackAssociation = new aws.appstream.UserStackAssociation("testUserStackAssociation", {
        authenticationType: testUser.authenticationType,
        stackName: testStack.name,
        userName: testUser.userName,
    });
    
    resources:
      testStack:
        type: aws:appstream:Stack
      testUser:
        type: aws:appstream:User
        properties:
          authenticationType: USERPOOL
          userName: EMAIL
      testUserStackAssociation:
        type: aws:appstream:UserStackAssociation
        properties:
          authenticationType: ${testUser.authenticationType}
          stackName: ${testStack.name}
          userName: ${testUser.userName}
    

    Create UserStackAssociation Resource

    new UserStackAssociation(name: string, args: UserStackAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def UserStackAssociation(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             authentication_type: Optional[str] = None,
                             send_email_notification: Optional[bool] = None,
                             stack_name: Optional[str] = None,
                             user_name: Optional[str] = None)
    @overload
    def UserStackAssociation(resource_name: str,
                             args: UserStackAssociationArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewUserStackAssociation(ctx *Context, name string, args UserStackAssociationArgs, opts ...ResourceOption) (*UserStackAssociation, error)
    public UserStackAssociation(string name, UserStackAssociationArgs args, CustomResourceOptions? opts = null)
    public UserStackAssociation(String name, UserStackAssociationArgs args)
    public UserStackAssociation(String name, UserStackAssociationArgs args, CustomResourceOptions options)
    
    type: aws:appstream:UserStackAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args UserStackAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserStackAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserStackAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserStackAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserStackAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    UserStackAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The UserStackAssociation resource accepts the following input properties:

    AuthenticationType string

    Authentication type for the user.

    StackName string

    Name of the stack that is associated with the user.

    UserName string

    Email address of the user who is associated with the stack.

    SendEmailNotification bool

    Whether a welcome email is sent to a user after the user is created in the user pool.

    AuthenticationType string

    Authentication type for the user.

    StackName string

    Name of the stack that is associated with the user.

    UserName string

    Email address of the user who is associated with the stack.

    SendEmailNotification bool

    Whether a welcome email is sent to a user after the user is created in the user pool.

    authenticationType String

    Authentication type for the user.

    stackName String

    Name of the stack that is associated with the user.

    userName String

    Email address of the user who is associated with the stack.

    sendEmailNotification Boolean

    Whether a welcome email is sent to a user after the user is created in the user pool.

    authenticationType string

    Authentication type for the user.

    stackName string

    Name of the stack that is associated with the user.

    userName string

    Email address of the user who is associated with the stack.

    sendEmailNotification boolean

    Whether a welcome email is sent to a user after the user is created in the user pool.

    authentication_type str

    Authentication type for the user.

    stack_name str

    Name of the stack that is associated with the user.

    user_name str

    Email address of the user who is associated with the stack.

    send_email_notification bool

    Whether a welcome email is sent to a user after the user is created in the user pool.

    authenticationType String

    Authentication type for the user.

    stackName String

    Name of the stack that is associated with the user.

    userName String

    Email address of the user who is associated with the stack.

    sendEmailNotification Boolean

    Whether a welcome email is sent to a user after the user is created in the user pool.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserStackAssociation resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing UserStackAssociation Resource

    Get an existing UserStackAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UserStackAssociationState, opts?: CustomResourceOptions): UserStackAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authentication_type: Optional[str] = None,
            send_email_notification: Optional[bool] = None,
            stack_name: Optional[str] = None,
            user_name: Optional[str] = None) -> UserStackAssociation
    func GetUserStackAssociation(ctx *Context, name string, id IDInput, state *UserStackAssociationState, opts ...ResourceOption) (*UserStackAssociation, error)
    public static UserStackAssociation Get(string name, Input<string> id, UserStackAssociationState? state, CustomResourceOptions? opts = null)
    public static UserStackAssociation get(String name, Output<String> id, UserStackAssociationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthenticationType string

    Authentication type for the user.

    SendEmailNotification bool

    Whether a welcome email is sent to a user after the user is created in the user pool.

    StackName string

    Name of the stack that is associated with the user.

    UserName string

    Email address of the user who is associated with the stack.

    AuthenticationType string

    Authentication type for the user.

    SendEmailNotification bool

    Whether a welcome email is sent to a user after the user is created in the user pool.

    StackName string

    Name of the stack that is associated with the user.

    UserName string

    Email address of the user who is associated with the stack.

    authenticationType String

    Authentication type for the user.

    sendEmailNotification Boolean

    Whether a welcome email is sent to a user after the user is created in the user pool.

    stackName String

    Name of the stack that is associated with the user.

    userName String

    Email address of the user who is associated with the stack.

    authenticationType string

    Authentication type for the user.

    sendEmailNotification boolean

    Whether a welcome email is sent to a user after the user is created in the user pool.

    stackName string

    Name of the stack that is associated with the user.

    userName string

    Email address of the user who is associated with the stack.

    authentication_type str

    Authentication type for the user.

    send_email_notification bool

    Whether a welcome email is sent to a user after the user is created in the user pool.

    stack_name str

    Name of the stack that is associated with the user.

    user_name str

    Email address of the user who is associated with the stack.

    authenticationType String

    Authentication type for the user.

    sendEmailNotification Boolean

    Whether a welcome email is sent to a user after the user is created in the user pool.

    stackName String

    Name of the stack that is associated with the user.

    userName String

    Email address of the user who is associated with the stack.

    Import

    AppStream User Stack Association can be imported by using the user_name, authentication_type, and stack_name, separated by a slash (/), e.g.,

     $ pulumi import aws:appstream/userStackAssociation:UserStackAssociation example userName/auhtenticationType/stackName
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi