LogForwardingProfile resource
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: Optional[LogForwardingProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def LogForwardingProfile(resource_name: 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)func NewLogForwardingProfile(ctx *Context, name string, args *LogForwardingProfileArgs, opts ...ResourceOption) (*LogForwardingProfile, error)public LogForwardingProfile(string name, LogForwardingProfileArgs? args = null, 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()
{
Description = "string",
Device = "string",
Folder = "string",
MatchLists = new[]
{
new Scm.Inputs.LogForwardingProfileMatchListArgs
{
ActionDesc = "string",
Filter = "string",
LogType = "string",
Name = "string",
SendHttps = new[]
{
"string",
},
SendSyslogs = new[]
{
"string",
},
},
},
Name = "string",
Snippet = "string",
});
example, err := scm.NewLogForwardingProfile(ctx, "logForwardingProfileResource", &scm.LogForwardingProfileArgs{
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
MatchLists: scm.LogForwardingProfileMatchListArray{
&scm.LogForwardingProfileMatchListArgs{
ActionDesc: pulumi.String("string"),
Filter: pulumi.String("string"),
LogType: pulumi.String("string"),
Name: pulumi.String("string"),
SendHttps: pulumi.StringArray{
pulumi.String("string"),
},
SendSyslogs: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var logForwardingProfileResource = new LogForwardingProfile("logForwardingProfileResource", LogForwardingProfileArgs.builder()
.description("string")
.device("string")
.folder("string")
.matchLists(LogForwardingProfileMatchListArgs.builder()
.actionDesc("string")
.filter("string")
.logType("string")
.name("string")
.sendHttps("string")
.sendSyslogs("string")
.build())
.name("string")
.snippet("string")
.build());
log_forwarding_profile_resource = scm.LogForwardingProfile("logForwardingProfileResource",
description="string",
device="string",
folder="string",
match_lists=[{
"action_desc": "string",
"filter": "string",
"log_type": "string",
"name": "string",
"send_https": ["string"],
"send_syslogs": ["string"],
}],
name="string",
snippet="string")
const logForwardingProfileResource = new scm.LogForwardingProfile("logForwardingProfileResource", {
description: "string",
device: "string",
folder: "string",
matchLists: [{
actionDesc: "string",
filter: "string",
logType: "string",
name: "string",
sendHttps: ["string"],
sendSyslogs: ["string"],
}],
name: "string",
snippet: "string",
});
type: scm:LogForwardingProfile
properties:
description: string
device: string
folder: string
matchLists:
- actionDesc: string
filter: string
logType: string
name: string
sendHttps:
- 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:
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- tfid String
Supporting Types
LogForwardingProfileMatchList, LogForwardingProfileMatchListArgs
- Action
Desc string - Match profile description
- Filter string
- Filter match criteria
- Log
Type string - Log type
- Name string
- Name of the match profile
- Send
Https List<string> - A list of HTTP server profiles
- Send
Syslogs List<string> - A list of syslog server profiles
- Action
Desc string - Match profile description
- Filter string
- Filter match criteria
- Log
Type string - Log type
- Name string
- Name of the match profile
- Send
Https []string - A list of HTTP server profiles
- Send
Syslogs []string - A list of syslog server profiles
- action
Desc String - Match profile description
- filter String
- Filter match criteria
- log
Type String - Log type
- name String
- Name of the match profile
- send
Https List<String> - A list of HTTP server profiles
- send
Syslogs List<String> - A list of syslog server profiles
- action
Desc string - Match profile description
- filter string
- Filter match criteria
- log
Type string - Log type
- name string
- Name of the match profile
- send
Https string[] - A list of HTTP server profiles
- send
Syslogs string[] - A list of syslog server profiles
- action_
desc str - Match profile description
- filter str
- Filter match criteria
- log_
type str - Log type
- name str
- Name of the match profile
- send_
https Sequence[str] - A list of HTTP server profiles
- send_
syslogs Sequence[str] - A list of syslog server profiles
- action
Desc String - Match profile description
- filter String
- Filter match criteria
- log
Type String - Log type
- name String
- Name of the match profile
- send
Https List<String> - A list of HTTP server profiles
- send
Syslogs List<String> - A list of syslog server profiles
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
