UNPKG

@pulumi/awsx

Version:

[![Actions Status](https://github.com/pulumi/pulumi-awsx/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-awsx/actions) [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fur

81 lines 4.49 kB
"use strict"; // *** WARNING: this file was generated by pulumi-gen-awsx. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.FargateService = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Create an ECS Service resource for Fargate with the given unique name, arguments, and options. * Creates Task definition if `taskDefinitionArgs` is specified. */ class FargateService extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of FargateService. 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'] === FargateService.__pulumiType; } /** * Create a FargateService 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["alarms"] = args?.alarms; resourceInputs["assignPublicIp"] = args?.assignPublicIp; resourceInputs["availabilityZoneRebalancing"] = args?.availabilityZoneRebalancing; resourceInputs["cluster"] = args?.cluster; resourceInputs["continueBeforeSteadyState"] = args?.continueBeforeSteadyState; resourceInputs["deploymentCircuitBreaker"] = args?.deploymentCircuitBreaker; resourceInputs["deploymentConfiguration"] = args?.deploymentConfiguration; resourceInputs["deploymentController"] = args?.deploymentController; resourceInputs["deploymentMaximumPercent"] = args?.deploymentMaximumPercent; resourceInputs["deploymentMinimumHealthyPercent"] = args?.deploymentMinimumHealthyPercent; resourceInputs["desiredCount"] = args?.desiredCount; resourceInputs["enableEcsManagedTags"] = args?.enableEcsManagedTags; resourceInputs["enableExecuteCommand"] = args?.enableExecuteCommand; resourceInputs["forceDelete"] = args?.forceDelete; resourceInputs["forceNewDeployment"] = args?.forceNewDeployment; resourceInputs["healthCheckGracePeriodSeconds"] = args?.healthCheckGracePeriodSeconds; resourceInputs["iamRole"] = args?.iamRole; resourceInputs["loadBalancers"] = args?.loadBalancers; resourceInputs["name"] = args?.name; resourceInputs["networkConfiguration"] = args?.networkConfiguration; resourceInputs["placementConstraints"] = args?.placementConstraints; resourceInputs["platformVersion"] = args?.platformVersion; resourceInputs["propagateTags"] = args?.propagateTags; resourceInputs["region"] = args?.region; resourceInputs["schedulingStrategy"] = args?.schedulingStrategy; resourceInputs["serviceConnectConfiguration"] = args?.serviceConnectConfiguration; resourceInputs["serviceRegistries"] = args?.serviceRegistries; resourceInputs["sigintRollback"] = args?.sigintRollback; resourceInputs["tags"] = args?.tags; resourceInputs["taskDefinition"] = args?.taskDefinition; resourceInputs["taskDefinitionArgs"] = args?.taskDefinitionArgs; resourceInputs["triggers"] = args?.triggers; resourceInputs["volumeConfiguration"] = args?.volumeConfiguration; resourceInputs["vpcLatticeConfigurations"] = args?.vpcLatticeConfigurations; resourceInputs["service"] = undefined /*out*/; } else { resourceInputs["service"] = undefined /*out*/; resourceInputs["taskDefinition"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FargateService.__pulumiType, name, resourceInputs, opts, true /*remote*/); } } exports.FargateService = FargateService; /** @internal */ FargateService.__pulumiType = 'awsx:ecs:FargateService'; //# sourceMappingURL=fargateService.js.map