@pulumi/awsx
Version:
[](https://github.com/pulumi/pulumi-awsx/actions) [](https://slack.pulumi.com) [ || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.FargateTaskDefinition = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(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 FargateTaskDefinition extends pulumi.ComponentResource {
/** @internal */
static __pulumiType = 'awsx:ecs:FargateTaskDefinition';
/**
* Returns true if the given object is an instance of FargateTaskDefinition. 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'] === FargateTaskDefinition.__pulumiType;
}
/**
* Create a FargateTaskDefinition 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["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(FargateTaskDefinition.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.FargateTaskDefinition = FargateTaskDefinition;
//# sourceMappingURL=fargateTaskDefinition.js.map