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

73 lines 3.62 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.EC2TaskDefinition = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Create a TaskDefinition resource with the given unique name, arguments, and options. * Creates required log-group and task & execution roles. * Presents required Service load balancers if target group included in port mappings. */ class EC2TaskDefinition extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of EC2TaskDefinition. 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'] === EC2TaskDefinition.__pulumiType; } /** * Create a EC2TaskDefinition 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["container"] = args?.container; resourceInputs["containers"] = args?.containers; resourceInputs["cpu"] = args?.cpu; resourceInputs["enableFaultInjection"] = args?.enableFaultInjection; resourceInputs["ephemeralStorage"] = args?.ephemeralStorage; resourceInputs["executionRole"] = args?.executionRole; resourceInputs["family"] = args?.family; resourceInputs["ipcMode"] = args?.ipcMode; resourceInputs["logGroup"] = args?.logGroup; resourceInputs["memory"] = args?.memory; resourceInputs["networkMode"] = args?.networkMode; resourceInputs["pidMode"] = args?.pidMode; resourceInputs["placementConstraints"] = args?.placementConstraints; resourceInputs["proxyConfiguration"] = args?.proxyConfiguration; resourceInputs["region"] = args?.region; resourceInputs["runtimePlatform"] = args?.runtimePlatform; resourceInputs["skipDestroy"] = args?.skipDestroy; resourceInputs["tags"] = args?.tags; resourceInputs["taskRole"] = args?.taskRole; resourceInputs["trackLatest"] = args?.trackLatest; resourceInputs["volumes"] = args?.volumes; resourceInputs["loadBalancers"] = undefined /*out*/; resourceInputs["taskDefinition"] = undefined /*out*/; } else { resourceInputs["executionRole"] = undefined /*out*/; resourceInputs["loadBalancers"] = undefined /*out*/; resourceInputs["logGroup"] = undefined /*out*/; resourceInputs["taskDefinition"] = undefined /*out*/; resourceInputs["taskRole"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(EC2TaskDefinition.__pulumiType, name, resourceInputs, opts, true /*remote*/); } } exports.EC2TaskDefinition = EC2TaskDefinition; /** @internal */ EC2TaskDefinition.__pulumiType = 'awsx:ecs:EC2TaskDefinition'; //# sourceMappingURL=ec2taskDefinition.js.map