chronosphere.LogControlConfig
Create LogControlConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogControlConfig(name: string, args?: LogControlConfigArgs, opts?: CustomResourceOptions);@overload
def LogControlConfig(resource_name: str,
args: Optional[LogControlConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def LogControlConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[Sequence[LogControlConfigRuleArgs]] = None)func NewLogControlConfig(ctx *Context, name string, args *LogControlConfigArgs, opts ...ResourceOption) (*LogControlConfig, error)public LogControlConfig(string name, LogControlConfigArgs? args = null, CustomResourceOptions? opts = null)
public LogControlConfig(String name, LogControlConfigArgs args)
public LogControlConfig(String name, LogControlConfigArgs args, CustomResourceOptions options)
type: chronosphere:LogControlConfig
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 LogControlConfigArgs
- 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 LogControlConfigArgs
- 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 LogControlConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogControlConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogControlConfigArgs
- 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 logControlConfigResource = new Pulumi.LogControlConfig("logControlConfigResource", new()
{
Rules = new[]
{
new Pulumi.Inputs.LogControlConfigRuleArgs
{
DropField = new Pulumi.Inputs.LogControlConfigRuleDropFieldArgs
{
FieldRegex = "string",
ParentPath = new Pulumi.Inputs.LogControlConfigRuleDropFieldParentPathArgs
{
Selector = "string",
},
},
EmitMetrics = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsArgs
{
Counter = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsCounterArgs
{
Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsCounterValueArgs
{
Selector = "string",
},
},
DropLog = false,
Gauge = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsGaugeArgs
{
AggregationType = "string",
Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsGaugeValueArgs
{
Selector = "string",
},
},
Histogram = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsHistogramArgs
{
Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsHistogramValueArgs
{
Selector = "string",
},
},
Labels = new[]
{
new Pulumi.Inputs.LogControlConfigRuleEmitMetricsLabelArgs
{
Key = "string",
Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsLabelValueArgs
{
Selector = "string",
},
},
},
Mode = "string",
Name = "string",
},
Filter = "string",
Mode = "string",
Name = "string",
ReplaceField = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldArgs
{
Field = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldFieldArgs
{
Selector = "string",
},
MappedValue = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldMappedValueArgs
{
DefaultValue = "string",
Pairs = new[]
{
new Pulumi.Inputs.LogControlConfigRuleReplaceFieldMappedValuePairArgs
{
Key = "string",
Value = "string",
},
},
UseDefault = false,
},
ReplaceAll = false,
ReplaceMode = "string",
ReplaceRegex = "string",
StaticValue = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldStaticValueArgs
{
Value = "string",
},
},
Sample = new Pulumi.Inputs.LogControlConfigRuleSampleArgs
{
Rate = 0,
},
Type = "string",
},
},
});
example, err := chronosphere.NewLogControlConfig(ctx, "logControlConfigResource", &chronosphere.LogControlConfigArgs{
Rules: chronosphere.LogControlConfigRuleArray{
&chronosphere.LogControlConfigRuleArgs{
DropField: &chronosphere.LogControlConfigRuleDropFieldArgs{
FieldRegex: pulumi.String("string"),
ParentPath: &chronosphere.LogControlConfigRuleDropFieldParentPathArgs{
Selector: pulumi.String("string"),
},
},
EmitMetrics: &chronosphere.LogControlConfigRuleEmitMetricsArgs{
Counter: &chronosphere.LogControlConfigRuleEmitMetricsCounterArgs{
Value: &chronosphere.LogControlConfigRuleEmitMetricsCounterValueArgs{
Selector: pulumi.String("string"),
},
},
DropLog: pulumi.Bool(false),
Gauge: &chronosphere.LogControlConfigRuleEmitMetricsGaugeArgs{
AggregationType: pulumi.String("string"),
Value: &chronosphere.LogControlConfigRuleEmitMetricsGaugeValueArgs{
Selector: pulumi.String("string"),
},
},
Histogram: &chronosphere.LogControlConfigRuleEmitMetricsHistogramArgs{
Value: &chronosphere.LogControlConfigRuleEmitMetricsHistogramValueArgs{
Selector: pulumi.String("string"),
},
},
Labels: chronosphere.LogControlConfigRuleEmitMetricsLabelArray{
&chronosphere.LogControlConfigRuleEmitMetricsLabelArgs{
Key: pulumi.String("string"),
Value: &chronosphere.LogControlConfigRuleEmitMetricsLabelValueArgs{
Selector: pulumi.String("string"),
},
},
},
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
},
Filter: pulumi.String("string"),
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
ReplaceField: &chronosphere.LogControlConfigRuleReplaceFieldArgs{
Field: &chronosphere.LogControlConfigRuleReplaceFieldFieldArgs{
Selector: pulumi.String("string"),
},
MappedValue: &chronosphere.LogControlConfigRuleReplaceFieldMappedValueArgs{
DefaultValue: pulumi.String("string"),
Pairs: chronosphere.LogControlConfigRuleReplaceFieldMappedValuePairArray{
&chronosphere.LogControlConfigRuleReplaceFieldMappedValuePairArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
UseDefault: pulumi.Bool(false),
},
ReplaceAll: pulumi.Bool(false),
ReplaceMode: pulumi.String("string"),
ReplaceRegex: pulumi.String("string"),
StaticValue: &chronosphere.LogControlConfigRuleReplaceFieldStaticValueArgs{
Value: pulumi.String("string"),
},
},
Sample: &chronosphere.LogControlConfigRuleSampleArgs{
Rate: pulumi.Float64(0),
},
Type: pulumi.String("string"),
},
},
})
var logControlConfigResource = new LogControlConfig("logControlConfigResource", LogControlConfigArgs.builder()
.rules(LogControlConfigRuleArgs.builder()
.dropField(LogControlConfigRuleDropFieldArgs.builder()
.fieldRegex("string")
.parentPath(LogControlConfigRuleDropFieldParentPathArgs.builder()
.selector("string")
.build())
.build())
.emitMetrics(LogControlConfigRuleEmitMetricsArgs.builder()
.counter(LogControlConfigRuleEmitMetricsCounterArgs.builder()
.value(LogControlConfigRuleEmitMetricsCounterValueArgs.builder()
.selector("string")
.build())
.build())
.dropLog(false)
.gauge(LogControlConfigRuleEmitMetricsGaugeArgs.builder()
.aggregationType("string")
.value(LogControlConfigRuleEmitMetricsGaugeValueArgs.builder()
.selector("string")
.build())
.build())
.histogram(LogControlConfigRuleEmitMetricsHistogramArgs.builder()
.value(LogControlConfigRuleEmitMetricsHistogramValueArgs.builder()
.selector("string")
.build())
.build())
.labels(LogControlConfigRuleEmitMetricsLabelArgs.builder()
.key("string")
.value(LogControlConfigRuleEmitMetricsLabelValueArgs.builder()
.selector("string")
.build())
.build())
.mode("string")
.name("string")
.build())
.filter("string")
.mode("string")
.name("string")
.replaceField(LogControlConfigRuleReplaceFieldArgs.builder()
.field(LogControlConfigRuleReplaceFieldFieldArgs.builder()
.selector("string")
.build())
.mappedValue(LogControlConfigRuleReplaceFieldMappedValueArgs.builder()
.defaultValue("string")
.pairs(LogControlConfigRuleReplaceFieldMappedValuePairArgs.builder()
.key("string")
.value("string")
.build())
.useDefault(false)
.build())
.replaceAll(false)
.replaceMode("string")
.replaceRegex("string")
.staticValue(LogControlConfigRuleReplaceFieldStaticValueArgs.builder()
.value("string")
.build())
.build())
.sample(LogControlConfigRuleSampleArgs.builder()
.rate(0.0)
.build())
.type("string")
.build())
.build());
log_control_config_resource = chronosphere.LogControlConfig("logControlConfigResource", rules=[{
"drop_field": {
"field_regex": "string",
"parent_path": {
"selector": "string",
},
},
"emit_metrics": {
"counter": {
"value": {
"selector": "string",
},
},
"drop_log": False,
"gauge": {
"aggregation_type": "string",
"value": {
"selector": "string",
},
},
"histogram": {
"value": {
"selector": "string",
},
},
"labels": [{
"key": "string",
"value": {
"selector": "string",
},
}],
"mode": "string",
"name": "string",
},
"filter": "string",
"mode": "string",
"name": "string",
"replace_field": {
"field": {
"selector": "string",
},
"mapped_value": {
"default_value": "string",
"pairs": [{
"key": "string",
"value": "string",
}],
"use_default": False,
},
"replace_all": False,
"replace_mode": "string",
"replace_regex": "string",
"static_value": {
"value": "string",
},
},
"sample": {
"rate": 0,
},
"type": "string",
}])
const logControlConfigResource = new chronosphere.LogControlConfig("logControlConfigResource", {rules: [{
dropField: {
fieldRegex: "string",
parentPath: {
selector: "string",
},
},
emitMetrics: {
counter: {
value: {
selector: "string",
},
},
dropLog: false,
gauge: {
aggregationType: "string",
value: {
selector: "string",
},
},
histogram: {
value: {
selector: "string",
},
},
labels: [{
key: "string",
value: {
selector: "string",
},
}],
mode: "string",
name: "string",
},
filter: "string",
mode: "string",
name: "string",
replaceField: {
field: {
selector: "string",
},
mappedValue: {
defaultValue: "string",
pairs: [{
key: "string",
value: "string",
}],
useDefault: false,
},
replaceAll: false,
replaceMode: "string",
replaceRegex: "string",
staticValue: {
value: "string",
},
},
sample: {
rate: 0,
},
type: "string",
}]});
type: chronosphere:LogControlConfig
properties:
rules:
- dropField:
fieldRegex: string
parentPath:
selector: string
emitMetrics:
counter:
value:
selector: string
dropLog: false
gauge:
aggregationType: string
value:
selector: string
histogram:
value:
selector: string
labels:
- key: string
value:
selector: string
mode: string
name: string
filter: string
mode: string
name: string
replaceField:
field:
selector: string
mappedValue:
defaultValue: string
pairs:
- key: string
value: string
useDefault: false
replaceAll: false
replaceMode: string
replaceRegex: string
staticValue:
value: string
sample:
rate: 0
type: string
LogControlConfig 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 LogControlConfig resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the LogControlConfig 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 LogControlConfig Resource
Get an existing LogControlConfig 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?: LogControlConfigState, opts?: CustomResourceOptions): LogControlConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[Sequence[LogControlConfigRuleArgs]] = None) -> LogControlConfigfunc GetLogControlConfig(ctx *Context, name string, id IDInput, state *LogControlConfigState, opts ...ResourceOption) (*LogControlConfig, error)public static LogControlConfig Get(string name, Input<string> id, LogControlConfigState? state, CustomResourceOptions? opts = null)public static LogControlConfig get(String name, Output<String> id, LogControlConfigState state, CustomResourceOptions options)resources: _: type: chronosphere:LogControlConfig 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.
Supporting Types
LogControlConfigRule, LogControlConfigRuleArgs
- Drop
Field Chronosphere.Pulumi. Inputs. Log Control Config Rule Drop Field - Emit
Metrics Chronosphere.Pulumi. Inputs. Log Control Config Rule Emit Metrics - Filter string
- Mode string
- Name string
- Replace
Field Chronosphere.Pulumi. Inputs. Log Control Config Rule Replace Field - Sample
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Sample - Type string
- drop
Field Property Map - emit
Metrics Property Map - filter String
- mode String
- name String
- replace
Field Property Map - sample Property Map
- type String
LogControlConfigRuleDropField, LogControlConfigRuleDropFieldArgs
- field
Regex String - parent
Path Property Map
LogControlConfigRuleDropFieldParentPath, LogControlConfigRuleDropFieldParentPathArgs
- Selector string
- Selector string
- selector String
- selector string
- selector str
- selector String
LogControlConfigRuleEmitMetrics, LogControlConfigRuleEmitMetricsArgs
- Counter
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Counter - Drop
Log bool - Gauge
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Gauge - Histogram
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Histogram - Labels
List<Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Label> - Mode string
- Name string
- counter Property Map
- drop
Log Boolean - gauge Property Map
- histogram Property Map
- labels List<Property Map>
- mode String
- name String
LogControlConfigRuleEmitMetricsCounter, LogControlConfigRuleEmitMetricsCounterArgs
LogControlConfigRuleEmitMetricsCounterValue, LogControlConfigRuleEmitMetricsCounterValueArgs
- Selector string
- Selector string
- selector String
- selector string
- selector str
- selector String
LogControlConfigRuleEmitMetricsGauge, LogControlConfigRuleEmitMetricsGaugeArgs
- aggregation
Type String - value Property Map
LogControlConfigRuleEmitMetricsGaugeValue, LogControlConfigRuleEmitMetricsGaugeValueArgs
- Selector string
- Selector string
- selector String
- selector string
- selector str
- selector String
LogControlConfigRuleEmitMetricsHistogram, LogControlConfigRuleEmitMetricsHistogramArgs
LogControlConfigRuleEmitMetricsHistogramValue, LogControlConfigRuleEmitMetricsHistogramValueArgs
- Selector string
- Selector string
- selector String
- selector string
- selector str
- selector String
LogControlConfigRuleEmitMetricsLabel, LogControlConfigRuleEmitMetricsLabelArgs
- key String
- value Property Map
LogControlConfigRuleEmitMetricsLabelValue, LogControlConfigRuleEmitMetricsLabelValueArgs
- Selector string
- Selector string
- selector String
- selector string
- selector str
- selector String
LogControlConfigRuleReplaceField, LogControlConfigRuleReplaceFieldArgs
- field Property Map
- mapped
Value Property Map - replace
All Boolean - replace
Mode String - replace
Regex String - static
Value Property Map
LogControlConfigRuleReplaceFieldField, LogControlConfigRuleReplaceFieldFieldArgs
- Selector string
- Selector string
- selector String
- selector string
- selector str
- selector String
LogControlConfigRuleReplaceFieldMappedValue, LogControlConfigRuleReplaceFieldMappedValueArgs
- default
Value String - pairs List<Property Map>
- use
Default Boolean
LogControlConfigRuleReplaceFieldMappedValuePair, LogControlConfigRuleReplaceFieldMappedValuePairArgs
LogControlConfigRuleReplaceFieldStaticValue, LogControlConfigRuleReplaceFieldStaticValueArgs
- Value string
- Value string
- value String
- value string
- value str
- value String
LogControlConfigRuleSample, LogControlConfigRuleSampleArgs
- Rate double
- Rate float64
- rate Double
- rate number
- rate float
- rate Number
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
