1. Packages
  2. Datadog Provider
  3. API Docs
  4. aws
  5. getIntegrationNamespaceRules
Datadog v4.33.2 published on Tuesday, Sep 24, 2024 by Pulumi

datadog.aws.getIntegrationNamespaceRules

Explore with Pulumi AI

datadog logo
Datadog v4.33.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Provides a Datadog AWS Integration Namespace Rules data source. This can be used to retrieve all available namespace rules for a Datadog-AWS integration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const rules = datadog.aws.getIntegrationNamespaceRules({});
    
    import pulumi
    import pulumi_datadog as datadog
    
    rules = datadog.aws.get_integration_namespace_rules()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/aws"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aws.GetIntegrationNamespaceRules(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 rules = Datadog.Aws.GetIntegrationNamespaceRules.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.aws.AwsFunctions;
    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 rules = AwsFunctions.getIntegrationNamespaceRules();
    
        }
    }
    
    variables:
      rules:
        fn::invoke:
          Function: datadog:aws:getIntegrationNamespaceRules
          Arguments: {}
    

    Using getIntegrationNamespaceRules

    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 getIntegrationNamespaceRules(opts?: InvokeOptions): Promise<GetIntegrationNamespaceRulesResult>
    function getIntegrationNamespaceRulesOutput(opts?: InvokeOptions): Output<GetIntegrationNamespaceRulesResult>
    def get_integration_namespace_rules(opts: Optional[InvokeOptions] = None) -> GetIntegrationNamespaceRulesResult
    def get_integration_namespace_rules_output(opts: Optional[InvokeOptions] = None) -> Output[GetIntegrationNamespaceRulesResult]
    func GetIntegrationNamespaceRules(ctx *Context, opts ...InvokeOption) (*GetIntegrationNamespaceRulesResult, error)
    func GetIntegrationNamespaceRulesOutput(ctx *Context, opts ...InvokeOption) GetIntegrationNamespaceRulesResultOutput

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

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

    getIntegrationNamespaceRules Result

    The following output properties are available:

    Id string
    The ID of this resource.
    NamespaceRules List<string>
    The list of available namespace rules for a Datadog-AWS integration.
    Id string
    The ID of this resource.
    NamespaceRules []string
    The list of available namespace rules for a Datadog-AWS integration.
    id String
    The ID of this resource.
    namespaceRules List<String>
    The list of available namespace rules for a Datadog-AWS integration.
    id string
    The ID of this resource.
    namespaceRules string[]
    The list of available namespace rules for a Datadog-AWS integration.
    id str
    The ID of this resource.
    namespace_rules Sequence[str]
    The list of available namespace rules for a Datadog-AWS integration.
    id String
    The ID of this resource.
    namespaceRules List<String>
    The list of available namespace rules for a Datadog-AWS integration.

    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.33.2 published on Tuesday, Sep 24, 2024 by Pulumi