Try AWS Native preview for resources not in the classic version.
aws.appstream.UserStackAssociation
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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/v6/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:
- Authentication
Type string Authentication type for the user.
- Stack
Name string Name of the stack that is associated with the user.
- User
Name string Email address of the user who is associated with the stack.
The following arguments are optional:
- Send
Email boolNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- Authentication
Type string Authentication type for the user.
- Stack
Name string Name of the stack that is associated with the user.
- User
Name string Email address of the user who is associated with the stack.
The following arguments are optional:
- Send
Email boolNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- authentication
Type String Authentication type for the user.
- stack
Name String Name of the stack that is associated with the user.
- user
Name String Email address of the user who is associated with the stack.
The following arguments are optional:
- send
Email BooleanNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- authentication
Type string Authentication type for the user.
- stack
Name string Name of the stack that is associated with the user.
- user
Name string Email address of the user who is associated with the stack.
The following arguments are optional:
- send
Email booleanNotification 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.
The following arguments are optional:
- send_
email_ boolnotification Whether a welcome email is sent to a user after the user is created in the user pool.
- authentication
Type String Authentication type for the user.
- stack
Name String Name of the stack that is associated with the user.
- user
Name String Email address of the user who is associated with the stack.
The following arguments are optional:
- send
Email BooleanNotification 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.
- Authentication
Type string Authentication type for the user.
- Send
Email boolNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- Stack
Name string Name of the stack that is associated with the user.
- User
Name string Email address of the user who is associated with the stack.
The following arguments are optional:
- Authentication
Type string Authentication type for the user.
- Send
Email boolNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- Stack
Name string Name of the stack that is associated with the user.
- User
Name string Email address of the user who is associated with the stack.
The following arguments are optional:
- authentication
Type String Authentication type for the user.
- send
Email BooleanNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- stack
Name String Name of the stack that is associated with the user.
- user
Name String Email address of the user who is associated with the stack.
The following arguments are optional:
- authentication
Type string Authentication type for the user.
- send
Email booleanNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- stack
Name string Name of the stack that is associated with the user.
- user
Name string Email address of the user who is associated with the stack.
The following arguments are optional:
- authentication_
type str Authentication type for the user.
- send_
email_ boolnotification 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.
The following arguments are optional:
- authentication
Type String Authentication type for the user.
- send
Email BooleanNotification Whether a welcome email is sent to a user after the user is created in the user pool.
- stack
Name String Name of the stack that is associated with the user.
- user
Name String Email address of the user who is associated with the stack.
The following arguments are optional:
Import
Using pulumi import
, import AppStream User Stack Association using the user_name
, authentication_type
, and stack_name
, separated by a slash (/
). For example:
$ 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.
Try AWS Native preview for resources not in the classic version.