UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

78 lines 4.89 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Provider = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The provider type for the huaweicloud package. By default, resources use package-wide configuration * settings, however an explicit `Provider` instance may be created and passed during resource * construction to achieve fine-grained programmatic control over provider settings. See the * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. */ class Provider extends pulumi.ProviderResource { /** * Returns true if the given object is an instance of Provider. 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'] === Provider.__pulumiType; } /** * Create a Provider 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 || {}; { resourceInputs["accessKey"] = args ? args.accessKey : undefined; resourceInputs["agencyDomainName"] = args ? args.agencyDomainName : undefined; resourceInputs["agencyName"] = args ? args.agencyName : undefined; resourceInputs["assumeRole"] = pulumi.output(args ? args.assumeRole : undefined).apply(JSON.stringify); resourceInputs["authUrl"] = args ? args.authUrl : undefined; resourceInputs["cacertFile"] = args ? args.cacertFile : undefined; resourceInputs["cert"] = args ? args.cert : undefined; resourceInputs["cloud"] = args ? args.cloud : undefined; resourceInputs["delegatedProject"] = args ? args.delegatedProject : undefined; resourceInputs["domainId"] = args ? args.domainId : undefined; resourceInputs["domainName"] = args ? args.domainName : undefined; resourceInputs["enableForceNew"] = pulumi.output(args ? args.enableForceNew : undefined).apply(JSON.stringify); resourceInputs["endpoints"] = pulumi.output(args ? args.endpoints : undefined).apply(JSON.stringify); resourceInputs["enterpriseProjectId"] = args ? args.enterpriseProjectId : undefined; resourceInputs["insecure"] = pulumi.output(args ? args.insecure : undefined).apply(JSON.stringify); resourceInputs["key"] = args ? args.key : undefined; resourceInputs["maxRetries"] = pulumi.output(args ? args.maxRetries : undefined).apply(JSON.stringify); resourceInputs["password"] = args ? args.password : undefined; resourceInputs["profile"] = args ? args.profile : undefined; resourceInputs["projectId"] = args ? args.projectId : undefined; resourceInputs["projectName"] = args ? args.projectName : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["regional"] = pulumi.output(args ? args.regional : undefined).apply(JSON.stringify); resourceInputs["secretKey"] = args ? args.secretKey : undefined; resourceInputs["securityToken"] = args ? args.securityToken : undefined; resourceInputs["sharedConfigFile"] = args ? args.sharedConfigFile : undefined; resourceInputs["signingAlgorithm"] = args ? args.signingAlgorithm : undefined; resourceInputs["skipCheckUpgrade"] = pulumi.output(args ? args.skipCheckUpgrade : undefined).apply(JSON.stringify); resourceInputs["skipCheckWebsiteType"] = pulumi.output(args ? args.skipCheckWebsiteType : undefined).apply(JSON.stringify); resourceInputs["tenantId"] = args ? args.tenantId : undefined; resourceInputs["tenantName"] = args ? args.tenantName : undefined; resourceInputs["token"] = args ? args.token : undefined; resourceInputs["userId"] = args ? args.userId : undefined; resourceInputs["userName"] = args ? args.userName : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Provider.__pulumiType, name, resourceInputs, opts); } } exports.Provider = Provider; /** @internal */ Provider.__pulumiType = 'huaweicloud'; //# sourceMappingURL=provider.js.map