UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

116 lines 6.63 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Fleet = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The AWS::GameLift::Fleet resource creates an Amazon GameLift (GameLift) fleet to host game servers. A fleet is a set of EC2 or Anywhere instances, each of which can host multiple game sessions. */ class Fleet extends pulumi.CustomResource { /** * Get an existing Fleet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new Fleet(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of Fleet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Fleet.__pulumiType; } /** * Create a Fleet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { resourceInputs["anywhereConfiguration"] = args?.anywhereConfiguration; resourceInputs["applyCapacity"] = args?.applyCapacity; resourceInputs["buildId"] = args?.buildId; resourceInputs["certificateConfiguration"] = args?.certificateConfiguration; resourceInputs["computeType"] = args?.computeType; resourceInputs["description"] = args?.description; resourceInputs["desiredEc2Instances"] = args?.desiredEc2Instances; resourceInputs["ec2InboundPermissions"] = args?.ec2InboundPermissions; resourceInputs["ec2InstanceType"] = args?.ec2InstanceType; resourceInputs["fleetType"] = args?.fleetType; resourceInputs["instanceRoleArn"] = args?.instanceRoleArn; resourceInputs["instanceRoleCredentialsProvider"] = args?.instanceRoleCredentialsProvider; resourceInputs["locations"] = args?.locations; resourceInputs["logPaths"] = args?.logPaths; resourceInputs["maxSize"] = args?.maxSize; resourceInputs["metricGroups"] = args?.metricGroups; resourceInputs["minSize"] = args?.minSize; resourceInputs["name"] = args?.name; resourceInputs["newGameSessionProtectionPolicy"] = args?.newGameSessionProtectionPolicy; resourceInputs["peerVpcAwsAccountId"] = args?.peerVpcAwsAccountId; resourceInputs["peerVpcId"] = args?.peerVpcId; resourceInputs["resourceCreationLimitPolicy"] = args?.resourceCreationLimitPolicy; resourceInputs["runtimeConfiguration"] = args?.runtimeConfiguration; resourceInputs["scalingPolicies"] = args?.scalingPolicies; resourceInputs["scriptId"] = args?.scriptId; resourceInputs["serverLaunchParameters"] = args?.serverLaunchParameters; resourceInputs["serverLaunchPath"] = args?.serverLaunchPath; resourceInputs["tags"] = args?.tags; resourceInputs["fleetArn"] = undefined /*out*/; resourceInputs["fleetId"] = undefined /*out*/; } else { resourceInputs["anywhereConfiguration"] = undefined /*out*/; resourceInputs["applyCapacity"] = undefined /*out*/; resourceInputs["buildId"] = undefined /*out*/; resourceInputs["certificateConfiguration"] = undefined /*out*/; resourceInputs["computeType"] = undefined /*out*/; resourceInputs["description"] = undefined /*out*/; resourceInputs["desiredEc2Instances"] = undefined /*out*/; resourceInputs["ec2InboundPermissions"] = undefined /*out*/; resourceInputs["ec2InstanceType"] = undefined /*out*/; resourceInputs["fleetArn"] = undefined /*out*/; resourceInputs["fleetId"] = undefined /*out*/; resourceInputs["fleetType"] = undefined /*out*/; resourceInputs["instanceRoleArn"] = undefined /*out*/; resourceInputs["instanceRoleCredentialsProvider"] = undefined /*out*/; resourceInputs["locations"] = undefined /*out*/; resourceInputs["logPaths"] = undefined /*out*/; resourceInputs["maxSize"] = undefined /*out*/; resourceInputs["metricGroups"] = undefined /*out*/; resourceInputs["minSize"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["newGameSessionProtectionPolicy"] = undefined /*out*/; resourceInputs["peerVpcAwsAccountId"] = undefined /*out*/; resourceInputs["peerVpcId"] = undefined /*out*/; resourceInputs["resourceCreationLimitPolicy"] = undefined /*out*/; resourceInputs["runtimeConfiguration"] = undefined /*out*/; resourceInputs["scalingPolicies"] = undefined /*out*/; resourceInputs["scriptId"] = undefined /*out*/; resourceInputs["serverLaunchParameters"] = undefined /*out*/; resourceInputs["serverLaunchPath"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["buildId", "certificateConfiguration", "computeType", "ec2InstanceType", "fleetType", "instanceRoleArn", "instanceRoleCredentialsProvider", "logPaths[*]", "peerVpcAwsAccountId", "peerVpcId", "scriptId", "serverLaunchParameters", "serverLaunchPath"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(Fleet.__pulumiType, name, resourceInputs, opts); } } exports.Fleet = Fleet; /** @internal */ Fleet.__pulumiType = 'aws-native:gamelift:Fleet'; //# sourceMappingURL=fleet.js.map