sdwan.AdvancedMalwareProtectionPolicyDefinition
Explore with Pulumi AI
This resource can manage a Advanced Malware Protection Policy Definition .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = new sdwan.AdvancedMalwareProtectionPolicyDefinition("example", {
name: "Example",
description: "My description",
mode: "security",
matchAllVpn: false,
targetVpns: ["1"],
alertLogLevel: "critical",
ampCloudRegion: "apjc",
ampCloudRegionEstServer: "apjc",
fileAnalysis: false,
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.AdvancedMalwareProtectionPolicyDefinition("example",
name="Example",
description="My description",
mode="security",
match_all_vpn=False,
target_vpns=["1"],
alert_log_level="critical",
amp_cloud_region="apjc",
amp_cloud_region_est_server="apjc",
file_analysis=False)
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.NewAdvancedMalwareProtectionPolicyDefinition(ctx, "example", &sdwan.AdvancedMalwareProtectionPolicyDefinitionArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("My description"),
Mode: pulumi.String("security"),
MatchAllVpn: pulumi.Bool(false),
TargetVpns: pulumi.StringArray{
pulumi.String("1"),
},
AlertLogLevel: pulumi.String("critical"),
AmpCloudRegion: pulumi.String("apjc"),
AmpCloudRegionEstServer: pulumi.String("apjc"),
FileAnalysis: pulumi.Bool(false),
})
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.AdvancedMalwareProtectionPolicyDefinition("example", new()
{
Name = "Example",
Description = "My description",
Mode = "security",
MatchAllVpn = false,
TargetVpns = new[]
{
"1",
},
AlertLogLevel = "critical",
AmpCloudRegion = "apjc",
AmpCloudRegionEstServer = "apjc",
FileAnalysis = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.AdvancedMalwareProtectionPolicyDefinition;
import com.pulumi.sdwan.AdvancedMalwareProtectionPolicyDefinitionArgs;
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 AdvancedMalwareProtectionPolicyDefinition("example", AdvancedMalwareProtectionPolicyDefinitionArgs.builder()
.name("Example")
.description("My description")
.mode("security")
.matchAllVpn(false)
.targetVpns("1")
.alertLogLevel("critical")
.ampCloudRegion("apjc")
.ampCloudRegionEstServer("apjc")
.fileAnalysis(false)
.build());
}
}
resources:
example:
type: sdwan:AdvancedMalwareProtectionPolicyDefinition
properties:
name: Example
description: My description
mode: security
matchAllVpn: false
targetVpns:
- '1'
alertLogLevel: critical
ampCloudRegion: apjc
ampCloudRegionEstServer: apjc
fileAnalysis: false
Create AdvancedMalwareProtectionPolicyDefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AdvancedMalwareProtectionPolicyDefinition(name: string, args: AdvancedMalwareProtectionPolicyDefinitionArgs, opts?: CustomResourceOptions);
@overload
def AdvancedMalwareProtectionPolicyDefinition(resource_name: str,
args: AdvancedMalwareProtectionPolicyDefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AdvancedMalwareProtectionPolicyDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
alert_log_level: Optional[str] = None,
amp_cloud_region: Optional[str] = None,
amp_cloud_region_est_server: Optional[str] = None,
file_analysis: Optional[bool] = None,
file_analysis_alert_log_level: Optional[str] = None,
file_analysis_cloud_region: Optional[str] = None,
file_analysis_file_types: Optional[Sequence[str]] = None,
match_all_vpn: Optional[bool] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
target_vpns: Optional[Sequence[str]] = None)
func NewAdvancedMalwareProtectionPolicyDefinition(ctx *Context, name string, args AdvancedMalwareProtectionPolicyDefinitionArgs, opts ...ResourceOption) (*AdvancedMalwareProtectionPolicyDefinition, error)
public AdvancedMalwareProtectionPolicyDefinition(string name, AdvancedMalwareProtectionPolicyDefinitionArgs args, CustomResourceOptions? opts = null)
public AdvancedMalwareProtectionPolicyDefinition(String name, AdvancedMalwareProtectionPolicyDefinitionArgs args)
public AdvancedMalwareProtectionPolicyDefinition(String name, AdvancedMalwareProtectionPolicyDefinitionArgs args, CustomResourceOptions options)
type: sdwan:AdvancedMalwareProtectionPolicyDefinition
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 AdvancedMalwareProtectionPolicyDefinitionArgs
- 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 AdvancedMalwareProtectionPolicyDefinitionArgs
- 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 AdvancedMalwareProtectionPolicyDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdvancedMalwareProtectionPolicyDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AdvancedMalwareProtectionPolicyDefinitionArgs
- 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 advancedMalwareProtectionPolicyDefinitionResource = new Sdwan.AdvancedMalwareProtectionPolicyDefinition("advancedMalwareProtectionPolicyDefinitionResource", new()
{
Description = "string",
AlertLogLevel = "string",
AmpCloudRegion = "string",
AmpCloudRegionEstServer = "string",
FileAnalysis = false,
FileAnalysisAlertLogLevel = "string",
FileAnalysisCloudRegion = "string",
FileAnalysisFileTypes = new[]
{
"string",
},
MatchAllVpn = false,
Mode = "string",
Name = "string",
TargetVpns = new[]
{
"string",
},
});
example, err := sdwan.NewAdvancedMalwareProtectionPolicyDefinition(ctx, "advancedMalwareProtectionPolicyDefinitionResource", &sdwan.AdvancedMalwareProtectionPolicyDefinitionArgs{
Description: pulumi.String("string"),
AlertLogLevel: pulumi.String("string"),
AmpCloudRegion: pulumi.String("string"),
AmpCloudRegionEstServer: pulumi.String("string"),
FileAnalysis: pulumi.Bool(false),
FileAnalysisAlertLogLevel: pulumi.String("string"),
FileAnalysisCloudRegion: pulumi.String("string"),
FileAnalysisFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
MatchAllVpn: pulumi.Bool(false),
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
TargetVpns: pulumi.StringArray{
pulumi.String("string"),
},
})
var advancedMalwareProtectionPolicyDefinitionResource = new AdvancedMalwareProtectionPolicyDefinition("advancedMalwareProtectionPolicyDefinitionResource", AdvancedMalwareProtectionPolicyDefinitionArgs.builder()
.description("string")
.alertLogLevel("string")
.ampCloudRegion("string")
.ampCloudRegionEstServer("string")
.fileAnalysis(false)
.fileAnalysisAlertLogLevel("string")
.fileAnalysisCloudRegion("string")
.fileAnalysisFileTypes("string")
.matchAllVpn(false)
.mode("string")
.name("string")
.targetVpns("string")
.build());
advanced_malware_protection_policy_definition_resource = sdwan.AdvancedMalwareProtectionPolicyDefinition("advancedMalwareProtectionPolicyDefinitionResource",
description="string",
alert_log_level="string",
amp_cloud_region="string",
amp_cloud_region_est_server="string",
file_analysis=False,
file_analysis_alert_log_level="string",
file_analysis_cloud_region="string",
file_analysis_file_types=["string"],
match_all_vpn=False,
mode="string",
name="string",
target_vpns=["string"])
const advancedMalwareProtectionPolicyDefinitionResource = new sdwan.AdvancedMalwareProtectionPolicyDefinition("advancedMalwareProtectionPolicyDefinitionResource", {
description: "string",
alertLogLevel: "string",
ampCloudRegion: "string",
ampCloudRegionEstServer: "string",
fileAnalysis: false,
fileAnalysisAlertLogLevel: "string",
fileAnalysisCloudRegion: "string",
fileAnalysisFileTypes: ["string"],
matchAllVpn: false,
mode: "string",
name: "string",
targetVpns: ["string"],
});
type: sdwan:AdvancedMalwareProtectionPolicyDefinition
properties:
alertLogLevel: string
ampCloudRegion: string
ampCloudRegionEstServer: string
description: string
fileAnalysis: false
fileAnalysisAlertLogLevel: string
fileAnalysisCloudRegion: string
fileAnalysisFileTypes:
- string
matchAllVpn: false
mode: string
name: string
targetVpns:
- string
AdvancedMalwareProtectionPolicyDefinition 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 AdvancedMalwareProtectionPolicyDefinition resource accepts the following input properties:
- Description string
- The description of the policy definition
- Alert
Log stringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- Amp
Cloud stringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- Amp
Cloud stringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- File
Analysis bool - Should file analysis be enabled
- File
Analysis stringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- File
Analysis stringCloud Region - TG Cloud Region - Choices:
nam
,eu
- File
Analysis List<string>File Types - List of file type
- Match
All boolVpn - Should match all VPNs
- Mode string
- The policy mode - Choices:
security
,unified
- Default value:security
- Name string
- The name of the policy definition
- Target
Vpns List<string> - List of VPN IDs
- Description string
- The description of the policy definition
- Alert
Log stringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- Amp
Cloud stringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- Amp
Cloud stringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- File
Analysis bool - Should file analysis be enabled
- File
Analysis stringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- File
Analysis stringCloud Region - TG Cloud Region - Choices:
nam
,eu
- File
Analysis []stringFile Types - List of file type
- Match
All boolVpn - Should match all VPNs
- Mode string
- The policy mode - Choices:
security
,unified
- Default value:security
- Name string
- The name of the policy definition
- Target
Vpns []string - List of VPN IDs
- description String
- The description of the policy definition
- alert
Log StringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp
Cloud StringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp
Cloud StringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- file
Analysis Boolean - Should file analysis be enabled
- file
Analysis StringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file
Analysis StringCloud Region - TG Cloud Region - Choices:
nam
,eu
- file
Analysis List<String>File Types - List of file type
- match
All BooleanVpn - Should match all VPNs
- mode String
- The policy mode - Choices:
security
,unified
- Default value:security
- name String
- The name of the policy definition
- target
Vpns List<String> - List of VPN IDs
- description string
- The description of the policy definition
- alert
Log stringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp
Cloud stringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp
Cloud stringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- file
Analysis boolean - Should file analysis be enabled
- file
Analysis stringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file
Analysis stringCloud Region - TG Cloud Region - Choices:
nam
,eu
- file
Analysis string[]File Types - List of file type
- match
All booleanVpn - Should match all VPNs
- mode string
- The policy mode - Choices:
security
,unified
- Default value:security
- name string
- The name of the policy definition
- target
Vpns string[] - List of VPN IDs
- description str
- The description of the policy definition
- alert_
log_ strlevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp_
cloud_ strregion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp_
cloud_ strregion_ est_ server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- file_
analysis bool - Should file analysis be enabled
- file_
analysis_ stralert_ log_ level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file_
analysis_ strcloud_ region - TG Cloud Region - Choices:
nam
,eu
- file_
analysis_ Sequence[str]file_ types - List of file type
- match_
all_ boolvpn - Should match all VPNs
- mode str
- The policy mode - Choices:
security
,unified
- Default value:security
- name str
- The name of the policy definition
- target_
vpns Sequence[str] - List of VPN IDs
- description String
- The description of the policy definition
- alert
Log StringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp
Cloud StringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp
Cloud StringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- file
Analysis Boolean - Should file analysis be enabled
- file
Analysis StringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file
Analysis StringCloud Region - TG Cloud Region - Choices:
nam
,eu
- file
Analysis List<String>File Types - List of file type
- match
All BooleanVpn - Should match all VPNs
- mode String
- The policy mode - Choices:
security
,unified
- Default value:security
- name String
- The name of the policy definition
- target
Vpns List<String> - List of VPN IDs
Outputs
All input properties are implicitly available as output properties. Additionally, the AdvancedMalwareProtectionPolicyDefinition resource produces the following output properties:
Look up Existing AdvancedMalwareProtectionPolicyDefinition Resource
Get an existing AdvancedMalwareProtectionPolicyDefinition 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?: AdvancedMalwareProtectionPolicyDefinitionState, opts?: CustomResourceOptions): AdvancedMalwareProtectionPolicyDefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_log_level: Optional[str] = None,
amp_cloud_region: Optional[str] = None,
amp_cloud_region_est_server: Optional[str] = None,
description: Optional[str] = None,
file_analysis: Optional[bool] = None,
file_analysis_alert_log_level: Optional[str] = None,
file_analysis_cloud_region: Optional[str] = None,
file_analysis_file_types: Optional[Sequence[str]] = None,
match_all_vpn: Optional[bool] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
target_vpns: Optional[Sequence[str]] = None,
version: Optional[int] = None) -> AdvancedMalwareProtectionPolicyDefinition
func GetAdvancedMalwareProtectionPolicyDefinition(ctx *Context, name string, id IDInput, state *AdvancedMalwareProtectionPolicyDefinitionState, opts ...ResourceOption) (*AdvancedMalwareProtectionPolicyDefinition, error)
public static AdvancedMalwareProtectionPolicyDefinition Get(string name, Input<string> id, AdvancedMalwareProtectionPolicyDefinitionState? state, CustomResourceOptions? opts = null)
public static AdvancedMalwareProtectionPolicyDefinition get(String name, Output<String> id, AdvancedMalwareProtectionPolicyDefinitionState 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.
- Alert
Log stringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- Amp
Cloud stringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- Amp
Cloud stringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- Description string
- The description of the policy definition
- File
Analysis bool - Should file analysis be enabled
- File
Analysis stringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- File
Analysis stringCloud Region - TG Cloud Region - Choices:
nam
,eu
- File
Analysis List<string>File Types - List of file type
- Match
All boolVpn - Should match all VPNs
- Mode string
- The policy mode - Choices:
security
,unified
- Default value:security
- Name string
- The name of the policy definition
- Target
Vpns List<string> - List of VPN IDs
- Version int
- The version of the object
- Alert
Log stringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- Amp
Cloud stringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- Amp
Cloud stringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- Description string
- The description of the policy definition
- File
Analysis bool - Should file analysis be enabled
- File
Analysis stringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- File
Analysis stringCloud Region - TG Cloud Region - Choices:
nam
,eu
- File
Analysis []stringFile Types - List of file type
- Match
All boolVpn - Should match all VPNs
- Mode string
- The policy mode - Choices:
security
,unified
- Default value:security
- Name string
- The name of the policy definition
- Target
Vpns []string - List of VPN IDs
- Version int
- The version of the object
- alert
Log StringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp
Cloud StringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp
Cloud StringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- description String
- The description of the policy definition
- file
Analysis Boolean - Should file analysis be enabled
- file
Analysis StringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file
Analysis StringCloud Region - TG Cloud Region - Choices:
nam
,eu
- file
Analysis List<String>File Types - List of file type
- match
All BooleanVpn - Should match all VPNs
- mode String
- The policy mode - Choices:
security
,unified
- Default value:security
- name String
- The name of the policy definition
- target
Vpns List<String> - List of VPN IDs
- version Integer
- The version of the object
- alert
Log stringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp
Cloud stringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp
Cloud stringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- description string
- The description of the policy definition
- file
Analysis boolean - Should file analysis be enabled
- file
Analysis stringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file
Analysis stringCloud Region - TG Cloud Region - Choices:
nam
,eu
- file
Analysis string[]File Types - List of file type
- match
All booleanVpn - Should match all VPNs
- mode string
- The policy mode - Choices:
security
,unified
- Default value:security
- name string
- The name of the policy definition
- target
Vpns string[] - List of VPN IDs
- version number
- The version of the object
- alert_
log_ strlevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp_
cloud_ strregion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp_
cloud_ strregion_ est_ server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- description str
- The description of the policy definition
- file_
analysis bool - Should file analysis be enabled
- file_
analysis_ stralert_ log_ level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file_
analysis_ strcloud_ region - TG Cloud Region - Choices:
nam
,eu
- file_
analysis_ Sequence[str]file_ types - List of file type
- match_
all_ boolvpn - Should match all VPNs
- mode str
- The policy mode - Choices:
security
,unified
- Default value:security
- name str
- The name of the policy definition
- target_
vpns Sequence[str] - List of VPN IDs
- version int
- The version of the object
- alert
Log StringLevel - File reputation alerts Log level - Choices:
critical
,warning
,info
- amp
Cloud StringRegion - AMP Cloud Region - Choices:
nam
,eu
,apjc
- amp
Cloud StringRegion Est Server - AMP Cloud Region - Choices:
nam
,eu
,apjc
- description String
- The description of the policy definition
- file
Analysis Boolean - Should file analysis be enabled
- file
Analysis StringAlert Log Level - File analysis alerts Log level - Choices:
critical
,warning
,info
- file
Analysis StringCloud Region - TG Cloud Region - Choices:
nam
,eu
- file
Analysis List<String>File Types - List of file type
- match
All BooleanVpn - Should match all VPNs
- mode String
- The policy mode - Choices:
security
,unified
- Default value:security
- name String
- The name of the policy definition
- target
Vpns List<String> - List of VPN IDs
- version Number
- The version of the object
Import
$ pulumi import sdwan:index/advancedMalwareProtectionPolicyDefinition:AdvancedMalwareProtectionPolicyDefinition 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.