1. Packages
  2. Chronosphere
  3. API Docs
  4. MappingRule
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.MappingRule

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

    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
    BucketId string
    Drop bool
    DropTimestamp bool

    Deprecated: drop timestamp is no longer supported

    Interval string
    Mode string
    Slug string
    StoragePolicy Chronosphere.Pulumi.Inputs.MappingRuleStoragePolicy

    Deprecated: use interval instead

    Filter string
    Name string
    Aggregations string
    BucketId string
    Drop bool
    DropTimestamp bool

    Deprecated: drop timestamp is no longer supported

    Interval string
    Mode string
    Slug string
    StoragePolicy MappingRuleStoragePolicyArgs

    Deprecated: use interval instead

    filter String
    name String
    aggregations String
    bucketId String
    drop Boolean
    dropTimestamp Boolean

    Deprecated: drop timestamp is no longer supported

    interval String
    mode String
    slug String
    storagePolicy MappingRuleStoragePolicy

    Deprecated: use interval instead

    filter string
    name string
    aggregations string
    bucketId string
    drop boolean
    dropTimestamp boolean

    Deprecated: drop timestamp is no longer supported

    interval string
    mode string
    slug string
    storagePolicy MappingRuleStoragePolicy

    Deprecated: use interval instead

    filter str
    name str
    aggregations str
    bucket_id str
    drop bool
    drop_timestamp bool

    Deprecated: drop timestamp is no longer supported

    interval str
    mode str
    slug str
    storage_policy MappingRuleStoragePolicyArgs

    Deprecated: use interval instead

    filter String
    name String
    aggregations String
    bucketId String
    drop Boolean
    dropTimestamp Boolean

    Deprecated: drop timestamp is no longer supported

    interval String
    mode String
    slug String
    storagePolicy Property Map

    Deprecated: use interval instead

    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.
    The following state arguments are supported:
    Aggregations string
    BucketId string
    Drop bool
    DropTimestamp bool

    Deprecated: drop timestamp is no longer supported

    Filter string
    Interval string
    Mode string
    Name string
    Slug string
    StoragePolicy Chronosphere.Pulumi.Inputs.MappingRuleStoragePolicy

    Deprecated: use interval instead

    Aggregations string
    BucketId string
    Drop bool
    DropTimestamp bool

    Deprecated: drop timestamp is no longer supported

    Filter string
    Interval string
    Mode string
    Name string
    Slug string
    StoragePolicy MappingRuleStoragePolicyArgs

    Deprecated: use interval instead

    aggregations String
    bucketId String
    drop Boolean
    dropTimestamp Boolean

    Deprecated: drop timestamp is no longer supported

    filter String
    interval String
    mode String
    name String
    slug String
    storagePolicy MappingRuleStoragePolicy

    Deprecated: use interval instead

    aggregations string
    bucketId string
    drop boolean
    dropTimestamp boolean

    Deprecated: drop timestamp is no longer supported

    filter string
    interval string
    mode string
    name string
    slug string
    storagePolicy MappingRuleStoragePolicy

    Deprecated: use interval instead

    aggregations str
    bucket_id str
    drop bool
    drop_timestamp bool

    Deprecated: drop timestamp is no longer supported

    filter str
    interval str
    mode str
    name str
    slug str
    storage_policy MappingRuleStoragePolicyArgs

    Deprecated: use interval instead

    aggregations String
    bucketId String
    drop Boolean
    dropTimestamp Boolean

    Deprecated: drop timestamp is no longer supported

    filter String
    interval String
    mode String
    name String
    slug String
    storagePolicy Property Map

    Deprecated: use interval instead

    Supporting Types

    MappingRuleStoragePolicy, MappingRuleStoragePolicyArgs

    Resolution string
    Retention string
    Resolution string
    Retention string
    resolution String
    retention String
    resolution string
    retention string
    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.
    chronosphere logo
    Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere