@pulumi/awsx
Version:
[](https://github.com/pulumi/pulumi-awsx/actions) [](https://slack.pulumi.com) [;
exports.EC2Service = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Create an ECS Service resource for EC2 with the given unique name, arguments, and options.
* Creates Task definition if `taskDefinitionArgs` is specified.
*/
class EC2Service extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of EC2Service. 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'] === EC2Service.__pulumiType;
}
/**
* Create a EC2Service 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 ? args.alarms : undefined;
resourceInputs["availabilityZoneRebalancing"] = args ? args.availabilityZoneRebalancing : undefined;
resourceInputs["capacityProviderStrategies"] = args ? args.capacityProviderStrategies : undefined;
resourceInputs["cluster"] = args ? args.cluster : undefined;
resourceInputs["continueBeforeSteadyState"] = args ? args.continueBeforeSteadyState : undefined;
resourceInputs["deploymentCircuitBreaker"] = args ? args.deploymentCircuitBreaker : undefined;
resourceInputs["deploymentController"] = args ? args.deploymentController : undefined;
resourceInputs["deploymentMaximumPercent"] = args ? args.deploymentMaximumPercent : undefined;
resourceInputs["deploymentMinimumHealthyPercent"] = args ? args.deploymentMinimumHealthyPercent : undefined;
resourceInputs["desiredCount"] = args ? args.desiredCount : undefined;
resourceInputs["enableEcsManagedTags"] = args ? args.enableEcsManagedTags : undefined;
resourceInputs["enableExecuteCommand"] = args ? args.enableExecuteCommand : undefined;
resourceInputs["forceDelete"] = args ? args.forceDelete : undefined;
resourceInputs["forceNewDeployment"] = args ? args.forceNewDeployment : undefined;
resourceInputs["healthCheckGracePeriodSeconds"] = args ? args.healthCheckGracePeriodSeconds : undefined;
resourceInputs["iamRole"] = args ? args.iamRole : undefined;
resourceInputs["loadBalancers"] = args ? args.loadBalancers : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["networkConfiguration"] = args ? args.networkConfiguration : undefined;
resourceInputs["orderedPlacementStrategies"] = args ? args.orderedPlacementStrategies : undefined;
resourceInputs["placementConstraints"] = args ? args.placementConstraints : undefined;
resourceInputs["platformVersion"] = args ? args.platformVersion : undefined;
resourceInputs["propagateTags"] = args ? args.propagateTags : undefined;
resourceInputs["region"] = args ? args.region : undefined;
resourceInputs["schedulingStrategy"] = args ? args.schedulingStrategy : undefined;
resourceInputs["serviceConnectConfiguration"] = args ? args.serviceConnectConfiguration : undefined;
resourceInputs["serviceRegistries"] = args ? args.serviceRegistries : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["taskDefinition"] = args ? args.taskDefinition : undefined;
resourceInputs["taskDefinitionArgs"] = args ? args.taskDefinitionArgs : undefined;
resourceInputs["triggers"] = args ? args.triggers : undefined;
resourceInputs["volumeConfiguration"] = args ? args.volumeConfiguration : undefined;
resourceInputs["vpcLatticeConfigurations"] = args ? args.vpcLatticeConfigurations : undefined;
resourceInputs["service"] = undefined /*out*/;
}
else {
resourceInputs["service"] = undefined /*out*/;
resourceInputs["taskDefinition"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(EC2Service.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.EC2Service = EC2Service;
/** @internal */
EC2Service.__pulumiType = 'awsx:ecs:EC2Service';
//# sourceMappingURL=ec2service.js.map