1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. IntrusionPreventionPolicyDefinition
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

sdwan.IntrusionPreventionPolicyDefinition

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

    This resource can manage a Intrusion Prevention Policy Definition .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdwan from "@pulumi/sdwan";
    
    const example = new sdwan.IntrusionPreventionPolicyDefinition("example", {
        name: "Example",
        description: "My description",
        mode: "security",
        inspectionMode: "protection",
        logLevel: "alert",
        signatureSet: "connectivity",
        targetVpns: ["1"],
    });
    
    import pulumi
    import pulumi_sdwan as sdwan
    
    example = sdwan.IntrusionPreventionPolicyDefinition("example",
        name="Example",
        description="My description",
        mode="security",
        inspection_mode="protection",
        log_level="alert",
        signature_set="connectivity",
        target_vpns=["1"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sdwan.NewIntrusionPreventionPolicyDefinition(ctx, "example", &sdwan.IntrusionPreventionPolicyDefinitionArgs{
    			Name:           pulumi.String("Example"),
    			Description:    pulumi.String("My description"),
    			Mode:           pulumi.String("security"),
    			InspectionMode: pulumi.String("protection"),
    			LogLevel:       pulumi.String("alert"),
    			SignatureSet:   pulumi.String("connectivity"),
    			TargetVpns: pulumi.StringArray{
    				pulumi.String("1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdwan = Pulumi.Sdwan;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Sdwan.IntrusionPreventionPolicyDefinition("example", new()
        {
            Name = "Example",
            Description = "My description",
            Mode = "security",
            InspectionMode = "protection",
            LogLevel = "alert",
            SignatureSet = "connectivity",
            TargetVpns = new[]
            {
                "1",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdwan.IntrusionPreventionPolicyDefinition;
    import com.pulumi.sdwan.IntrusionPreventionPolicyDefinitionArgs;
    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 IntrusionPreventionPolicyDefinition("example", IntrusionPreventionPolicyDefinitionArgs.builder()
                .name("Example")
                .description("My description")
                .mode("security")
                .inspectionMode("protection")
                .logLevel("alert")
                .signatureSet("connectivity")
                .targetVpns("1")
                .build());
    
        }
    }
    
    resources:
      example:
        type: sdwan:IntrusionPreventionPolicyDefinition
        properties:
          name: Example
          description: My description
          mode: security
          inspectionMode: protection
          logLevel: alert
          signatureSet: connectivity
          targetVpns:
            - '1'
    

    Create IntrusionPreventionPolicyDefinition Resource

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

    Constructor syntax

    new IntrusionPreventionPolicyDefinition(name: string, args: IntrusionPreventionPolicyDefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def IntrusionPreventionPolicyDefinition(resource_name: str,
                                            args: IntrusionPreventionPolicyDefinitionArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntrusionPreventionPolicyDefinition(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            description: Optional[str] = None,
                                            inspection_mode: Optional[str] = None,
                                            ips_signature_list_id: Optional[str] = None,
                                            ips_signature_list_version: Optional[int] = None,
                                            log_level: Optional[str] = None,
                                            mode: Optional[str] = None,
                                            name: Optional[str] = None,
                                            signature_set: Optional[str] = None,
                                            target_vpns: Optional[Sequence[str]] = None)
    func NewIntrusionPreventionPolicyDefinition(ctx *Context, name string, args IntrusionPreventionPolicyDefinitionArgs, opts ...ResourceOption) (*IntrusionPreventionPolicyDefinition, error)
    public IntrusionPreventionPolicyDefinition(string name, IntrusionPreventionPolicyDefinitionArgs args, CustomResourceOptions? opts = null)
    public IntrusionPreventionPolicyDefinition(String name, IntrusionPreventionPolicyDefinitionArgs args)
    public IntrusionPreventionPolicyDefinition(String name, IntrusionPreventionPolicyDefinitionArgs args, CustomResourceOptions options)
    
    type: sdwan:IntrusionPreventionPolicyDefinition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IntrusionPreventionPolicyDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IntrusionPreventionPolicyDefinitionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IntrusionPreventionPolicyDefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntrusionPreventionPolicyDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntrusionPreventionPolicyDefinitionArgs
    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 intrusionPreventionPolicyDefinitionResource = new Sdwan.IntrusionPreventionPolicyDefinition("intrusionPreventionPolicyDefinitionResource", new()
    {
        Description = "string",
        InspectionMode = "string",
        IpsSignatureListId = "string",
        IpsSignatureListVersion = 0,
        LogLevel = "string",
        Mode = "string",
        Name = "string",
        SignatureSet = "string",
        TargetVpns = new[]
        {
            "string",
        },
    });
    
    example, err := sdwan.NewIntrusionPreventionPolicyDefinition(ctx, "intrusionPreventionPolicyDefinitionResource", &sdwan.IntrusionPreventionPolicyDefinitionArgs{
    	Description:             pulumi.String("string"),
    	InspectionMode:          pulumi.String("string"),
    	IpsSignatureListId:      pulumi.String("string"),
    	IpsSignatureListVersion: pulumi.Int(0),
    	LogLevel:                pulumi.String("string"),
    	Mode:                    pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	SignatureSet:            pulumi.String("string"),
    	TargetVpns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var intrusionPreventionPolicyDefinitionResource = new IntrusionPreventionPolicyDefinition("intrusionPreventionPolicyDefinitionResource", IntrusionPreventionPolicyDefinitionArgs.builder()
        .description("string")
        .inspectionMode("string")
        .ipsSignatureListId("string")
        .ipsSignatureListVersion(0)
        .logLevel("string")
        .mode("string")
        .name("string")
        .signatureSet("string")
        .targetVpns("string")
        .build());
    
    intrusion_prevention_policy_definition_resource = sdwan.IntrusionPreventionPolicyDefinition("intrusionPreventionPolicyDefinitionResource",
        description="string",
        inspection_mode="string",
        ips_signature_list_id="string",
        ips_signature_list_version=0,
        log_level="string",
        mode="string",
        name="string",
        signature_set="string",
        target_vpns=["string"])
    
    const intrusionPreventionPolicyDefinitionResource = new sdwan.IntrusionPreventionPolicyDefinition("intrusionPreventionPolicyDefinitionResource", {
        description: "string",
        inspectionMode: "string",
        ipsSignatureListId: "string",
        ipsSignatureListVersion: 0,
        logLevel: "string",
        mode: "string",
        name: "string",
        signatureSet: "string",
        targetVpns: ["string"],
    });
    
    type: sdwan:IntrusionPreventionPolicyDefinition
    properties:
        description: string
        inspectionMode: string
        ipsSignatureListId: string
        ipsSignatureListVersion: 0
        logLevel: string
        mode: string
        name: string
        signatureSet: string
        targetVpns:
            - string
    

    IntrusionPreventionPolicyDefinition Resource Properties

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

    Inputs

    The IntrusionPreventionPolicyDefinition resource accepts the following input properties:

    Description string
    The description of the policy definition
    InspectionMode string
    The inspection mode - Choices: protection, detection
    IpsSignatureListId string
    IPS signature list ID
    IpsSignatureListVersion int
    IPS signature list version
    LogLevel string
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition
    SignatureSet string
    Signature set - Choices: balanced, connectivity, security
    TargetVpns List<string>
    List of VPN IDs
    Description string
    The description of the policy definition
    InspectionMode string
    The inspection mode - Choices: protection, detection
    IpsSignatureListId string
    IPS signature list ID
    IpsSignatureListVersion int
    IPS signature list version
    LogLevel string
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition
    SignatureSet string
    Signature set - Choices: balanced, connectivity, security
    TargetVpns []string
    List of VPN IDs
    description String
    The description of the policy definition
    inspectionMode String
    The inspection mode - Choices: protection, detection
    ipsSignatureListId String
    IPS signature list ID
    ipsSignatureListVersion Integer
    IPS signature list version
    logLevel String
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition
    signatureSet String
    Signature set - Choices: balanced, connectivity, security
    targetVpns List<String>
    List of VPN IDs
    description string
    The description of the policy definition
    inspectionMode string
    The inspection mode - Choices: protection, detection
    ipsSignatureListId string
    IPS signature list ID
    ipsSignatureListVersion number
    IPS signature list version
    logLevel string
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode string
    The policy mode - Choices: security, unified
    name string
    The name of the policy definition
    signatureSet string
    Signature set - Choices: balanced, connectivity, security
    targetVpns string[]
    List of VPN IDs
    description str
    The description of the policy definition
    inspection_mode str
    The inspection mode - Choices: protection, detection
    ips_signature_list_id str
    IPS signature list ID
    ips_signature_list_version int
    IPS signature list version
    log_level str
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode str
    The policy mode - Choices: security, unified
    name str
    The name of the policy definition
    signature_set str
    Signature set - Choices: balanced, connectivity, security
    target_vpns Sequence[str]
    List of VPN IDs
    description String
    The description of the policy definition
    inspectionMode String
    The inspection mode - Choices: protection, detection
    ipsSignatureListId String
    IPS signature list ID
    ipsSignatureListVersion Number
    IPS signature list version
    logLevel String
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition
    signatureSet String
    Signature set - Choices: balanced, connectivity, security
    targetVpns List<String>
    List of VPN IDs

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The version of the object
    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The version of the object
    id String
    The provider-assigned unique ID for this managed resource.
    version Integer
    The version of the object
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    The version of the object
    id str
    The provider-assigned unique ID for this managed resource.
    version int
    The version of the object
    id String
    The provider-assigned unique ID for this managed resource.
    version Number
    The version of the object

    Look up Existing IntrusionPreventionPolicyDefinition Resource

    Get an existing IntrusionPreventionPolicyDefinition 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?: IntrusionPreventionPolicyDefinitionState, opts?: CustomResourceOptions): IntrusionPreventionPolicyDefinition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            inspection_mode: Optional[str] = None,
            ips_signature_list_id: Optional[str] = None,
            ips_signature_list_version: Optional[int] = None,
            log_level: Optional[str] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            signature_set: Optional[str] = None,
            target_vpns: Optional[Sequence[str]] = None,
            version: Optional[int] = None) -> IntrusionPreventionPolicyDefinition
    func GetIntrusionPreventionPolicyDefinition(ctx *Context, name string, id IDInput, state *IntrusionPreventionPolicyDefinitionState, opts ...ResourceOption) (*IntrusionPreventionPolicyDefinition, error)
    public static IntrusionPreventionPolicyDefinition Get(string name, Input<string> id, IntrusionPreventionPolicyDefinitionState? state, CustomResourceOptions? opts = null)
    public static IntrusionPreventionPolicyDefinition get(String name, Output<String> id, IntrusionPreventionPolicyDefinitionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Description string
    The description of the policy definition
    InspectionMode string
    The inspection mode - Choices: protection, detection
    IpsSignatureListId string
    IPS signature list ID
    IpsSignatureListVersion int
    IPS signature list version
    LogLevel string
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition
    SignatureSet string
    Signature set - Choices: balanced, connectivity, security
    TargetVpns List<string>
    List of VPN IDs
    Version int
    The version of the object
    Description string
    The description of the policy definition
    InspectionMode string
    The inspection mode - Choices: protection, detection
    IpsSignatureListId string
    IPS signature list ID
    IpsSignatureListVersion int
    IPS signature list version
    LogLevel string
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition
    SignatureSet string
    Signature set - Choices: balanced, connectivity, security
    TargetVpns []string
    List of VPN IDs
    Version int
    The version of the object
    description String
    The description of the policy definition
    inspectionMode String
    The inspection mode - Choices: protection, detection
    ipsSignatureListId String
    IPS signature list ID
    ipsSignatureListVersion Integer
    IPS signature list version
    logLevel String
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition
    signatureSet String
    Signature set - Choices: balanced, connectivity, security
    targetVpns List<String>
    List of VPN IDs
    version Integer
    The version of the object
    description string
    The description of the policy definition
    inspectionMode string
    The inspection mode - Choices: protection, detection
    ipsSignatureListId string
    IPS signature list ID
    ipsSignatureListVersion number
    IPS signature list version
    logLevel string
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode string
    The policy mode - Choices: security, unified
    name string
    The name of the policy definition
    signatureSet string
    Signature set - Choices: balanced, connectivity, security
    targetVpns string[]
    List of VPN IDs
    version number
    The version of the object
    description str
    The description of the policy definition
    inspection_mode str
    The inspection mode - Choices: protection, detection
    ips_signature_list_id str
    IPS signature list ID
    ips_signature_list_version int
    IPS signature list version
    log_level str
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode str
    The policy mode - Choices: security, unified
    name str
    The name of the policy definition
    signature_set str
    Signature set - Choices: balanced, connectivity, security
    target_vpns Sequence[str]
    List of VPN IDs
    version int
    The version of the object
    description String
    The description of the policy definition
    inspectionMode String
    The inspection mode - Choices: protection, detection
    ipsSignatureListId String
    IPS signature list ID
    ipsSignatureListVersion Number
    IPS signature list version
    logLevel String
    Log level - Choices: emergency, alert, critical, error, warning, notice, info, debug
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition
    signatureSet String
    Signature set - Choices: balanced, connectivity, security
    targetVpns List<String>
    List of VPN IDs
    version Number
    The version of the object

    Import

    $ pulumi import sdwan:index/intrusionPreventionPolicyDefinition:IntrusionPreventionPolicyDefinition example "f6b2c44c-693c-4763-b010-895aa3d236bd"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    sdwan pulumi/pulumi-sdwan
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdwan Terraform Provider.
    sdwan logo
    Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi