1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. TlsSslProfilePolicyDefinition
Cisco Catalyst SD-WAN v0.1.1 published on Friday, May 31, 2024 by Pulumi

sdwan.TlsSslProfilePolicyDefinition

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.1.1 published on Friday, May 31, 2024 by Pulumi

    This resource can manage a TLS SSL Profile Policy Definition .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdwan from "@pulumi/sdwan";
    
    const example = new sdwan.TlsSslProfilePolicyDefinition("example", {
        name: "Example",
        description: "My description",
        mode: "security",
        decryptCategories: ["alcohol-and-tobacco"],
        neverDecryptCategories: ["auctions"],
        skipDecryptCategories: ["cdns"],
        decryptThreshold: "high-risk",
        reputation: false,
        failDecrypt: true,
    });
    
    import pulumi
    import pulumi_sdwan as sdwan
    
    example = sdwan.TlsSslProfilePolicyDefinition("example",
        name="Example",
        description="My description",
        mode="security",
        decrypt_categories=["alcohol-and-tobacco"],
        never_decrypt_categories=["auctions"],
        skip_decrypt_categories=["cdns"],
        decrypt_threshold="high-risk",
        reputation=False,
        fail_decrypt=True)
    
    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.NewTlsSslProfilePolicyDefinition(ctx, "example", &sdwan.TlsSslProfilePolicyDefinitionArgs{
    			Name:        pulumi.String("Example"),
    			Description: pulumi.String("My description"),
    			Mode:        pulumi.String("security"),
    			DecryptCategories: pulumi.StringArray{
    				pulumi.String("alcohol-and-tobacco"),
    			},
    			NeverDecryptCategories: pulumi.StringArray{
    				pulumi.String("auctions"),
    			},
    			SkipDecryptCategories: pulumi.StringArray{
    				pulumi.String("cdns"),
    			},
    			DecryptThreshold: pulumi.String("high-risk"),
    			Reputation:       pulumi.Bool(false),
    			FailDecrypt:      pulumi.Bool(true),
    		})
    		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.TlsSslProfilePolicyDefinition("example", new()
        {
            Name = "Example",
            Description = "My description",
            Mode = "security",
            DecryptCategories = new[]
            {
                "alcohol-and-tobacco",
            },
            NeverDecryptCategories = new[]
            {
                "auctions",
            },
            SkipDecryptCategories = new[]
            {
                "cdns",
            },
            DecryptThreshold = "high-risk",
            Reputation = false,
            FailDecrypt = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdwan.TlsSslProfilePolicyDefinition;
    import com.pulumi.sdwan.TlsSslProfilePolicyDefinitionArgs;
    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 TlsSslProfilePolicyDefinition("example", TlsSslProfilePolicyDefinitionArgs.builder()        
                .name("Example")
                .description("My description")
                .mode("security")
                .decryptCategories("alcohol-and-tobacco")
                .neverDecryptCategories("auctions")
                .skipDecryptCategories("cdns")
                .decryptThreshold("high-risk")
                .reputation(false)
                .failDecrypt(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: sdwan:TlsSslProfilePolicyDefinition
        properties:
          name: Example
          description: My description
          mode: security
          decryptCategories:
            - alcohol-and-tobacco
          neverDecryptCategories:
            - auctions
          skipDecryptCategories:
            - cdns
          decryptThreshold: high-risk
          reputation: false
          failDecrypt: true
    

    Create TlsSslProfilePolicyDefinition Resource

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

    Constructor syntax

    new TlsSslProfilePolicyDefinition(name: string, args: TlsSslProfilePolicyDefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def TlsSslProfilePolicyDefinition(resource_name: str,
                                      args: TlsSslProfilePolicyDefinitionArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def TlsSslProfilePolicyDefinition(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      description: Optional[str] = None,
                                      block_url_list_version: Optional[int] = None,
                                      block_url_list_id: Optional[str] = None,
                                      allow_url_list_id: Optional[str] = None,
                                      decrypt_categories: Optional[Sequence[str]] = None,
                                      decrypt_threshold: Optional[str] = None,
                                      allow_url_list_version: Optional[int] = None,
                                      fail_decrypt: Optional[bool] = None,
                                      mode: Optional[str] = None,
                                      name: Optional[str] = None,
                                      never_decrypt_categories: Optional[Sequence[str]] = None,
                                      reputation: Optional[bool] = None,
                                      skip_decrypt_categories: Optional[Sequence[str]] = None)
    func NewTlsSslProfilePolicyDefinition(ctx *Context, name string, args TlsSslProfilePolicyDefinitionArgs, opts ...ResourceOption) (*TlsSslProfilePolicyDefinition, error)
    public TlsSslProfilePolicyDefinition(string name, TlsSslProfilePolicyDefinitionArgs args, CustomResourceOptions? opts = null)
    public TlsSslProfilePolicyDefinition(String name, TlsSslProfilePolicyDefinitionArgs args)
    public TlsSslProfilePolicyDefinition(String name, TlsSslProfilePolicyDefinitionArgs args, CustomResourceOptions options)
    
    type: sdwan:TlsSslProfilePolicyDefinition
    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 TlsSslProfilePolicyDefinitionArgs
    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 TlsSslProfilePolicyDefinitionArgs
    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 TlsSslProfilePolicyDefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TlsSslProfilePolicyDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TlsSslProfilePolicyDefinitionArgs
    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 tlsSslProfilePolicyDefinitionResource = new Sdwan.TlsSslProfilePolicyDefinition("tlsSslProfilePolicyDefinitionResource", new()
    {
        Description = "string",
        BlockUrlListVersion = 0,
        BlockUrlListId = "string",
        AllowUrlListId = "string",
        DecryptCategories = new[]
        {
            "string",
        },
        DecryptThreshold = "string",
        AllowUrlListVersion = 0,
        FailDecrypt = false,
        Mode = "string",
        Name = "string",
        NeverDecryptCategories = new[]
        {
            "string",
        },
        Reputation = false,
        SkipDecryptCategories = new[]
        {
            "string",
        },
    });
    
    example, err := sdwan.NewTlsSslProfilePolicyDefinition(ctx, "tlsSslProfilePolicyDefinitionResource", &sdwan.TlsSslProfilePolicyDefinitionArgs{
    	Description:         pulumi.String("string"),
    	BlockUrlListVersion: pulumi.Int(0),
    	BlockUrlListId:      pulumi.String("string"),
    	AllowUrlListId:      pulumi.String("string"),
    	DecryptCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DecryptThreshold:    pulumi.String("string"),
    	AllowUrlListVersion: pulumi.Int(0),
    	FailDecrypt:         pulumi.Bool(false),
    	Mode:                pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	NeverDecryptCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Reputation: pulumi.Bool(false),
    	SkipDecryptCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var tlsSslProfilePolicyDefinitionResource = new TlsSslProfilePolicyDefinition("tlsSslProfilePolicyDefinitionResource", TlsSslProfilePolicyDefinitionArgs.builder()
        .description("string")
        .blockUrlListVersion(0)
        .blockUrlListId("string")
        .allowUrlListId("string")
        .decryptCategories("string")
        .decryptThreshold("string")
        .allowUrlListVersion(0)
        .failDecrypt(false)
        .mode("string")
        .name("string")
        .neverDecryptCategories("string")
        .reputation(false)
        .skipDecryptCategories("string")
        .build());
    
    tls_ssl_profile_policy_definition_resource = sdwan.TlsSslProfilePolicyDefinition("tlsSslProfilePolicyDefinitionResource",
        description="string",
        block_url_list_version=0,
        block_url_list_id="string",
        allow_url_list_id="string",
        decrypt_categories=["string"],
        decrypt_threshold="string",
        allow_url_list_version=0,
        fail_decrypt=False,
        mode="string",
        name="string",
        never_decrypt_categories=["string"],
        reputation=False,
        skip_decrypt_categories=["string"])
    
    const tlsSslProfilePolicyDefinitionResource = new sdwan.TlsSslProfilePolicyDefinition("tlsSslProfilePolicyDefinitionResource", {
        description: "string",
        blockUrlListVersion: 0,
        blockUrlListId: "string",
        allowUrlListId: "string",
        decryptCategories: ["string"],
        decryptThreshold: "string",
        allowUrlListVersion: 0,
        failDecrypt: false,
        mode: "string",
        name: "string",
        neverDecryptCategories: ["string"],
        reputation: false,
        skipDecryptCategories: ["string"],
    });
    
    type: sdwan:TlsSslProfilePolicyDefinition
    properties:
        allowUrlListId: string
        allowUrlListVersion: 0
        blockUrlListId: string
        blockUrlListVersion: 0
        decryptCategories:
            - string
        decryptThreshold: string
        description: string
        failDecrypt: false
        mode: string
        name: string
        neverDecryptCategories:
            - string
        reputation: false
        skipDecryptCategories:
            - string
    

    TlsSslProfilePolicyDefinition 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 TlsSslProfilePolicyDefinition resource accepts the following input properties:

    Description string
    The description of the policy definition.
    AllowUrlListId string
    Allow URL list ID
    AllowUrlListVersion int
    Allow URL list version
    BlockUrlListId string
    Block URL list ID
    BlockUrlListVersion int
    Block URL list version
    DecryptCategories List<string>
    Categories that should be decrypted
    DecryptThreshold string
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    FailDecrypt bool
    Fail decrypt enabled
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition.
    NeverDecryptCategories List<string>
    Categories that should never be decrypted
    Reputation bool
    Reputation enabled
    SkipDecryptCategories List<string>
    Categories that should skipped
    Description string
    The description of the policy definition.
    AllowUrlListId string
    Allow URL list ID
    AllowUrlListVersion int
    Allow URL list version
    BlockUrlListId string
    Block URL list ID
    BlockUrlListVersion int
    Block URL list version
    DecryptCategories []string
    Categories that should be decrypted
    DecryptThreshold string
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    FailDecrypt bool
    Fail decrypt enabled
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition.
    NeverDecryptCategories []string
    Categories that should never be decrypted
    Reputation bool
    Reputation enabled
    SkipDecryptCategories []string
    Categories that should skipped
    description String
    The description of the policy definition.
    allowUrlListId String
    Allow URL list ID
    allowUrlListVersion Integer
    Allow URL list version
    blockUrlListId String
    Block URL list ID
    blockUrlListVersion Integer
    Block URL list version
    decryptCategories List<String>
    Categories that should be decrypted
    decryptThreshold String
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    failDecrypt Boolean
    Fail decrypt enabled
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition.
    neverDecryptCategories List<String>
    Categories that should never be decrypted
    reputation Boolean
    Reputation enabled
    skipDecryptCategories List<String>
    Categories that should skipped
    description string
    The description of the policy definition.
    allowUrlListId string
    Allow URL list ID
    allowUrlListVersion number
    Allow URL list version
    blockUrlListId string
    Block URL list ID
    blockUrlListVersion number
    Block URL list version
    decryptCategories string[]
    Categories that should be decrypted
    decryptThreshold string
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    failDecrypt boolean
    Fail decrypt enabled
    mode string
    The policy mode - Choices: security, unified
    name string
    The name of the policy definition.
    neverDecryptCategories string[]
    Categories that should never be decrypted
    reputation boolean
    Reputation enabled
    skipDecryptCategories string[]
    Categories that should skipped
    description str
    The description of the policy definition.
    allow_url_list_id str
    Allow URL list ID
    allow_url_list_version int
    Allow URL list version
    block_url_list_id str
    Block URL list ID
    block_url_list_version int
    Block URL list version
    decrypt_categories Sequence[str]
    Categories that should be decrypted
    decrypt_threshold str
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    fail_decrypt bool
    Fail decrypt enabled
    mode str
    The policy mode - Choices: security, unified
    name str
    The name of the policy definition.
    never_decrypt_categories Sequence[str]
    Categories that should never be decrypted
    reputation bool
    Reputation enabled
    skip_decrypt_categories Sequence[str]
    Categories that should skipped
    description String
    The description of the policy definition.
    allowUrlListId String
    Allow URL list ID
    allowUrlListVersion Number
    Allow URL list version
    blockUrlListId String
    Block URL list ID
    blockUrlListVersion Number
    Block URL list version
    decryptCategories List<String>
    Categories that should be decrypted
    decryptThreshold String
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    failDecrypt Boolean
    Fail decrypt enabled
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition.
    neverDecryptCategories List<String>
    Categories that should never be decrypted
    reputation Boolean
    Reputation enabled
    skipDecryptCategories List<String>
    Categories that should skipped

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TlsSslProfilePolicyDefinition 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 TlsSslProfilePolicyDefinition Resource

    Get an existing TlsSslProfilePolicyDefinition 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?: TlsSslProfilePolicyDefinitionState, opts?: CustomResourceOptions): TlsSslProfilePolicyDefinition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_url_list_id: Optional[str] = None,
            allow_url_list_version: Optional[int] = None,
            block_url_list_id: Optional[str] = None,
            block_url_list_version: Optional[int] = None,
            decrypt_categories: Optional[Sequence[str]] = None,
            decrypt_threshold: Optional[str] = None,
            description: Optional[str] = None,
            fail_decrypt: Optional[bool] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            never_decrypt_categories: Optional[Sequence[str]] = None,
            reputation: Optional[bool] = None,
            skip_decrypt_categories: Optional[Sequence[str]] = None,
            version: Optional[int] = None) -> TlsSslProfilePolicyDefinition
    func GetTlsSslProfilePolicyDefinition(ctx *Context, name string, id IDInput, state *TlsSslProfilePolicyDefinitionState, opts ...ResourceOption) (*TlsSslProfilePolicyDefinition, error)
    public static TlsSslProfilePolicyDefinition Get(string name, Input<string> id, TlsSslProfilePolicyDefinitionState? state, CustomResourceOptions? opts = null)
    public static TlsSslProfilePolicyDefinition get(String name, Output<String> id, TlsSslProfilePolicyDefinitionState 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:
    AllowUrlListId string
    Allow URL list ID
    AllowUrlListVersion int
    Allow URL list version
    BlockUrlListId string
    Block URL list ID
    BlockUrlListVersion int
    Block URL list version
    DecryptCategories List<string>
    Categories that should be decrypted
    DecryptThreshold string
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    Description string
    The description of the policy definition.
    FailDecrypt bool
    Fail decrypt enabled
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition.
    NeverDecryptCategories List<string>
    Categories that should never be decrypted
    Reputation bool
    Reputation enabled
    SkipDecryptCategories List<string>
    Categories that should skipped
    Version int
    The version of the object
    AllowUrlListId string
    Allow URL list ID
    AllowUrlListVersion int
    Allow URL list version
    BlockUrlListId string
    Block URL list ID
    BlockUrlListVersion int
    Block URL list version
    DecryptCategories []string
    Categories that should be decrypted
    DecryptThreshold string
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    Description string
    The description of the policy definition.
    FailDecrypt bool
    Fail decrypt enabled
    Mode string
    The policy mode - Choices: security, unified
    Name string
    The name of the policy definition.
    NeverDecryptCategories []string
    Categories that should never be decrypted
    Reputation bool
    Reputation enabled
    SkipDecryptCategories []string
    Categories that should skipped
    Version int
    The version of the object
    allowUrlListId String
    Allow URL list ID
    allowUrlListVersion Integer
    Allow URL list version
    blockUrlListId String
    Block URL list ID
    blockUrlListVersion Integer
    Block URL list version
    decryptCategories List<String>
    Categories that should be decrypted
    decryptThreshold String
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    description String
    The description of the policy definition.
    failDecrypt Boolean
    Fail decrypt enabled
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition.
    neverDecryptCategories List<String>
    Categories that should never be decrypted
    reputation Boolean
    Reputation enabled
    skipDecryptCategories List<String>
    Categories that should skipped
    version Integer
    The version of the object
    allowUrlListId string
    Allow URL list ID
    allowUrlListVersion number
    Allow URL list version
    blockUrlListId string
    Block URL list ID
    blockUrlListVersion number
    Block URL list version
    decryptCategories string[]
    Categories that should be decrypted
    decryptThreshold string
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    description string
    The description of the policy definition.
    failDecrypt boolean
    Fail decrypt enabled
    mode string
    The policy mode - Choices: security, unified
    name string
    The name of the policy definition.
    neverDecryptCategories string[]
    Categories that should never be decrypted
    reputation boolean
    Reputation enabled
    skipDecryptCategories string[]
    Categories that should skipped
    version number
    The version of the object
    allow_url_list_id str
    Allow URL list ID
    allow_url_list_version int
    Allow URL list version
    block_url_list_id str
    Block URL list ID
    block_url_list_version int
    Block URL list version
    decrypt_categories Sequence[str]
    Categories that should be decrypted
    decrypt_threshold str
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    description str
    The description of the policy definition.
    fail_decrypt bool
    Fail decrypt enabled
    mode str
    The policy mode - Choices: security, unified
    name str
    The name of the policy definition.
    never_decrypt_categories Sequence[str]
    Categories that should never be decrypted
    reputation bool
    Reputation enabled
    skip_decrypt_categories Sequence[str]
    Categories that should skipped
    version int
    The version of the object
    allowUrlListId String
    Allow URL list ID
    allowUrlListVersion Number
    Allow URL list version
    blockUrlListId String
    Block URL list ID
    blockUrlListVersion Number
    Block URL list version
    decryptCategories List<String>
    Categories that should be decrypted
    decryptThreshold String
    Decrypt threshold - Choices: high-risk, suspicious, moderate-risk, low-risk, trustworthy
    description String
    The description of the policy definition.
    failDecrypt Boolean
    Fail decrypt enabled
    mode String
    The policy mode - Choices: security, unified
    name String
    The name of the policy definition.
    neverDecryptCategories List<String>
    Categories that should never be decrypted
    reputation Boolean
    Reputation enabled
    skipDecryptCategories List<String>
    Categories that should skipped
    version Number
    The version of the object

    Import

    $ pulumi import sdwan:index/tlsSslProfilePolicyDefinition:TlsSslProfilePolicyDefinition 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.1 published on Friday, May 31, 2024 by Pulumi