1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. DnsSecurityProfile
Strata Cloud Manager v0.3.1 published on Thursday, Mar 13, 2025 by Pulumi

scm.DnsSecurityProfile

Explore with Pulumi AI

Retrieves a config item.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";

const example = new scm.DnsSecurityProfile("example", {});
Copy
import pulumi
import pulumi_scm as scm

example = scm.DnsSecurityProfile("example")
Copy
package main

import (
	"github.com/pulumi/pulumi-scm/sdk/go/scm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scm.NewDnsSecurityProfile(ctx, "example", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;

return await Deployment.RunAsync(() => 
{
    var example = new Scm.DnsSecurityProfile("example");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.DnsSecurityProfile;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new DnsSecurityProfile("example");

    }
}
Copy
resources:
  example:
    type: scm:DnsSecurityProfile
Copy

Create DnsSecurityProfile Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DnsSecurityProfile(name: string, args?: DnsSecurityProfileArgs, opts?: CustomResourceOptions);
@overload
def DnsSecurityProfile(resource_name: str,
                       args: Optional[DnsSecurityProfileArgs] = None,
                       opts: Optional[ResourceOptions] = None)

@overload
def DnsSecurityProfile(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       botnet_domains: Optional[DnsSecurityProfileBotnetDomainsArgs] = None,
                       description: Optional[str] = None,
                       device: Optional[str] = None,
                       folder: Optional[str] = None,
                       name: Optional[str] = None,
                       snippet: Optional[str] = None)
func NewDnsSecurityProfile(ctx *Context, name string, args *DnsSecurityProfileArgs, opts ...ResourceOption) (*DnsSecurityProfile, error)
public DnsSecurityProfile(string name, DnsSecurityProfileArgs? args = null, CustomResourceOptions? opts = null)
public DnsSecurityProfile(String name, DnsSecurityProfileArgs args)
public DnsSecurityProfile(String name, DnsSecurityProfileArgs args, CustomResourceOptions options)
type: scm:DnsSecurityProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args DnsSecurityProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args DnsSecurityProfileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args DnsSecurityProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args DnsSecurityProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DnsSecurityProfileArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var dnsSecurityProfileResource = new Scm.DnsSecurityProfile("dnsSecurityProfileResource", new()
{
    BotnetDomains = new Scm.Inputs.DnsSecurityProfileBotnetDomainsArgs
    {
        DnsSecurityCategories = new[]
        {
            new Scm.Inputs.DnsSecurityProfileBotnetDomainsDnsSecurityCategoryArgs
            {
                Action = "string",
                LogLevel = "string",
                Name = "string",
                PacketCapture = "string",
            },
        },
        Lists = new[]
        {
            new Scm.Inputs.DnsSecurityProfileBotnetDomainsListArgs
            {
                Name = "string",
                Action = new Scm.Inputs.DnsSecurityProfileBotnetDomainsListActionArgs
                {
                    Alert = false,
                    Allow = false,
                    Block = false,
                    Sinkhole = false,
                },
                PacketCapture = "string",
            },
        },
        Sinkhole = new Scm.Inputs.DnsSecurityProfileBotnetDomainsSinkholeArgs
        {
            Ipv4Address = "string",
            Ipv6Address = "string",
        },
        Whitelists = new[]
        {
            new Scm.Inputs.DnsSecurityProfileBotnetDomainsWhitelistArgs
            {
                Name = "string",
                Description = "string",
            },
        },
    },
    Description = "string",
    Device = "string",
    Folder = "string",
    Name = "string",
    Snippet = "string",
});
Copy
example, err := scm.NewDnsSecurityProfile(ctx, "dnsSecurityProfileResource", &scm.DnsSecurityProfileArgs{
	BotnetDomains: &scm.DnsSecurityProfileBotnetDomainsArgs{
		DnsSecurityCategories: scm.DnsSecurityProfileBotnetDomainsDnsSecurityCategoryArray{
			&scm.DnsSecurityProfileBotnetDomainsDnsSecurityCategoryArgs{
				Action:        pulumi.String("string"),
				LogLevel:      pulumi.String("string"),
				Name:          pulumi.String("string"),
				PacketCapture: pulumi.String("string"),
			},
		},
		Lists: scm.DnsSecurityProfileBotnetDomainsListArray{
			&scm.DnsSecurityProfileBotnetDomainsListArgs{
				Name: pulumi.String("string"),
				Action: &scm.DnsSecurityProfileBotnetDomainsListActionArgs{
					Alert:    pulumi.Bool(false),
					Allow:    pulumi.Bool(false),
					Block:    pulumi.Bool(false),
					Sinkhole: pulumi.Bool(false),
				},
				PacketCapture: pulumi.String("string"),
			},
		},
		Sinkhole: &scm.DnsSecurityProfileBotnetDomainsSinkholeArgs{
			Ipv4Address: pulumi.String("string"),
			Ipv6Address: pulumi.String("string"),
		},
		Whitelists: scm.DnsSecurityProfileBotnetDomainsWhitelistArray{
			&scm.DnsSecurityProfileBotnetDomainsWhitelistArgs{
				Name:        pulumi.String("string"),
				Description: pulumi.String("string"),
			},
		},
	},
	Description: pulumi.String("string"),
	Device:      pulumi.String("string"),
	Folder:      pulumi.String("string"),
	Name:        pulumi.String("string"),
	Snippet:     pulumi.String("string"),
})
Copy
var dnsSecurityProfileResource = new DnsSecurityProfile("dnsSecurityProfileResource", DnsSecurityProfileArgs.builder()
    .botnetDomains(DnsSecurityProfileBotnetDomainsArgs.builder()
        .dnsSecurityCategories(DnsSecurityProfileBotnetDomainsDnsSecurityCategoryArgs.builder()
            .action("string")
            .logLevel("string")
            .name("string")
            .packetCapture("string")
            .build())
        .lists(DnsSecurityProfileBotnetDomainsListArgs.builder()
            .name("string")
            .action(DnsSecurityProfileBotnetDomainsListActionArgs.builder()
                .alert(false)
                .allow(false)
                .block(false)
                .sinkhole(false)
                .build())
            .packetCapture("string")
            .build())
        .sinkhole(DnsSecurityProfileBotnetDomainsSinkholeArgs.builder()
            .ipv4Address("string")
            .ipv6Address("string")
            .build())
        .whitelists(DnsSecurityProfileBotnetDomainsWhitelistArgs.builder()
            .name("string")
            .description("string")
            .build())
        .build())
    .description("string")
    .device("string")
    .folder("string")
    .name("string")
    .snippet("string")
    .build());
Copy
dns_security_profile_resource = scm.DnsSecurityProfile("dnsSecurityProfileResource",
    botnet_domains={
        "dns_security_categories": [{
            "action": "string",
            "log_level": "string",
            "name": "string",
            "packet_capture": "string",
        }],
        "lists": [{
            "name": "string",
            "action": {
                "alert": False,
                "allow": False,
                "block": False,
                "sinkhole": False,
            },
            "packet_capture": "string",
        }],
        "sinkhole": {
            "ipv4_address": "string",
            "ipv6_address": "string",
        },
        "whitelists": [{
            "name": "string",
            "description": "string",
        }],
    },
    description="string",
    device="string",
    folder="string",
    name="string",
    snippet="string")
Copy
const dnsSecurityProfileResource = new scm.DnsSecurityProfile("dnsSecurityProfileResource", {
    botnetDomains: {
        dnsSecurityCategories: [{
            action: "string",
            logLevel: "string",
            name: "string",
            packetCapture: "string",
        }],
        lists: [{
            name: "string",
            action: {
                alert: false,
                allow: false,
                block: false,
                sinkhole: false,
            },
            packetCapture: "string",
        }],
        sinkhole: {
            ipv4Address: "string",
            ipv6Address: "string",
        },
        whitelists: [{
            name: "string",
            description: "string",
        }],
    },
    description: "string",
    device: "string",
    folder: "string",
    name: "string",
    snippet: "string",
});
Copy
type: scm:DnsSecurityProfile
properties:
    botnetDomains:
        dnsSecurityCategories:
            - action: string
              logLevel: string
              name: string
              packetCapture: string
        lists:
            - action:
                alert: false
                allow: false
                block: false
                sinkhole: false
              name: string
              packetCapture: string
        sinkhole:
            ipv4Address: string
            ipv6Address: string
        whitelists:
            - description: string
              name: string
    description: string
    device: string
    folder: string
    name: string
    snippet: string
Copy

DnsSecurityProfile Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DnsSecurityProfile resource accepts the following input properties:

BotnetDomains DnsSecurityProfileBotnetDomains
The BotnetDomains param.
Description string
The Description param.
Device string
The Device param.
Folder string
The Folder param.
Name string
The Name param.
Snippet string
The Snippet param.
BotnetDomains DnsSecurityProfileBotnetDomainsArgs
The BotnetDomains param.
Description string
The Description param.
Device string
The Device param.
Folder string
The Folder param.
Name string
The Name param.
Snippet string
The Snippet param.
botnetDomains DnsSecurityProfileBotnetDomains
The BotnetDomains param.
description String
The Description param.
device String
The Device param.
folder String
The Folder param.
name String
The Name param.
snippet String
The Snippet param.
botnetDomains DnsSecurityProfileBotnetDomains
The BotnetDomains param.
description string
The Description param.
device string
The Device param.
folder string
The Folder param.
name string
The Name param.
snippet string
The Snippet param.
botnet_domains DnsSecurityProfileBotnetDomainsArgs
The BotnetDomains param.
description str
The Description param.
device str
The Device param.
folder str
The Folder param.
name str
The Name param.
snippet str
The Snippet param.
botnetDomains Property Map
The BotnetDomains param.
description String
The Description param.
device String
The Device param.
folder String
The Folder param.
name String
The Name param.
snippet String
The Snippet param.

Outputs

All input properties are implicitly available as output properties. Additionally, the DnsSecurityProfile resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Tfid string
Id string
The provider-assigned unique ID for this managed resource.
Tfid string
id String
The provider-assigned unique ID for this managed resource.
tfid String
id string
The provider-assigned unique ID for this managed resource.
tfid string
id str
The provider-assigned unique ID for this managed resource.
tfid str
id String
The provider-assigned unique ID for this managed resource.
tfid String

Look up Existing DnsSecurityProfile Resource

Get an existing DnsSecurityProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DnsSecurityProfileState, opts?: CustomResourceOptions): DnsSecurityProfile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        botnet_domains: Optional[DnsSecurityProfileBotnetDomainsArgs] = None,
        description: Optional[str] = None,
        device: Optional[str] = None,
        folder: Optional[str] = None,
        name: Optional[str] = None,
        snippet: Optional[str] = None,
        tfid: Optional[str] = None) -> DnsSecurityProfile
func GetDnsSecurityProfile(ctx *Context, name string, id IDInput, state *DnsSecurityProfileState, opts ...ResourceOption) (*DnsSecurityProfile, error)
public static DnsSecurityProfile Get(string name, Input<string> id, DnsSecurityProfileState? state, CustomResourceOptions? opts = null)
public static DnsSecurityProfile get(String name, Output<String> id, DnsSecurityProfileState state, CustomResourceOptions options)
resources:  _:    type: scm:DnsSecurityProfile    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BotnetDomains DnsSecurityProfileBotnetDomains
The BotnetDomains param.
Description string
The Description param.
Device string
The Device param.
Folder string
The Folder param.
Name string
The Name param.
Snippet string
The Snippet param.
Tfid string
BotnetDomains DnsSecurityProfileBotnetDomainsArgs
The BotnetDomains param.
Description string
The Description param.
Device string
The Device param.
Folder string
The Folder param.
Name string
The Name param.
Snippet string
The Snippet param.
Tfid string
botnetDomains DnsSecurityProfileBotnetDomains
The BotnetDomains param.
description String
The Description param.
device String
The Device param.
folder String
The Folder param.
name String
The Name param.
snippet String
The Snippet param.
tfid String
botnetDomains DnsSecurityProfileBotnetDomains
The BotnetDomains param.
description string
The Description param.
device string
The Device param.
folder string
The Folder param.
name string
The Name param.
snippet string
The Snippet param.
tfid string
botnet_domains DnsSecurityProfileBotnetDomainsArgs
The BotnetDomains param.
description str
The Description param.
device str
The Device param.
folder str
The Folder param.
name str
The Name param.
snippet str
The Snippet param.
tfid str
botnetDomains Property Map
The BotnetDomains param.
description String
The Description param.
device String
The Device param.
folder String
The Folder param.
name String
The Name param.
snippet String
The Snippet param.
tfid String

Supporting Types

DnsSecurityProfileBotnetDomains
, DnsSecurityProfileBotnetDomainsArgs

dnsSecurityCategories List<Property Map>
The DnsSecurityCategories param.
lists List<Property Map>
The Lists param.
sinkhole Property Map
The Sinkhole param.
whitelists List<Property Map>
The Whitelists param.

DnsSecurityProfileBotnetDomainsDnsSecurityCategory
, DnsSecurityProfileBotnetDomainsDnsSecurityCategoryArgs

Action string
The Action param. String must be one of these: "default", "allow", "block", "sinkhole". Default: "default".
LogLevel string
The LogLevel param. String must be one of these: "default", "none", "low", "informational", "medium", "high", "critical". Default: "default".
Name string
The Name param.
PacketCapture string
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
Action string
The Action param. String must be one of these: "default", "allow", "block", "sinkhole". Default: "default".
LogLevel string
The LogLevel param. String must be one of these: "default", "none", "low", "informational", "medium", "high", "critical". Default: "default".
Name string
The Name param.
PacketCapture string
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
action String
The Action param. String must be one of these: "default", "allow", "block", "sinkhole". Default: "default".
logLevel String
The LogLevel param. String must be one of these: "default", "none", "low", "informational", "medium", "high", "critical". Default: "default".
name String
The Name param.
packetCapture String
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
action string
The Action param. String must be one of these: "default", "allow", "block", "sinkhole". Default: "default".
logLevel string
The LogLevel param. String must be one of these: "default", "none", "low", "informational", "medium", "high", "critical". Default: "default".
name string
The Name param.
packetCapture string
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
action str
The Action param. String must be one of these: "default", "allow", "block", "sinkhole". Default: "default".
log_level str
The LogLevel param. String must be one of these: "default", "none", "low", "informational", "medium", "high", "critical". Default: "default".
name str
The Name param.
packet_capture str
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
action String
The Action param. String must be one of these: "default", "allow", "block", "sinkhole". Default: "default".
logLevel String
The LogLevel param. String must be one of these: "default", "none", "low", "informational", "medium", "high", "critical". Default: "default".
name String
The Name param.
packetCapture String
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".

DnsSecurityProfileBotnetDomainsList
, DnsSecurityProfileBotnetDomainsListArgs

Name This property is required. string
The Name param.
Action DnsSecurityProfileBotnetDomainsListAction
The Action param.
PacketCapture string
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
Name This property is required. string
The Name param.
Action DnsSecurityProfileBotnetDomainsListAction
The Action param.
PacketCapture string
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
name This property is required. String
The Name param.
action DnsSecurityProfileBotnetDomainsListAction
The Action param.
packetCapture String
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
name This property is required. string
The Name param.
action DnsSecurityProfileBotnetDomainsListAction
The Action param.
packetCapture string
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
name This property is required. str
The Name param.
action DnsSecurityProfileBotnetDomainsListAction
The Action param.
packet_capture str
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".
name This property is required. String
The Name param.
action Property Map
The Action param.
packetCapture String
The PacketCapture param. String must be one of these: "disable", "single-packet", "extended-capture".

DnsSecurityProfileBotnetDomainsListAction
, DnsSecurityProfileBotnetDomainsListActionArgs

Alert bool
The Alert param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Allow bool
The Allow param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Block bool
The Block param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Sinkhole bool
The Sinkhole param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Alert bool
The Alert param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Allow bool
The Allow param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Block bool
The Block param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
Sinkhole bool
The Sinkhole param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
alert Boolean
The Alert param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
allow Boolean
The Allow param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
block Boolean
The Block param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
sinkhole Boolean
The Sinkhole param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
alert boolean
The Alert param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
allow boolean
The Allow param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
block boolean
The Block param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
sinkhole boolean
The Sinkhole param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
alert bool
The Alert param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
allow bool
The Allow param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
block bool
The Block param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
sinkhole bool
The Sinkhole param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
alert Boolean
The Alert param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
allow Boolean
The Allow param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
block Boolean
The Block param. Ensure that only one of the following is specified: alert, allow, block, sinkhole
sinkhole Boolean
The Sinkhole param. Ensure that only one of the following is specified: alert, allow, block, sinkhole

DnsSecurityProfileBotnetDomainsSinkhole
, DnsSecurityProfileBotnetDomainsSinkholeArgs

Ipv4Address string
The Ipv4Address param. String must be one of these: "127.0.0.1", "pan-sinkhole-default-ip".
Ipv6Address string
The Ipv6Address param. String must be one of these: "::1".
Ipv4Address string
The Ipv4Address param. String must be one of these: "127.0.0.1", "pan-sinkhole-default-ip".
Ipv6Address string
The Ipv6Address param. String must be one of these: "::1".
ipv4Address String
The Ipv4Address param. String must be one of these: "127.0.0.1", "pan-sinkhole-default-ip".
ipv6Address String
The Ipv6Address param. String must be one of these: "::1".
ipv4Address string
The Ipv4Address param. String must be one of these: "127.0.0.1", "pan-sinkhole-default-ip".
ipv6Address string
The Ipv6Address param. String must be one of these: "::1".
ipv4_address str
The Ipv4Address param. String must be one of these: "127.0.0.1", "pan-sinkhole-default-ip".
ipv6_address str
The Ipv6Address param. String must be one of these: "::1".
ipv4Address String
The Ipv4Address param. String must be one of these: "127.0.0.1", "pan-sinkhole-default-ip".
ipv6Address String
The Ipv6Address param. String must be one of these: "::1".

DnsSecurityProfileBotnetDomainsWhitelist
, DnsSecurityProfileBotnetDomainsWhitelistArgs

Name This property is required. string
The Name param.
Description string
The Description param.
Name This property is required. string
The Name param.
Description string
The Description param.
name This property is required. String
The Name param.
description String
The Description param.
name This property is required. string
The Name param.
description string
The Description param.
name This property is required. str
The Name param.
description str
The Description param.
name This property is required. String
The Name param.
description String
The Description param.

Package Details

Repository
scm pulumi/pulumi-scm
License
Apache-2.0
Notes
This Pulumi package is based on the scm Terraform Provider.