LogForwardingProfile resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const scmLogForwardingProfile1 = new scm.LogForwardingProfile("scm_log_forwarding_profile_1", {
folder: "All",
name: "scm-log-fowarding-profile-1",
matchLists: [{
name: "profile_match",
logType: "threat",
filter: "(addr in 192.50.10.10) and (addr.dst notin 192.40.50.10)",
}],
});
const scmLogForwardingProfile2 = new scm.LogForwardingProfile("scm_log_forwarding_profile_2", {
folder: "All",
name: "scm-log-fowarding-profile-2",
description: "Log Forwarding w/ HTTP Server Profile and Syslog Server Profile",
matchLists: [{
name: "profile_match",
logType: "traffic",
filter: "(device_name eq test_device)",
sendHttp: ["test_http"],
sendSyslog: [
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
],
}],
});
const scmLogForwardingProfile3 = new scm.LogForwardingProfile("scm_log_forwarding_profile_3", {
folder: "All",
name: "scm-log-fowarding-profile-3",
description: "Log Forwarding w/ All Server Profiles",
matchLists: [{
name: "profile_match",
actionDesc: "all server profiles",
logType: "dns-security",
filter: "All Logs",
sendHttp: [
"test_http",
"t10",
],
sendSyslog: [
"syslog-server-prof-base",
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
],
sendSnmptrap: ["snmp_test"],
sendEmail: [
"email_test",
"email_test_2",
],
}],
});
const scmLogForwardingProfile4 = new scm.LogForwardingProfile("scm_log_forwarding_profile_4", {
folder: "All",
name: "scm-log-fowarding-profile-4",
description: "Log Forwarding w/ Multiple Match Lists",
matchLists: [
{
name: "profile_match_1",
actionDesc: "match list for url",
logType: "url",
filter: "(sdwan_cluster contains 123)",
sendHttp: ["t10"],
sendSyslog: ["syslog-server-prof-base"],
sendSnmptrap: ["snmp_test"],
},
{
name: "profile_match_2",
logType: "data",
filter: "(link_switch_2 neq lnk_2) or (pkts_received geq 100)",
sendHttp: [
"t5",
"t10",
"t20",
],
sendSyslog: ["syslog-server-prof-mixed"],
sendEmail: [
"email_test",
"email_test_2",
],
},
{
name: "profile_match_3",
actionDesc: "match list for wildfire",
logType: "wildfire",
filter: "(imei contains test_server)",
sendHttp: [
"t5",
"t10",
"t20",
"t22",
"t24",
],
sendSyslog: ["syslog-server-prof-complete"],
sendEmail: [
"email_test",
"email_test_2",
],
},
],
});
import pulumi
import pulumi_scm as scm
scm_log_forwarding_profile1 = scm.LogForwardingProfile("scm_log_forwarding_profile_1",
folder="All",
name="scm-log-fowarding-profile-1",
match_lists=[{
"name": "profile_match",
"log_type": "threat",
"filter": "(addr in 192.50.10.10) and (addr.dst notin 192.40.50.10)",
}])
scm_log_forwarding_profile2 = scm.LogForwardingProfile("scm_log_forwarding_profile_2",
folder="All",
name="scm-log-fowarding-profile-2",
description="Log Forwarding w/ HTTP Server Profile and Syslog Server Profile",
match_lists=[{
"name": "profile_match",
"log_type": "traffic",
"filter": "(device_name eq test_device)",
"send_http": ["test_http"],
"send_syslog": [
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
],
}])
scm_log_forwarding_profile3 = scm.LogForwardingProfile("scm_log_forwarding_profile_3",
folder="All",
name="scm-log-fowarding-profile-3",
description="Log Forwarding w/ All Server Profiles",
match_lists=[{
"name": "profile_match",
"action_desc": "all server profiles",
"log_type": "dns-security",
"filter": "All Logs",
"send_http": [
"test_http",
"t10",
],
"send_syslog": [
"syslog-server-prof-base",
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
],
"send_snmptrap": ["snmp_test"],
"send_email": [
"email_test",
"email_test_2",
],
}])
scm_log_forwarding_profile4 = scm.LogForwardingProfile("scm_log_forwarding_profile_4",
folder="All",
name="scm-log-fowarding-profile-4",
description="Log Forwarding w/ Multiple Match Lists",
match_lists=[
{
"name": "profile_match_1",
"action_desc": "match list for url",
"log_type": "url",
"filter": "(sdwan_cluster contains 123)",
"send_http": ["t10"],
"send_syslog": ["syslog-server-prof-base"],
"send_snmptrap": ["snmp_test"],
},
{
"name": "profile_match_2",
"log_type": "data",
"filter": "(link_switch_2 neq lnk_2) or (pkts_received geq 100)",
"send_http": [
"t5",
"t10",
"t20",
],
"send_syslog": ["syslog-server-prof-mixed"],
"send_email": [
"email_test",
"email_test_2",
],
},
{
"name": "profile_match_3",
"action_desc": "match list for wildfire",
"log_type": "wildfire",
"filter": "(imei contains test_server)",
"send_http": [
"t5",
"t10",
"t20",
"t22",
"t24",
],
"send_syslog": ["syslog-server-prof-complete"],
"send_email": [
"email_test",
"email_test_2",
],
},
])
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.NewLogForwardingProfile(ctx, "scm_log_forwarding_profile_1", &scm.LogForwardingProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("scm-log-fowarding-profile-1"),
MatchLists: scm.LogForwardingProfileMatchListArray{
&scm.LogForwardingProfileMatchListArgs{
Name: pulumi.String("profile_match"),
LogType: pulumi.String("threat"),
Filter: pulumi.String("(addr in 192.50.10.10) and (addr.dst notin 192.40.50.10)"),
},
},
})
if err != nil {
return err
}
_, err = scm.NewLogForwardingProfile(ctx, "scm_log_forwarding_profile_2", &scm.LogForwardingProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("scm-log-fowarding-profile-2"),
Description: pulumi.String("Log Forwarding w/ HTTP Server Profile and Syslog Server Profile"),
MatchLists: scm.LogForwardingProfileMatchListArray{
&scm.LogForwardingProfileMatchListArgs{
Name: pulumi.String("profile_match"),
LogType: pulumi.String("traffic"),
Filter: pulumi.String("(device_name eq test_device)"),
SendHttp: []string{
"test_http",
},
SendSyslog: []string{
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
},
},
},
})
if err != nil {
return err
}
_, err = scm.NewLogForwardingProfile(ctx, "scm_log_forwarding_profile_3", &scm.LogForwardingProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("scm-log-fowarding-profile-3"),
Description: pulumi.String("Log Forwarding w/ All Server Profiles"),
MatchLists: scm.LogForwardingProfileMatchListArray{
&scm.LogForwardingProfileMatchListArgs{
Name: pulumi.String("profile_match"),
ActionDesc: pulumi.String("all server profiles"),
LogType: pulumi.String("dns-security"),
Filter: pulumi.String("All Logs"),
SendHttp: []string{
"test_http",
"t10",
},
SendSyslog: []string{
"syslog-server-prof-base",
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
},
SendSnmptrap: []string{
"snmp_test",
},
SendEmail: []string{
"email_test",
"email_test_2",
},
},
},
})
if err != nil {
return err
}
_, err = scm.NewLogForwardingProfile(ctx, "scm_log_forwarding_profile_4", &scm.LogForwardingProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("scm-log-fowarding-profile-4"),
Description: pulumi.String("Log Forwarding w/ Multiple Match Lists"),
MatchLists: scm.LogForwardingProfileMatchListArray{
&scm.LogForwardingProfileMatchListArgs{
Name: pulumi.String("profile_match_1"),
ActionDesc: pulumi.String("match list for url"),
LogType: pulumi.String("url"),
Filter: pulumi.String("(sdwan_cluster contains 123)"),
SendHttp: []string{
"t10",
},
SendSyslog: []string{
"syslog-server-prof-base",
},
SendSnmptrap: []string{
"snmp_test",
},
},
&scm.LogForwardingProfileMatchListArgs{
Name: pulumi.String("profile_match_2"),
LogType: pulumi.String("data"),
Filter: pulumi.String("(link_switch_2 neq lnk_2) or (pkts_received geq 100)"),
SendHttp: []string{
"t5",
"t10",
"t20",
},
SendSyslog: []string{
"syslog-server-prof-mixed",
},
SendEmail: []string{
"email_test",
"email_test_2",
},
},
&scm.LogForwardingProfileMatchListArgs{
Name: pulumi.String("profile_match_3"),
ActionDesc: pulumi.String("match list for wildfire"),
LogType: pulumi.String("wildfire"),
Filter: pulumi.String("(imei contains test_server)"),
SendHttp: []string{
"t5",
"t10",
"t20",
"t22",
"t24",
},
SendSyslog: []string{
"syslog-server-prof-complete",
},
SendEmail: []string{
"email_test",
"email_test_2",
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var scmLogForwardingProfile1 = new Scm.LogForwardingProfile("scm_log_forwarding_profile_1", new()
{
Folder = "All",
Name = "scm-log-fowarding-profile-1",
MatchLists = new[]
{
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Name = "profile_match",
LogType = "threat",
Filter = "(addr in 192.50.10.10) and (addr.dst notin 192.40.50.10)",
},
},
});
var scmLogForwardingProfile2 = new Scm.LogForwardingProfile("scm_log_forwarding_profile_2", new()
{
Folder = "All",
Name = "scm-log-fowarding-profile-2",
Description = "Log Forwarding w/ HTTP Server Profile and Syslog Server Profile",
MatchLists = new[]
{
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Name = "profile_match",
LogType = "traffic",
Filter = "(device_name eq test_device)",
SendHttp = new[]
{
"test_http",
},
SendSyslog = new[]
{
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
},
},
},
});
var scmLogForwardingProfile3 = new Scm.LogForwardingProfile("scm_log_forwarding_profile_3", new()
{
Folder = "All",
Name = "scm-log-fowarding-profile-3",
Description = "Log Forwarding w/ All Server Profiles",
MatchLists = new[]
{
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Name = "profile_match",
ActionDesc = "all server profiles",
LogType = "dns-security",
Filter = "All Logs",
SendHttp = new[]
{
"test_http",
"t10",
},
SendSyslog = new[]
{
"syslog-server-prof-base",
"syslog-server-prof-mixed",
"syslog-server-prof-complete",
},
SendSnmptrap = new[]
{
"snmp_test",
},
SendEmail = new[]
{
"email_test",
"email_test_2",
},
},
},
});
var scmLogForwardingProfile4 = new Scm.LogForwardingProfile("scm_log_forwarding_profile_4", new()
{
Folder = "All",
Name = "scm-log-fowarding-profile-4",
Description = "Log Forwarding w/ Multiple Match Lists",
MatchLists = new[]
{
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Name = "profile_match_1",
ActionDesc = "match list for url",
LogType = "url",
Filter = "(sdwan_cluster contains 123)",
SendHttp = new[]
{
"t10",
},
SendSyslog = new[]
{
"syslog-server-prof-base",
},
SendSnmptrap = new[]
{
"snmp_test",
},
},
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Name = "profile_match_2",
LogType = "data",
Filter = "(link_switch_2 neq lnk_2) or (pkts_received geq 100)",
SendHttp = new[]
{
"t5",
"t10",
"t20",
},
SendSyslog = new[]
{
"syslog-server-prof-mixed",
},
SendEmail = new[]
{
"email_test",
"email_test_2",
},
},
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Name = "profile_match_3",
ActionDesc = "match list for wildfire",
LogType = "wildfire",
Filter = "(imei contains test_server)",
SendHttp = new[]
{
"t5",
"t10",
"t20",
"t22",
"t24",
},
SendSyslog = new[]
{
"syslog-server-prof-complete",
},
SendEmail = new[]
{
"email_test",
"email_test_2",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.LogForwardingProfile;
import com.pulumi.scm.LogForwardingProfileArgs;
import com.pulumi.scm.inputs.LogForwardingProfileMatchListArgs;
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 scmLogForwardingProfile1 = new LogForwardingProfile("scmLogForwardingProfile1", LogForwardingProfileArgs.builder()
.folder("All")
.name("scm-log-fowarding-profile-1")
.matchLists(LogForwardingProfileMatchListArgs.builder()
.name("profile_match")
.logType("threat")
.filter("(addr in 192.50.10.10) and (addr.dst notin 192.40.50.10)")
.build())
.build());
var scmLogForwardingProfile2 = new LogForwardingProfile("scmLogForwardingProfile2", LogForwardingProfileArgs.builder()
.folder("All")
.name("scm-log-fowarding-profile-2")
.description("Log Forwarding w/ HTTP Server Profile and Syslog Server Profile")
.matchLists(LogForwardingProfileMatchListArgs.builder()
.name("profile_match")
.logType("traffic")
.filter("(device_name eq test_device)")
.sendHttp(List.of("test_http"))
.sendSyslog(List.of(
"syslog-server-prof-mixed",
"syslog-server-prof-complete"))
.build())
.build());
var scmLogForwardingProfile3 = new LogForwardingProfile("scmLogForwardingProfile3", LogForwardingProfileArgs.builder()
.folder("All")
.name("scm-log-fowarding-profile-3")
.description("Log Forwarding w/ All Server Profiles")
.matchLists(LogForwardingProfileMatchListArgs.builder()
.name("profile_match")
.actionDesc("all server profiles")
.logType("dns-security")
.filter("All Logs")
.sendHttp(List.of(
"test_http",
"t10"))
.sendSyslog(List.of(
"syslog-server-prof-base",
"syslog-server-prof-mixed",
"syslog-server-prof-complete"))
.sendSnmptrap(List.of("snmp_test"))
.sendEmail(List.of(
"email_test",
"email_test_2"))
.build())
.build());
var scmLogForwardingProfile4 = new LogForwardingProfile("scmLogForwardingProfile4", LogForwardingProfileArgs.builder()
.folder("All")
.name("scm-log-fowarding-profile-4")
.description("Log Forwarding w/ Multiple Match Lists")
.matchLists(
LogForwardingProfileMatchListArgs.builder()
.name("profile_match_1")
.actionDesc("match list for url")
.logType("url")
.filter("(sdwan_cluster contains 123)")
.sendHttp(List.of("t10"))
.sendSyslog(List.of("syslog-server-prof-base"))
.sendSnmptrap(List.of("snmp_test"))
.build(),
LogForwardingProfileMatchListArgs.builder()
.name("profile_match_2")
.logType("data")
.filter("(link_switch_2 neq lnk_2) or (pkts_received geq 100)")
.sendHttp(List.of(
"t5",
"t10",
"t20"))
.sendSyslog(List.of("syslog-server-prof-mixed"))
.sendEmail(List.of(
"email_test",
"email_test_2"))
.build(),
LogForwardingProfileMatchListArgs.builder()
.name("profile_match_3")
.actionDesc("match list for wildfire")
.logType("wildfire")
.filter("(imei contains test_server)")
.sendHttp(List.of(
"t5",
"t10",
"t20",
"t22",
"t24"))
.sendSyslog(List.of("syslog-server-prof-complete"))
.sendEmail(List.of(
"email_test",
"email_test_2"))
.build())
.build());
}
}
resources:
scmLogForwardingProfile1:
type: scm:LogForwardingProfile
name: scm_log_forwarding_profile_1
properties:
folder: All
name: scm-log-fowarding-profile-1
matchLists:
- name: profile_match
logType: threat
filter: (addr in 192.50.10.10) and (addr.dst notin 192.40.50.10)
scmLogForwardingProfile2:
type: scm:LogForwardingProfile
name: scm_log_forwarding_profile_2
properties:
folder: All
name: scm-log-fowarding-profile-2
description: Log Forwarding w/ HTTP Server Profile and Syslog Server Profile
matchLists:
- name: profile_match
logType: traffic
filter: (device_name eq test_device)
sendHttp:
- test_http
sendSyslog:
- syslog-server-prof-mixed
- syslog-server-prof-complete
scmLogForwardingProfile3:
type: scm:LogForwardingProfile
name: scm_log_forwarding_profile_3
properties:
folder: All
name: scm-log-fowarding-profile-3
description: Log Forwarding w/ All Server Profiles
matchLists:
- name: profile_match
actionDesc: all server profiles
logType: dns-security
filter: All Logs
sendHttp:
- test_http
- t10
sendSyslog:
- syslog-server-prof-base
- syslog-server-prof-mixed
- syslog-server-prof-complete
sendSnmptrap:
- snmp_test
sendEmail:
- email_test
- email_test_2
scmLogForwardingProfile4:
type: scm:LogForwardingProfile
name: scm_log_forwarding_profile_4
properties:
folder: All
name: scm-log-fowarding-profile-4
description: Log Forwarding w/ Multiple Match Lists
matchLists:
- name: profile_match_1
actionDesc: match list for url
logType: url
filter: (sdwan_cluster contains 123)
sendHttp:
- t10
sendSyslog:
- syslog-server-prof-base
sendSnmptrap:
- snmp_test
- name: profile_match_2
logType: data
filter: (link_switch_2 neq lnk_2) or (pkts_received geq 100)
sendHttp:
- t5
- t10
- t20
sendSyslog:
- syslog-server-prof-mixed
sendEmail:
- email_test
- email_test_2
- name: profile_match_3
actionDesc: match list for wildfire
logType: wildfire
filter: (imei contains test_server)
sendHttp:
- t5
- t10
- t20
- t22
- t24
sendSyslog:
- syslog-server-prof-complete
sendEmail:
- email_test
- email_test_2
Create LogForwardingProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogForwardingProfile(name: string, args: LogForwardingProfileArgs, opts?: CustomResourceOptions);@overload
def LogForwardingProfile(resource_name: str,
args: LogForwardingProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogForwardingProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
match_lists: Optional[Sequence[LogForwardingProfileMatchListArgs]] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewLogForwardingProfile(ctx *Context, name string, args LogForwardingProfileArgs, opts ...ResourceOption) (*LogForwardingProfile, error)public LogForwardingProfile(string name, LogForwardingProfileArgs args, CustomResourceOptions? opts = null)
public LogForwardingProfile(String name, LogForwardingProfileArgs args)
public LogForwardingProfile(String name, LogForwardingProfileArgs args, CustomResourceOptions options)
type: scm:LogForwardingProfile
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 LogForwardingProfileArgs
- 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 LogForwardingProfileArgs
- 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 LogForwardingProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogForwardingProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogForwardingProfileArgs
- 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 logForwardingProfileResource = new Scm.LogForwardingProfile("logForwardingProfileResource", new()
{
MatchLists = new[]
{
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
Filter = "string",
LogType = "string",
Name = "string",
ActionDesc = "string",
SendEmails = new[]
{
"string",
},
SendHttps = new[]
{
"string",
},
SendSnmptraps = new[]
{
"string",
},
SendSyslogs = new[]
{
"string",
},
},
},
Description = "string",
Device = "string",
Folder = "string",
Name = "string",
Snippet = "string",
});
example, err := scm.NewLogForwardingProfile(ctx, "logForwardingProfileResource", &scm.LogForwardingProfileArgs{
MatchLists: scm.LogForwardingProfileMatchListArray{
&scm.LogForwardingProfileMatchListArgs{
Filter: pulumi.String("string"),
LogType: pulumi.String("string"),
Name: pulumi.String("string"),
ActionDesc: pulumi.String("string"),
SendEmails: pulumi.StringArray{
pulumi.String("string"),
},
SendHttps: pulumi.StringArray{
pulumi.String("string"),
},
SendSnmptraps: pulumi.StringArray{
pulumi.String("string"),
},
SendSyslogs: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var logForwardingProfileResource = new LogForwardingProfile("logForwardingProfileResource", LogForwardingProfileArgs.builder()
.matchLists(LogForwardingProfileMatchListArgs.builder()
.filter("string")
.logType("string")
.name("string")
.actionDesc("string")
.sendEmails("string")
.sendHttps("string")
.sendSnmptraps("string")
.sendSyslogs("string")
.build())
.description("string")
.device("string")
.folder("string")
.name("string")
.snippet("string")
.build());
log_forwarding_profile_resource = scm.LogForwardingProfile("logForwardingProfileResource",
match_lists=[{
"filter": "string",
"log_type": "string",
"name": "string",
"action_desc": "string",
"send_emails": ["string"],
"send_https": ["string"],
"send_snmptraps": ["string"],
"send_syslogs": ["string"],
}],
description="string",
device="string",
folder="string",
name="string",
snippet="string")
const logForwardingProfileResource = new scm.LogForwardingProfile("logForwardingProfileResource", {
matchLists: [{
filter: "string",
logType: "string",
name: "string",
actionDesc: "string",
sendEmails: ["string"],
sendHttps: ["string"],
sendSnmptraps: ["string"],
sendSyslogs: ["string"],
}],
description: "string",
device: "string",
folder: "string",
name: "string",
snippet: "string",
});
type: scm:LogForwardingProfile
properties:
description: string
device: string
folder: string
matchLists:
- actionDesc: string
filter: string
logType: string
name: string
sendEmails:
- string
sendHttps:
- string
sendSnmptraps:
- string
sendSyslogs:
- string
name: string
snippet: string
LogForwardingProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogForwardingProfile resource accepts the following input properties:
- Match
Lists List<LogForwarding Profile Match List> - Match list
- Description string
- Log forwarding profile description
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- The name of the log forwarding profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Match
Lists []LogForwarding Profile Match List Args - Match list
- Description string
- Log forwarding profile description
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Name string
- The name of the log forwarding profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- match
Lists List<LogForwarding Profile Match List> - Match list
- description String
- Log forwarding profile description
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- The name of the log forwarding profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- match
Lists LogForwarding Profile Match List[] - Match list
- description string
- Log forwarding profile description
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name string
- The name of the log forwarding profile
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- match_
lists Sequence[LogForwarding Profile Match List Args] - Match list
- description str
- Log forwarding profile description
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name str
- The name of the log forwarding profile
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- match
Lists List<Property Map> - Match list
- description String
- Log forwarding profile description
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- name String
- The name of the log forwarding profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogForwardingProfile resource produces the following output properties:
Look up Existing LogForwardingProfile Resource
Get an existing LogForwardingProfile 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?: LogForwardingProfileState, opts?: CustomResourceOptions): LogForwardingProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
match_lists: Optional[Sequence[LogForwardingProfileMatchListArgs]] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> LogForwardingProfilefunc GetLogForwardingProfile(ctx *Context, name string, id IDInput, state *LogForwardingProfileState, opts ...ResourceOption) (*LogForwardingProfile, error)public static LogForwardingProfile Get(string name, Input<string> id, LogForwardingProfileState? state, CustomResourceOptions? opts = null)public static LogForwardingProfile get(String name, Output<String> id, LogForwardingProfileState state, CustomResourceOptions options)resources: _: type: scm:LogForwardingProfile get: id: ${id}- 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.
- Description string
- Log forwarding profile description
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Match
Lists List<LogForwarding Profile Match List> - Match list
- Name string
- The name of the log forwarding profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Description string
- Log forwarding profile description
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Match
Lists []LogForwarding Profile Match List Args - Match list
- Name string
- The name of the log forwarding profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- description String
- Log forwarding profile description
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- match
Lists List<LogForwarding Profile Match List> - Match list
- name String
- The name of the log forwarding profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- description string
- Log forwarding profile description
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- match
Lists LogForwarding Profile Match List[] - Match list
- name string
- The name of the log forwarding profile
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- description str
- Log forwarding profile description
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- match_
lists Sequence[LogForwarding Profile Match List Args] - Match list
- name str
- The name of the log forwarding profile
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- description String
- Log forwarding profile description
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- match
Lists List<Property Map> - Match list
- name String
- The name of the log forwarding profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
Supporting Types
LogForwardingProfileMatchList, LogForwardingProfileMatchListArgs
- Filter string
- Filter match criteria
- Log
Type string - Log type
- Name string
- Name of the match profile
- Action
Desc string - Match profile description
- Send
Emails List<string> - A list of email server profiles
- Send
Https List<string> - A list of HTTP server profiles
- Send
Snmptraps List<string> - A list of SNMP server profiles
- Send
Syslogs List<string> - A list of syslog server profiles
- Filter string
- Filter match criteria
- Log
Type string - Log type
- Name string
- Name of the match profile
- Action
Desc string - Match profile description
- Send
Emails []string - A list of email server profiles
- Send
Https []string - A list of HTTP server profiles
- Send
Snmptraps []string - A list of SNMP server profiles
- Send
Syslogs []string - A list of syslog server profiles
- filter String
- Filter match criteria
- log
Type String - Log type
- name String
- Name of the match profile
- action
Desc String - Match profile description
- send
Emails List<String> - A list of email server profiles
- send
Https List<String> - A list of HTTP server profiles
- send
Snmptraps List<String> - A list of SNMP server profiles
- send
Syslogs List<String> - A list of syslog server profiles
- filter string
- Filter match criteria
- log
Type string - Log type
- name string
- Name of the match profile
- action
Desc string - Match profile description
- send
Emails string[] - A list of email server profiles
- send
Https string[] - A list of HTTP server profiles
- send
Snmptraps string[] - A list of SNMP server profiles
- send
Syslogs string[] - A list of syslog server profiles
- filter str
- Filter match criteria
- log_
type str - Log type
- name str
- Name of the match profile
- action_
desc str - Match profile description
- send_
emails Sequence[str] - A list of email server profiles
- send_
https Sequence[str] - A list of HTTP server profiles
- send_
snmptraps Sequence[str] - A list of SNMP server profiles
- send_
syslogs Sequence[str] - A list of syslog server profiles
- filter String
- Filter match criteria
- log
Type String - Log type
- name String
- Name of the match profile
- action
Desc String - Match profile description
- send
Emails List<String> - A list of email server profiles
- send
Https List<String> - A list of HTTP server profiles
- send
Snmptraps List<String> - A list of SNMP server profiles
- send
Syslogs List<String> - A list of syslog server profiles
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/logForwardingProfile:LogForwardingProfile example folder:::id
or
bash
$ pulumi import scm:index/logForwardingProfile:LogForwardingProfile example :snippet::id
or
bash
$ pulumi import scm:index/logForwardingProfile:LogForwardingProfile example ::device:id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
