sdwan.TlsSslProfilePolicyDefinition
Explore with Pulumi AI
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.
- Allow
Url stringList Id - Allow URL list ID
- Allow
Url intList Version - Allow URL list version
- Block
Url stringList Id - Block URL list ID
- Block
Url intList Version - Block URL list version
- Decrypt
Categories List<string> - Categories that should be decrypted
- Decrypt
Threshold string - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- Fail
Decrypt bool - Fail decrypt enabled
- Mode string
- The policy mode - Choices:
security
,unified
- Name string
- The name of the policy definition.
- Never
Decrypt List<string>Categories - Categories that should never be decrypted
- Reputation bool
- Reputation enabled
- Skip
Decrypt List<string>Categories - Categories that should skipped
- Description string
- The description of the policy definition.
- Allow
Url stringList Id - Allow URL list ID
- Allow
Url intList Version - Allow URL list version
- Block
Url stringList Id - Block URL list ID
- Block
Url intList Version - Block URL list version
- Decrypt
Categories []string - Categories that should be decrypted
- Decrypt
Threshold string - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- Fail
Decrypt bool - Fail decrypt enabled
- Mode string
- The policy mode - Choices:
security
,unified
- Name string
- The name of the policy definition.
- Never
Decrypt []stringCategories - Categories that should never be decrypted
- Reputation bool
- Reputation enabled
- Skip
Decrypt []stringCategories - Categories that should skipped
- description String
- The description of the policy definition.
- allow
Url StringList Id - Allow URL list ID
- allow
Url IntegerList Version - Allow URL list version
- block
Url StringList Id - Block URL list ID
- block
Url IntegerList Version - Block URL list version
- decrypt
Categories List<String> - Categories that should be decrypted
- decrypt
Threshold String - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- fail
Decrypt Boolean - Fail decrypt enabled
- mode String
- The policy mode - Choices:
security
,unified
- name String
- The name of the policy definition.
- never
Decrypt List<String>Categories - Categories that should never be decrypted
- reputation Boolean
- Reputation enabled
- skip
Decrypt List<String>Categories - Categories that should skipped
- description string
- The description of the policy definition.
- allow
Url stringList Id - Allow URL list ID
- allow
Url numberList Version - Allow URL list version
- block
Url stringList Id - Block URL list ID
- block
Url numberList Version - Block URL list version
- decrypt
Categories string[] - Categories that should be decrypted
- decrypt
Threshold string - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- fail
Decrypt boolean - Fail decrypt enabled
- mode string
- The policy mode - Choices:
security
,unified
- name string
- The name of the policy definition.
- never
Decrypt string[]Categories - Categories that should never be decrypted
- reputation boolean
- Reputation enabled
- skip
Decrypt string[]Categories - Categories that should skipped
- description str
- The description of the policy definition.
- allow_
url_ strlist_ id - Allow URL list ID
- allow_
url_ intlist_ version - Allow URL list version
- block_
url_ strlist_ id - Block URL list ID
- block_
url_ intlist_ version - 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_ Sequence[str]categories - Categories that should never be decrypted
- reputation bool
- Reputation enabled
- skip_
decrypt_ Sequence[str]categories - Categories that should skipped
- description String
- The description of the policy definition.
- allow
Url StringList Id - Allow URL list ID
- allow
Url NumberList Version - Allow URL list version
- block
Url StringList Id - Block URL list ID
- block
Url NumberList Version - Block URL list version
- decrypt
Categories List<String> - Categories that should be decrypted
- decrypt
Threshold String - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- fail
Decrypt Boolean - Fail decrypt enabled
- mode String
- The policy mode - Choices:
security
,unified
- name String
- The name of the policy definition.
- never
Decrypt List<String>Categories - Categories that should never be decrypted
- reputation Boolean
- Reputation enabled
- skip
Decrypt List<String>Categories - Categories that should skipped
Outputs
All input properties are implicitly available as output properties. Additionally, the TlsSslProfilePolicyDefinition resource produces the following output properties:
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.
- Allow
Url stringList Id - Allow URL list ID
- Allow
Url intList Version - Allow URL list version
- Block
Url stringList Id - Block URL list ID
- Block
Url intList Version - Block URL list version
- Decrypt
Categories List<string> - Categories that should be decrypted
- Decrypt
Threshold string - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- Description string
- The description of the policy definition.
- Fail
Decrypt bool - Fail decrypt enabled
- Mode string
- The policy mode - Choices:
security
,unified
- Name string
- The name of the policy definition.
- Never
Decrypt List<string>Categories - Categories that should never be decrypted
- Reputation bool
- Reputation enabled
- Skip
Decrypt List<string>Categories - Categories that should skipped
- Version int
- The version of the object
- Allow
Url stringList Id - Allow URL list ID
- Allow
Url intList Version - Allow URL list version
- Block
Url stringList Id - Block URL list ID
- Block
Url intList Version - Block URL list version
- Decrypt
Categories []string - Categories that should be decrypted
- Decrypt
Threshold string - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- Description string
- The description of the policy definition.
- Fail
Decrypt bool - Fail decrypt enabled
- Mode string
- The policy mode - Choices:
security
,unified
- Name string
- The name of the policy definition.
- Never
Decrypt []stringCategories - Categories that should never be decrypted
- Reputation bool
- Reputation enabled
- Skip
Decrypt []stringCategories - Categories that should skipped
- Version int
- The version of the object
- allow
Url StringList Id - Allow URL list ID
- allow
Url IntegerList Version - Allow URL list version
- block
Url StringList Id - Block URL list ID
- block
Url IntegerList Version - Block URL list version
- decrypt
Categories List<String> - Categories that should be decrypted
- decrypt
Threshold String - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- description String
- The description of the policy definition.
- fail
Decrypt Boolean - Fail decrypt enabled
- mode String
- The policy mode - Choices:
security
,unified
- name String
- The name of the policy definition.
- never
Decrypt List<String>Categories - Categories that should never be decrypted
- reputation Boolean
- Reputation enabled
- skip
Decrypt List<String>Categories - Categories that should skipped
- version Integer
- The version of the object
- allow
Url stringList Id - Allow URL list ID
- allow
Url numberList Version - Allow URL list version
- block
Url stringList Id - Block URL list ID
- block
Url numberList Version - Block URL list version
- decrypt
Categories string[] - Categories that should be decrypted
- decrypt
Threshold string - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- description string
- The description of the policy definition.
- fail
Decrypt boolean - Fail decrypt enabled
- mode string
- The policy mode - Choices:
security
,unified
- name string
- The name of the policy definition.
- never
Decrypt string[]Categories - Categories that should never be decrypted
- reputation boolean
- Reputation enabled
- skip
Decrypt string[]Categories - Categories that should skipped
- version number
- The version of the object
- allow_
url_ strlist_ id - Allow URL list ID
- allow_
url_ intlist_ version - Allow URL list version
- block_
url_ strlist_ id - Block URL list ID
- block_
url_ intlist_ version - 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_ Sequence[str]categories - Categories that should never be decrypted
- reputation bool
- Reputation enabled
- skip_
decrypt_ Sequence[str]categories - Categories that should skipped
- version int
- The version of the object
- allow
Url StringList Id - Allow URL list ID
- allow
Url NumberList Version - Allow URL list version
- block
Url StringList Id - Block URL list ID
- block
Url NumberList Version - Block URL list version
- decrypt
Categories List<String> - Categories that should be decrypted
- decrypt
Threshold String - Decrypt threshold - Choices:
high-risk
,suspicious
,moderate-risk
,low-risk
,trustworthy
- description String
- The description of the policy definition.
- fail
Decrypt Boolean - Fail decrypt enabled
- mode String
- The policy mode - Choices:
security
,unified
- name String
- The name of the policy definition.
- never
Decrypt List<String>Categories - Categories that should never be decrypted
- reputation Boolean
- Reputation enabled
- skip
Decrypt List<String>Categories - 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.