UNPKG

@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)

104 lines 5.94 kB
"use strict"; // *** 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.InfluxDbInstance = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The AWS::Timestream::InfluxDBInstance resource creates an InfluxDB instance. */ class InfluxDbInstance extends pulumi.CustomResource { /** * Get an existing InfluxDbInstance 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 InfluxDbInstance(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of InfluxDbInstance. 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'] === InfluxDbInstance.__pulumiType; } /** * Create a InfluxDbInstance 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["allocatedStorage"] = args ? args.allocatedStorage : undefined; resourceInputs["bucket"] = args ? args.bucket : undefined; resourceInputs["dbInstanceType"] = args ? args.dbInstanceType : undefined; resourceInputs["dbParameterGroupIdentifier"] = args ? args.dbParameterGroupIdentifier : undefined; resourceInputs["dbStorageType"] = args ? args.dbStorageType : undefined; resourceInputs["deploymentType"] = args ? args.deploymentType : undefined; resourceInputs["logDeliveryConfiguration"] = args ? args.logDeliveryConfiguration : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networkType"] = args ? args.networkType : undefined; resourceInputs["organization"] = args ? args.organization : undefined; resourceInputs["password"] = args ? args.password : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["publiclyAccessible"] = args ? args.publiclyAccessible : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["username"] = args ? args.username : undefined; resourceInputs["vpcSecurityGroupIds"] = args ? args.vpcSecurityGroupIds : undefined; resourceInputs["vpcSubnetIds"] = args ? args.vpcSubnetIds : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["availabilityZone"] = undefined /*out*/; resourceInputs["awsId"] = undefined /*out*/; resourceInputs["endpoint"] = undefined /*out*/; resourceInputs["influxAuthParametersSecretArn"] = undefined /*out*/; resourceInputs["secondaryAvailabilityZone"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; } else { resourceInputs["allocatedStorage"] = undefined /*out*/; resourceInputs["arn"] = undefined /*out*/; resourceInputs["availabilityZone"] = undefined /*out*/; resourceInputs["awsId"] = undefined /*out*/; resourceInputs["bucket"] = undefined /*out*/; resourceInputs["dbInstanceType"] = undefined /*out*/; resourceInputs["dbParameterGroupIdentifier"] = undefined /*out*/; resourceInputs["dbStorageType"] = undefined /*out*/; resourceInputs["deploymentType"] = undefined /*out*/; resourceInputs["endpoint"] = undefined /*out*/; resourceInputs["influxAuthParametersSecretArn"] = undefined /*out*/; resourceInputs["logDeliveryConfiguration"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["networkType"] = undefined /*out*/; resourceInputs["organization"] = undefined /*out*/; resourceInputs["password"] = undefined /*out*/; resourceInputs["port"] = undefined /*out*/; resourceInputs["publiclyAccessible"] = undefined /*out*/; resourceInputs["secondaryAvailabilityZone"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; resourceInputs["username"] = undefined /*out*/; resourceInputs["vpcSecurityGroupIds"] = undefined /*out*/; resourceInputs["vpcSubnetIds"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["bucket", "name", "networkType", "organization", "password", "publiclyAccessible", "username", "vpcSecurityGroupIds[*]", "vpcSubnetIds[*]"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(InfluxDbInstance.__pulumiType, name, resourceInputs, opts); } } exports.InfluxDbInstance = InfluxDbInstance; /** @internal */ InfluxDbInstance.__pulumiType = 'aws-native:timestream:InfluxDbInstance'; //# sourceMappingURL=influxDbInstance.js.map