@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
107 lines • 4.86 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.Nat64 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure NAT64. Applies to FortiOS Version `<= 7.0.0`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Nat64("trname", {
* alwaysSynthesizeAaaaRecord: "enable",
* generateIpv6FragmentHeader: "disable",
* nat46ForceIpv4PacketForwarding: "disable",
* nat64Prefix: "2001:1:2:3::/96",
* secondaryPrefixStatus: "disable",
* status: "disable",
* });
* ```
*
* ## Import
*
* System Nat64 can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/nat64:Nat64 labelname SystemNat64
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/nat64:Nat64 labelname SystemNat64
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Nat64 extends pulumi.CustomResource {
/**
* Get an existing Nat64 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 Nat64(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Nat64. 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'] === Nat64.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["alwaysSynthesizeAaaaRecord"] = state ? state.alwaysSynthesizeAaaaRecord : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["generateIpv6FragmentHeader"] = state ? state.generateIpv6FragmentHeader : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["nat46ForceIpv4PacketForwarding"] = state ? state.nat46ForceIpv4PacketForwarding : undefined;
resourceInputs["nat64Prefix"] = state ? state.nat64Prefix : undefined;
resourceInputs["secondaryPrefixStatus"] = state ? state.secondaryPrefixStatus : undefined;
resourceInputs["secondaryPrefixes"] = state ? state.secondaryPrefixes : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.nat64Prefix === undefined) && !opts.urn) {
throw new Error("Missing required property 'nat64Prefix'");
}
resourceInputs["alwaysSynthesizeAaaaRecord"] = args ? args.alwaysSynthesizeAaaaRecord : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["generateIpv6FragmentHeader"] = args ? args.generateIpv6FragmentHeader : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["nat46ForceIpv4PacketForwarding"] = args ? args.nat46ForceIpv4PacketForwarding : undefined;
resourceInputs["nat64Prefix"] = args ? args.nat64Prefix : undefined;
resourceInputs["secondaryPrefixStatus"] = args ? args.secondaryPrefixStatus : undefined;
resourceInputs["secondaryPrefixes"] = args ? args.secondaryPrefixes : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Nat64.__pulumiType, name, resourceInputs, opts);
}
}
exports.Nat64 = Nat64;
/** @internal */
Nat64.__pulumiType = 'fortios:system/nat64:Nat64';
//# sourceMappingURL=nat64.js.map
;