@formalco/pulumi
Version:
A Pulumi package for creating and managing Formal resources.
83 lines • 4.69 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.IntegrationCloud = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Registering a Cloud integration.
*/
class IntegrationCloud extends pulumi.CustomResource {
/**
* Get an existing IntegrationCloud 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 state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new IntegrationCloud(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of IntegrationCloud. 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'] === IntegrationCloud.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aws"] = state ? state.aws : undefined;
resourceInputs["awsAllowS3Access"] = state ? state.awsAllowS3Access : undefined;
resourceInputs["awsEnableEc2Autodiscovery"] = state ? state.awsEnableEc2Autodiscovery : undefined;
resourceInputs["awsEnableEcsAutodiscovery"] = state ? state.awsEnableEcsAutodiscovery : undefined;
resourceInputs["awsEnableEksAutodiscovery"] = state ? state.awsEnableEksAutodiscovery : undefined;
resourceInputs["awsEnableRdsAutodiscovery"] = state ? state.awsEnableRdsAutodiscovery : undefined;
resourceInputs["awsEnableRedshiftAutodiscovery"] = state ? state.awsEnableRedshiftAutodiscovery : undefined;
resourceInputs["awsFormalIamRole"] = state ? state.awsFormalIamRole : undefined;
resourceInputs["awsFormalPingbackArn"] = state ? state.awsFormalPingbackArn : undefined;
resourceInputs["awsFormalStackName"] = state ? state.awsFormalStackName : undefined;
resourceInputs["awsS3BucketArn"] = state ? state.awsS3BucketArn : undefined;
resourceInputs["awsTemplateBody"] = state ? state.awsTemplateBody : undefined;
resourceInputs["cloudRegion"] = state ? state.cloudRegion : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["type"] = state ? state.type : undefined;
}
else {
const args = argsOrState;
if ((!args || args.cloudRegion === undefined) && !opts.urn) {
throw new Error("Missing required property 'cloudRegion'");
}
resourceInputs["aws"] = args ? args.aws : undefined;
resourceInputs["cloudRegion"] = args ? args.cloudRegion : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["awsAllowS3Access"] = undefined /*out*/;
resourceInputs["awsEnableEc2Autodiscovery"] = undefined /*out*/;
resourceInputs["awsEnableEcsAutodiscovery"] = undefined /*out*/;
resourceInputs["awsEnableEksAutodiscovery"] = undefined /*out*/;
resourceInputs["awsEnableRdsAutodiscovery"] = undefined /*out*/;
resourceInputs["awsEnableRedshiftAutodiscovery"] = undefined /*out*/;
resourceInputs["awsFormalIamRole"] = undefined /*out*/;
resourceInputs["awsFormalPingbackArn"] = undefined /*out*/;
resourceInputs["awsFormalStackName"] = undefined /*out*/;
resourceInputs["awsS3BucketArn"] = undefined /*out*/;
resourceInputs["awsTemplateBody"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IntegrationCloud.__pulumiType, name, resourceInputs, opts);
}
}
exports.IntegrationCloud = IntegrationCloud;
/** @internal */
IntegrationCloud.__pulumiType = 'formal:index/integrationCloud:IntegrationCloud';
//# sourceMappingURL=integrationCloud.js.map