Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.appstream.inputs.FleetState Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.appstream.inputs;
import com.pulumi.aws.appstream.inputs.FleetComputeCapacityArgs;
import com.pulumi.aws.appstream.inputs.FleetDomainJoinInfoArgs;
import com.pulumi.aws.appstream.inputs.FleetVpcConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class FleetState extends com.pulumi.resources.ResourceArgs {
public static final FleetState Empty = new FleetState();
/**
* ARN of the appstream fleet.
*
*/
@Import(name="arn")
private @Nullable Output arn;
/**
* @return ARN of the appstream fleet.
*
*/
public Optional> arn() {
return Optional.ofNullable(this.arn);
}
/**
* Configuration block for the desired capacity of the fleet. See below.
*
*/
@Import(name="computeCapacity")
private @Nullable Output computeCapacity;
/**
* @return Configuration block for the desired capacity of the fleet. See below.
*
*/
public Optional> computeCapacity() {
return Optional.ofNullable(this.computeCapacity);
}
/**
* Date and time, in UTC and extended RFC 3339 format, when the fleet was created.
*
*/
@Import(name="createdTime")
private @Nullable Output createdTime;
/**
* @return Date and time, in UTC and extended RFC 3339 format, when the fleet was created.
*
*/
public Optional> createdTime() {
return Optional.ofNullable(this.createdTime);
}
/**
* Description to display.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return Description to display.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* Amount of time that a streaming session remains active after users disconnect.
*
*/
@Import(name="disconnectTimeoutInSeconds")
private @Nullable Output disconnectTimeoutInSeconds;
/**
* @return Amount of time that a streaming session remains active after users disconnect.
*
*/
public Optional> disconnectTimeoutInSeconds() {
return Optional.ofNullable(this.disconnectTimeoutInSeconds);
}
/**
* Human-readable friendly name for the AppStream fleet.
*
*/
@Import(name="displayName")
private @Nullable Output displayName;
/**
* @return Human-readable friendly name for the AppStream fleet.
*
*/
public Optional> displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* 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.
*
*/
@Import(name="domainJoinInfo")
private @Nullable Output domainJoinInfo;
/**
* @return 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.
*
*/
public Optional> domainJoinInfo() {
return Optional.ofNullable(this.domainJoinInfo);
}
/**
* Enables or disables default internet access for the fleet.
*
*/
@Import(name="enableDefaultInternetAccess")
private @Nullable Output enableDefaultInternetAccess;
/**
* @return Enables or disables default internet access for the fleet.
*
*/
public Optional> enableDefaultInternetAccess() {
return Optional.ofNullable(this.enableDefaultInternetAccess);
}
/**
* Fleet type. Valid values are: `ON_DEMAND`, `ALWAYS_ON`
*
*/
@Import(name="fleetType")
private @Nullable Output fleetType;
/**
* @return Fleet type. Valid values are: `ON_DEMAND`, `ALWAYS_ON`
*
*/
public Optional> fleetType() {
return Optional.ofNullable(this.fleetType);
}
/**
* ARN of the IAM role to apply to the fleet.
*
*/
@Import(name="iamRoleArn")
private @Nullable Output iamRoleArn;
/**
* @return ARN of the IAM role to apply to the fleet.
*
*/
public Optional> iamRoleArn() {
return Optional.ofNullable(this.iamRoleArn);
}
/**
* 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 `0`. Valid value is between `60` and ` 3600 `seconds.
*
*/
@Import(name="idleDisconnectTimeoutInSeconds")
private @Nullable Output idleDisconnectTimeoutInSeconds;
/**
* @return 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 `0`. Valid value is between `60` and ` 3600 `seconds.
*
*/
public Optional> idleDisconnectTimeoutInSeconds() {
return Optional.ofNullable(this.idleDisconnectTimeoutInSeconds);
}
/**
* ARN of the public, private, or shared image to use.
*
*/
@Import(name="imageArn")
private @Nullable Output imageArn;
/**
* @return ARN of the public, private, or shared image to use.
*
*/
public Optional> imageArn() {
return Optional.ofNullable(this.imageArn);
}
/**
* Name of the image used to create the fleet.
*
*/
@Import(name="imageName")
private @Nullable Output imageName;
/**
* @return Name of the image used to create the fleet.
*
*/
public Optional> imageName() {
return Optional.ofNullable(this.imageName);
}
/**
* Instance type to use when launching fleet instances.
*
*/
@Import(name="instanceType")
private @Nullable Output instanceType;
/**
* @return Instance type to use when launching fleet instances.
*
*/
public Optional> instanceType() {
return Optional.ofNullable(this.instanceType);
}
/**
* The maximum number of user sessions on an instance. This only applies to multi-session fleets.
*
*/
@Import(name="maxSessionsPerInstance")
private @Nullable Output maxSessionsPerInstance;
/**
* @return The maximum number of user sessions on an instance. This only applies to multi-session fleets.
*
*/
public Optional> maxSessionsPerInstance() {
return Optional.ofNullable(this.maxSessionsPerInstance);
}
/**
* Maximum amount of time that a streaming session can remain active, in seconds.
*
*/
@Import(name="maxUserDurationInSeconds")
private @Nullable Output maxUserDurationInSeconds;
/**
* @return Maximum amount of time that a streaming session can remain active, in seconds.
*
*/
public Optional> maxUserDurationInSeconds() {
return Optional.ofNullable(this.maxUserDurationInSeconds);
}
/**
* Unique name for the fleet.
*
* The following arguments are optional:
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Unique name for the fleet.
*
* The following arguments are optional:
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* State of the fleet. Can be `STARTING`, `RUNNING`, `STOPPING` or `STOPPED`
*
*/
@Import(name="state")
private @Nullable Output state;
/**
* @return State of the fleet. Can be `STARTING`, `RUNNING`, `STOPPING` or `STOPPED`
*
*/
public Optional> state() {
return Optional.ofNullable(this.state);
}
/**
* 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`.
*
*/
@Import(name="streamView")
private @Nullable Output streamView;
/**
* @return 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`.
*
*/
public Optional> streamView() {
return Optional.ofNullable(this.streamView);
}
/**
* Map of tags to attach to AppStream instances.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Map of tags to attach to AppStream instances.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
/**
* Configuration block for the VPC configuration for the image builder. See below.
*
*/
@Import(name="vpcConfig")
private @Nullable Output vpcConfig;
/**
* @return Configuration block for the VPC configuration for the image builder. See below.
*
*/
public Optional> vpcConfig() {
return Optional.ofNullable(this.vpcConfig);
}
private FleetState() {}
private FleetState(FleetState $) {
this.arn = $.arn;
this.computeCapacity = $.computeCapacity;
this.createdTime = $.createdTime;
this.description = $.description;
this.disconnectTimeoutInSeconds = $.disconnectTimeoutInSeconds;
this.displayName = $.displayName;
this.domainJoinInfo = $.domainJoinInfo;
this.enableDefaultInternetAccess = $.enableDefaultInternetAccess;
this.fleetType = $.fleetType;
this.iamRoleArn = $.iamRoleArn;
this.idleDisconnectTimeoutInSeconds = $.idleDisconnectTimeoutInSeconds;
this.imageArn = $.imageArn;
this.imageName = $.imageName;
this.instanceType = $.instanceType;
this.maxSessionsPerInstance = $.maxSessionsPerInstance;
this.maxUserDurationInSeconds = $.maxUserDurationInSeconds;
this.name = $.name;
this.state = $.state;
this.streamView = $.streamView;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
this.vpcConfig = $.vpcConfig;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FleetState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private FleetState $;
public Builder() {
$ = new FleetState();
}
public Builder(FleetState defaults) {
$ = new FleetState(Objects.requireNonNull(defaults));
}
/**
* @param arn ARN of the appstream fleet.
*
* @return builder
*
*/
public Builder arn(@Nullable Output arn) {
$.arn = arn;
return this;
}
/**
* @param arn ARN of the appstream fleet.
*
* @return builder
*
*/
public Builder arn(String arn) {
return arn(Output.of(arn));
}
/**
* @param computeCapacity Configuration block for the desired capacity of the fleet. See below.
*
* @return builder
*
*/
public Builder computeCapacity(@Nullable Output computeCapacity) {
$.computeCapacity = computeCapacity;
return this;
}
/**
* @param computeCapacity Configuration block for the desired capacity of the fleet. See below.
*
* @return builder
*
*/
public Builder computeCapacity(FleetComputeCapacityArgs computeCapacity) {
return computeCapacity(Output.of(computeCapacity));
}
/**
* @param createdTime Date and time, in UTC and extended RFC 3339 format, when the fleet was created.
*
* @return builder
*
*/
public Builder createdTime(@Nullable Output createdTime) {
$.createdTime = createdTime;
return this;
}
/**
* @param createdTime Date and time, in UTC and extended RFC 3339 format, when the fleet was created.
*
* @return builder
*
*/
public Builder createdTime(String createdTime) {
return createdTime(Output.of(createdTime));
}
/**
* @param description Description to display.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description Description to display.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param disconnectTimeoutInSeconds Amount of time that a streaming session remains active after users disconnect.
*
* @return builder
*
*/
public Builder disconnectTimeoutInSeconds(@Nullable Output disconnectTimeoutInSeconds) {
$.disconnectTimeoutInSeconds = disconnectTimeoutInSeconds;
return this;
}
/**
* @param disconnectTimeoutInSeconds Amount of time that a streaming session remains active after users disconnect.
*
* @return builder
*
*/
public Builder disconnectTimeoutInSeconds(Integer disconnectTimeoutInSeconds) {
return disconnectTimeoutInSeconds(Output.of(disconnectTimeoutInSeconds));
}
/**
* @param displayName Human-readable friendly name for the AppStream fleet.
*
* @return builder
*
*/
public Builder displayName(@Nullable Output displayName) {
$.displayName = displayName;
return this;
}
/**
* @param displayName Human-readable friendly name for the AppStream fleet.
*
* @return builder
*
*/
public Builder displayName(String displayName) {
return displayName(Output.of(displayName));
}
/**
* @param domainJoinInfo 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.
*
* @return builder
*
*/
public Builder domainJoinInfo(@Nullable Output domainJoinInfo) {
$.domainJoinInfo = domainJoinInfo;
return this;
}
/**
* @param domainJoinInfo 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.
*
* @return builder
*
*/
public Builder domainJoinInfo(FleetDomainJoinInfoArgs domainJoinInfo) {
return domainJoinInfo(Output.of(domainJoinInfo));
}
/**
* @param enableDefaultInternetAccess Enables or disables default internet access for the fleet.
*
* @return builder
*
*/
public Builder enableDefaultInternetAccess(@Nullable Output enableDefaultInternetAccess) {
$.enableDefaultInternetAccess = enableDefaultInternetAccess;
return this;
}
/**
* @param enableDefaultInternetAccess Enables or disables default internet access for the fleet.
*
* @return builder
*
*/
public Builder enableDefaultInternetAccess(Boolean enableDefaultInternetAccess) {
return enableDefaultInternetAccess(Output.of(enableDefaultInternetAccess));
}
/**
* @param fleetType Fleet type. Valid values are: `ON_DEMAND`, `ALWAYS_ON`
*
* @return builder
*
*/
public Builder fleetType(@Nullable Output fleetType) {
$.fleetType = fleetType;
return this;
}
/**
* @param fleetType Fleet type. Valid values are: `ON_DEMAND`, `ALWAYS_ON`
*
* @return builder
*
*/
public Builder fleetType(String fleetType) {
return fleetType(Output.of(fleetType));
}
/**
* @param iamRoleArn ARN of the IAM role to apply to the fleet.
*
* @return builder
*
*/
public Builder iamRoleArn(@Nullable Output iamRoleArn) {
$.iamRoleArn = iamRoleArn;
return this;
}
/**
* @param iamRoleArn ARN of the IAM role to apply to the fleet.
*
* @return builder
*
*/
public Builder iamRoleArn(String iamRoleArn) {
return iamRoleArn(Output.of(iamRoleArn));
}
/**
* @param idleDisconnectTimeoutInSeconds 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 `0`. Valid value is between `60` and ` 3600 `seconds.
*
* @return builder
*
*/
public Builder idleDisconnectTimeoutInSeconds(@Nullable Output idleDisconnectTimeoutInSeconds) {
$.idleDisconnectTimeoutInSeconds = idleDisconnectTimeoutInSeconds;
return this;
}
/**
* @param idleDisconnectTimeoutInSeconds 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 `0`. Valid value is between `60` and ` 3600 `seconds.
*
* @return builder
*
*/
public Builder idleDisconnectTimeoutInSeconds(Integer idleDisconnectTimeoutInSeconds) {
return idleDisconnectTimeoutInSeconds(Output.of(idleDisconnectTimeoutInSeconds));
}
/**
* @param imageArn ARN of the public, private, or shared image to use.
*
* @return builder
*
*/
public Builder imageArn(@Nullable Output imageArn) {
$.imageArn = imageArn;
return this;
}
/**
* @param imageArn ARN of the public, private, or shared image to use.
*
* @return builder
*
*/
public Builder imageArn(String imageArn) {
return imageArn(Output.of(imageArn));
}
/**
* @param imageName Name of the image used to create the fleet.
*
* @return builder
*
*/
public Builder imageName(@Nullable Output imageName) {
$.imageName = imageName;
return this;
}
/**
* @param imageName Name of the image used to create the fleet.
*
* @return builder
*
*/
public Builder imageName(String imageName) {
return imageName(Output.of(imageName));
}
/**
* @param instanceType Instance type to use when launching fleet instances.
*
* @return builder
*
*/
public Builder instanceType(@Nullable Output instanceType) {
$.instanceType = instanceType;
return this;
}
/**
* @param instanceType Instance type to use when launching fleet instances.
*
* @return builder
*
*/
public Builder instanceType(String instanceType) {
return instanceType(Output.of(instanceType));
}
/**
* @param maxSessionsPerInstance The maximum number of user sessions on an instance. This only applies to multi-session fleets.
*
* @return builder
*
*/
public Builder maxSessionsPerInstance(@Nullable Output maxSessionsPerInstance) {
$.maxSessionsPerInstance = maxSessionsPerInstance;
return this;
}
/**
* @param maxSessionsPerInstance The maximum number of user sessions on an instance. This only applies to multi-session fleets.
*
* @return builder
*
*/
public Builder maxSessionsPerInstance(Integer maxSessionsPerInstance) {
return maxSessionsPerInstance(Output.of(maxSessionsPerInstance));
}
/**
* @param maxUserDurationInSeconds Maximum amount of time that a streaming session can remain active, in seconds.
*
* @return builder
*
*/
public Builder maxUserDurationInSeconds(@Nullable Output maxUserDurationInSeconds) {
$.maxUserDurationInSeconds = maxUserDurationInSeconds;
return this;
}
/**
* @param maxUserDurationInSeconds Maximum amount of time that a streaming session can remain active, in seconds.
*
* @return builder
*
*/
public Builder maxUserDurationInSeconds(Integer maxUserDurationInSeconds) {
return maxUserDurationInSeconds(Output.of(maxUserDurationInSeconds));
}
/**
* @param name Unique name for the fleet.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Unique name for the fleet.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param state State of the fleet. Can be `STARTING`, `RUNNING`, `STOPPING` or `STOPPED`
*
* @return builder
*
*/
public Builder state(@Nullable Output state) {
$.state = state;
return this;
}
/**
* @param state State of the fleet. Can be `STARTING`, `RUNNING`, `STOPPING` or `STOPPED`
*
* @return builder
*
*/
public Builder state(String state) {
return state(Output.of(state));
}
/**
* @param streamView 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`.
*
* @return builder
*
*/
public Builder streamView(@Nullable Output streamView) {
$.streamView = streamView;
return this;
}
/**
* @param streamView 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`.
*
* @return builder
*
*/
public Builder streamView(String streamView) {
return streamView(Output.of(streamView));
}
/**
* @param tags Map of tags to attach to AppStream instances.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Map of tags to attach to AppStream instances.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
/**
* @param vpcConfig Configuration block for the VPC configuration for the image builder. See below.
*
* @return builder
*
*/
public Builder vpcConfig(@Nullable Output vpcConfig) {
$.vpcConfig = vpcConfig;
return this;
}
/**
* @param vpcConfig Configuration block for the VPC configuration for the image builder. See below.
*
* @return builder
*
*/
public Builder vpcConfig(FleetVpcConfigArgs vpcConfig) {
return vpcConfig(Output.of(vpcConfig));
}
public FleetState build() {
return $;
}
}
}