UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

88 lines 4.97 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.SaasBotDefenseProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class SaasBotDefenseProfile extends pulumi.CustomResource { /** * Get an existing SaasBotDefenseProfile 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 SaasBotDefenseProfile(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SaasBotDefenseProfile. 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'] === SaasBotDefenseProfile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["apiKey"] = state ? state.apiKey : undefined; resourceInputs["applicationId"] = state ? state.applicationId : undefined; resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["protectedEndpoints"] = state ? state.protectedEndpoints : undefined; resourceInputs["shapeProtectionPool"] = state ? state.shapeProtectionPool : undefined; resourceInputs["sslProfile"] = state ? state.sslProfile : undefined; resourceInputs["tenantId"] = state ? state.tenantId : undefined; } else { const args = argsOrState; if ((!args || args.apiKey === undefined) && !opts.urn) { throw new Error("Missing required property 'apiKey'"); } if ((!args || args.applicationId === undefined) && !opts.urn) { throw new Error("Missing required property 'applicationId'"); } if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } if ((!args || args.protectedEndpoints === undefined) && !opts.urn) { throw new Error("Missing required property 'protectedEndpoints'"); } if ((!args || args.shapeProtectionPool === undefined) && !opts.urn) { throw new Error("Missing required property 'shapeProtectionPool'"); } if ((!args || args.sslProfile === undefined) && !opts.urn) { throw new Error("Missing required property 'sslProfile'"); } if ((!args || args.tenantId === undefined) && !opts.urn) { throw new Error("Missing required property 'tenantId'"); } resourceInputs["apiKey"] = (args === null || args === void 0 ? void 0 : args.apiKey) ? pulumi.secret(args.apiKey) : undefined; resourceInputs["applicationId"] = (args === null || args === void 0 ? void 0 : args.applicationId) ? pulumi.secret(args.applicationId) : undefined; resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["protectedEndpoints"] = args ? args.protectedEndpoints : undefined; resourceInputs["shapeProtectionPool"] = args ? args.shapeProtectionPool : undefined; resourceInputs["sslProfile"] = args ? args.sslProfile : undefined; resourceInputs["tenantId"] = args ? args.tenantId : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["apiKey", "applicationId"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(SaasBotDefenseProfile.__pulumiType, name, resourceInputs, opts); } } exports.SaasBotDefenseProfile = SaasBotDefenseProfile; /** @internal */ SaasBotDefenseProfile.__pulumiType = 'f5bigip:index/saasBotDefenseProfile:SaasBotDefenseProfile'; //# sourceMappingURL=saasBotDefenseProfile.js.map