All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.gamelift.FleetArgs 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.gamelift;

import com.pulumi.aws.gamelift.inputs.FleetCertificateConfigurationArgs;
import com.pulumi.aws.gamelift.inputs.FleetEc2InboundPermissionArgs;
import com.pulumi.aws.gamelift.inputs.FleetResourceCreationLimitPolicyArgs;
import com.pulumi.aws.gamelift.inputs.FleetRuntimeConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FleetArgs extends com.pulumi.resources.ResourceArgs {

    public static final FleetArgs Empty = new FleetArgs();

    /**
     * ID of the GameLift Build to be deployed on the fleet.
     * 
     */
    @Import(name="buildId")
    private @Nullable Output buildId;

    /**
     * @return ID of the GameLift Build to be deployed on the fleet.
     * 
     */
    public Optional> buildId() {
        return Optional.ofNullable(this.buildId);
    }

    /**
     * Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration.
     * 
     */
    @Import(name="certificateConfiguration")
    private @Nullable Output certificateConfiguration;

    /**
     * @return Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration.
     * 
     */
    public Optional> certificateConfiguration() {
        return Optional.ofNullable(this.certificateConfiguration);
    }

    /**
     * Human-readable description of the fleet.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Human-readable description of the fleet.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
     * 
     */
    @Import(name="ec2InboundPermissions")
    private @Nullable Output> ec2InboundPermissions;

    /**
     * @return Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
     * 
     */
    public Optional>> ec2InboundPermissions() {
        return Optional.ofNullable(this.ec2InboundPermissions);
    }

    /**
     * Name of an EC2 instance typeE.g., `t2.micro`
     * 
     */
    @Import(name="ec2InstanceType", required=true)
    private Output ec2InstanceType;

    /**
     * @return Name of an EC2 instance typeE.g., `t2.micro`
     * 
     */
    public Output ec2InstanceType() {
        return this.ec2InstanceType;
    }

    /**
     * Type of fleet. This value must be `ON_DEMAND` or `SPOT`. Defaults to `ON_DEMAND`.
     * 
     */
    @Import(name="fleetType")
    private @Nullable Output fleetType;

    /**
     * @return Type of fleet. This value must be `ON_DEMAND` or `SPOT`. Defaults to `ON_DEMAND`.
     * 
     */
    public Optional> fleetType() {
        return Optional.ofNullable(this.fleetType);
    }

    /**
     * ARN of an IAM role that instances in the fleet can assume.
     * 
     */
    @Import(name="instanceRoleArn")
    private @Nullable Output instanceRoleArn;

    /**
     * @return ARN of an IAM role that instances in the fleet can assume.
     * 
     */
    public Optional> instanceRoleArn() {
        return Optional.ofNullable(this.instanceRoleArn);
    }

    /**
     * List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to `default`.
     * 
     */
    @Import(name="metricGroups")
    private @Nullable Output> metricGroups;

    /**
     * @return List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to `default`.
     * 
     */
    public Optional>> metricGroups() {
        return Optional.ofNullable(this.metricGroups);
    }

    /**
     * The name of the fleet.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the fleet.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Game session protection policy to apply to all instances in this fleetE.g., `FullProtection`. Defaults to `NoProtection`.
     * 
     */
    @Import(name="newGameSessionProtectionPolicy")
    private @Nullable Output newGameSessionProtectionPolicy;

    /**
     * @return Game session protection policy to apply to all instances in this fleetE.g., `FullProtection`. Defaults to `NoProtection`.
     * 
     */
    public Optional> newGameSessionProtectionPolicy() {
        return Optional.ofNullable(this.newGameSessionProtectionPolicy);
    }

    /**
     * Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
     * 
     */
    @Import(name="resourceCreationLimitPolicy")
    private @Nullable Output resourceCreationLimitPolicy;

    /**
     * @return Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
     * 
     */
    public Optional> resourceCreationLimitPolicy() {
        return Optional.ofNullable(this.resourceCreationLimitPolicy);
    }

    /**
     * Instructions for launching server processes on each instance in the fleet. See below.
     * 
     */
    @Import(name="runtimeConfiguration")
    private @Nullable Output runtimeConfiguration;

    /**
     * @return Instructions for launching server processes on each instance in the fleet. See below.
     * 
     */
    public Optional> runtimeConfiguration() {
        return Optional.ofNullable(this.runtimeConfiguration);
    }

    /**
     * ID of the GameLift Script to be deployed on the fleet.
     * 
     */
    @Import(name="scriptId")
    private @Nullable Output scriptId;

    /**
     * @return ID of the GameLift Script to be deployed on the fleet.
     * 
     */
    public Optional> scriptId() {
        return Optional.ofNullable(this.scriptId);
    }

    /**
     * Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private FleetArgs() {}

    private FleetArgs(FleetArgs $) {
        this.buildId = $.buildId;
        this.certificateConfiguration = $.certificateConfiguration;
        this.description = $.description;
        this.ec2InboundPermissions = $.ec2InboundPermissions;
        this.ec2InstanceType = $.ec2InstanceType;
        this.fleetType = $.fleetType;
        this.instanceRoleArn = $.instanceRoleArn;
        this.metricGroups = $.metricGroups;
        this.name = $.name;
        this.newGameSessionProtectionPolicy = $.newGameSessionProtectionPolicy;
        this.resourceCreationLimitPolicy = $.resourceCreationLimitPolicy;
        this.runtimeConfiguration = $.runtimeConfiguration;
        this.scriptId = $.scriptId;
        this.tags = $.tags;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(FleetArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private FleetArgs $;

        public Builder() {
            $ = new FleetArgs();
        }

        public Builder(FleetArgs defaults) {
            $ = new FleetArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param buildId ID of the GameLift Build to be deployed on the fleet.
         * 
         * @return builder
         * 
         */
        public Builder buildId(@Nullable Output buildId) {
            $.buildId = buildId;
            return this;
        }

        /**
         * @param buildId ID of the GameLift Build to be deployed on the fleet.
         * 
         * @return builder
         * 
         */
        public Builder buildId(String buildId) {
            return buildId(Output.of(buildId));
        }

        /**
         * @param certificateConfiguration Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration.
         * 
         * @return builder
         * 
         */
        public Builder certificateConfiguration(@Nullable Output certificateConfiguration) {
            $.certificateConfiguration = certificateConfiguration;
            return this;
        }

        /**
         * @param certificateConfiguration Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration.
         * 
         * @return builder
         * 
         */
        public Builder certificateConfiguration(FleetCertificateConfigurationArgs certificateConfiguration) {
            return certificateConfiguration(Output.of(certificateConfiguration));
        }

        /**
         * @param description Human-readable description of the fleet.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Human-readable description of the fleet.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param ec2InboundPermissions Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder ec2InboundPermissions(@Nullable Output> ec2InboundPermissions) {
            $.ec2InboundPermissions = ec2InboundPermissions;
            return this;
        }

        /**
         * @param ec2InboundPermissions Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder ec2InboundPermissions(List ec2InboundPermissions) {
            return ec2InboundPermissions(Output.of(ec2InboundPermissions));
        }

        /**
         * @param ec2InboundPermissions Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder ec2InboundPermissions(FleetEc2InboundPermissionArgs... ec2InboundPermissions) {
            return ec2InboundPermissions(List.of(ec2InboundPermissions));
        }

        /**
         * @param ec2InstanceType Name of an EC2 instance typeE.g., `t2.micro`
         * 
         * @return builder
         * 
         */
        public Builder ec2InstanceType(Output ec2InstanceType) {
            $.ec2InstanceType = ec2InstanceType;
            return this;
        }

        /**
         * @param ec2InstanceType Name of an EC2 instance typeE.g., `t2.micro`
         * 
         * @return builder
         * 
         */
        public Builder ec2InstanceType(String ec2InstanceType) {
            return ec2InstanceType(Output.of(ec2InstanceType));
        }

        /**
         * @param fleetType Type of fleet. This value must be `ON_DEMAND` or `SPOT`. Defaults to `ON_DEMAND`.
         * 
         * @return builder
         * 
         */
        public Builder fleetType(@Nullable Output fleetType) {
            $.fleetType = fleetType;
            return this;
        }

        /**
         * @param fleetType Type of fleet. This value must be `ON_DEMAND` or `SPOT`. Defaults to `ON_DEMAND`.
         * 
         * @return builder
         * 
         */
        public Builder fleetType(String fleetType) {
            return fleetType(Output.of(fleetType));
        }

        /**
         * @param instanceRoleArn ARN of an IAM role that instances in the fleet can assume.
         * 
         * @return builder
         * 
         */
        public Builder instanceRoleArn(@Nullable Output instanceRoleArn) {
            $.instanceRoleArn = instanceRoleArn;
            return this;
        }

        /**
         * @param instanceRoleArn ARN of an IAM role that instances in the fleet can assume.
         * 
         * @return builder
         * 
         */
        public Builder instanceRoleArn(String instanceRoleArn) {
            return instanceRoleArn(Output.of(instanceRoleArn));
        }

        /**
         * @param metricGroups List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to `default`.
         * 
         * @return builder
         * 
         */
        public Builder metricGroups(@Nullable Output> metricGroups) {
            $.metricGroups = metricGroups;
            return this;
        }

        /**
         * @param metricGroups List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to `default`.
         * 
         * @return builder
         * 
         */
        public Builder metricGroups(List metricGroups) {
            return metricGroups(Output.of(metricGroups));
        }

        /**
         * @param metricGroups List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to `default`.
         * 
         * @return builder
         * 
         */
        public Builder metricGroups(String... metricGroups) {
            return metricGroups(List.of(metricGroups));
        }

        /**
         * @param name The name of the fleet.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the fleet.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param newGameSessionProtectionPolicy Game session protection policy to apply to all instances in this fleetE.g., `FullProtection`. Defaults to `NoProtection`.
         * 
         * @return builder
         * 
         */
        public Builder newGameSessionProtectionPolicy(@Nullable Output newGameSessionProtectionPolicy) {
            $.newGameSessionProtectionPolicy = newGameSessionProtectionPolicy;
            return this;
        }

        /**
         * @param newGameSessionProtectionPolicy Game session protection policy to apply to all instances in this fleetE.g., `FullProtection`. Defaults to `NoProtection`.
         * 
         * @return builder
         * 
         */
        public Builder newGameSessionProtectionPolicy(String newGameSessionProtectionPolicy) {
            return newGameSessionProtectionPolicy(Output.of(newGameSessionProtectionPolicy));
        }

        /**
         * @param resourceCreationLimitPolicy Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder resourceCreationLimitPolicy(@Nullable Output resourceCreationLimitPolicy) {
            $.resourceCreationLimitPolicy = resourceCreationLimitPolicy;
            return this;
        }

        /**
         * @param resourceCreationLimitPolicy Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder resourceCreationLimitPolicy(FleetResourceCreationLimitPolicyArgs resourceCreationLimitPolicy) {
            return resourceCreationLimitPolicy(Output.of(resourceCreationLimitPolicy));
        }

        /**
         * @param runtimeConfiguration Instructions for launching server processes on each instance in the fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder runtimeConfiguration(@Nullable Output runtimeConfiguration) {
            $.runtimeConfiguration = runtimeConfiguration;
            return this;
        }

        /**
         * @param runtimeConfiguration Instructions for launching server processes on each instance in the fleet. See below.
         * 
         * @return builder
         * 
         */
        public Builder runtimeConfiguration(FleetRuntimeConfigurationArgs runtimeConfiguration) {
            return runtimeConfiguration(Output.of(runtimeConfiguration));
        }

        /**
         * @param scriptId ID of the GameLift Script to be deployed on the fleet.
         * 
         * @return builder
         * 
         */
        public Builder scriptId(@Nullable Output scriptId) {
            $.scriptId = scriptId;
            return this;
        }

        /**
         * @param scriptId ID of the GameLift Script to be deployed on the fleet.
         * 
         * @return builder
         * 
         */
        public Builder scriptId(String scriptId) {
            return scriptId(Output.of(scriptId));
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public FleetArgs build() {
            if ($.ec2InstanceType == null) {
                throw new MissingRequiredPropertyException("FleetArgs", "ec2InstanceType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy