Try AWS Native preview for resources not in the classic version.
aws.appstream.FleetStackAssociation
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages an AppStream Fleet Stack association.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleFleet = new Aws.AppStream.Fleet("exampleFleet", new()
{
ImageName = "Amazon-AppStream2-Sample-Image-03-11-2023",
InstanceType = "stream.standard.small",
ComputeCapacity = new Aws.AppStream.Inputs.FleetComputeCapacityArgs
{
DesiredInstances = 1,
},
});
var exampleStack = new Aws.AppStream.Stack("exampleStack");
var exampleFleetStackAssociation = new Aws.AppStream.FleetStackAssociation("exampleFleetStackAssociation", new()
{
FleetName = exampleFleet.Name,
StackName = exampleStack.Name,
});
});
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 {
exampleFleet, err := appstream.NewFleet(ctx, "exampleFleet", &appstream.FleetArgs{
ImageName: pulumi.String("Amazon-AppStream2-Sample-Image-03-11-2023"),
InstanceType: pulumi.String("stream.standard.small"),
ComputeCapacity: &appstream.FleetComputeCapacityArgs{
DesiredInstances: pulumi.Int(1),
},
})
if err != nil {
return err
}
exampleStack, err := appstream.NewStack(ctx, "exampleStack", nil)
if err != nil {
return err
}
_, err = appstream.NewFleetStackAssociation(ctx, "exampleFleetStackAssociation", &appstream.FleetStackAssociationArgs{
FleetName: exampleFleet.Name,
StackName: exampleStack.Name,
})
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.Fleet;
import com.pulumi.aws.appstream.FleetArgs;
import com.pulumi.aws.appstream.inputs.FleetComputeCapacityArgs;
import com.pulumi.aws.appstream.Stack;
import com.pulumi.aws.appstream.FleetStackAssociation;
import com.pulumi.aws.appstream.FleetStackAssociationArgs;
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 exampleFleet = new Fleet("exampleFleet", FleetArgs.builder()
.imageName("Amazon-AppStream2-Sample-Image-03-11-2023")
.instanceType("stream.standard.small")
.computeCapacity(FleetComputeCapacityArgs.builder()
.desiredInstances(1)
.build())
.build());
var exampleStack = new Stack("exampleStack");
var exampleFleetStackAssociation = new FleetStackAssociation("exampleFleetStackAssociation", FleetStackAssociationArgs.builder()
.fleetName(exampleFleet.name())
.stackName(exampleStack.name())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_fleet = aws.appstream.Fleet("exampleFleet",
image_name="Amazon-AppStream2-Sample-Image-03-11-2023",
instance_type="stream.standard.small",
compute_capacity=aws.appstream.FleetComputeCapacityArgs(
desired_instances=1,
))
example_stack = aws.appstream.Stack("exampleStack")
example_fleet_stack_association = aws.appstream.FleetStackAssociation("exampleFleetStackAssociation",
fleet_name=example_fleet.name,
stack_name=example_stack.name)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleFleet = new aws.appstream.Fleet("exampleFleet", {
imageName: "Amazon-AppStream2-Sample-Image-03-11-2023",
instanceType: "stream.standard.small",
computeCapacity: {
desiredInstances: 1,
},
});
const exampleStack = new aws.appstream.Stack("exampleStack", {});
const exampleFleetStackAssociation = new aws.appstream.FleetStackAssociation("exampleFleetStackAssociation", {
fleetName: exampleFleet.name,
stackName: exampleStack.name,
});
resources:
exampleFleet:
type: aws:appstream:Fleet
properties:
imageName: Amazon-AppStream2-Sample-Image-03-11-2023
instanceType: stream.standard.small
computeCapacity:
desiredInstances: 1
exampleStack:
type: aws:appstream:Stack
exampleFleetStackAssociation:
type: aws:appstream:FleetStackAssociation
properties:
fleetName: ${exampleFleet.name}
stackName: ${exampleStack.name}
Create FleetStackAssociation Resource
new FleetStackAssociation(name: string, args: FleetStackAssociationArgs, opts?: CustomResourceOptions);
@overload
def FleetStackAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
fleet_name: Optional[str] = None,
stack_name: Optional[str] = None)
@overload
def FleetStackAssociation(resource_name: str,
args: FleetStackAssociationArgs,
opts: Optional[ResourceOptions] = None)
func NewFleetStackAssociation(ctx *Context, name string, args FleetStackAssociationArgs, opts ...ResourceOption) (*FleetStackAssociation, error)
public FleetStackAssociation(string name, FleetStackAssociationArgs args, CustomResourceOptions? opts = null)
public FleetStackAssociation(String name, FleetStackAssociationArgs args)
public FleetStackAssociation(String name, FleetStackAssociationArgs args, CustomResourceOptions options)
type: aws:appstream:FleetStackAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetStackAssociationArgs
- 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 FleetStackAssociationArgs
- 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 FleetStackAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetStackAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetStackAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FleetStackAssociation 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 FleetStackAssociation resource accepts the following input properties:
- fleet_
name str Name of the fleet.
- stack_
name str Name of the stack.
Outputs
All input properties are implicitly available as output properties. Additionally, the FleetStackAssociation 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 FleetStackAssociation Resource
Get an existing FleetStackAssociation 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?: FleetStackAssociationState, opts?: CustomResourceOptions): FleetStackAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fleet_name: Optional[str] = None,
stack_name: Optional[str] = None) -> FleetStackAssociation
func GetFleetStackAssociation(ctx *Context, name string, id IDInput, state *FleetStackAssociationState, opts ...ResourceOption) (*FleetStackAssociation, error)
public static FleetStackAssociation Get(string name, Input<string> id, FleetStackAssociationState? state, CustomResourceOptions? opts = null)
public static FleetStackAssociation get(String name, Output<String> id, FleetStackAssociationState 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.
- fleet_
name str Name of the fleet.
- stack_
name str Name of the stack.
Import
Using pulumi import
, import AppStream Stack Fleet Association using the fleet_name
and stack_name
separated by a slash (/
). For example:
$ pulumi import aws:appstream/fleetStackAssociation:FleetStackAssociation example fleetName/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.