1. Packages
  2. AWS
  3. API Docs
  4. workspacesweb
  5. DataProtectionSettings
AWS v6.83.0 published on Monday, Jun 16, 2025 by Pulumi

aws.workspacesweb.DataProtectionSettings

Explore with Pulumi AI

aws logo
AWS v6.83.0 published on Monday, Jun 16, 2025 by Pulumi

    Resource for managing an AWS WorkSpaces Web Data Protection Settings resource. Once associated with a web portal, data protection settings control how sensitive information is redacted in streaming sessions.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.workspacesweb.DataProtectionSettings("example", {displayName: "example"});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.workspacesweb.DataProtectionSettings("example", display_name="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/workspacesweb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := workspacesweb.NewDataProtectionSettings(ctx, "example", &workspacesweb.DataProtectionSettingsArgs{
    			DisplayName: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.WorkSpacesWeb.DataProtectionSettings("example", new()
        {
            DisplayName = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.workspacesweb.DataProtectionSettings;
    import com.pulumi.aws.workspacesweb.DataProtectionSettingsArgs;
    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) {
            var example = new DataProtectionSettings("example", DataProtectionSettingsArgs.builder()
                .displayName("example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:workspacesweb:DataProtectionSettings
        properties:
          displayName: example
    

    With Inline Redaction Configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.workspacesweb.DataProtectionSettings("example", {
        displayName: "example",
        description: "Example data protection settings",
        inlineRedactionConfiguration: {
            globalConfidenceLevel: 2,
            globalEnforcedUrls: ["https://example.com"],
            inlineRedactionPatterns: [{
                builtInPatternId: "ssn",
                confidenceLevel: 3,
                redactionPlaceHolders: [{
                    redactionPlaceHolderType: "CustomText",
                    redactionPlaceHolderText: "REDACTED",
                }],
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.workspacesweb.DataProtectionSettings("example",
        display_name="example",
        description="Example data protection settings",
        inline_redaction_configuration={
            "global_confidence_level": 2,
            "global_enforced_urls": ["https://example.com"],
            "inline_redaction_patterns": [{
                "built_in_pattern_id": "ssn",
                "confidence_level": 3,
                "redaction_place_holders": [{
                    "redaction_place_holder_type": "CustomText",
                    "redaction_place_holder_text": "REDACTED",
                }],
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/workspacesweb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := workspacesweb.NewDataProtectionSettings(ctx, "example", &workspacesweb.DataProtectionSettingsArgs{
    			DisplayName: pulumi.String("example"),
    			Description: pulumi.String("Example data protection settings"),
    			InlineRedactionConfiguration: &workspacesweb.DataProtectionSettingsInlineRedactionConfigurationArgs{
    				GlobalConfidenceLevel: pulumi.Int(2),
    				GlobalEnforcedUrls: pulumi.StringArray{
    					pulumi.String("https://example.com"),
    				},
    				InlineRedactionPatterns: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArray{
    					&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs{
    						BuiltInPatternId: pulumi.String("ssn"),
    						ConfidenceLevel:  pulumi.Int(3),
    						RedactionPlaceHolders: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArray{
    							&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs{
    								RedactionPlaceHolderType: pulumi.String("CustomText"),
    								RedactionPlaceHolderText: pulumi.String("REDACTED"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.WorkSpacesWeb.DataProtectionSettings("example", new()
        {
            DisplayName = "example",
            Description = "Example data protection settings",
            InlineRedactionConfiguration = new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationArgs
            {
                GlobalConfidenceLevel = 2,
                GlobalEnforcedUrls = new[]
                {
                    "https://example.com",
                },
                InlineRedactionPatterns = new[]
                {
                    new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs
                    {
                        BuiltInPatternId = "ssn",
                        ConfidenceLevel = 3,
                        RedactionPlaceHolders = new[]
                        {
                            new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs
                            {
                                RedactionPlaceHolderType = "CustomText",
                                RedactionPlaceHolderText = "REDACTED",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.workspacesweb.DataProtectionSettings;
    import com.pulumi.aws.workspacesweb.DataProtectionSettingsArgs;
    import com.pulumi.aws.workspacesweb.inputs.DataProtectionSettingsInlineRedactionConfigurationArgs;
    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) {
            var example = new DataProtectionSettings("example", DataProtectionSettingsArgs.builder()
                .displayName("example")
                .description("Example data protection settings")
                .inlineRedactionConfiguration(DataProtectionSettingsInlineRedactionConfigurationArgs.builder()
                    .globalConfidenceLevel(2)
                    .globalEnforcedUrls("https://example.com")
                    .inlineRedactionPatterns(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs.builder()
                        .builtInPatternId("ssn")
                        .confidenceLevel(3)
                        .redactionPlaceHolders(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs.builder()
                            .redactionPlaceHolderType("CustomText")
                            .redactionPlaceHolderText("REDACTED")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:workspacesweb:DataProtectionSettings
        properties:
          displayName: example
          description: Example data protection settings
          inlineRedactionConfiguration:
            globalConfidenceLevel: 2
            globalEnforcedUrls:
              - https://example.com
            inlineRedactionPatterns:
              - builtInPatternId: ssn
                confidenceLevel: 3
                redactionPlaceHolders:
                  - redactionPlaceHolderType: CustomText
                    redactionPlaceHolderText: REDACTED
    

    Complete Example

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.kms.Key("example", {
        description: "KMS key for WorkSpaces Web Data Protection Settings",
        deletionWindowInDays: 7,
    });
    const exampleDataProtectionSettings = new aws.workspacesweb.DataProtectionSettings("example", {
        displayName: "example-complete",
        description: "Complete example data protection settings",
        customerManagedKey: example.arn,
        additionalEncryptionContext: {
            Environment: "Production",
        },
        inlineRedactionConfiguration: {
            globalConfidenceLevel: 2,
            globalEnforcedUrls: [
                "https://example.com",
                "https://test.example.com",
            ],
            globalExemptUrls: ["https://exempt.example.com"],
            inlineRedactionPatterns: [
                {
                    builtInPatternId: "ssn",
                    confidenceLevel: 3,
                    enforcedUrls: ["https://pattern1.example.com"],
                    exemptUrls: ["https://exempt-pattern1.example.com"],
                    redactionPlaceHolders: [{
                        redactionPlaceHolderType: "CustomText",
                        redactionPlaceHolderText: "REDACTED-SSN",
                    }],
                },
                {
                    customPattern: {
                        patternName: "CustomPattern",
                        patternRegex: "/\\d{3}-\\d{2}-\\d{4}/g",
                        keywordRegex: "/SSN|Social Security/gi",
                        patternDescription: "Custom SSN pattern",
                    },
                    redactionPlaceHolders: [{
                        redactionPlaceHolderType: "CustomText",
                        redactionPlaceHolderText: "REDACTED-CUSTOM",
                    }],
                },
            ],
        },
        tags: {
            Name: "example-data-protection-settings",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.kms.Key("example",
        description="KMS key for WorkSpaces Web Data Protection Settings",
        deletion_window_in_days=7)
    example_data_protection_settings = aws.workspacesweb.DataProtectionSettings("example",
        display_name="example-complete",
        description="Complete example data protection settings",
        customer_managed_key=example.arn,
        additional_encryption_context={
            "Environment": "Production",
        },
        inline_redaction_configuration={
            "global_confidence_level": 2,
            "global_enforced_urls": [
                "https://example.com",
                "https://test.example.com",
            ],
            "global_exempt_urls": ["https://exempt.example.com"],
            "inline_redaction_patterns": [
                {
                    "built_in_pattern_id": "ssn",
                    "confidence_level": 3,
                    "enforced_urls": ["https://pattern1.example.com"],
                    "exempt_urls": ["https://exempt-pattern1.example.com"],
                    "redaction_place_holders": [{
                        "redaction_place_holder_type": "CustomText",
                        "redaction_place_holder_text": "REDACTED-SSN",
                    }],
                },
                {
                    "custom_pattern": {
                        "pattern_name": "CustomPattern",
                        "pattern_regex": "/\\d{3}-\\d{2}-\\d{4}/g",
                        "keyword_regex": "/SSN|Social Security/gi",
                        "pattern_description": "Custom SSN pattern",
                    },
                    "redaction_place_holders": [{
                        "redaction_place_holder_type": "CustomText",
                        "redaction_place_holder_text": "REDACTED-CUSTOM",
                    }],
                },
            ],
        },
        tags={
            "Name": "example-data-protection-settings",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/workspacesweb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := kms.NewKey(ctx, "example", &kms.KeyArgs{
    			Description:          pulumi.String("KMS key for WorkSpaces Web Data Protection Settings"),
    			DeletionWindowInDays: pulumi.Int(7),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = workspacesweb.NewDataProtectionSettings(ctx, "example", &workspacesweb.DataProtectionSettingsArgs{
    			DisplayName:        pulumi.String("example-complete"),
    			Description:        pulumi.String("Complete example data protection settings"),
    			CustomerManagedKey: example.Arn,
    			AdditionalEncryptionContext: pulumi.StringMap{
    				"Environment": pulumi.String("Production"),
    			},
    			InlineRedactionConfiguration: &workspacesweb.DataProtectionSettingsInlineRedactionConfigurationArgs{
    				GlobalConfidenceLevel: pulumi.Int(2),
    				GlobalEnforcedUrls: pulumi.StringArray{
    					pulumi.String("https://example.com"),
    					pulumi.String("https://test.example.com"),
    				},
    				GlobalExemptUrls: pulumi.StringArray{
    					pulumi.String("https://exempt.example.com"),
    				},
    				InlineRedactionPatterns: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArray{
    					&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs{
    						BuiltInPatternId: pulumi.String("ssn"),
    						ConfidenceLevel:  pulumi.Int(3),
    						EnforcedUrls: pulumi.StringArray{
    							pulumi.String("https://pattern1.example.com"),
    						},
    						ExemptUrls: pulumi.StringArray{
    							pulumi.String("https://exempt-pattern1.example.com"),
    						},
    						RedactionPlaceHolders: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArray{
    							&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs{
    								RedactionPlaceHolderType: pulumi.String("CustomText"),
    								RedactionPlaceHolderText: pulumi.String("REDACTED-SSN"),
    							},
    						},
    					},
    					&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs{
    						CustomPattern: &workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs{
    							PatternName:        pulumi.String("CustomPattern"),
    							PatternRegex:       pulumi.String("/\\d{3}-\\d{2}-\\d{4}/g"),
    							KeywordRegex:       pulumi.String("/SSN|Social Security/gi"),
    							PatternDescription: pulumi.String("Custom SSN pattern"),
    						},
    						RedactionPlaceHolders: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArray{
    							&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs{
    								RedactionPlaceHolderType: pulumi.String("CustomText"),
    								RedactionPlaceHolderText: pulumi.String("REDACTED-CUSTOM"),
    							},
    						},
    					},
    				},
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example-data-protection-settings"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Kms.Key("example", new()
        {
            Description = "KMS key for WorkSpaces Web Data Protection Settings",
            DeletionWindowInDays = 7,
        });
    
        var exampleDataProtectionSettings = new Aws.WorkSpacesWeb.DataProtectionSettings("example", new()
        {
            DisplayName = "example-complete",
            Description = "Complete example data protection settings",
            CustomerManagedKey = example.Arn,
            AdditionalEncryptionContext = 
            {
                { "Environment", "Production" },
            },
            InlineRedactionConfiguration = new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationArgs
            {
                GlobalConfidenceLevel = 2,
                GlobalEnforcedUrls = new[]
                {
                    "https://example.com",
                    "https://test.example.com",
                },
                GlobalExemptUrls = new[]
                {
                    "https://exempt.example.com",
                },
                InlineRedactionPatterns = new[]
                {
                    new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs
                    {
                        BuiltInPatternId = "ssn",
                        ConfidenceLevel = 3,
                        EnforcedUrls = new[]
                        {
                            "https://pattern1.example.com",
                        },
                        ExemptUrls = new[]
                        {
                            "https://exempt-pattern1.example.com",
                        },
                        RedactionPlaceHolders = new[]
                        {
                            new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs
                            {
                                RedactionPlaceHolderType = "CustomText",
                                RedactionPlaceHolderText = "REDACTED-SSN",
                            },
                        },
                    },
                    new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs
                    {
                        CustomPattern = new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs
                        {
                            PatternName = "CustomPattern",
                            PatternRegex = "/\\d{3}-\\d{2}-\\d{4}/g",
                            KeywordRegex = "/SSN|Social Security/gi",
                            PatternDescription = "Custom SSN pattern",
                        },
                        RedactionPlaceHolders = new[]
                        {
                            new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs
                            {
                                RedactionPlaceHolderType = "CustomText",
                                RedactionPlaceHolderText = "REDACTED-CUSTOM",
                            },
                        },
                    },
                },
            },
            Tags = 
            {
                { "Name", "example-data-protection-settings" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.kms.Key;
    import com.pulumi.aws.kms.KeyArgs;
    import com.pulumi.aws.workspacesweb.DataProtectionSettings;
    import com.pulumi.aws.workspacesweb.DataProtectionSettingsArgs;
    import com.pulumi.aws.workspacesweb.inputs.DataProtectionSettingsInlineRedactionConfigurationArgs;
    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) {
            var example = new Key("example", KeyArgs.builder()
                .description("KMS key for WorkSpaces Web Data Protection Settings")
                .deletionWindowInDays(7)
                .build());
    
            var exampleDataProtectionSettings = new DataProtectionSettings("exampleDataProtectionSettings", DataProtectionSettingsArgs.builder()
                .displayName("example-complete")
                .description("Complete example data protection settings")
                .customerManagedKey(example.arn())
                .additionalEncryptionContext(Map.of("Environment", "Production"))
                .inlineRedactionConfiguration(DataProtectionSettingsInlineRedactionConfigurationArgs.builder()
                    .globalConfidenceLevel(2)
                    .globalEnforcedUrls(                
                        "https://example.com",
                        "https://test.example.com")
                    .globalExemptUrls("https://exempt.example.com")
                    .inlineRedactionPatterns(                
                        DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs.builder()
                            .builtInPatternId("ssn")
                            .confidenceLevel(3)
                            .enforcedUrls("https://pattern1.example.com")
                            .exemptUrls("https://exempt-pattern1.example.com")
                            .redactionPlaceHolders(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs.builder()
                                .redactionPlaceHolderType("CustomText")
                                .redactionPlaceHolderText("REDACTED-SSN")
                                .build())
                            .build(),
                        DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs.builder()
                            .customPattern(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs.builder()
                                .patternName("CustomPattern")
                                .patternRegex("/\\d{3}-\\d{2}-\\d{4}/g")
                                .keywordRegex("/SSN|Social Security/gi")
                                .patternDescription("Custom SSN pattern")
                                .build())
                            .redactionPlaceHolders(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs.builder()
                                .redactionPlaceHolderType("CustomText")
                                .redactionPlaceHolderText("REDACTED-CUSTOM")
                                .build())
                            .build())
                    .build())
                .tags(Map.of("Name", "example-data-protection-settings"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:kms:Key
        properties:
          description: KMS key for WorkSpaces Web Data Protection Settings
          deletionWindowInDays: 7
      exampleDataProtectionSettings:
        type: aws:workspacesweb:DataProtectionSettings
        name: example
        properties:
          displayName: example-complete
          description: Complete example data protection settings
          customerManagedKey: ${example.arn}
          additionalEncryptionContext:
            Environment: Production
          inlineRedactionConfiguration:
            globalConfidenceLevel: 2
            globalEnforcedUrls:
              - https://example.com
              - https://test.example.com
            globalExemptUrls:
              - https://exempt.example.com
            inlineRedactionPatterns:
              - builtInPatternId: ssn
                confidenceLevel: 3
                enforcedUrls:
                  - https://pattern1.example.com
                exemptUrls:
                  - https://exempt-pattern1.example.com
                redactionPlaceHolders:
                  - redactionPlaceHolderType: CustomText
                    redactionPlaceHolderText: REDACTED-SSN
              - customPattern:
                  patternName: CustomPattern
                  patternRegex: /\d{3}-\d{2}-\d{4}/g
                  keywordRegex: /SSN|Social Security/gi
                  patternDescription: Custom SSN pattern
                redactionPlaceHolders:
                  - redactionPlaceHolderType: CustomText
                    redactionPlaceHolderText: REDACTED-CUSTOM
          tags:
            Name: example-data-protection-settings
    

    Create DataProtectionSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DataProtectionSettings(name: string, args: DataProtectionSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def DataProtectionSettings(resource_name: str,
                               args: DataProtectionSettingsArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataProtectionSettings(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               display_name: Optional[str] = None,
                               additional_encryption_context: Optional[Mapping[str, str]] = None,
                               customer_managed_key: Optional[str] = None,
                               description: Optional[str] = None,
                               inline_redaction_configuration: Optional[DataProtectionSettingsInlineRedactionConfigurationArgs] = None,
                               tags: Optional[Mapping[str, str]] = None)
    func NewDataProtectionSettings(ctx *Context, name string, args DataProtectionSettingsArgs, opts ...ResourceOption) (*DataProtectionSettings, error)
    public DataProtectionSettings(string name, DataProtectionSettingsArgs args, CustomResourceOptions? opts = null)
    public DataProtectionSettings(String name, DataProtectionSettingsArgs args)
    public DataProtectionSettings(String name, DataProtectionSettingsArgs args, CustomResourceOptions options)
    
    type: aws:workspacesweb:DataProtectionSettings
    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 DataProtectionSettingsArgs
    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 DataProtectionSettingsArgs
    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 DataProtectionSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataProtectionSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataProtectionSettingsArgs
    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 dataProtectionSettingsResource = new Aws.WorkSpacesWeb.DataProtectionSettings("dataProtectionSettingsResource", new()
    {
        DisplayName = "string",
        AdditionalEncryptionContext = 
        {
            { "string", "string" },
        },
        CustomerManagedKey = "string",
        Description = "string",
        InlineRedactionConfiguration = new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationArgs
        {
            GlobalConfidenceLevel = 0,
            GlobalEnforcedUrls = new[]
            {
                "string",
            },
            GlobalExemptUrls = new[]
            {
                "string",
            },
            InlineRedactionPatterns = new[]
            {
                new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs
                {
                    BuiltInPatternId = "string",
                    ConfidenceLevel = 0,
                    CustomPattern = new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs
                    {
                        PatternName = "string",
                        PatternRegex = "string",
                        KeywordRegex = "string",
                        PatternDescription = "string",
                    },
                    EnforcedUrls = new[]
                    {
                        "string",
                    },
                    ExemptUrls = new[]
                    {
                        "string",
                    },
                    RedactionPlaceHolders = new[]
                    {
                        new Aws.WorkSpacesWeb.Inputs.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs
                        {
                            RedactionPlaceHolderType = "string",
                            RedactionPlaceHolderText = "string",
                        },
                    },
                },
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := workspacesweb.NewDataProtectionSettings(ctx, "dataProtectionSettingsResource", &workspacesweb.DataProtectionSettingsArgs{
    	DisplayName: pulumi.String("string"),
    	AdditionalEncryptionContext: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CustomerManagedKey: pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	InlineRedactionConfiguration: &workspacesweb.DataProtectionSettingsInlineRedactionConfigurationArgs{
    		GlobalConfidenceLevel: pulumi.Int(0),
    		GlobalEnforcedUrls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		GlobalExemptUrls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		InlineRedactionPatterns: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArray{
    			&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs{
    				BuiltInPatternId: pulumi.String("string"),
    				ConfidenceLevel:  pulumi.Int(0),
    				CustomPattern: &workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs{
    					PatternName:        pulumi.String("string"),
    					PatternRegex:       pulumi.String("string"),
    					KeywordRegex:       pulumi.String("string"),
    					PatternDescription: pulumi.String("string"),
    				},
    				EnforcedUrls: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				ExemptUrls: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				RedactionPlaceHolders: workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArray{
    					&workspacesweb.DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs{
    						RedactionPlaceHolderType: pulumi.String("string"),
    						RedactionPlaceHolderText: pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var dataProtectionSettingsResource = new DataProtectionSettings("dataProtectionSettingsResource", DataProtectionSettingsArgs.builder()
        .displayName("string")
        .additionalEncryptionContext(Map.of("string", "string"))
        .customerManagedKey("string")
        .description("string")
        .inlineRedactionConfiguration(DataProtectionSettingsInlineRedactionConfigurationArgs.builder()
            .globalConfidenceLevel(0)
            .globalEnforcedUrls("string")
            .globalExemptUrls("string")
            .inlineRedactionPatterns(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs.builder()
                .builtInPatternId("string")
                .confidenceLevel(0)
                .customPattern(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs.builder()
                    .patternName("string")
                    .patternRegex("string")
                    .keywordRegex("string")
                    .patternDescription("string")
                    .build())
                .enforcedUrls("string")
                .exemptUrls("string")
                .redactionPlaceHolders(DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs.builder()
                    .redactionPlaceHolderType("string")
                    .redactionPlaceHolderText("string")
                    .build())
                .build())
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    data_protection_settings_resource = aws.workspacesweb.DataProtectionSettings("dataProtectionSettingsResource",
        display_name="string",
        additional_encryption_context={
            "string": "string",
        },
        customer_managed_key="string",
        description="string",
        inline_redaction_configuration={
            "global_confidence_level": 0,
            "global_enforced_urls": ["string"],
            "global_exempt_urls": ["string"],
            "inline_redaction_patterns": [{
                "built_in_pattern_id": "string",
                "confidence_level": 0,
                "custom_pattern": {
                    "pattern_name": "string",
                    "pattern_regex": "string",
                    "keyword_regex": "string",
                    "pattern_description": "string",
                },
                "enforced_urls": ["string"],
                "exempt_urls": ["string"],
                "redaction_place_holders": [{
                    "redaction_place_holder_type": "string",
                    "redaction_place_holder_text": "string",
                }],
            }],
        },
        tags={
            "string": "string",
        })
    
    const dataProtectionSettingsResource = new aws.workspacesweb.DataProtectionSettings("dataProtectionSettingsResource", {
        displayName: "string",
        additionalEncryptionContext: {
            string: "string",
        },
        customerManagedKey: "string",
        description: "string",
        inlineRedactionConfiguration: {
            globalConfidenceLevel: 0,
            globalEnforcedUrls: ["string"],
            globalExemptUrls: ["string"],
            inlineRedactionPatterns: [{
                builtInPatternId: "string",
                confidenceLevel: 0,
                customPattern: {
                    patternName: "string",
                    patternRegex: "string",
                    keywordRegex: "string",
                    patternDescription: "string",
                },
                enforcedUrls: ["string"],
                exemptUrls: ["string"],
                redactionPlaceHolders: [{
                    redactionPlaceHolderType: "string",
                    redactionPlaceHolderText: "string",
                }],
            }],
        },
        tags: {
            string: "string",
        },
    });
    
    type: aws:workspacesweb:DataProtectionSettings
    properties:
        additionalEncryptionContext:
            string: string
        customerManagedKey: string
        description: string
        displayName: string
        inlineRedactionConfiguration:
            globalConfidenceLevel: 0
            globalEnforcedUrls:
                - string
            globalExemptUrls:
                - string
            inlineRedactionPatterns:
                - builtInPatternId: string
                  confidenceLevel: 0
                  customPattern:
                    keywordRegex: string
                    patternDescription: string
                    patternName: string
                    patternRegex: string
                  enforcedUrls:
                    - string
                  exemptUrls:
                    - string
                  redactionPlaceHolders:
                    - redactionPlaceHolderText: string
                      redactionPlaceHolderType: string
        tags:
            string: string
    

    DataProtectionSettings 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 DataProtectionSettings resource accepts the following input properties:

    DisplayName string

    The display name of the data protection settings.

    The following arguments are optional:

    AdditionalEncryptionContext Dictionary<string, string>
    Additional encryption context for the data protection settings.
    CustomerManagedKey string
    ARN of the customer managed KMS key.
    Description string
    The description of the data protection settings.
    InlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfiguration
    The inline redaction configuration of the data protection settings. Detailed below.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    DisplayName string

    The display name of the data protection settings.

    The following arguments are optional:

    AdditionalEncryptionContext map[string]string
    Additional encryption context for the data protection settings.
    CustomerManagedKey string
    ARN of the customer managed KMS key.
    Description string
    The description of the data protection settings.
    InlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfigurationArgs
    The inline redaction configuration of the data protection settings. Detailed below.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    displayName String

    The display name of the data protection settings.

    The following arguments are optional:

    additionalEncryptionContext Map<String,String>
    Additional encryption context for the data protection settings.
    customerManagedKey String
    ARN of the customer managed KMS key.
    description String
    The description of the data protection settings.
    inlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfiguration
    The inline redaction configuration of the data protection settings. Detailed below.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    displayName string

    The display name of the data protection settings.

    The following arguments are optional:

    additionalEncryptionContext {[key: string]: string}
    Additional encryption context for the data protection settings.
    customerManagedKey string
    ARN of the customer managed KMS key.
    description string
    The description of the data protection settings.
    inlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfiguration
    The inline redaction configuration of the data protection settings. Detailed below.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    display_name str

    The display name of the data protection settings.

    The following arguments are optional:

    additional_encryption_context Mapping[str, str]
    Additional encryption context for the data protection settings.
    customer_managed_key str
    ARN of the customer managed KMS key.
    description str
    The description of the data protection settings.
    inline_redaction_configuration DataProtectionSettingsInlineRedactionConfigurationArgs
    The inline redaction configuration of the data protection settings. Detailed below.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    displayName String

    The display name of the data protection settings.

    The following arguments are optional:

    additionalEncryptionContext Map<String>
    Additional encryption context for the data protection settings.
    customerManagedKey String
    ARN of the customer managed KMS key.
    description String
    The description of the data protection settings.
    inlineRedactionConfiguration Property Map
    The inline redaction configuration of the data protection settings. Detailed below.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DataProtectionSettings resource produces the following output properties:

    AssociatedPortalArns List<string>
    List of web portal ARNs that this data protection settings resource is associated with.
    DataProtectionSettingsArn string
    ARN of the data protection settings resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    AssociatedPortalArns []string
    List of web portal ARNs that this data protection settings resource is associated with.
    DataProtectionSettingsArn string
    ARN of the data protection settings resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    associatedPortalArns List<String>
    List of web portal ARNs that this data protection settings resource is associated with.
    dataProtectionSettingsArn String
    ARN of the data protection settings resource.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    associatedPortalArns string[]
    List of web portal ARNs that this data protection settings resource is associated with.
    dataProtectionSettingsArn string
    ARN of the data protection settings resource.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    associated_portal_arns Sequence[str]
    List of web portal ARNs that this data protection settings resource is associated with.
    data_protection_settings_arn str
    ARN of the data protection settings resource.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    associatedPortalArns List<String>
    List of web portal ARNs that this data protection settings resource is associated with.
    dataProtectionSettingsArn String
    ARN of the data protection settings resource.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing DataProtectionSettings Resource

    Get an existing DataProtectionSettings 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?: DataProtectionSettingsState, opts?: CustomResourceOptions): DataProtectionSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            additional_encryption_context: Optional[Mapping[str, str]] = None,
            associated_portal_arns: Optional[Sequence[str]] = None,
            customer_managed_key: Optional[str] = None,
            data_protection_settings_arn: Optional[str] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            inline_redaction_configuration: Optional[DataProtectionSettingsInlineRedactionConfigurationArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> DataProtectionSettings
    func GetDataProtectionSettings(ctx *Context, name string, id IDInput, state *DataProtectionSettingsState, opts ...ResourceOption) (*DataProtectionSettings, error)
    public static DataProtectionSettings Get(string name, Input<string> id, DataProtectionSettingsState? state, CustomResourceOptions? opts = null)
    public static DataProtectionSettings get(String name, Output<String> id, DataProtectionSettingsState state, CustomResourceOptions options)
    resources:  _:    type: aws:workspacesweb:DataProtectionSettings    get:      id: ${id}
    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:
    AdditionalEncryptionContext Dictionary<string, string>
    Additional encryption context for the data protection settings.
    AssociatedPortalArns List<string>
    List of web portal ARNs that this data protection settings resource is associated with.
    CustomerManagedKey string
    ARN of the customer managed KMS key.
    DataProtectionSettingsArn string
    ARN of the data protection settings resource.
    Description string
    The description of the data protection settings.
    DisplayName string

    The display name of the data protection settings.

    The following arguments are optional:

    InlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfiguration
    The inline redaction configuration of the data protection settings. Detailed below.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    AdditionalEncryptionContext map[string]string
    Additional encryption context for the data protection settings.
    AssociatedPortalArns []string
    List of web portal ARNs that this data protection settings resource is associated with.
    CustomerManagedKey string
    ARN of the customer managed KMS key.
    DataProtectionSettingsArn string
    ARN of the data protection settings resource.
    Description string
    The description of the data protection settings.
    DisplayName string

    The display name of the data protection settings.

    The following arguments are optional:

    InlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfigurationArgs
    The inline redaction configuration of the data protection settings. Detailed below.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    additionalEncryptionContext Map<String,String>
    Additional encryption context for the data protection settings.
    associatedPortalArns List<String>
    List of web portal ARNs that this data protection settings resource is associated with.
    customerManagedKey String
    ARN of the customer managed KMS key.
    dataProtectionSettingsArn String
    ARN of the data protection settings resource.
    description String
    The description of the data protection settings.
    displayName String

    The display name of the data protection settings.

    The following arguments are optional:

    inlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfiguration
    The inline redaction configuration of the data protection settings. Detailed below.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    additionalEncryptionContext {[key: string]: string}
    Additional encryption context for the data protection settings.
    associatedPortalArns string[]
    List of web portal ARNs that this data protection settings resource is associated with.
    customerManagedKey string
    ARN of the customer managed KMS key.
    dataProtectionSettingsArn string
    ARN of the data protection settings resource.
    description string
    The description of the data protection settings.
    displayName string

    The display name of the data protection settings.

    The following arguments are optional:

    inlineRedactionConfiguration DataProtectionSettingsInlineRedactionConfiguration
    The inline redaction configuration of the data protection settings. Detailed below.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    additional_encryption_context Mapping[str, str]
    Additional encryption context for the data protection settings.
    associated_portal_arns Sequence[str]
    List of web portal ARNs that this data protection settings resource is associated with.
    customer_managed_key str
    ARN of the customer managed KMS key.
    data_protection_settings_arn str
    ARN of the data protection settings resource.
    description str
    The description of the data protection settings.
    display_name str

    The display name of the data protection settings.

    The following arguments are optional:

    inline_redaction_configuration DataProtectionSettingsInlineRedactionConfigurationArgs
    The inline redaction configuration of the data protection settings. Detailed below.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    additionalEncryptionContext Map<String>
    Additional encryption context for the data protection settings.
    associatedPortalArns List<String>
    List of web portal ARNs that this data protection settings resource is associated with.
    customerManagedKey String
    ARN of the customer managed KMS key.
    dataProtectionSettingsArn String
    ARN of the data protection settings resource.
    description String
    The description of the data protection settings.
    displayName String

    The display name of the data protection settings.

    The following arguments are optional:

    inlineRedactionConfiguration Property Map
    The inline redaction configuration of the data protection settings. Detailed below.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    DataProtectionSettingsInlineRedactionConfiguration, DataProtectionSettingsInlineRedactionConfigurationArgs

    GlobalConfidenceLevel int
    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    GlobalEnforcedUrls List<string>
    The global enforced URL configuration for the inline redaction configuration.
    GlobalExemptUrls List<string>
    The global exempt URL configuration for the inline redaction configuration.
    InlineRedactionPatterns List<DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPattern>
    The inline redaction patterns to be enabled for the inline redaction configuration. Detailed below.
    GlobalConfidenceLevel int
    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    GlobalEnforcedUrls []string
    The global enforced URL configuration for the inline redaction configuration.
    GlobalExemptUrls []string
    The global exempt URL configuration for the inline redaction configuration.
    InlineRedactionPatterns []DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPattern
    The inline redaction patterns to be enabled for the inline redaction configuration. Detailed below.
    globalConfidenceLevel Integer
    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    globalEnforcedUrls List<String>
    The global enforced URL configuration for the inline redaction configuration.
    globalExemptUrls List<String>
    The global exempt URL configuration for the inline redaction configuration.
    inlineRedactionPatterns List<DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPattern>
    The inline redaction patterns to be enabled for the inline redaction configuration. Detailed below.
    globalConfidenceLevel number
    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    globalEnforcedUrls string[]
    The global enforced URL configuration for the inline redaction configuration.
    globalExemptUrls string[]
    The global exempt URL configuration for the inline redaction configuration.
    inlineRedactionPatterns DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPattern[]
    The inline redaction patterns to be enabled for the inline redaction configuration. Detailed below.
    global_confidence_level int
    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    global_enforced_urls Sequence[str]
    The global enforced URL configuration for the inline redaction configuration.
    global_exempt_urls Sequence[str]
    The global exempt URL configuration for the inline redaction configuration.
    inline_redaction_patterns Sequence[DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPattern]
    The inline redaction patterns to be enabled for the inline redaction configuration. Detailed below.
    globalConfidenceLevel Number
    The global confidence level for the inline redaction configuration. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    globalEnforcedUrls List<String>
    The global enforced URL configuration for the inline redaction configuration.
    globalExemptUrls List<String>
    The global exempt URL configuration for the inline redaction configuration.
    inlineRedactionPatterns List<Property Map>
    The inline redaction patterns to be enabled for the inline redaction configuration. Detailed below.

    DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPattern, DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternArgs

    BuiltInPatternId string
    The built-in pattern from the list of preconfigured patterns. Either a custom_pattern or built_in_pattern_id is required.
    ConfidenceLevel int
    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    CustomPattern DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPattern
    The configuration for a custom pattern. Either a custom_pattern or built_in_pattern_id is required. Detailed below.
    EnforcedUrls List<string>
    The enforced URL configuration for the inline redaction pattern.
    ExemptUrls List<string>
    The exempt URL configuration for the inline redaction pattern.
    RedactionPlaceHolders List<DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolder>
    The redaction placeholder that will replace the redacted text in session. Detailed below.
    BuiltInPatternId string
    The built-in pattern from the list of preconfigured patterns. Either a custom_pattern or built_in_pattern_id is required.
    ConfidenceLevel int
    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    CustomPattern DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPattern
    The configuration for a custom pattern. Either a custom_pattern or built_in_pattern_id is required. Detailed below.
    EnforcedUrls []string
    The enforced URL configuration for the inline redaction pattern.
    ExemptUrls []string
    The exempt URL configuration for the inline redaction pattern.
    RedactionPlaceHolders []DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolder
    The redaction placeholder that will replace the redacted text in session. Detailed below.
    builtInPatternId String
    The built-in pattern from the list of preconfigured patterns. Either a custom_pattern or built_in_pattern_id is required.
    confidenceLevel Integer
    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    customPattern DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPattern
    The configuration for a custom pattern. Either a custom_pattern or built_in_pattern_id is required. Detailed below.
    enforcedUrls List<String>
    The enforced URL configuration for the inline redaction pattern.
    exemptUrls List<String>
    The exempt URL configuration for the inline redaction pattern.
    redactionPlaceHolders List<DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolder>
    The redaction placeholder that will replace the redacted text in session. Detailed below.
    builtInPatternId string
    The built-in pattern from the list of preconfigured patterns. Either a custom_pattern or built_in_pattern_id is required.
    confidenceLevel number
    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    customPattern DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPattern
    The configuration for a custom pattern. Either a custom_pattern or built_in_pattern_id is required. Detailed below.
    enforcedUrls string[]
    The enforced URL configuration for the inline redaction pattern.
    exemptUrls string[]
    The exempt URL configuration for the inline redaction pattern.
    redactionPlaceHolders DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolder[]
    The redaction placeholder that will replace the redacted text in session. Detailed below.
    built_in_pattern_id str
    The built-in pattern from the list of preconfigured patterns. Either a custom_pattern or built_in_pattern_id is required.
    confidence_level int
    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    custom_pattern DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPattern
    The configuration for a custom pattern. Either a custom_pattern or built_in_pattern_id is required. Detailed below.
    enforced_urls Sequence[str]
    The enforced URL configuration for the inline redaction pattern.
    exempt_urls Sequence[str]
    The exempt URL configuration for the inline redaction pattern.
    redaction_place_holders Sequence[DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolder]
    The redaction placeholder that will replace the redacted text in session. Detailed below.
    builtInPatternId String
    The built-in pattern from the list of preconfigured patterns. Either a custom_pattern or built_in_pattern_id is required.
    confidenceLevel Number
    The confidence level for inline redaction pattern. This indicates the certainty of data type matches in the redaction process. Values range from 1 (low confidence) to 3 (high confidence).
    customPattern Property Map
    The configuration for a custom pattern. Either a custom_pattern or built_in_pattern_id is required. Detailed below.
    enforcedUrls List<String>
    The enforced URL configuration for the inline redaction pattern.
    exemptUrls List<String>
    The exempt URL configuration for the inline redaction pattern.
    redactionPlaceHolders List<Property Map>
    The redaction placeholder that will replace the redacted text in session. Detailed below.

    DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPattern, DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternArgs

    PatternName string
    The pattern name for the custom pattern.
    PatternRegex string
    The pattern regex for the customer pattern. The format must follow JavaScript regex format.
    KeywordRegex string
    The keyword regex for the customer pattern.
    PatternDescription string
    The pattern description for the customer pattern.
    PatternName string
    The pattern name for the custom pattern.
    PatternRegex string
    The pattern regex for the customer pattern. The format must follow JavaScript regex format.
    KeywordRegex string
    The keyword regex for the customer pattern.
    PatternDescription string
    The pattern description for the customer pattern.
    patternName String
    The pattern name for the custom pattern.
    patternRegex String
    The pattern regex for the customer pattern. The format must follow JavaScript regex format.
    keywordRegex String
    The keyword regex for the customer pattern.
    patternDescription String
    The pattern description for the customer pattern.
    patternName string
    The pattern name for the custom pattern.
    patternRegex string
    The pattern regex for the customer pattern. The format must follow JavaScript regex format.
    keywordRegex string
    The keyword regex for the customer pattern.
    patternDescription string
    The pattern description for the customer pattern.
    pattern_name str
    The pattern name for the custom pattern.
    pattern_regex str
    The pattern regex for the customer pattern. The format must follow JavaScript regex format.
    keyword_regex str
    The keyword regex for the customer pattern.
    pattern_description str
    The pattern description for the customer pattern.
    patternName String
    The pattern name for the custom pattern.
    patternRegex String
    The pattern regex for the customer pattern. The format must follow JavaScript regex format.
    keywordRegex String
    The keyword regex for the customer pattern.
    patternDescription String
    The pattern description for the customer pattern.

    DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolder, DataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderArgs

    RedactionPlaceHolderType string
    The redaction placeholder type that will replace the redacted text in session. Currently, only CustomText is supported.
    RedactionPlaceHolderText string
    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.
    RedactionPlaceHolderType string
    The redaction placeholder type that will replace the redacted text in session. Currently, only CustomText is supported.
    RedactionPlaceHolderText string
    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.
    redactionPlaceHolderType String
    The redaction placeholder type that will replace the redacted text in session. Currently, only CustomText is supported.
    redactionPlaceHolderText String
    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.
    redactionPlaceHolderType string
    The redaction placeholder type that will replace the redacted text in session. Currently, only CustomText is supported.
    redactionPlaceHolderText string
    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.
    redaction_place_holder_type str
    The redaction placeholder type that will replace the redacted text in session. Currently, only CustomText is supported.
    redaction_place_holder_text str
    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.
    redactionPlaceHolderType String
    The redaction placeholder type that will replace the redacted text in session. Currently, only CustomText is supported.
    redactionPlaceHolderText String
    The redaction placeholder text that will replace the redacted text in session for the custom text redaction placeholder type.

    Import

    Using pulumi import, import WorkSpaces Web Data Protection Settings using the data_protection_settings_arn. For example:

    $ pulumi import aws:workspacesweb/dataProtectionSettings:DataProtectionSettings example arn:aws:workspaces-web:us-west-2:123456789012:dataprotectionsettings/abcdef12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.83.0 published on Monday, Jun 16, 2025 by Pulumi