@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
156 lines • 8.62 kB
JavaScript
// *** 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.Profile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure ICAP profiles.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.icap.Profile("trname", {
* icapHeaders: [{
* base64Encoding: "disable",
* content: "$user",
* name: "X-Authenticated-User",
* }],
* methods: "delete get head options post put trace other",
* request: "disable",
* requestFailure: "error",
* response: "disable",
* responseFailure: "error",
* responseReqHdr: "disable",
* streamingContentBypass: "disable",
* });
* ```
*
* ## Import
*
* Icap Profile can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:icap/profile:Profile labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:icap/profile:Profile labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Profile extends pulumi.CustomResource {
/**
* Get an existing Profile 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 Profile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Profile. 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'] === Profile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["chunkEncap"] = state ? state.chunkEncap : undefined;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["extensionFeature"] = state ? state.extensionFeature : undefined;
resourceInputs["fileTransfer"] = state ? state.fileTransfer : undefined;
resourceInputs["fileTransferFailure"] = state ? state.fileTransferFailure : undefined;
resourceInputs["fileTransferPath"] = state ? state.fileTransferPath : undefined;
resourceInputs["fileTransferServer"] = state ? state.fileTransferServer : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["icapBlockLog"] = state ? state.icapBlockLog : undefined;
resourceInputs["icapHeaders"] = state ? state.icapHeaders : undefined;
resourceInputs["methods"] = state ? state.methods : undefined;
resourceInputs["n204Response"] = state ? state.n204Response : undefined;
resourceInputs["n204SizeLimit"] = state ? state.n204SizeLimit : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["preview"] = state ? state.preview : undefined;
resourceInputs["previewDataLength"] = state ? state.previewDataLength : undefined;
resourceInputs["replacemsgGroup"] = state ? state.replacemsgGroup : undefined;
resourceInputs["request"] = state ? state.request : undefined;
resourceInputs["requestFailure"] = state ? state.requestFailure : undefined;
resourceInputs["requestPath"] = state ? state.requestPath : undefined;
resourceInputs["requestServer"] = state ? state.requestServer : undefined;
resourceInputs["respmodDefaultAction"] = state ? state.respmodDefaultAction : undefined;
resourceInputs["respmodForwardRules"] = state ? state.respmodForwardRules : undefined;
resourceInputs["response"] = state ? state.response : undefined;
resourceInputs["responseFailure"] = state ? state.responseFailure : undefined;
resourceInputs["responsePath"] = state ? state.responsePath : undefined;
resourceInputs["responseReqHdr"] = state ? state.responseReqHdr : undefined;
resourceInputs["responseServer"] = state ? state.responseServer : undefined;
resourceInputs["scanProgressInterval"] = state ? state.scanProgressInterval : undefined;
resourceInputs["streamingContentBypass"] = state ? state.streamingContentBypass : undefined;
resourceInputs["timeout"] = state ? state.timeout : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["chunkEncap"] = args ? args.chunkEncap : undefined;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["extensionFeature"] = args ? args.extensionFeature : undefined;
resourceInputs["fileTransfer"] = args ? args.fileTransfer : undefined;
resourceInputs["fileTransferFailure"] = args ? args.fileTransferFailure : undefined;
resourceInputs["fileTransferPath"] = args ? args.fileTransferPath : undefined;
resourceInputs["fileTransferServer"] = args ? args.fileTransferServer : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["icapBlockLog"] = args ? args.icapBlockLog : undefined;
resourceInputs["icapHeaders"] = args ? args.icapHeaders : undefined;
resourceInputs["methods"] = args ? args.methods : undefined;
resourceInputs["n204Response"] = args ? args.n204Response : undefined;
resourceInputs["n204SizeLimit"] = args ? args.n204SizeLimit : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["preview"] = args ? args.preview : undefined;
resourceInputs["previewDataLength"] = args ? args.previewDataLength : undefined;
resourceInputs["replacemsgGroup"] = args ? args.replacemsgGroup : undefined;
resourceInputs["request"] = args ? args.request : undefined;
resourceInputs["requestFailure"] = args ? args.requestFailure : undefined;
resourceInputs["requestPath"] = args ? args.requestPath : undefined;
resourceInputs["requestServer"] = args ? args.requestServer : undefined;
resourceInputs["respmodDefaultAction"] = args ? args.respmodDefaultAction : undefined;
resourceInputs["respmodForwardRules"] = args ? args.respmodForwardRules : undefined;
resourceInputs["response"] = args ? args.response : undefined;
resourceInputs["responseFailure"] = args ? args.responseFailure : undefined;
resourceInputs["responsePath"] = args ? args.responsePath : undefined;
resourceInputs["responseReqHdr"] = args ? args.responseReqHdr : undefined;
resourceInputs["responseServer"] = args ? args.responseServer : undefined;
resourceInputs["scanProgressInterval"] = args ? args.scanProgressInterval : undefined;
resourceInputs["streamingContentBypass"] = args ? args.streamingContentBypass : undefined;
resourceInputs["timeout"] = args ? args.timeout : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Profile.__pulumiType, name, resourceInputs, opts);
}
}
exports.Profile = Profile;
/** @internal */
Profile.__pulumiType = 'fortios:icap/profile:Profile';
//# sourceMappingURL=profile.js.map
;