@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
190 lines • 6.7 kB
JavaScript
"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.DnsSecurityProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* DnsSecurityProfile resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const scmDnsSecurityProfileBase = new scm.DnsSecurityProfile("scm_dns_security_profile_base", {
* folder: "All",
* name: "dns_base",
* });
* const scmDnsSecurityCategories = new scm.DnsSecurityProfile("scm_dns_security_categories", {
* folder: "All",
* name: "test_dns_sec_categories",
* description: "dns security profile w/ dns security categories",
* botnetDomains: {
* dnsSecurityCategories: [
* {
* name: "pan-dns-sec-recent",
* },
* {
* name: "pan-dns-sec-grayware",
* action: "allow",
* logLevel: "high",
* packetCapture: "disable",
* },
* {
* name: "pan-dns-sec-proxy",
* action: "block",
* logLevel: "default",
* packetCapture: "single-packet",
* },
* {
* name: "pan-dns-sec-phishing",
* action: "sinkhole",
* logLevel: "critical",
* packetCapture: "extended-capture",
* },
* {
* name: "pan-dns-sec-malware",
* action: "default",
* logLevel: "informational",
* packetCapture: "disable",
* },
* ],
* },
* });
* const scmDnsLists = new scm.DnsSecurityProfile("scm_dns_lists", {
* folder: "All",
* name: "test_dns_lists",
* description: "dns security profile w/ dns lists",
* botnetDomains: {
* dnsLists: [
* {
* name: "default-paloalto-dns",
* packetCapture: "disable",
* action: {
* alert: {},
* },
* },
* {
* name: "update-edl",
* packetCapture: "extended-capture",
* action: {
* allow: {},
* },
* },
* ],
* },
* });
* const scmDnsSinkhole = new scm.DnsSecurityProfile("scm_dns_sinkhole", {
* folder: "All",
* name: "test_dns_sinkhole",
* description: "dns security profile w/ sinkhole",
* botnetDomains: {
* sinkhole: {
* ipv4Address: "127.0.0.1",
* ipv6Address: "::1",
* },
* },
* });
* const scmDnsWhitelist = new scm.DnsSecurityProfile("scm_dns_whitelist", {
* folder: "All",
* name: "test_dns_whitelist",
* description: "dns security profile w/ whitelist",
* botnetDomains: {
* whitelists: [
* {
* name: "example.com",
* },
* {
* name: "example2.com",
* description: "creating whitelist",
* },
* ],
* },
* });
* const scmDnsAll = new scm.DnsSecurityProfile("scm_dns_all", {
* folder: "All",
* name: "test_dns_all_test",
* description: "dns security profile w/ all",
* botnetDomains: {
* dnsSecurityCategories: [{
* name: "pan-dns-sec-ddns",
* action: "block",
* logLevel: "low",
* packetCapture: "disable",
* }],
* dnsLists: [{
* name: "scm_edl_1",
* packetCapture: "single-packet",
* action: {
* block: {},
* },
* }],
* sinkhole: {
* ipv4Address: "pan-sinkhole-default-ip",
* ipv6Address: "::1",
* },
* whitelists: [{
* name: "ebay.com",
* description: "creating whitelist",
* }],
* },
* });
* ```
*/
class DnsSecurityProfile extends pulumi.CustomResource {
/**
* Get an existing DnsSecurityProfile 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 DnsSecurityProfile(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of DnsSecurityProfile. 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'] === DnsSecurityProfile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["botnetDomains"] = state?.botnetDomains;
resourceInputs["description"] = state?.description;
resourceInputs["device"] = state?.device;
resourceInputs["folder"] = state?.folder;
resourceInputs["name"] = state?.name;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tfid"] = state?.tfid;
}
else {
const args = argsOrState;
resourceInputs["botnetDomains"] = args?.botnetDomains;
resourceInputs["description"] = args?.description;
resourceInputs["device"] = args?.device;
resourceInputs["folder"] = args?.folder;
resourceInputs["name"] = args?.name;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(DnsSecurityProfile.__pulumiType, name, resourceInputs, opts);
}
}
exports.DnsSecurityProfile = DnsSecurityProfile;
/** @internal */
DnsSecurityProfile.__pulumiType = 'scm:index/dnsSecurityProfile:DnsSecurityProfile';
//# sourceMappingURL=dnsSecurityProfile.js.map