@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)
118 lines • 6.68 kB
JavaScript
;
// *** 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.Environment = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Resource schema for AWS::MWAA::Environment
*/
class Environment extends pulumi.CustomResource {
/**
* Get an existing Environment 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 Environment(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Environment. 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'] === Environment.__pulumiType;
}
/**
* Create a Environment 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["airflowConfigurationOptions"] = args?.airflowConfigurationOptions;
resourceInputs["airflowVersion"] = args?.airflowVersion;
resourceInputs["dagS3Path"] = args?.dagS3Path;
resourceInputs["endpointManagement"] = args?.endpointManagement;
resourceInputs["environmentClass"] = args?.environmentClass;
resourceInputs["executionRoleArn"] = args?.executionRoleArn;
resourceInputs["kmsKey"] = args?.kmsKey;
resourceInputs["loggingConfiguration"] = args?.loggingConfiguration;
resourceInputs["maxWebservers"] = args?.maxWebservers;
resourceInputs["maxWorkers"] = args?.maxWorkers;
resourceInputs["minWebservers"] = args?.minWebservers;
resourceInputs["minWorkers"] = args?.minWorkers;
resourceInputs["name"] = args?.name;
resourceInputs["networkConfiguration"] = args?.networkConfiguration;
resourceInputs["pluginsS3ObjectVersion"] = args?.pluginsS3ObjectVersion;
resourceInputs["pluginsS3Path"] = args?.pluginsS3Path;
resourceInputs["requirementsS3ObjectVersion"] = args?.requirementsS3ObjectVersion;
resourceInputs["requirementsS3Path"] = args?.requirementsS3Path;
resourceInputs["schedulers"] = args?.schedulers;
resourceInputs["sourceBucketArn"] = args?.sourceBucketArn;
resourceInputs["startupScriptS3ObjectVersion"] = args?.startupScriptS3ObjectVersion;
resourceInputs["startupScriptS3Path"] = args?.startupScriptS3Path;
resourceInputs["tags"] = args?.tags;
resourceInputs["webserverAccessMode"] = args?.webserverAccessMode;
resourceInputs["weeklyMaintenanceWindowStart"] = args?.weeklyMaintenanceWindowStart;
resourceInputs["workerReplacementStrategy"] = args?.workerReplacementStrategy;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["celeryExecutorQueue"] = undefined /*out*/;
resourceInputs["databaseVpcEndpointService"] = undefined /*out*/;
resourceInputs["webserverUrl"] = undefined /*out*/;
resourceInputs["webserverVpcEndpointService"] = undefined /*out*/;
}
else {
resourceInputs["airflowConfigurationOptions"] = undefined /*out*/;
resourceInputs["airflowVersion"] = undefined /*out*/;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["celeryExecutorQueue"] = undefined /*out*/;
resourceInputs["dagS3Path"] = undefined /*out*/;
resourceInputs["databaseVpcEndpointService"] = undefined /*out*/;
resourceInputs["endpointManagement"] = undefined /*out*/;
resourceInputs["environmentClass"] = undefined /*out*/;
resourceInputs["executionRoleArn"] = undefined /*out*/;
resourceInputs["kmsKey"] = undefined /*out*/;
resourceInputs["loggingConfiguration"] = undefined /*out*/;
resourceInputs["maxWebservers"] = undefined /*out*/;
resourceInputs["maxWorkers"] = undefined /*out*/;
resourceInputs["minWebservers"] = undefined /*out*/;
resourceInputs["minWorkers"] = undefined /*out*/;
resourceInputs["name"] = undefined /*out*/;
resourceInputs["networkConfiguration"] = undefined /*out*/;
resourceInputs["pluginsS3ObjectVersion"] = undefined /*out*/;
resourceInputs["pluginsS3Path"] = undefined /*out*/;
resourceInputs["requirementsS3ObjectVersion"] = undefined /*out*/;
resourceInputs["requirementsS3Path"] = undefined /*out*/;
resourceInputs["schedulers"] = undefined /*out*/;
resourceInputs["sourceBucketArn"] = undefined /*out*/;
resourceInputs["startupScriptS3ObjectVersion"] = undefined /*out*/;
resourceInputs["startupScriptS3Path"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
resourceInputs["webserverAccessMode"] = undefined /*out*/;
resourceInputs["webserverUrl"] = undefined /*out*/;
resourceInputs["webserverVpcEndpointService"] = undefined /*out*/;
resourceInputs["weeklyMaintenanceWindowStart"] = undefined /*out*/;
resourceInputs["workerReplacementStrategy"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["endpointManagement", "kmsKey", "name", "networkConfiguration.subnetIds[*]"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(Environment.__pulumiType, name, resourceInputs, opts);
}
}
exports.Environment = Environment;
/** @internal */
Environment.__pulumiType = 'aws-native:mwaa:Environment';
//# sourceMappingURL=environment.js.map