chronosphere.MappingRule
Explore with Pulumi AI
Create MappingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MappingRule(name: string, args: MappingRuleArgs, opts?: CustomResourceOptions);
@overload
def MappingRule(resource_name: str,
args: MappingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MappingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
filter: Optional[str] = None,
name: Optional[str] = None,
aggregations: Optional[str] = None,
bucket_id: Optional[str] = None,
drop: Optional[bool] = None,
drop_timestamp: Optional[bool] = None,
interval: Optional[str] = None,
mode: Optional[str] = None,
slug: Optional[str] = None,
storage_policy: Optional[MappingRuleStoragePolicyArgs] = None)
func NewMappingRule(ctx *Context, name string, args MappingRuleArgs, opts ...ResourceOption) (*MappingRule, error)
public MappingRule(string name, MappingRuleArgs args, CustomResourceOptions? opts = null)
public MappingRule(String name, MappingRuleArgs args)
public MappingRule(String name, MappingRuleArgs args, CustomResourceOptions options)
type: chronosphere:MappingRule
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 MappingRuleArgs
- 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 MappingRuleArgs
- 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 MappingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MappingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MappingRuleArgs
- 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 mappingRuleResource = new Pulumi.MappingRule("mappingRuleResource", new()
{
Filter = "string",
Name = "string",
Aggregations = "string",
BucketId = "string",
Drop = false,
Interval = "string",
Mode = "string",
Slug = "string",
});
example, err := chronosphere.NewMappingRule(ctx, "mappingRuleResource", &chronosphere.MappingRuleArgs{
Filter: pulumi.String("string"),
Name: pulumi.String("string"),
Aggregations: pulumi.String("string"),
BucketId: pulumi.String("string"),
Drop: pulumi.Bool(false),
Interval: pulumi.String("string"),
Mode: pulumi.String("string"),
Slug: pulumi.String("string"),
})
var mappingRuleResource = new MappingRule("mappingRuleResource", MappingRuleArgs.builder()
.filter("string")
.name("string")
.aggregations("string")
.bucketId("string")
.drop(false)
.interval("string")
.mode("string")
.slug("string")
.build());
mapping_rule_resource = chronosphere.MappingRule("mappingRuleResource",
filter="string",
name="string",
aggregations="string",
bucket_id="string",
drop=False,
interval="string",
mode="string",
slug="string")
const mappingRuleResource = new chronosphere.MappingRule("mappingRuleResource", {
filter: "string",
name: "string",
aggregations: "string",
bucketId: "string",
drop: false,
interval: "string",
mode: "string",
slug: "string",
});
type: chronosphere:MappingRule
properties:
aggregations: string
bucketId: string
drop: false
filter: string
interval: string
mode: string
name: string
slug: string
MappingRule 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 MappingRule resource accepts the following input properties:
- Filter string
- Name string
- Aggregations string
- Bucket
Id string - Drop bool
- Drop
Timestamp bool - Interval string
- Mode string
- Slug string
- Storage
Policy Chronosphere.Pulumi. Inputs. Mapping Rule Storage Policy
- Filter string
- Name string
- Aggregations string
- Bucket
Id string - Drop bool
- Drop
Timestamp bool - Interval string
- Mode string
- Slug string
- Storage
Policy MappingRule Storage Policy Args
- filter String
- name String
- aggregations String
- bucket
Id String - drop Boolean
- drop
Timestamp Boolean - interval String
- mode String
- slug String
- storage
Policy MappingRule Storage Policy
- filter string
- name string
- aggregations string
- bucket
Id string - drop boolean
- drop
Timestamp boolean - interval string
- mode string
- slug string
- storage
Policy MappingRule Storage Policy
- filter str
- name str
- aggregations str
- bucket_
id str - drop bool
- drop_
timestamp bool - interval str
- mode str
- slug str
- storage_
policy MappingRule Storage Policy Args
- filter String
- name String
- aggregations String
- bucket
Id String - drop Boolean
- drop
Timestamp Boolean - interval String
- mode String
- slug String
- storage
Policy Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the MappingRule 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 MappingRule Resource
Get an existing MappingRule 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?: MappingRuleState, opts?: CustomResourceOptions): MappingRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aggregations: Optional[str] = None,
bucket_id: Optional[str] = None,
drop: Optional[bool] = None,
drop_timestamp: Optional[bool] = None,
filter: Optional[str] = None,
interval: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
slug: Optional[str] = None,
storage_policy: Optional[MappingRuleStoragePolicyArgs] = None) -> MappingRule
func GetMappingRule(ctx *Context, name string, id IDInput, state *MappingRuleState, opts ...ResourceOption) (*MappingRule, error)
public static MappingRule Get(string name, Input<string> id, MappingRuleState? state, CustomResourceOptions? opts = null)
public static MappingRule get(String name, Output<String> id, MappingRuleState 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.
- Aggregations string
- Bucket
Id string - Drop bool
- Drop
Timestamp bool - Filter string
- Interval string
- Mode string
- Name string
- Slug string
- Storage
Policy Chronosphere.Pulumi. Inputs. Mapping Rule Storage Policy
- Aggregations string
- Bucket
Id string - Drop bool
- Drop
Timestamp bool - Filter string
- Interval string
- Mode string
- Name string
- Slug string
- Storage
Policy MappingRule Storage Policy Args
- aggregations String
- bucket
Id String - drop Boolean
- drop
Timestamp Boolean - filter String
- interval String
- mode String
- name String
- slug String
- storage
Policy MappingRule Storage Policy
- aggregations string
- bucket
Id string - drop boolean
- drop
Timestamp boolean - filter string
- interval string
- mode string
- name string
- slug string
- storage
Policy MappingRule Storage Policy
- aggregations str
- bucket_
id str - drop bool
- drop_
timestamp bool - filter str
- interval str
- mode str
- name str
- slug str
- storage_
policy MappingRule Storage Policy Args
- aggregations String
- bucket
Id String - drop Boolean
- drop
Timestamp Boolean - filter String
- interval String
- mode String
- name String
- slug String
- storage
Policy Property Map
Supporting Types
MappingRuleStoragePolicy, MappingRuleStoragePolicyArgs
- Resolution string
- Retention string
- Resolution string
- Retention string
- resolution String
- retention String
- resolution string
- retention string
- resolution str
- retention str
- resolution String
- retention String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.