1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getSensitiveDataScannerStandardPattern
Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.3.0
published on Friday, May 22, 2026 by Pulumi

    Use this data source to retrieve information about an existing sensitive data scanner standard pattern. You can look up a pattern by its stable standard pattern ID or by name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const awsAccessKeyById = datadog.getSensitiveDataScannerStandardPattern({
        standardPatternId: "OfGqX8R9TRqAcorxenl2fQ",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    aws_access_key_by_id = datadog.get_sensitive_data_scanner_standard_pattern(standard_pattern_id="OfGqX8R9TRqAcorxenl2fQ")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.GetSensitiveDataScannerStandardPattern(ctx, &datadog.GetSensitiveDataScannerStandardPatternArgs{
    			StandardPatternId: pulumi.StringRef("OfGqX8R9TRqAcorxenl2fQ"),
    		}, 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 awsAccessKeyById = Datadog.GetSensitiveDataScannerStandardPattern.Invoke(new()
        {
            StandardPatternId = "OfGqX8R9TRqAcorxenl2fQ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.DatadogFunctions;
    import com.pulumi.datadog.inputs.GetSensitiveDataScannerStandardPatternArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 awsAccessKeyById = DatadogFunctions.getSensitiveDataScannerStandardPattern(GetSensitiveDataScannerStandardPatternArgs.builder()
                .standardPatternId("OfGqX8R9TRqAcorxenl2fQ")
                .build());
    
        }
    }
    
    variables:
      awsAccessKeyById:
        fn::invoke:
          function: datadog:getSensitiveDataScannerStandardPattern
          arguments:
            standardPatternId: OfGqX8R9TRqAcorxenl2fQ
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getsensitivedatascannerstandardpattern" "awsAccessKeyById" {
      standard_pattern_id = "OfGqX8R9TRqAcorxenl2fQ"
    }
    

    Using getSensitiveDataScannerStandardPattern

    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 getSensitiveDataScannerStandardPattern(args: GetSensitiveDataScannerStandardPatternArgs, opts?: InvokeOptions): Promise<GetSensitiveDataScannerStandardPatternResult>
    function getSensitiveDataScannerStandardPatternOutput(args: GetSensitiveDataScannerStandardPatternOutputArgs, opts?: InvokeOptions): Output<GetSensitiveDataScannerStandardPatternResult>
    def get_sensitive_data_scanner_standard_pattern(filter: Optional[str] = None,
                                                    standard_pattern_id: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetSensitiveDataScannerStandardPatternResult
    def get_sensitive_data_scanner_standard_pattern_output(filter: pulumi.Input[Optional[str]] = None,
                                                    standard_pattern_id: pulumi.Input[Optional[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetSensitiveDataScannerStandardPatternResult]
    func GetSensitiveDataScannerStandardPattern(ctx *Context, args *GetSensitiveDataScannerStandardPatternArgs, opts ...InvokeOption) (*GetSensitiveDataScannerStandardPatternResult, error)
    func GetSensitiveDataScannerStandardPatternOutput(ctx *Context, args *GetSensitiveDataScannerStandardPatternOutputArgs, opts ...InvokeOption) GetSensitiveDataScannerStandardPatternResultOutput

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

    public static class GetSensitiveDataScannerStandardPattern 
    {
        public static Task<GetSensitiveDataScannerStandardPatternResult> InvokeAsync(GetSensitiveDataScannerStandardPatternArgs args, InvokeOptions? opts = null)
        public static Output<GetSensitiveDataScannerStandardPatternResult> Invoke(GetSensitiveDataScannerStandardPatternInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSensitiveDataScannerStandardPatternResult> getSensitiveDataScannerStandardPattern(GetSensitiveDataScannerStandardPatternArgs args, InvokeOptions options)
    public static Output<GetSensitiveDataScannerStandardPatternResult> getSensitiveDataScannerStandardPattern(GetSensitiveDataScannerStandardPatternArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern
      arguments:
        # arguments dictionary
    data "datadog_getsensitivedatascannerstandardpattern" "name" {
        # arguments
    }

    The following arguments are supported:

    Filter string
    Filter all the Datadog standard patterns by name.
    StandardPatternId string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    Filter string
    Filter all the Datadog standard patterns by name.
    StandardPatternId string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    filter string
    Filter all the Datadog standard patterns by name.
    standard_pattern_id string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    filter String
    Filter all the Datadog standard patterns by name.
    standardPatternId String
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    filter string
    Filter all the Datadog standard patterns by name.
    standardPatternId string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    filter str
    Filter all the Datadog standard patterns by name.
    standard_pattern_id str
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    filter String
    Filter all the Datadog standard patterns by name.
    standardPatternId String
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.

    getSensitiveDataScannerStandardPattern Result

    The following output properties are available:

    Description string
    Description of the standard pattern.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludedKeywords List<string>
    List of recommended keywords to improve rule accuracy.
    Name string
    Name of the standard pattern.
    Pattern string
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    Tags List<string>
    List of tags.
    Filter string
    Filter all the Datadog standard patterns by name.
    StandardPatternId string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    Description string
    Description of the standard pattern.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludedKeywords []string
    List of recommended keywords to improve rule accuracy.
    Name string
    Name of the standard pattern.
    Pattern string
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    Tags []string
    List of tags.
    Filter string
    Filter all the Datadog standard patterns by name.
    StandardPatternId string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    description string
    Description of the standard pattern.
    id string
    The provider-assigned unique ID for this managed resource.
    included_keywords list(string)
    List of recommended keywords to improve rule accuracy.
    name string
    Name of the standard pattern.
    pattern string
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    tags list(string)
    List of tags.
    filter string
    Filter all the Datadog standard patterns by name.
    standard_pattern_id string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    description String
    Description of the standard pattern.
    id String
    The provider-assigned unique ID for this managed resource.
    includedKeywords List<String>
    List of recommended keywords to improve rule accuracy.
    name String
    Name of the standard pattern.
    pattern String
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    tags List<String>
    List of tags.
    filter String
    Filter all the Datadog standard patterns by name.
    standardPatternId String
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    description string
    Description of the standard pattern.
    id string
    The provider-assigned unique ID for this managed resource.
    includedKeywords string[]
    List of recommended keywords to improve rule accuracy.
    name string
    Name of the standard pattern.
    pattern string
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    tags string[]
    List of tags.
    filter string
    Filter all the Datadog standard patterns by name.
    standardPatternId string
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    description str
    Description of the standard pattern.
    id str
    The provider-assigned unique ID for this managed resource.
    included_keywords Sequence[str]
    List of recommended keywords to improve rule accuracy.
    name str
    Name of the standard pattern.
    pattern str
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    tags Sequence[str]
    List of tags.
    filter str
    Filter all the Datadog standard patterns by name.
    standard_pattern_id str
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.
    description String
    Description of the standard pattern.
    id String
    The provider-assigned unique ID for this managed resource.
    includedKeywords List<String>
    List of recommended keywords to improve rule accuracy.
    name String
    Name of the standard pattern.
    pattern String
    Regex to match, optionally documented for older standard rules. Deprecated. Refer to the description field to understand what the rule does.

    Deprecated: Refer to the description field to understand what the rule does.

    tags List<String>
    List of tags.
    filter String
    Filter all the Datadog standard patterns by name.
    standardPatternId String
    Stable ID of the Datadog standard pattern to retrieve. This can be set directly to avoid Terraform configs breaking when Datadog renames a standard pattern.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.3.0
    published on Friday, May 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial