Class Fleet


  • public class Fleet
    extends com.pulumi.resources.CustomResource
    Provides an AppStream fleet. ## Example Usage <!--Start PulumiCodeChooser -->
     
     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.inputs.FleetVpcConfigArgs;
     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 testFleet = new Fleet("testFleet", FleetArgs.builder()        
                 .name("test-fleet")
                 .computeCapacity(FleetComputeCapacityArgs.builder()
                     .desiredInstances(1)
                     .build())
                 .description("test fleet")
                 .idleDisconnectTimeoutInSeconds(60)
                 .displayName("test-fleet")
                 .enableDefaultInternetAccess(false)
                 .fleetType("ON_DEMAND")
                 .imageName("Amazon-AppStream2-Sample-Image-03-11-2023")
                 .instanceType("stream.standard.large")
                 .maxUserDurationInSeconds(600)
                 .vpcConfig(FleetVpcConfigArgs.builder()
                     .subnetIds("subnet-06e9b13400c225127")
                     .build())
                 .tags(Map.of("TagName", "tag-value"))
                 .build());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_appstream_fleet` using the id. For example: ```sh $ pulumi import aws:appstream/fleet:Fleet example fleetNameExample ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      Fleet​(java.lang.String name)  
      Fleet​(java.lang.String name, FleetArgs args)  
      Fleet​(java.lang.String name, FleetArgs 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> arn()  
      com.pulumi.core.Output<FleetComputeCapacity> computeCapacity()  
      com.pulumi.core.Output<java.lang.String> createdTime()  
      com.pulumi.core.Output<java.lang.String> description()  
      com.pulumi.core.Output<java.lang.Integer> disconnectTimeoutInSeconds()  
      com.pulumi.core.Output<java.lang.String> displayName()  
      com.pulumi.core.Output<FleetDomainJoinInfo> domainJoinInfo()  
      com.pulumi.core.Output<java.lang.Boolean> enableDefaultInternetAccess()  
      com.pulumi.core.Output<java.lang.String> fleetType()  
      static Fleet get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, FleetState 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> iamRoleArn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> idleDisconnectTimeoutInSeconds()  
      com.pulumi.core.Output<java.lang.String> imageArn()  
      com.pulumi.core.Output<java.lang.String> imageName()  
      com.pulumi.core.Output<java.lang.String> instanceType()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxSessionsPerInstance()  
      com.pulumi.core.Output<java.lang.Integer> maxUserDurationInSeconds()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> state()  
      com.pulumi.core.Output<java.lang.String> streamView()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<FleetVpcConfig> vpcConfig()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Fleet

        public Fleet​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Fleet

        public Fleet​(java.lang.String name,
                     FleetArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Fleet

        public Fleet​(java.lang.String name,
                     FleetArgs 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

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the appstream fleet.
      • computeCapacity

        public com.pulumi.core.Output<FleetComputeCapacity> computeCapacity()
        Returns:
        Configuration block for the desired capacity of the fleet. See below.
      • createdTime

        public com.pulumi.core.Output<java.lang.String> createdTime()
        Returns:
        Date and time, in UTC and extended RFC 3339 format, when the fleet was created.
      • description

        public com.pulumi.core.Output<java.lang.String> description()
        Returns:
        Description to display.
      • disconnectTimeoutInSeconds

        public com.pulumi.core.Output<java.lang.Integer> disconnectTimeoutInSeconds()
        Returns:
        Amount of time that a streaming session remains active after users disconnect.
      • displayName

        public com.pulumi.core.Output<java.lang.String> displayName()
        Returns:
        Human-readable friendly name for the AppStream fleet.
      • domainJoinInfo

        public com.pulumi.core.Output<FleetDomainJoinInfo> domainJoinInfo()
        Returns:
        Configuration block for the name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. See below.
      • enableDefaultInternetAccess

        public com.pulumi.core.Output<java.lang.Boolean> enableDefaultInternetAccess()
        Returns:
        Enables or disables default internet access for the fleet.
      • fleetType

        public com.pulumi.core.Output<java.lang.String> fleetType()
        Returns:
        Fleet type. Valid values are: `ON_DEMAND`, `ALWAYS_ON`
      • iamRoleArn

        public com.pulumi.core.Output<java.lang.String> iamRoleArn()
        Returns:
        ARN of the IAM role to apply to the fleet.
      • idleDisconnectTimeoutInSeconds

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> idleDisconnectTimeoutInSeconds()
        Returns:
        Amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the `disconnect_timeout_in_seconds` time interval begins. Defaults to 60 seconds.
      • imageArn

        public com.pulumi.core.Output<java.lang.String> imageArn()
        Returns:
        ARN of the public, private, or shared image to use.
      • imageName

        public com.pulumi.core.Output<java.lang.String> imageName()
        Returns:
        Name of the image used to create the fleet.
      • instanceType

        public com.pulumi.core.Output<java.lang.String> instanceType()
        Returns:
        Instance type to use when launching fleet instances.
      • maxSessionsPerInstance

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxSessionsPerInstance()
        Returns:
        The maximum number of user sessions on an instance. This only applies to multi-session fleets.
      • maxUserDurationInSeconds

        public com.pulumi.core.Output<java.lang.Integer> maxUserDurationInSeconds()
        Returns:
        Maximum amount of time that a streaming session can remain active, in seconds.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Unique name for the fleet. The following arguments are optional:
      • state

        public com.pulumi.core.Output<java.lang.String> state()
        Returns:
        State of the fleet. Can be `STARTING`, `RUNNING`, `STOPPING` or `STOPPED`
      • streamView

        public com.pulumi.core.Output<java.lang.String> streamView()
        Returns:
        AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to `APP`.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags to attach to AppStream instances.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
      • vpcConfig

        public com.pulumi.core.Output<FleetVpcConfig> vpcConfig()
        Returns:
        Configuration block for the VPC configuration for the image builder. See below.
      • get

        public static Fleet get​(java.lang.String name,
                                com.pulumi.core.Output<java.lang.String> id,
                                @Nullable
                                FleetState 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.