Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs
dynatrace.LogCustomSource
Explore with Pulumi AI
Create LogCustomSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogCustomSource(name: string, args: LogCustomSourceArgs, opts?: CustomResourceOptions);
@overload
def LogCustomSource(resource_name: str,
args: LogCustomSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogCustomSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_log_source: Optional[LogCustomSourceCustomLogSourceArgs] = None,
enabled: Optional[bool] = None,
context: Optional[LogCustomSourceContextArgs] = None,
name: Optional[str] = None,
scope: Optional[str] = None)
func NewLogCustomSource(ctx *Context, name string, args LogCustomSourceArgs, opts ...ResourceOption) (*LogCustomSource, error)
public LogCustomSource(string name, LogCustomSourceArgs args, CustomResourceOptions? opts = null)
public LogCustomSource(String name, LogCustomSourceArgs args)
public LogCustomSource(String name, LogCustomSourceArgs args, CustomResourceOptions options)
type: dynatrace:LogCustomSource
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 LogCustomSourceArgs
- 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 LogCustomSourceArgs
- 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 LogCustomSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogCustomSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogCustomSourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
var logCustomSourceResource = new Dynatrace.LogCustomSource("logCustomSourceResource", new()
{
CustomLogSource = new Dynatrace.Inputs.LogCustomSourceCustomLogSourceArgs
{
Type = "string",
Values = new[]
{
"string",
},
},
Enabled = false,
Context = new Dynatrace.Inputs.LogCustomSourceContextArgs
{
Contexts = new[]
{
new Dynatrace.Inputs.LogCustomSourceContextContextArgs
{
Attribute = "string",
Values = new[]
{
"string",
},
},
},
},
Name = "string",
Scope = "string",
});
example, err := dynatrace.NewLogCustomSource(ctx, "logCustomSourceResource", &dynatrace.LogCustomSourceArgs{
CustomLogSource: &dynatrace.LogCustomSourceCustomLogSourceArgs{
Type: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Enabled: pulumi.Bool(false),
Context: &dynatrace.LogCustomSourceContextArgs{
Contexts: dynatrace.LogCustomSourceContextContextArray{
&dynatrace.LogCustomSourceContextContextArgs{
Attribute: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
Scope: pulumi.String("string"),
})
var logCustomSourceResource = new LogCustomSource("logCustomSourceResource", LogCustomSourceArgs.builder()
.customLogSource(LogCustomSourceCustomLogSourceArgs.builder()
.type("string")
.values("string")
.build())
.enabled(false)
.context(LogCustomSourceContextArgs.builder()
.contexts(LogCustomSourceContextContextArgs.builder()
.attribute("string")
.values("string")
.build())
.build())
.name("string")
.scope("string")
.build());
log_custom_source_resource = dynatrace.LogCustomSource("logCustomSourceResource",
custom_log_source=dynatrace.LogCustomSourceCustomLogSourceArgs(
type="string",
values=["string"],
),
enabled=False,
context=dynatrace.LogCustomSourceContextArgs(
contexts=[dynatrace.LogCustomSourceContextContextArgs(
attribute="string",
values=["string"],
)],
),
name="string",
scope="string")
const logCustomSourceResource = new dynatrace.LogCustomSource("logCustomSourceResource", {
customLogSource: {
type: "string",
values: ["string"],
},
enabled: false,
context: {
contexts: [{
attribute: "string",
values: ["string"],
}],
},
name: "string",
scope: "string",
});
type: dynatrace:LogCustomSource
properties:
context:
contexts:
- attribute: string
values:
- string
customLogSource:
type: string
values:
- string
enabled: false
name: string
scope: string
LogCustomSource 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 LogCustomSource resource accepts the following input properties:
- Custom
Log Lbrlabs.Source Pulumi Package. Dynatrace. Inputs. Log Custom Source Custom Log Source - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Context
Lbrlabs.
Pulumi Package. Dynatrace. Inputs. Log Custom Source Context - Define Custom Log Source only within context if provided
- Name string
- Name
- Scope string
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- Custom
Log LogSource Custom Source Custom Log Source Args - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- Name string
- Name
- Scope string
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- name String
- Name
- scope String
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- name string
- Name
- scope string
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- custom_
log_ Logsource Custom Source Custom Log Source Args - no documentation available
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- name str
- Name
- scope str
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- custom
Log Property MapSource - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - context Property Map
- Define Custom Log Source only within context if provided
- name String
- Name
- scope String
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogCustomSource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LogCustomSource Resource
Get an existing LogCustomSource 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?: LogCustomSourceState, opts?: CustomResourceOptions): LogCustomSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[LogCustomSourceContextArgs] = None,
custom_log_source: Optional[LogCustomSourceCustomLogSourceArgs] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
scope: Optional[str] = None) -> LogCustomSource
func GetLogCustomSource(ctx *Context, name string, id IDInput, state *LogCustomSourceState, opts ...ResourceOption) (*LogCustomSource, error)
public static LogCustomSource Get(string name, Input<string> id, LogCustomSourceState? state, CustomResourceOptions? opts = null)
public static LogCustomSource get(String name, Output<String> id, LogCustomSourceState 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.
- Context
Lbrlabs.
Pulumi Package. Dynatrace. Inputs. Log Custom Source Context - Define Custom Log Source only within context if provided
- Custom
Log Lbrlabs.Source Pulumi Package. Dynatrace. Inputs. Log Custom Source Custom Log Source - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Name string
- Name
- Scope string
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- Context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- Custom
Log LogSource Custom Source Custom Log Source Args - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Name string
- Name
- Scope string
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - name String
- Name
- scope String
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - name string
- Name
- scope string
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- custom_
log_ Logsource Custom Source Custom Log Source Args - no documentation available
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - name str
- Name
- scope str
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
- context Property Map
- Define Custom Log Source only within context if provided
- custom
Log Property MapSource - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - name String
- Name
- scope String
- The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
Supporting Types
LogCustomSourceContext, LogCustomSourceContextArgs
- Contexts
List<Lbrlabs.
Pulumi Package. Dynatrace. Inputs. Log Custom Source Context Context> - Define Custom Log Source only within context if provided
- Contexts
[]Log
Custom Source Context Context - Define Custom Log Source only within context if provided
- contexts
List<Log
Custom Source Context Context> - Define Custom Log Source only within context if provided
- contexts
Log
Custom Source Context Context[] - Define Custom Log Source only within context if provided
- contexts
Sequence[Log
Custom Source Context Context] - Define Custom Log Source only within context if provided
- contexts List<Property Map>
- Define Custom Log Source only within context if provided
LogCustomSourceContextContext, LogCustomSourceContextContextArgs
LogCustomSourceCustomLogSource, LogCustomSourceCustomLogSourceArgs
Package Details
- Repository
- dynatrace lbrlabs/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.