1. Packages
  2. Datadog
  3. API Docs
  4. getMonitorConfigPolicies
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

datadog.getMonitorConfigPolicies

Explore with Pulumi AI

datadog logo
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

    Use this data source to list existing monitor config policies for use in other resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const test = datadog.getMonitorConfigPolicies({});
    
    import pulumi
    import pulumi_datadog as datadog
    
    test = datadog.get_monitor_config_policies()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.GetMonitorConfigPolicies(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Datadog.GetMonitorConfigPolicies.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = DatadogFunctions.getMonitorConfigPolicies();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: datadog:getMonitorConfigPolicies
          Arguments: {}
    

    Using getMonitorConfigPolicies

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMonitorConfigPolicies(opts?: InvokeOptions): Promise<GetMonitorConfigPoliciesResult>
    function getMonitorConfigPoliciesOutput(opts?: InvokeOptions): Output<GetMonitorConfigPoliciesResult>
    def get_monitor_config_policies(opts: Optional[InvokeOptions] = None) -> GetMonitorConfigPoliciesResult
    def get_monitor_config_policies_output(opts: Optional[InvokeOptions] = None) -> Output[GetMonitorConfigPoliciesResult]
    func GetMonitorConfigPolicies(ctx *Context, opts ...InvokeOption) (*GetMonitorConfigPoliciesResult, error)
    func GetMonitorConfigPoliciesOutput(ctx *Context, opts ...InvokeOption) GetMonitorConfigPoliciesResultOutput

    > Note: This function is named GetMonitorConfigPolicies in the Go SDK.

    public static class GetMonitorConfigPolicies 
    {
        public static Task<GetMonitorConfigPoliciesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetMonitorConfigPoliciesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorConfigPoliciesResult> getMonitorConfigPolicies(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies
      arguments:
        # arguments dictionary

    getMonitorConfigPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MonitorConfigPolicies List<GetMonitorConfigPoliciesMonitorConfigPolicy>
    List of monitor config policies
    Id string
    The provider-assigned unique ID for this managed resource.
    MonitorConfigPolicies []GetMonitorConfigPoliciesMonitorConfigPolicy
    List of monitor config policies
    id String
    The provider-assigned unique ID for this managed resource.
    monitorConfigPolicies List<GetMonitorConfigPoliciesMonitorConfigPolicy>
    List of monitor config policies
    id string
    The provider-assigned unique ID for this managed resource.
    monitorConfigPolicies GetMonitorConfigPoliciesMonitorConfigPolicy[]
    List of monitor config policies
    id str
    The provider-assigned unique ID for this managed resource.
    monitor_config_policies Sequence[GetMonitorConfigPoliciesMonitorConfigPolicy]
    List of monitor config policies
    id String
    The provider-assigned unique ID for this managed resource.
    monitorConfigPolicies List<Property Map>
    List of monitor config policies

    Supporting Types

    GetMonitorConfigPoliciesMonitorConfigPolicy

    Id string
    ID of the monitor config policy
    PolicyType string
    The monitor config policy type
    TagPolicy GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy
    Config for a tag policy. Only set if policy_type is tag.
    Id string
    ID of the monitor config policy
    PolicyType string
    The monitor config policy type
    TagPolicy GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy
    Config for a tag policy. Only set if policy_type is tag.
    id String
    ID of the monitor config policy
    policyType String
    The monitor config policy type
    tagPolicy GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy
    Config for a tag policy. Only set if policy_type is tag.
    id string
    ID of the monitor config policy
    policyType string
    The monitor config policy type
    tagPolicy GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy
    Config for a tag policy. Only set if policy_type is tag.
    id str
    ID of the monitor config policy
    policy_type str
    The monitor config policy type
    tag_policy GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy
    Config for a tag policy. Only set if policy_type is tag.
    id String
    ID of the monitor config policy
    policyType String
    The monitor config policy type
    tagPolicy Property Map
    Config for a tag policy. Only set if policy_type is tag.

    GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy

    TagKey string
    The key of the tag
    TagKeyRequired bool
    If a tag key is required for monitor creation
    ValidTagValues List<string>
    Valid values for the tag
    TagKey string
    The key of the tag
    TagKeyRequired bool
    If a tag key is required for monitor creation
    ValidTagValues []string
    Valid values for the tag
    tagKey String
    The key of the tag
    tagKeyRequired Boolean
    If a tag key is required for monitor creation
    validTagValues List<String>
    Valid values for the tag
    tagKey string
    The key of the tag
    tagKeyRequired boolean
    If a tag key is required for monitor creation
    validTagValues string[]
    Valid values for the tag
    tag_key str
    The key of the tag
    tag_key_required bool
    If a tag key is required for monitor creation
    valid_tag_values Sequence[str]
    Valid values for the tag
    tagKey String
    The key of the tag
    tagKeyRequired Boolean
    If a tag key is required for monitor creation
    validTagValues List<String>
    Valid values for the tag

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi