Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi
datadog.getMonitorConfigPolicies
Explore with Pulumi AI
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.
- Monitor
Config List<GetPolicies Monitor Config Policies Monitor Config Policy> - List of monitor config policies
- Id string
- The provider-assigned unique ID for this managed resource.
- Monitor
Config []GetPolicies Monitor Config Policies Monitor Config Policy - List of monitor config policies
- id String
- The provider-assigned unique ID for this managed resource.
- monitor
Config List<GetPolicies Monitor Config Policies Monitor Config Policy> - List of monitor config policies
- id string
- The provider-assigned unique ID for this managed resource.
- monitor
Config GetPolicies Monitor Config Policies Monitor Config Policy[] - List of monitor config policies
- id str
- The provider-assigned unique ID for this managed resource.
- monitor_
config_ Sequence[Getpolicies Monitor Config Policies Monitor Config Policy] - List of monitor config policies
- id String
- The provider-assigned unique ID for this managed resource.
- monitor
Config List<Property Map>Policies - List of monitor config policies
Supporting Types
GetMonitorConfigPoliciesMonitorConfigPolicy
- Id string
- ID of the monitor config policy
- Policy
Type string - The monitor config policy type
- Tag
Policy GetMonitor Config Policies Monitor Config Policy Tag Policy - Config for a tag policy. Only set if
policy_type
istag
.
- Id string
- ID of the monitor config policy
- Policy
Type string - The monitor config policy type
- Tag
Policy GetMonitor Config Policies Monitor Config Policy Tag Policy - Config for a tag policy. Only set if
policy_type
istag
.
- id String
- ID of the monitor config policy
- policy
Type String - The monitor config policy type
- tag
Policy GetMonitor Config Policies Monitor Config Policy Tag Policy - Config for a tag policy. Only set if
policy_type
istag
.
- id string
- ID of the monitor config policy
- policy
Type string - The monitor config policy type
- tag
Policy GetMonitor Config Policies Monitor Config Policy Tag Policy - Config for a tag policy. Only set if
policy_type
istag
.
- id str
- ID of the monitor config policy
- policy_
type str - The monitor config policy type
- tag_
policy GetMonitor Config Policies Monitor Config Policy Tag Policy - Config for a tag policy. Only set if
policy_type
istag
.
- id String
- ID of the monitor config policy
- policy
Type String - The monitor config policy type
- tag
Policy Property Map - Config for a tag policy. Only set if
policy_type
istag
.
GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy
- Tag
Key string - The key of the tag
- Tag
Key boolRequired - If a tag key is required for monitor creation
- Valid
Tag List<string>Values - Valid values for the tag
- Tag
Key string - The key of the tag
- Tag
Key boolRequired - If a tag key is required for monitor creation
- Valid
Tag []stringValues - Valid values for the tag
- tag
Key String - The key of the tag
- tag
Key BooleanRequired - If a tag key is required for monitor creation
- valid
Tag List<String>Values - Valid values for the tag
- tag
Key string - The key of the tag
- tag
Key booleanRequired - If a tag key is required for monitor creation
- valid
Tag string[]Values - Valid values for the tag
- tag_
key str - The key of the tag
- tag_
key_ boolrequired - If a tag key is required for monitor creation
- valid_
tag_ Sequence[str]values - Valid values for the tag
- tag
Key String - The key of the tag
- tag
Key BooleanRequired - If a tag key is required for monitor creation
- valid
Tag List<String>Values - 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.