UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

206 lines 13.3 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.Automationaction = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Action for automation stitches. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.system.Automationaction("trname", { * actionType: "email", * awsDomain: "amazonaws.com", * delay: 0, * emailSubject: "SUBJECT1", * method: "post", * minimumInterval: 1, * protocol: "http", * required: "disable", * }); * ``` * * ## Import * * System AutomationAction can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/automationaction:Automationaction labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/automationaction:Automationaction labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Automationaction extends pulumi.CustomResource { /** * Get an existing Automationaction 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 Automationaction(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Automationaction. 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'] === Automationaction.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accprofile"] = state ? state.accprofile : undefined; resourceInputs["actionType"] = state ? state.actionType : undefined; resourceInputs["alicloudAccessKeyId"] = state ? state.alicloudAccessKeyId : undefined; resourceInputs["alicloudAccessKeySecret"] = state ? state.alicloudAccessKeySecret : undefined; resourceInputs["alicloudAccountId"] = state ? state.alicloudAccountId : undefined; resourceInputs["alicloudFunction"] = state ? state.alicloudFunction : undefined; resourceInputs["alicloudFunctionAuthorization"] = state ? state.alicloudFunctionAuthorization : undefined; resourceInputs["alicloudFunctionDomain"] = state ? state.alicloudFunctionDomain : undefined; resourceInputs["alicloudRegion"] = state ? state.alicloudRegion : undefined; resourceInputs["alicloudService"] = state ? state.alicloudService : undefined; resourceInputs["alicloudVersion"] = state ? state.alicloudVersion : undefined; resourceInputs["awsApiId"] = state ? state.awsApiId : undefined; resourceInputs["awsApiKey"] = state ? state.awsApiKey : undefined; resourceInputs["awsApiPath"] = state ? state.awsApiPath : undefined; resourceInputs["awsApiStage"] = state ? state.awsApiStage : undefined; resourceInputs["awsDomain"] = state ? state.awsDomain : undefined; resourceInputs["awsRegion"] = state ? state.awsRegion : undefined; resourceInputs["azureApiKey"] = state ? state.azureApiKey : undefined; resourceInputs["azureApp"] = state ? state.azureApp : undefined; resourceInputs["azureDomain"] = state ? state.azureDomain : undefined; resourceInputs["azureFunction"] = state ? state.azureFunction : undefined; resourceInputs["azureFunctionAuthorization"] = state ? state.azureFunctionAuthorization : undefined; resourceInputs["delay"] = state ? state.delay : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["emailBody"] = state ? state.emailBody : undefined; resourceInputs["emailFrom"] = state ? state.emailFrom : undefined; resourceInputs["emailSubject"] = state ? state.emailSubject : undefined; resourceInputs["emailTos"] = state ? state.emailTos : undefined; resourceInputs["executeSecurityFabric"] = state ? state.executeSecurityFabric : undefined; resourceInputs["forticareEmail"] = state ? state.forticareEmail : undefined; resourceInputs["gcpFunction"] = state ? state.gcpFunction : undefined; resourceInputs["gcpFunctionDomain"] = state ? state.gcpFunctionDomain : undefined; resourceInputs["gcpFunctionRegion"] = state ? state.gcpFunctionRegion : undefined; resourceInputs["gcpProject"] = state ? state.gcpProject : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["headers"] = state ? state.headers : undefined; resourceInputs["httpBody"] = state ? state.httpBody : undefined; resourceInputs["httpHeaders"] = state ? state.httpHeaders : undefined; resourceInputs["message"] = state ? state.message : undefined; resourceInputs["messageType"] = state ? state.messageType : undefined; resourceInputs["method"] = state ? state.method : undefined; resourceInputs["minimumInterval"] = state ? state.minimumInterval : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["outputSize"] = state ? state.outputSize : undefined; resourceInputs["port"] = state ? state.port : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["replacementMessage"] = state ? state.replacementMessage : undefined; resourceInputs["replacemsgGroup"] = state ? state.replacemsgGroup : undefined; resourceInputs["required"] = state ? state.required : undefined; resourceInputs["script"] = state ? state.script : undefined; resourceInputs["sdnConnectors"] = state ? state.sdnConnectors : undefined; resourceInputs["securityTag"] = state ? state.securityTag : undefined; resourceInputs["systemAction"] = state ? state.systemAction : undefined; resourceInputs["timeout"] = state ? state.timeout : undefined; resourceInputs["tlsCertificate"] = state ? state.tlsCertificate : undefined; resourceInputs["uri"] = state ? state.uri : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["verifyHostCert"] = state ? state.verifyHostCert : undefined; } else { const args = argsOrState; resourceInputs["accprofile"] = args ? args.accprofile : undefined; resourceInputs["actionType"] = args ? args.actionType : undefined; resourceInputs["alicloudAccessKeyId"] = args ? args.alicloudAccessKeyId : undefined; resourceInputs["alicloudAccessKeySecret"] = (args === null || args === void 0 ? void 0 : args.alicloudAccessKeySecret) ? pulumi.secret(args.alicloudAccessKeySecret) : undefined; resourceInputs["alicloudAccountId"] = args ? args.alicloudAccountId : undefined; resourceInputs["alicloudFunction"] = args ? args.alicloudFunction : undefined; resourceInputs["alicloudFunctionAuthorization"] = args ? args.alicloudFunctionAuthorization : undefined; resourceInputs["alicloudFunctionDomain"] = args ? args.alicloudFunctionDomain : undefined; resourceInputs["alicloudRegion"] = args ? args.alicloudRegion : undefined; resourceInputs["alicloudService"] = args ? args.alicloudService : undefined; resourceInputs["alicloudVersion"] = args ? args.alicloudVersion : undefined; resourceInputs["awsApiId"] = args ? args.awsApiId : undefined; resourceInputs["awsApiKey"] = (args === null || args === void 0 ? void 0 : args.awsApiKey) ? pulumi.secret(args.awsApiKey) : undefined; resourceInputs["awsApiPath"] = args ? args.awsApiPath : undefined; resourceInputs["awsApiStage"] = args ? args.awsApiStage : undefined; resourceInputs["awsDomain"] = args ? args.awsDomain : undefined; resourceInputs["awsRegion"] = args ? args.awsRegion : undefined; resourceInputs["azureApiKey"] = (args === null || args === void 0 ? void 0 : args.azureApiKey) ? pulumi.secret(args.azureApiKey) : undefined; resourceInputs["azureApp"] = args ? args.azureApp : undefined; resourceInputs["azureDomain"] = args ? args.azureDomain : undefined; resourceInputs["azureFunction"] = args ? args.azureFunction : undefined; resourceInputs["azureFunctionAuthorization"] = args ? args.azureFunctionAuthorization : undefined; resourceInputs["delay"] = args ? args.delay : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["emailBody"] = args ? args.emailBody : undefined; resourceInputs["emailFrom"] = args ? args.emailFrom : undefined; resourceInputs["emailSubject"] = args ? args.emailSubject : undefined; resourceInputs["emailTos"] = args ? args.emailTos : undefined; resourceInputs["executeSecurityFabric"] = args ? args.executeSecurityFabric : undefined; resourceInputs["forticareEmail"] = args ? args.forticareEmail : undefined; resourceInputs["gcpFunction"] = args ? args.gcpFunction : undefined; resourceInputs["gcpFunctionDomain"] = args ? args.gcpFunctionDomain : undefined; resourceInputs["gcpFunctionRegion"] = args ? args.gcpFunctionRegion : undefined; resourceInputs["gcpProject"] = args ? args.gcpProject : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["headers"] = args ? args.headers : undefined; resourceInputs["httpBody"] = args ? args.httpBody : undefined; resourceInputs["httpHeaders"] = args ? args.httpHeaders : undefined; resourceInputs["message"] = args ? args.message : undefined; resourceInputs["messageType"] = args ? args.messageType : undefined; resourceInputs["method"] = args ? args.method : undefined; resourceInputs["minimumInterval"] = args ? args.minimumInterval : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["outputSize"] = args ? args.outputSize : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["replacementMessage"] = args ? args.replacementMessage : undefined; resourceInputs["replacemsgGroup"] = args ? args.replacemsgGroup : undefined; resourceInputs["required"] = args ? args.required : undefined; resourceInputs["script"] = args ? args.script : undefined; resourceInputs["sdnConnectors"] = args ? args.sdnConnectors : undefined; resourceInputs["securityTag"] = args ? args.securityTag : undefined; resourceInputs["systemAction"] = args ? args.systemAction : undefined; resourceInputs["timeout"] = args ? args.timeout : undefined; resourceInputs["tlsCertificate"] = args ? args.tlsCertificate : undefined; resourceInputs["uri"] = args ? args.uri : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["verifyHostCert"] = args ? args.verifyHostCert : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["alicloudAccessKeySecret", "awsApiKey", "azureApiKey"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Automationaction.__pulumiType, name, resourceInputs, opts); } } exports.Automationaction = Automationaction; /** @internal */ Automationaction.__pulumiType = 'fortios:system/automationaction:Automationaction'; //# sourceMappingURL=automationaction.js.map