1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. bedrock
  6. Guardrail
Viewing docs for AWS v7.51.0
published on Thursday, Oct 15, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.51.0
published on Thursday, Oct 15, 2026 by Pulumi

    Manages an Amazon Bedrock Guardrail.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.bedrock.Guardrail("example", {
        contentPolicyConfig: {
            filtersConfigs: [{
                inputStrength: "MEDIUM",
                outputStrength: "MEDIUM",
                type: "HATE",
            }],
            tierConfigs: [{
                tierName: "CLASSIC",
            }],
        },
        sensitiveInformationPolicyConfig: {
            piiEntitiesConfigs: [{
                action: "BLOCK",
                inputAction: "BLOCK",
                outputAction: "ANONYMIZE",
                inputEnabled: true,
                outputEnabled: true,
                type: "NAME",
            }],
            regexesConfigs: [{
                action: "BLOCK",
                inputAction: "BLOCK",
                outputAction: "BLOCK",
                inputEnabled: true,
                outputEnabled: false,
                description: "example regex",
                name: "regex_example",
                pattern: "^\\d{3}-\\d{2}-\\d{4}$",
            }],
        },
        topicPolicyConfig: {
            tierConfigs: [{
                tierName: "CLASSIC",
            }],
            topicsConfigs: [{
                name: "investment_topic",
                examples: ["Where should I invest my money ?"],
                type: "DENY",
                definition: "Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns .",
            }],
        },
        wordPolicyConfig: {
            managedWordListsConfigs: [{
                type: "PROFANITY",
            }],
            wordsConfigs: [{
                text: "HATE",
            }],
        },
        name: "example",
        blockedInputMessaging: "example",
        blockedOutputsMessaging: "example",
        description: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.bedrock.Guardrail("example",
        content_policy_config={
            "filters_configs": [{
                "input_strength": "MEDIUM",
                "output_strength": "MEDIUM",
                "type": "HATE",
            }],
            "tier_configs": [{
                "tier_name": "CLASSIC",
            }],
        },
        sensitive_information_policy_config={
            "pii_entities_configs": [{
                "action": "BLOCK",
                "input_action": "BLOCK",
                "output_action": "ANONYMIZE",
                "input_enabled": True,
                "output_enabled": True,
                "type": "NAME",
            }],
            "regexes_configs": [{
                "action": "BLOCK",
                "input_action": "BLOCK",
                "output_action": "BLOCK",
                "input_enabled": True,
                "output_enabled": False,
                "description": "example regex",
                "name": "regex_example",
                "pattern": "^\\d{3}-\\d{2}-\\d{4}$",
            }],
        },
        topic_policy_config={
            "tier_configs": [{
                "tier_name": "CLASSIC",
            }],
            "topics_configs": [{
                "name": "investment_topic",
                "examples": ["Where should I invest my money ?"],
                "type": "DENY",
                "definition": "Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns .",
            }],
        },
        word_policy_config={
            "managed_word_lists_configs": [{
                "type": "PROFANITY",
            }],
            "words_configs": [{
                "text": "HATE",
            }],
        },
        name="example",
        blocked_input_messaging="example",
        blocked_outputs_messaging="example",
        description="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bedrock.NewGuardrail(ctx, "example", &bedrock.GuardrailArgs{
    			ContentPolicyConfig: &bedrock.GuardrailContentPolicyConfigArgs{
    				FiltersConfigs: bedrock.GuardrailContentPolicyConfigFiltersConfigArray{
    					&bedrock.GuardrailContentPolicyConfigFiltersConfigArgs{
    						InputStrength:  pulumi.String("MEDIUM"),
    						OutputStrength: pulumi.String("MEDIUM"),
    						Type:           pulumi.String("HATE"),
    					},
    				},
    				TierConfigs: bedrock.GuardrailContentPolicyConfigTierConfigArray{
    					&bedrock.GuardrailContentPolicyConfigTierConfigArgs{
    						TierName: pulumi.String("CLASSIC"),
    					},
    				},
    			},
    			SensitiveInformationPolicyConfig: &bedrock.GuardrailSensitiveInformationPolicyConfigArgs{
    				PiiEntitiesConfigs: bedrock.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArray{
    					&bedrock.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs{
    						Action:        pulumi.String("BLOCK"),
    						InputAction:   pulumi.String("BLOCK"),
    						OutputAction:  pulumi.String("ANONYMIZE"),
    						InputEnabled:  pulumi.Bool(true),
    						OutputEnabled: pulumi.Bool(true),
    						Type:          pulumi.String("NAME"),
    					},
    				},
    				RegexesConfigs: bedrock.GuardrailSensitiveInformationPolicyConfigRegexesConfigArray{
    					&bedrock.GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs{
    						Action:        pulumi.String("BLOCK"),
    						InputAction:   pulumi.String("BLOCK"),
    						OutputAction:  pulumi.String("BLOCK"),
    						InputEnabled:  pulumi.Bool(true),
    						OutputEnabled: pulumi.Bool(false),
    						Description:   pulumi.String("example regex"),
    						Name:          pulumi.String("regex_example"),
    						Pattern:       pulumi.String("^\\d{3}-\\d{2}-\\d{4}$"),
    					},
    				},
    			},
    			TopicPolicyConfig: &bedrock.GuardrailTopicPolicyConfigArgs{
    				TierConfigs: bedrock.GuardrailTopicPolicyConfigTierConfigArray{
    					&bedrock.GuardrailTopicPolicyConfigTierConfigArgs{
    						TierName: pulumi.String("CLASSIC"),
    					},
    				},
    				TopicsConfigs: bedrock.GuardrailTopicPolicyConfigTopicsConfigArray{
    					&bedrock.GuardrailTopicPolicyConfigTopicsConfigArgs{
    						Name: pulumi.String("investment_topic"),
    						Examples: pulumi.StringArray{
    							pulumi.String("Where should I invest my money ?"),
    						},
    						Type:       pulumi.String("DENY"),
    						Definition: pulumi.String("Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns ."),
    					},
    				},
    			},
    			WordPolicyConfig: &bedrock.GuardrailWordPolicyConfigArgs{
    				ManagedWordListsConfigs: bedrock.GuardrailWordPolicyConfigManagedWordListsConfigArray{
    					&bedrock.GuardrailWordPolicyConfigManagedWordListsConfigArgs{
    						Type: pulumi.String("PROFANITY"),
    					},
    				},
    				WordsConfigs: bedrock.GuardrailWordPolicyConfigWordsConfigArray{
    					&bedrock.GuardrailWordPolicyConfigWordsConfigArgs{
    						Text: pulumi.String("HATE"),
    					},
    				},
    			},
    			Name:                    pulumi.String("example"),
    			BlockedInputMessaging:   pulumi.String("example"),
    			BlockedOutputsMessaging: pulumi.String("example"),
    			Description:             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.Bedrock.Guardrail("example", new()
        {
            ContentPolicyConfig = new Aws.Bedrock.Inputs.GuardrailContentPolicyConfigArgs
            {
                FiltersConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailContentPolicyConfigFiltersConfigArgs
                    {
                        InputStrength = "MEDIUM",
                        OutputStrength = "MEDIUM",
                        Type = "HATE",
                    },
                },
                TierConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailContentPolicyConfigTierConfigArgs
                    {
                        TierName = "CLASSIC",
                    },
                },
            },
            SensitiveInformationPolicyConfig = new Aws.Bedrock.Inputs.GuardrailSensitiveInformationPolicyConfigArgs
            {
                PiiEntitiesConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs
                    {
                        Action = "BLOCK",
                        InputAction = "BLOCK",
                        OutputAction = "ANONYMIZE",
                        InputEnabled = true,
                        OutputEnabled = true,
                        Type = "NAME",
                    },
                },
                RegexesConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs
                    {
                        Action = "BLOCK",
                        InputAction = "BLOCK",
                        OutputAction = "BLOCK",
                        InputEnabled = true,
                        OutputEnabled = false,
                        Description = "example regex",
                        Name = "regex_example",
                        Pattern = "^\\d{3}-\\d{2}-\\d{4}$",
                    },
                },
            },
            TopicPolicyConfig = new Aws.Bedrock.Inputs.GuardrailTopicPolicyConfigArgs
            {
                TierConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailTopicPolicyConfigTierConfigArgs
                    {
                        TierName = "CLASSIC",
                    },
                },
                TopicsConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailTopicPolicyConfigTopicsConfigArgs
                    {
                        Name = "investment_topic",
                        Examples = new[]
                        {
                            "Where should I invest my money ?",
                        },
                        Type = "DENY",
                        Definition = "Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns .",
                    },
                },
            },
            WordPolicyConfig = new Aws.Bedrock.Inputs.GuardrailWordPolicyConfigArgs
            {
                ManagedWordListsConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailWordPolicyConfigManagedWordListsConfigArgs
                    {
                        Type = "PROFANITY",
                    },
                },
                WordsConfigs = new[]
                {
                    new Aws.Bedrock.Inputs.GuardrailWordPolicyConfigWordsConfigArgs
                    {
                        Text = "HATE",
                    },
                },
            },
            Name = "example",
            BlockedInputMessaging = "example",
            BlockedOutputsMessaging = "example",
            Description = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.bedrock.Guardrail;
    import com.pulumi.aws.bedrock.GuardrailArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailContentPolicyConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailContentPolicyConfigFiltersConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailContentPolicyConfigTierConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailSensitiveInformationPolicyConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailTopicPolicyConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailTopicPolicyConfigTierConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailTopicPolicyConfigTopicsConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailWordPolicyConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailWordPolicyConfigManagedWordListsConfigArgs;
    import com.pulumi.aws.bedrock.inputs.GuardrailWordPolicyConfigWordsConfigArgs;
    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) {
            var example = new Guardrail("example", GuardrailArgs.builder()
                .contentPolicyConfig(GuardrailContentPolicyConfigArgs.builder()
                    .filtersConfigs(GuardrailContentPolicyConfigFiltersConfigArgs.builder()
                        .inputStrength("MEDIUM")
                        .outputStrength("MEDIUM")
                        .type("HATE")
                        .build())
                    .tierConfigs(GuardrailContentPolicyConfigTierConfigArgs.builder()
                        .tierName("CLASSIC")
                        .build())
                    .build())
                .sensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfigArgs.builder()
                    .piiEntitiesConfigs(GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs.builder()
                        .action("BLOCK")
                        .inputAction("BLOCK")
                        .outputAction("ANONYMIZE")
                        .inputEnabled(true)
                        .outputEnabled(true)
                        .type("NAME")
                        .build())
                    .regexesConfigs(GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs.builder()
                        .action("BLOCK")
                        .inputAction("BLOCK")
                        .outputAction("BLOCK")
                        .inputEnabled(true)
                        .outputEnabled(false)
                        .description("example regex")
                        .name("regex_example")
                        .pattern("^\\d{3}-\\d{2}-\\d{4}$")
                        .build())
                    .build())
                .topicPolicyConfig(GuardrailTopicPolicyConfigArgs.builder()
                    .tierConfigs(GuardrailTopicPolicyConfigTierConfigArgs.builder()
                        .tierName("CLASSIC")
                        .build())
                    .topicsConfigs(GuardrailTopicPolicyConfigTopicsConfigArgs.builder()
                        .name("investment_topic")
                        .examples("Where should I invest my money ?")
                        .type("DENY")
                        .definition("Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns .")
                        .build())
                    .build())
                .wordPolicyConfig(GuardrailWordPolicyConfigArgs.builder()
                    .managedWordListsConfigs(GuardrailWordPolicyConfigManagedWordListsConfigArgs.builder()
                        .type("PROFANITY")
                        .build())
                    .wordsConfigs(GuardrailWordPolicyConfigWordsConfigArgs.builder()
                        .text("HATE")
                        .build())
                    .build())
                .name("example")
                .blockedInputMessaging("example")
                .blockedOutputsMessaging("example")
                .description("example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:bedrock:Guardrail
        properties:
          contentPolicyConfig:
            filtersConfigs:
              - inputStrength: MEDIUM
                outputStrength: MEDIUM
                type: HATE
            tierConfigs:
              - tierName: CLASSIC
          sensitiveInformationPolicyConfig:
            piiEntitiesConfigs:
              - action: BLOCK
                inputAction: BLOCK
                outputAction: ANONYMIZE
                inputEnabled: true
                outputEnabled: true
                type: NAME
            regexesConfigs:
              - action: BLOCK
                inputAction: BLOCK
                outputAction: BLOCK
                inputEnabled: true
                outputEnabled: false
                description: example regex
                name: regex_example
                pattern: ^\d{3}-\d{2}-\d{4}$
          topicPolicyConfig:
            tierConfigs:
              - tierName: CLASSIC
            topicsConfigs:
              - name: investment_topic
                examples:
                  - Where should I invest my money ?
                type: DENY
                definition: Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns .
          wordPolicyConfig:
            managedWordListsConfigs:
              - type: PROFANITY
            wordsConfigs:
              - text: HATE
          name: example
          blockedInputMessaging: example
          blockedOutputsMessaging: example
          description: example
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_bedrock_guardrail" "example" {
      content_policy_config = {
        filters_configs = [{
          "inputStrength"  = "MEDIUM"
          "outputStrength" = "MEDIUM"
          "type"           = "HATE"
        }]
        tier_configs = [{
          "tierName" = "CLASSIC"
        }]
      }
      sensitive_information_policy_config = {
        pii_entities_configs = [{
          "action"        = "BLOCK"
          "inputAction"   = "BLOCK"
          "outputAction"  = "ANONYMIZE"
          "inputEnabled"  = true
          "outputEnabled" = true
          "type"          = "NAME"
        }]
        regexes_configs = [{
          "action"        = "BLOCK"
          "inputAction"   = "BLOCK"
          "outputAction"  = "BLOCK"
          "inputEnabled"  = true
          "outputEnabled" = false
          "description"   = "example regex"
          "name"          = "regex_example"
          "pattern"       = "^\\d{3}-\\d{2}-\\d{4}$"
        }]
      }
      topic_policy_config = {
        tier_configs = [{
          "tierName" = "CLASSIC"
        }]
        topics_configs = [{
          "name"       = "investment_topic"
          "examples"   = ["Where should I invest my money ?"]
          "type"       = "DENY"
          "definition" = "Investment advice refers to inquiries, guidance, or recommendations regarding the management or allocation of funds or assets with the goal of generating returns ."
        }]
      }
      word_policy_config = {
        managed_word_lists_configs = [{
          "type" = "PROFANITY"
        }]
        words_configs = [{
          "text" = "HATE"
        }]
      }
      name                      = "example"
      blocked_input_messaging   = "example"
      blocked_outputs_messaging = "example"
      description               = "example"
    }
    

    Create Guardrail Resource

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

    Constructor syntax

    new Guardrail(name: string, args: GuardrailArgs, opts?: CustomResourceOptions);
    @overload
    def Guardrail(resource_name: str,
                  args: GuardrailArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Guardrail(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  blocked_input_messaging: Optional[str] = None,
                  blocked_outputs_messaging: Optional[str] = None,
                  content_policy_config: Optional[GuardrailContentPolicyConfigArgs] = None,
                  contextual_grounding_policy_config: Optional[GuardrailContextualGroundingPolicyConfigArgs] = None,
                  cross_region_config: Optional[GuardrailCrossRegionConfigArgs] = None,
                  description: Optional[str] = None,
                  kms_key_arn: Optional[str] = None,
                  name: Optional[str] = None,
                  region: Optional[str] = None,
                  sensitive_information_policy_config: Optional[GuardrailSensitiveInformationPolicyConfigArgs] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  timeouts: Optional[GuardrailTimeoutsArgs] = None,
                  topic_policy_config: Optional[GuardrailTopicPolicyConfigArgs] = None,
                  word_policy_config: Optional[GuardrailWordPolicyConfigArgs] = None)
    func NewGuardrail(ctx *Context, name string, args GuardrailArgs, opts ...ResourceOption) (*Guardrail, error)
    public Guardrail(string name, GuardrailArgs args, CustomResourceOptions? opts = null)
    public Guardrail(String name, GuardrailArgs args)
    public Guardrail(String name, GuardrailArgs args, CustomResourceOptions options)
    
    type: aws:bedrock:Guardrail
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_bedrock_guardrail" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GuardrailArgs
    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 GuardrailArgs
    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 GuardrailArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GuardrailArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GuardrailArgs
    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 guardrailResource = new Aws.Bedrock.Guardrail("guardrailResource", new()
    {
        BlockedInputMessaging = "string",
        BlockedOutputsMessaging = "string",
        ContentPolicyConfig = new Aws.Bedrock.Inputs.GuardrailContentPolicyConfigArgs
        {
            FiltersConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailContentPolicyConfigFiltersConfigArgs
                {
                    InputStrength = "string",
                    OutputStrength = "string",
                    Type = "string",
                    InputAction = "string",
                    InputEnabled = false,
                    InputModalities = new[]
                    {
                        "string",
                    },
                    OutputAction = "string",
                    OutputEnabled = false,
                    OutputModalities = new[]
                    {
                        "string",
                    },
                },
            },
            TierConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailContentPolicyConfigTierConfigArgs
                {
                    TierName = "string",
                },
            },
        },
        ContextualGroundingPolicyConfig = new Aws.Bedrock.Inputs.GuardrailContextualGroundingPolicyConfigArgs
        {
            FiltersConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailContextualGroundingPolicyConfigFiltersConfigArgs
                {
                    Threshold = 0.0,
                    Type = "string",
                },
            },
        },
        CrossRegionConfig = new Aws.Bedrock.Inputs.GuardrailCrossRegionConfigArgs
        {
            GuardrailProfileIdentifier = "string",
        },
        Description = "string",
        KmsKeyArn = "string",
        Name = "string",
        Region = "string",
        SensitiveInformationPolicyConfig = new Aws.Bedrock.Inputs.GuardrailSensitiveInformationPolicyConfigArgs
        {
            PiiEntitiesConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs
                {
                    Action = "string",
                    Type = "string",
                    InputAction = "string",
                    InputEnabled = false,
                    OutputAction = "string",
                    OutputEnabled = false,
                },
            },
            RegexesConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs
                {
                    Action = "string",
                    Name = "string",
                    Pattern = "string",
                    Description = "string",
                    InputAction = "string",
                    InputEnabled = false,
                    OutputAction = "string",
                    OutputEnabled = false,
                },
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Bedrock.Inputs.GuardrailTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        TopicPolicyConfig = new Aws.Bedrock.Inputs.GuardrailTopicPolicyConfigArgs
        {
            TierConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailTopicPolicyConfigTierConfigArgs
                {
                    TierName = "string",
                },
            },
            TopicsConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailTopicPolicyConfigTopicsConfigArgs
                {
                    Definition = "string",
                    Name = "string",
                    Type = "string",
                    Examples = new[]
                    {
                        "string",
                    },
                },
            },
        },
        WordPolicyConfig = new Aws.Bedrock.Inputs.GuardrailWordPolicyConfigArgs
        {
            ManagedWordListsConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailWordPolicyConfigManagedWordListsConfigArgs
                {
                    Type = "string",
                    InputAction = "string",
                    InputEnabled = false,
                    OutputAction = "string",
                    OutputEnabled = false,
                },
            },
            WordsConfigs = new[]
            {
                new Aws.Bedrock.Inputs.GuardrailWordPolicyConfigWordsConfigArgs
                {
                    Text = "string",
                    InputAction = "string",
                    InputEnabled = false,
                    OutputAction = "string",
                    OutputEnabled = false,
                },
            },
        },
    });
    
    example, err := bedrock.NewGuardrail(ctx, "guardrailResource", &bedrock.GuardrailArgs{
    	BlockedInputMessaging:   pulumi.String("string"),
    	BlockedOutputsMessaging: pulumi.String("string"),
    	ContentPolicyConfig: &bedrock.GuardrailContentPolicyConfigArgs{
    		FiltersConfigs: bedrock.GuardrailContentPolicyConfigFiltersConfigArray{
    			&bedrock.GuardrailContentPolicyConfigFiltersConfigArgs{
    				InputStrength:  pulumi.String("string"),
    				OutputStrength: pulumi.String("string"),
    				Type:           pulumi.String("string"),
    				InputAction:    pulumi.String("string"),
    				InputEnabled:   pulumi.Bool(false),
    				InputModalities: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				OutputAction:  pulumi.String("string"),
    				OutputEnabled: pulumi.Bool(false),
    				OutputModalities: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		TierConfigs: bedrock.GuardrailContentPolicyConfigTierConfigArray{
    			&bedrock.GuardrailContentPolicyConfigTierConfigArgs{
    				TierName: pulumi.String("string"),
    			},
    		},
    	},
    	ContextualGroundingPolicyConfig: &bedrock.GuardrailContextualGroundingPolicyConfigArgs{
    		FiltersConfigs: bedrock.GuardrailContextualGroundingPolicyConfigFiltersConfigArray{
    			&bedrock.GuardrailContextualGroundingPolicyConfigFiltersConfigArgs{
    				Threshold: pulumi.Float64(0),
    				Type:      pulumi.String("string"),
    			},
    		},
    	},
    	CrossRegionConfig: &bedrock.GuardrailCrossRegionConfigArgs{
    		GuardrailProfileIdentifier: pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	KmsKeyArn:   pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	SensitiveInformationPolicyConfig: &bedrock.GuardrailSensitiveInformationPolicyConfigArgs{
    		PiiEntitiesConfigs: bedrock.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArray{
    			&bedrock.GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs{
    				Action:        pulumi.String("string"),
    				Type:          pulumi.String("string"),
    				InputAction:   pulumi.String("string"),
    				InputEnabled:  pulumi.Bool(false),
    				OutputAction:  pulumi.String("string"),
    				OutputEnabled: pulumi.Bool(false),
    			},
    		},
    		RegexesConfigs: bedrock.GuardrailSensitiveInformationPolicyConfigRegexesConfigArray{
    			&bedrock.GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs{
    				Action:        pulumi.String("string"),
    				Name:          pulumi.String("string"),
    				Pattern:       pulumi.String("string"),
    				Description:   pulumi.String("string"),
    				InputAction:   pulumi.String("string"),
    				InputEnabled:  pulumi.Bool(false),
    				OutputAction:  pulumi.String("string"),
    				OutputEnabled: pulumi.Bool(false),
    			},
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &bedrock.GuardrailTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	TopicPolicyConfig: &bedrock.GuardrailTopicPolicyConfigArgs{
    		TierConfigs: bedrock.GuardrailTopicPolicyConfigTierConfigArray{
    			&bedrock.GuardrailTopicPolicyConfigTierConfigArgs{
    				TierName: pulumi.String("string"),
    			},
    		},
    		TopicsConfigs: bedrock.GuardrailTopicPolicyConfigTopicsConfigArray{
    			&bedrock.GuardrailTopicPolicyConfigTopicsConfigArgs{
    				Definition: pulumi.String("string"),
    				Name:       pulumi.String("string"),
    				Type:       pulumi.String("string"),
    				Examples: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	WordPolicyConfig: &bedrock.GuardrailWordPolicyConfigArgs{
    		ManagedWordListsConfigs: bedrock.GuardrailWordPolicyConfigManagedWordListsConfigArray{
    			&bedrock.GuardrailWordPolicyConfigManagedWordListsConfigArgs{
    				Type:          pulumi.String("string"),
    				InputAction:   pulumi.String("string"),
    				InputEnabled:  pulumi.Bool(false),
    				OutputAction:  pulumi.String("string"),
    				OutputEnabled: pulumi.Bool(false),
    			},
    		},
    		WordsConfigs: bedrock.GuardrailWordPolicyConfigWordsConfigArray{
    			&bedrock.GuardrailWordPolicyConfigWordsConfigArgs{
    				Text:          pulumi.String("string"),
    				InputAction:   pulumi.String("string"),
    				InputEnabled:  pulumi.Bool(false),
    				OutputAction:  pulumi.String("string"),
    				OutputEnabled: pulumi.Bool(false),
    			},
    		},
    	},
    })
    
    resource "aws_bedrock_guardrail" "guardrailResource" {
      lifecycle {
        create_before_destroy = true
      }
      blocked_input_messaging   = "string"
      blocked_outputs_messaging = "string"
      content_policy_config = {
        filters_configs = [{
          input_strength    = "string"
          output_strength   = "string"
          type              = "string"
          input_action      = "string"
          input_enabled     = false
          input_modalities  = ["string"]
          output_action     = "string"
          output_enabled    = false
          output_modalities = ["string"]
        }]
        tier_configs = [{
          tier_name = "string"
        }]
      }
      contextual_grounding_policy_config = {
        filters_configs = [{
          threshold = 0
          type      = "string"
        }]
      }
      cross_region_config = {
        guardrail_profile_identifier = "string"
      }
      description = "string"
      kms_key_arn = "string"
      name        = "string"
      region      = "string"
      sensitive_information_policy_config = {
        pii_entities_configs = [{
          action         = "string"
          type           = "string"
          input_action   = "string"
          input_enabled  = false
          output_action  = "string"
          output_enabled = false
        }]
        regexes_configs = [{
          action         = "string"
          name           = "string"
          pattern        = "string"
          description    = "string"
          input_action   = "string"
          input_enabled  = false
          output_action  = "string"
          output_enabled = false
        }]
      }
      tags = {
        "string" = "string"
      }
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
      topic_policy_config = {
        tier_configs = [{
          tier_name = "string"
        }]
        topics_configs = [{
          definition = "string"
          name       = "string"
          type       = "string"
          examples   = ["string"]
        }]
      }
      word_policy_config = {
        managed_word_lists_configs = [{
          type           = "string"
          input_action   = "string"
          input_enabled  = false
          output_action  = "string"
          output_enabled = false
        }]
        words_configs = [{
          text           = "string"
          input_action   = "string"
          input_enabled  = false
          output_action  = "string"
          output_enabled = false
        }]
      }
    }
    
    var guardrailResource = new Guardrail("guardrailResource", GuardrailArgs.builder()
        .blockedInputMessaging("string")
        .blockedOutputsMessaging("string")
        .contentPolicyConfig(GuardrailContentPolicyConfigArgs.builder()
            .filtersConfigs(GuardrailContentPolicyConfigFiltersConfigArgs.builder()
                .inputStrength("string")
                .outputStrength("string")
                .type("string")
                .inputAction("string")
                .inputEnabled(false)
                .inputModalities("string")
                .outputAction("string")
                .outputEnabled(false)
                .outputModalities("string")
                .build())
            .tierConfigs(GuardrailContentPolicyConfigTierConfigArgs.builder()
                .tierName("string")
                .build())
            .build())
        .contextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfigArgs.builder()
            .filtersConfigs(GuardrailContextualGroundingPolicyConfigFiltersConfigArgs.builder()
                .threshold(0.0)
                .type("string")
                .build())
            .build())
        .crossRegionConfig(GuardrailCrossRegionConfigArgs.builder()
            .guardrailProfileIdentifier("string")
            .build())
        .description("string")
        .kmsKeyArn("string")
        .name("string")
        .region("string")
        .sensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfigArgs.builder()
            .piiEntitiesConfigs(GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs.builder()
                .action("string")
                .type("string")
                .inputAction("string")
                .inputEnabled(false)
                .outputAction("string")
                .outputEnabled(false)
                .build())
            .regexesConfigs(GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs.builder()
                .action("string")
                .name("string")
                .pattern("string")
                .description("string")
                .inputAction("string")
                .inputEnabled(false)
                .outputAction("string")
                .outputEnabled(false)
                .build())
            .build())
        .tags(Map.of("string", "string"))
        .timeouts(GuardrailTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .topicPolicyConfig(GuardrailTopicPolicyConfigArgs.builder()
            .tierConfigs(GuardrailTopicPolicyConfigTierConfigArgs.builder()
                .tierName("string")
                .build())
            .topicsConfigs(GuardrailTopicPolicyConfigTopicsConfigArgs.builder()
                .definition("string")
                .name("string")
                .type("string")
                .examples("string")
                .build())
            .build())
        .wordPolicyConfig(GuardrailWordPolicyConfigArgs.builder()
            .managedWordListsConfigs(GuardrailWordPolicyConfigManagedWordListsConfigArgs.builder()
                .type("string")
                .inputAction("string")
                .inputEnabled(false)
                .outputAction("string")
                .outputEnabled(false)
                .build())
            .wordsConfigs(GuardrailWordPolicyConfigWordsConfigArgs.builder()
                .text("string")
                .inputAction("string")
                .inputEnabled(false)
                .outputAction("string")
                .outputEnabled(false)
                .build())
            .build())
        .build());
    
    guardrail_resource = aws.bedrock.Guardrail("guardrailResource",
        blocked_input_messaging="string",
        blocked_outputs_messaging="string",
        content_policy_config={
            "filters_configs": [{
                "input_strength": "string",
                "output_strength": "string",
                "type": "string",
                "input_action": "string",
                "input_enabled": False,
                "input_modalities": ["string"],
                "output_action": "string",
                "output_enabled": False,
                "output_modalities": ["string"],
            }],
            "tier_configs": [{
                "tier_name": "string",
            }],
        },
        contextual_grounding_policy_config={
            "filters_configs": [{
                "threshold": float(0),
                "type": "string",
            }],
        },
        cross_region_config={
            "guardrail_profile_identifier": "string",
        },
        description="string",
        kms_key_arn="string",
        name="string",
        region="string",
        sensitive_information_policy_config={
            "pii_entities_configs": [{
                "action": "string",
                "type": "string",
                "input_action": "string",
                "input_enabled": False,
                "output_action": "string",
                "output_enabled": False,
            }],
            "regexes_configs": [{
                "action": "string",
                "name": "string",
                "pattern": "string",
                "description": "string",
                "input_action": "string",
                "input_enabled": False,
                "output_action": "string",
                "output_enabled": False,
            }],
        },
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        topic_policy_config={
            "tier_configs": [{
                "tier_name": "string",
            }],
            "topics_configs": [{
                "definition": "string",
                "name": "string",
                "type": "string",
                "examples": ["string"],
            }],
        },
        word_policy_config={
            "managed_word_lists_configs": [{
                "type": "string",
                "input_action": "string",
                "input_enabled": False,
                "output_action": "string",
                "output_enabled": False,
            }],
            "words_configs": [{
                "text": "string",
                "input_action": "string",
                "input_enabled": False,
                "output_action": "string",
                "output_enabled": False,
            }],
        })
    
    const guardrailResource = new aws.bedrock.Guardrail("guardrailResource", {
        blockedInputMessaging: "string",
        blockedOutputsMessaging: "string",
        contentPolicyConfig: {
            filtersConfigs: [{
                inputStrength: "string",
                outputStrength: "string",
                type: "string",
                inputAction: "string",
                inputEnabled: false,
                inputModalities: ["string"],
                outputAction: "string",
                outputEnabled: false,
                outputModalities: ["string"],
            }],
            tierConfigs: [{
                tierName: "string",
            }],
        },
        contextualGroundingPolicyConfig: {
            filtersConfigs: [{
                threshold: 0,
                type: "string",
            }],
        },
        crossRegionConfig: {
            guardrailProfileIdentifier: "string",
        },
        description: "string",
        kmsKeyArn: "string",
        name: "string",
        region: "string",
        sensitiveInformationPolicyConfig: {
            piiEntitiesConfigs: [{
                action: "string",
                type: "string",
                inputAction: "string",
                inputEnabled: false,
                outputAction: "string",
                outputEnabled: false,
            }],
            regexesConfigs: [{
                action: "string",
                name: "string",
                pattern: "string",
                description: "string",
                inputAction: "string",
                inputEnabled: false,
                outputAction: "string",
                outputEnabled: false,
            }],
        },
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        topicPolicyConfig: {
            tierConfigs: [{
                tierName: "string",
            }],
            topicsConfigs: [{
                definition: "string",
                name: "string",
                type: "string",
                examples: ["string"],
            }],
        },
        wordPolicyConfig: {
            managedWordListsConfigs: [{
                type: "string",
                inputAction: "string",
                inputEnabled: false,
                outputAction: "string",
                outputEnabled: false,
            }],
            wordsConfigs: [{
                text: "string",
                inputAction: "string",
                inputEnabled: false,
                outputAction: "string",
                outputEnabled: false,
            }],
        },
    });
    
    type: aws:bedrock:Guardrail
    properties:
        blockedInputMessaging: string
        blockedOutputsMessaging: string
        contentPolicyConfig:
            filtersConfigs:
                - inputAction: string
                  inputEnabled: false
                  inputModalities:
                    - string
                  inputStrength: string
                  outputAction: string
                  outputEnabled: false
                  outputModalities:
                    - string
                  outputStrength: string
                  type: string
            tierConfigs:
                - tierName: string
        contextualGroundingPolicyConfig:
            filtersConfigs:
                - threshold: 0
                  type: string
        crossRegionConfig:
            guardrailProfileIdentifier: string
        description: string
        kmsKeyArn: string
        name: string
        region: string
        sensitiveInformationPolicyConfig:
            piiEntitiesConfigs:
                - action: string
                  inputAction: string
                  inputEnabled: false
                  outputAction: string
                  outputEnabled: false
                  type: string
            regexesConfigs:
                - action: string
                  description: string
                  inputAction: string
                  inputEnabled: false
                  name: string
                  outputAction: string
                  outputEnabled: false
                  pattern: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
        topicPolicyConfig:
            tierConfigs:
                - tierName: string
            topicsConfigs:
                - definition: string
                  examples:
                    - string
                  name: string
                  type: string
        wordPolicyConfig:
            managedWordListsConfigs:
                - inputAction: string
                  inputEnabled: false
                  outputAction: string
                  outputEnabled: false
                  type: string
            wordsConfigs:
                - inputAction: string
                  inputEnabled: false
                  outputAction: string
                  outputEnabled: false
                  text: string
    

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

    BlockedInputMessaging string
    Message to return when the guardrail blocks a prompt.
    BlockedOutputsMessaging string
    Message to return when the guardrail blocks a model response.
    ContentPolicyConfig GuardrailContentPolicyConfig
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    ContextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfig
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    CrossRegionConfig GuardrailCrossRegionConfig
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    Description string
    Description of the guardrail or its version.
    KmsKeyArn string
    KMS key with which the guardrail was encrypted at rest.
    Name string

    Name of the guardrail.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfig
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts GuardrailTimeouts
    TopicPolicyConfig GuardrailTopicPolicyConfig
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    WordPolicyConfig GuardrailWordPolicyConfig
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    BlockedInputMessaging string
    Message to return when the guardrail blocks a prompt.
    BlockedOutputsMessaging string
    Message to return when the guardrail blocks a model response.
    ContentPolicyConfig GuardrailContentPolicyConfigArgs
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    ContextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfigArgs
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    CrossRegionConfig GuardrailCrossRegionConfigArgs
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    Description string
    Description of the guardrail or its version.
    KmsKeyArn string
    KMS key with which the guardrail was encrypted at rest.
    Name string

    Name of the guardrail.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfigArgs
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts GuardrailTimeoutsArgs
    TopicPolicyConfig GuardrailTopicPolicyConfigArgs
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    WordPolicyConfig GuardrailWordPolicyConfigArgs
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blocked_input_messaging string
    Message to return when the guardrail blocks a prompt.
    blocked_outputs_messaging string
    Message to return when the guardrail blocks a model response.
    content_policy_config object
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextual_grounding_policy_config object
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    cross_region_config object
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description string
    Description of the guardrail or its version.
    kms_key_arn string
    KMS key with which the guardrail was encrypted at rest.
    name string

    Name of the guardrail.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitive_information_policy_config object
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    tags map(string)
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts object
    topic_policy_config object
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    word_policy_config object
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blockedInputMessaging String
    Message to return when the guardrail blocks a prompt.
    blockedOutputsMessaging String
    Message to return when the guardrail blocks a model response.
    contentPolicyConfig GuardrailContentPolicyConfig
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfig
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    crossRegionConfig GuardrailCrossRegionConfig
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description String
    Description of the guardrail or its version.
    kmsKeyArn String
    KMS key with which the guardrail was encrypted at rest.
    name String

    Name of the guardrail.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfig
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts GuardrailTimeouts
    topicPolicyConfig GuardrailTopicPolicyConfig
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    wordPolicyConfig GuardrailWordPolicyConfig
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blockedInputMessaging string
    Message to return when the guardrail blocks a prompt.
    blockedOutputsMessaging string
    Message to return when the guardrail blocks a model response.
    contentPolicyConfig GuardrailContentPolicyConfig
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfig
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    crossRegionConfig GuardrailCrossRegionConfig
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description string
    Description of the guardrail or its version.
    kmsKeyArn string
    KMS key with which the guardrail was encrypted at rest.
    name string

    Name of the guardrail.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfig
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts GuardrailTimeouts
    topicPolicyConfig GuardrailTopicPolicyConfig
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    wordPolicyConfig GuardrailWordPolicyConfig
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blocked_input_messaging str
    Message to return when the guardrail blocks a prompt.
    blocked_outputs_messaging str
    Message to return when the guardrail blocks a model response.
    content_policy_config GuardrailContentPolicyConfigArgs
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextual_grounding_policy_config GuardrailContextualGroundingPolicyConfigArgs
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    cross_region_config GuardrailCrossRegionConfigArgs
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description str
    Description of the guardrail or its version.
    kms_key_arn str
    KMS key with which the guardrail was encrypted at rest.
    name str

    Name of the guardrail.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitive_information_policy_config GuardrailSensitiveInformationPolicyConfigArgs
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts GuardrailTimeoutsArgs
    topic_policy_config GuardrailTopicPolicyConfigArgs
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    word_policy_config GuardrailWordPolicyConfigArgs
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blockedInputMessaging String
    Message to return when the guardrail blocks a prompt.
    blockedOutputsMessaging String
    Message to return when the guardrail blocks a model response.
    contentPolicyConfig Property Map
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextualGroundingPolicyConfig Property Map
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    crossRegionConfig Property Map
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description String
    Description of the guardrail or its version.
    kmsKeyArn String
    KMS key with which the guardrail was encrypted at rest.
    name String

    Name of the guardrail.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitiveInformationPolicyConfig Property Map
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map
    topicPolicyConfig Property Map
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    wordPolicyConfig Property Map
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.

    Outputs

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

    CreatedAt string
    Date and time the Guardrail was created, in RFC3339 format.
    GuardrailArn string
    ARN of the Guardrail.
    GuardrailId string
    ID of the Guardrail.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the Bedrock Guardrail.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    UpdatedAt string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    Version string
    Version of the Guardrail.
    CreatedAt string
    Date and time the Guardrail was created, in RFC3339 format.
    GuardrailArn string
    ARN of the Guardrail.
    GuardrailId string
    ID of the Guardrail.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the Bedrock Guardrail.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    UpdatedAt string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    Version string
    Version of the Guardrail.
    created_at string
    Date and time the Guardrail was created, in RFC3339 format.
    guardrail_arn string
    ARN of the Guardrail.
    guardrail_id string
    ID of the Guardrail.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the Bedrock Guardrail.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updated_at string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version string
    Version of the Guardrail.
    createdAt String
    Date and time the Guardrail was created, in RFC3339 format.
    guardrailArn String
    ARN of the Guardrail.
    guardrailId String
    ID of the Guardrail.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the Bedrock Guardrail.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updatedAt String
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version String
    Version of the Guardrail.
    createdAt string
    Date and time the Guardrail was created, in RFC3339 format.
    guardrailArn string
    ARN of the Guardrail.
    guardrailId string
    ID of the Guardrail.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the Bedrock Guardrail.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updatedAt string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version string
    Version of the Guardrail.
    created_at str
    Date and time the Guardrail was created, in RFC3339 format.
    guardrail_arn str
    ARN of the Guardrail.
    guardrail_id str
    ID of the Guardrail.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the Bedrock Guardrail.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updated_at str
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version str
    Version of the Guardrail.
    createdAt String
    Date and time the Guardrail was created, in RFC3339 format.
    guardrailArn String
    ARN of the Guardrail.
    guardrailId String
    ID of the Guardrail.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the Bedrock Guardrail.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    updatedAt String
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version String
    Version of the Guardrail.

    Look up Existing Guardrail Resource

    Get an existing Guardrail 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?: GuardrailState, opts?: CustomResourceOptions): Guardrail
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            blocked_input_messaging: Optional[str] = None,
            blocked_outputs_messaging: Optional[str] = None,
            content_policy_config: Optional[GuardrailContentPolicyConfigArgs] = None,
            contextual_grounding_policy_config: Optional[GuardrailContextualGroundingPolicyConfigArgs] = None,
            created_at: Optional[str] = None,
            cross_region_config: Optional[GuardrailCrossRegionConfigArgs] = None,
            description: Optional[str] = None,
            guardrail_arn: Optional[str] = None,
            guardrail_id: Optional[str] = None,
            kms_key_arn: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            sensitive_information_policy_config: Optional[GuardrailSensitiveInformationPolicyConfigArgs] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[GuardrailTimeoutsArgs] = None,
            topic_policy_config: Optional[GuardrailTopicPolicyConfigArgs] = None,
            updated_at: Optional[str] = None,
            version: Optional[str] = None,
            word_policy_config: Optional[GuardrailWordPolicyConfigArgs] = None) -> Guardrail
    func GetGuardrail(ctx *Context, name string, id IDInput, state *GuardrailState, opts ...ResourceOption) (*Guardrail, error)
    public static Guardrail Get(string name, Input<string> id, GuardrailState? state, CustomResourceOptions? opts = null)
    public static Guardrail get(String name, Output<String> id, GuardrailState state, CustomResourceOptions options)
    resources:  _:    type: aws:bedrock:Guardrail    get:      id: ${id}
    import {
      to = aws_bedrock_guardrail.example
      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:
    BlockedInputMessaging string
    Message to return when the guardrail blocks a prompt.
    BlockedOutputsMessaging string
    Message to return when the guardrail blocks a model response.
    ContentPolicyConfig GuardrailContentPolicyConfig
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    ContextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfig
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    CreatedAt string
    Date and time the Guardrail was created, in RFC3339 format.
    CrossRegionConfig GuardrailCrossRegionConfig
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    Description string
    Description of the guardrail or its version.
    GuardrailArn string
    ARN of the Guardrail.
    GuardrailId string
    ID of the Guardrail.
    KmsKeyArn string
    KMS key with which the guardrail was encrypted at rest.
    Name string

    Name of the guardrail.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfig
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    Status string
    Status of the Bedrock Guardrail.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider defaultTags 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 defaultTags configuration block.
    Timeouts GuardrailTimeouts
    TopicPolicyConfig GuardrailTopicPolicyConfig
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    UpdatedAt string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    Version string
    Version of the Guardrail.
    WordPolicyConfig GuardrailWordPolicyConfig
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    BlockedInputMessaging string
    Message to return when the guardrail blocks a prompt.
    BlockedOutputsMessaging string
    Message to return when the guardrail blocks a model response.
    ContentPolicyConfig GuardrailContentPolicyConfigArgs
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    ContextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfigArgs
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    CreatedAt string
    Date and time the Guardrail was created, in RFC3339 format.
    CrossRegionConfig GuardrailCrossRegionConfigArgs
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    Description string
    Description of the guardrail or its version.
    GuardrailArn string
    ARN of the Guardrail.
    GuardrailId string
    ID of the Guardrail.
    KmsKeyArn string
    KMS key with which the guardrail was encrypted at rest.
    Name string

    Name of the guardrail.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfigArgs
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    Status string
    Status of the Bedrock Guardrail.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider defaultTags 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 defaultTags configuration block.
    Timeouts GuardrailTimeoutsArgs
    TopicPolicyConfig GuardrailTopicPolicyConfigArgs
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    UpdatedAt string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    Version string
    Version of the Guardrail.
    WordPolicyConfig GuardrailWordPolicyConfigArgs
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blocked_input_messaging string
    Message to return when the guardrail blocks a prompt.
    blocked_outputs_messaging string
    Message to return when the guardrail blocks a model response.
    content_policy_config object
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextual_grounding_policy_config object
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    created_at string
    Date and time the Guardrail was created, in RFC3339 format.
    cross_region_config object
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description string
    Description of the guardrail or its version.
    guardrail_arn string
    ARN of the Guardrail.
    guardrail_id string
    ID of the Guardrail.
    kms_key_arn string
    KMS key with which the guardrail was encrypted at rest.
    name string

    Name of the guardrail.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitive_information_policy_config object
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    status string
    Status of the Bedrock Guardrail.
    tags map(string)
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts object
    topic_policy_config object
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    updated_at string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version string
    Version of the Guardrail.
    word_policy_config object
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blockedInputMessaging String
    Message to return when the guardrail blocks a prompt.
    blockedOutputsMessaging String
    Message to return when the guardrail blocks a model response.
    contentPolicyConfig GuardrailContentPolicyConfig
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfig
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    createdAt String
    Date and time the Guardrail was created, in RFC3339 format.
    crossRegionConfig GuardrailCrossRegionConfig
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description String
    Description of the guardrail or its version.
    guardrailArn String
    ARN of the Guardrail.
    guardrailId String
    ID of the Guardrail.
    kmsKeyArn String
    KMS key with which the guardrail was encrypted at rest.
    name String

    Name of the guardrail.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfig
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    status String
    Status of the Bedrock Guardrail.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider defaultTags 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 defaultTags configuration block.
    timeouts GuardrailTimeouts
    topicPolicyConfig GuardrailTopicPolicyConfig
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    updatedAt String
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version String
    Version of the Guardrail.
    wordPolicyConfig GuardrailWordPolicyConfig
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blockedInputMessaging string
    Message to return when the guardrail blocks a prompt.
    blockedOutputsMessaging string
    Message to return when the guardrail blocks a model response.
    contentPolicyConfig GuardrailContentPolicyConfig
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextualGroundingPolicyConfig GuardrailContextualGroundingPolicyConfig
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    createdAt string
    Date and time the Guardrail was created, in RFC3339 format.
    crossRegionConfig GuardrailCrossRegionConfig
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description string
    Description of the guardrail or its version.
    guardrailArn string
    ARN of the Guardrail.
    guardrailId string
    ID of the Guardrail.
    kmsKeyArn string
    KMS key with which the guardrail was encrypted at rest.
    name string

    Name of the guardrail.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitiveInformationPolicyConfig GuardrailSensitiveInformationPolicyConfig
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    status string
    Status of the Bedrock Guardrail.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider defaultTags 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 defaultTags configuration block.
    timeouts GuardrailTimeouts
    topicPolicyConfig GuardrailTopicPolicyConfig
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    updatedAt string
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version string
    Version of the Guardrail.
    wordPolicyConfig GuardrailWordPolicyConfig
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blocked_input_messaging str
    Message to return when the guardrail blocks a prompt.
    blocked_outputs_messaging str
    Message to return when the guardrail blocks a model response.
    content_policy_config GuardrailContentPolicyConfigArgs
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextual_grounding_policy_config GuardrailContextualGroundingPolicyConfigArgs
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    created_at str
    Date and time the Guardrail was created, in RFC3339 format.
    cross_region_config GuardrailCrossRegionConfigArgs
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description str
    Description of the guardrail or its version.
    guardrail_arn str
    ARN of the Guardrail.
    guardrail_id str
    ID of the Guardrail.
    kms_key_arn str
    KMS key with which the guardrail was encrypted at rest.
    name str

    Name of the guardrail.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitive_information_policy_config GuardrailSensitiveInformationPolicyConfigArgs
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    status str
    Status of the Bedrock Guardrail.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider defaultTags 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 defaultTags configuration block.
    timeouts GuardrailTimeoutsArgs
    topic_policy_config GuardrailTopicPolicyConfigArgs
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    updated_at str
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version str
    Version of the Guardrail.
    word_policy_config GuardrailWordPolicyConfigArgs
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.
    blockedInputMessaging String
    Message to return when the guardrail blocks a prompt.
    blockedOutputsMessaging String
    Message to return when the guardrail blocks a model response.
    contentPolicyConfig Property Map
    Content policy config for a guardrail. See contentPolicyConfig Block for more information.
    contextualGroundingPolicyConfig Property Map
    Contextual grounding policy config for a guardrail. See contextualGroundingPolicyConfig Block for more information.
    createdAt String
    Date and time the Guardrail was created, in RFC3339 format.
    crossRegionConfig Property Map
    Configuration block to enable cross-region routing for bedrock guardrails. See crossRegionConfig Block for more information. See available Regions.
    description String
    Description of the guardrail or its version.
    guardrailArn String
    ARN of the Guardrail.
    guardrailId String
    ID of the Guardrail.
    kmsKeyArn String
    KMS key with which the guardrail was encrypted at rest.
    name String

    Name of the guardrail.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    sensitiveInformationPolicyConfig Property Map
    Sensitive information policy config for a guardrail. See sensitiveInformationPolicyConfig Block for more information.
    status String
    Status of the Bedrock Guardrail.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider defaultTags 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 defaultTags configuration block.
    timeouts Property Map
    topicPolicyConfig Property Map
    Topic policy config for a guardrail. See topicPolicyConfig Block for more information.
    updatedAt String
    Date and time that the Guardrail was last updated, in RFC3339 format.
    version String
    Version of the Guardrail.
    wordPolicyConfig Property Map
    Word policy config for a guardrail. See wordPolicyConfig Block for more information.

    Supporting Types

    GuardrailContentPolicyConfig, GuardrailContentPolicyConfigArgs

    FiltersConfigs List<GuardrailContentPolicyConfigFiltersConfig>
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    TierConfigs List<GuardrailContentPolicyConfigTierConfig>
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.
    FiltersConfigs []GuardrailContentPolicyConfigFiltersConfig
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    TierConfigs []GuardrailContentPolicyConfigTierConfig
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.
    filters_configs list(object)
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    tier_configs list(object)
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.
    filtersConfigs List<GuardrailContentPolicyConfigFiltersConfig>
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    tierConfigs List<GuardrailContentPolicyConfigTierConfig>
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.
    filtersConfigs GuardrailContentPolicyConfigFiltersConfig[]
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    tierConfigs GuardrailContentPolicyConfigTierConfig[]
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.
    filters_configs Sequence[GuardrailContentPolicyConfigFiltersConfig]
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    tier_configs Sequence[GuardrailContentPolicyConfigTierConfig]
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.
    filtersConfigs List<Property Map>
    Set of content filter configs in content policy. See content_policy_config.filters_config Block for more information.
    tierConfigs List<Property Map>
    Configuration block for the content policy tier. See content_policy_config.tier_config Block for more information.

    GuardrailContentPolicyConfigFiltersConfig, GuardrailContentPolicyConfigFiltersConfigArgs

    InputStrength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    OutputStrength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    Type string
    Type of contextual grounding filter.
    InputAction string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on input.
    InputModalities List<string>
    List of selected input modalities. Valid values: IMAGE, TEXT.
    OutputAction string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on output.
    OutputModalities List<string>
    List of selected output modalities. Valid values: IMAGE, TEXT.
    InputStrength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    OutputStrength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    Type string
    Type of contextual grounding filter.
    InputAction string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on input.
    InputModalities []string
    List of selected input modalities. Valid values: IMAGE, TEXT.
    OutputAction string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on output.
    OutputModalities []string
    List of selected output modalities. Valid values: IMAGE, TEXT.
    input_strength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    output_strength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    type string
    Type of contextual grounding filter.
    input_action string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on input.
    input_modalities list(string)
    List of selected input modalities. Valid values: IMAGE, TEXT.
    output_action string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on output.
    output_modalities list(string)
    List of selected output modalities. Valid values: IMAGE, TEXT.
    inputStrength String
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    outputStrength String
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    type String
    Type of contextual grounding filter.
    inputAction String
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on input.
    inputModalities List<String>
    List of selected input modalities. Valid values: IMAGE, TEXT.
    outputAction String
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on output.
    outputModalities List<String>
    List of selected output modalities. Valid values: IMAGE, TEXT.
    inputStrength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    outputStrength string
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    type string
    Type of contextual grounding filter.
    inputAction string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    inputEnabled boolean
    Whether to enable guardrail evaluation on input.
    inputModalities string[]
    List of selected input modalities. Valid values: IMAGE, TEXT.
    outputAction string
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    outputEnabled boolean
    Whether to enable guardrail evaluation on output.
    outputModalities string[]
    List of selected output modalities. Valid values: IMAGE, TEXT.
    input_strength str
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    output_strength str
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    type str
    Type of contextual grounding filter.
    input_action str
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on input.
    input_modalities Sequence[str]
    List of selected input modalities. Valid values: IMAGE, TEXT.
    output_action str
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on output.
    output_modalities Sequence[str]
    List of selected output modalities. Valid values: IMAGE, TEXT.
    inputStrength String
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    outputStrength String
    Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
    type String
    Type of contextual grounding filter.
    inputAction String
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on input.
    inputModalities List<String>
    List of selected input modalities. Valid values: IMAGE, TEXT.
    outputAction String
    Action to take when harmful content is detected. Valid values: BLOCK, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on output.
    outputModalities List<String>
    List of selected output modalities. Valid values: IMAGE, TEXT.

    GuardrailContentPolicyConfigTierConfig, GuardrailContentPolicyConfigTierConfigArgs

    TierName string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    TierName string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tier_name string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tierName String
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tierName string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tier_name str
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tierName String
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.

    GuardrailContextualGroundingPolicyConfig, GuardrailContextualGroundingPolicyConfigArgs

    FiltersConfigs List<GuardrailContextualGroundingPolicyConfigFiltersConfig>
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.
    FiltersConfigs []GuardrailContextualGroundingPolicyConfigFiltersConfig
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.
    filters_configs list(object)
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.
    filtersConfigs List<GuardrailContextualGroundingPolicyConfigFiltersConfig>
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.
    filtersConfigs GuardrailContextualGroundingPolicyConfigFiltersConfig[]
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.
    filters_configs Sequence[GuardrailContextualGroundingPolicyConfigFiltersConfig]
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.
    filtersConfigs List<Property Map>
    One or more blocks defining contextual grounding filter configs. See contextual_grounding_policy_config.filters_config Block for more information.

    GuardrailContextualGroundingPolicyConfigFiltersConfig, GuardrailContextualGroundingPolicyConfigFiltersConfigArgs

    Threshold double
    Threshold for this filter.
    Type string
    Type of contextual grounding filter.
    Threshold float64
    Threshold for this filter.
    Type string
    Type of contextual grounding filter.
    threshold number
    Threshold for this filter.
    type string
    Type of contextual grounding filter.
    threshold Double
    Threshold for this filter.
    type String
    Type of contextual grounding filter.
    threshold number
    Threshold for this filter.
    type string
    Type of contextual grounding filter.
    threshold float
    Threshold for this filter.
    type str
    Type of contextual grounding filter.
    threshold Number
    Threshold for this filter.
    type String
    Type of contextual grounding filter.

    GuardrailCrossRegionConfig, GuardrailCrossRegionConfigArgs

    GuardrailProfileIdentifier string
    Guardrail profile ARN.
    GuardrailProfileIdentifier string
    Guardrail profile ARN.
    guardrail_profile_identifier string
    Guardrail profile ARN.
    guardrailProfileIdentifier String
    Guardrail profile ARN.
    guardrailProfileIdentifier string
    Guardrail profile ARN.
    guardrail_profile_identifier str
    Guardrail profile ARN.
    guardrailProfileIdentifier String
    Guardrail profile ARN.

    GuardrailSensitiveInformationPolicyConfig, GuardrailSensitiveInformationPolicyConfigArgs

    PiiEntitiesConfigs List<GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig>
    List of entities. See piiEntitiesConfig Block for more information.
    RegexesConfigs List<GuardrailSensitiveInformationPolicyConfigRegexesConfig>
    List of regex. See regexesConfig Block for more information.
    PiiEntitiesConfigs []GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig
    List of entities. See piiEntitiesConfig Block for more information.
    RegexesConfigs []GuardrailSensitiveInformationPolicyConfigRegexesConfig
    List of regex. See regexesConfig Block for more information.
    pii_entities_configs list(object)
    List of entities. See piiEntitiesConfig Block for more information.
    regexes_configs list(object)
    List of regex. See regexesConfig Block for more information.
    piiEntitiesConfigs List<GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig>
    List of entities. See piiEntitiesConfig Block for more information.
    regexesConfigs List<GuardrailSensitiveInformationPolicyConfigRegexesConfig>
    List of regex. See regexesConfig Block for more information.
    piiEntitiesConfigs GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig[]
    List of entities. See piiEntitiesConfig Block for more information.
    regexesConfigs GuardrailSensitiveInformationPolicyConfigRegexesConfig[]
    List of regex. See regexesConfig Block for more information.
    pii_entities_configs Sequence[GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig]
    List of entities. See piiEntitiesConfig Block for more information.
    regexes_configs Sequence[GuardrailSensitiveInformationPolicyConfigRegexesConfig]
    List of regex. See regexesConfig Block for more information.
    piiEntitiesConfigs List<Property Map>
    List of entities. See piiEntitiesConfig Block for more information.
    regexesConfigs List<Property Map>
    List of regex. See regexesConfig Block for more information.

    GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfig, GuardrailSensitiveInformationPolicyConfigPiiEntitiesConfigArgs

    Action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    Type string
    Currently supported PII entities.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    Action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    Type string
    Currently supported PII entities.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    type string
    Currently supported PII entities.
    input_action string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action String
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    type String
    Currently supported PII entities.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    type string
    Currently supported PII entities.
    inputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    inputEnabled boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    outputEnabled boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action str
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    type str
    Currently supported PII entities.
    input_action str
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action str
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action String
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    type String
    Currently supported PII entities.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.

    GuardrailSensitiveInformationPolicyConfigRegexesConfig, GuardrailSensitiveInformationPolicyConfigRegexesConfigArgs

    Action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    Name string
    Regex name.
    Pattern string
    Regex pattern.
    Description string
    Regex description.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    Action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    Name string
    Regex name.
    Pattern string
    Regex pattern.
    Description string
    Regex description.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    name string
    Regex name.
    pattern string
    Regex pattern.
    description string
    Regex description.
    input_action string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action String
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    name String
    Regex name.
    pattern String
    Regex pattern.
    description String
    Regex description.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action string
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    name string
    Regex name.
    pattern string
    Regex pattern.
    description string
    Regex description.
    inputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    inputEnabled boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    outputEnabled boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action str
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    name str
    Regex name.
    pattern str
    Regex pattern.
    description str
    Regex description.
    input_action str
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action str
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    action String
    Options for sensitive information action. Valid values: BLOCK, ANONYMIZE, NONE.
    name String
    Regex name.
    pattern String
    Regex pattern.
    description String
    Regex description.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, ANONYMIZE, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, ANONYMIZE, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.

    GuardrailTimeouts, GuardrailTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    GuardrailTopicPolicyConfig, GuardrailTopicPolicyConfigArgs

    TierConfigs List<GuardrailTopicPolicyConfigTierConfig>
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    TopicsConfigs List<GuardrailTopicPolicyConfigTopicsConfig>
    List of topic configs in topic policy. See topicsConfig Block for more information.
    TierConfigs []GuardrailTopicPolicyConfigTierConfig
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    TopicsConfigs []GuardrailTopicPolicyConfigTopicsConfig
    List of topic configs in topic policy. See topicsConfig Block for more information.
    tier_configs list(object)
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    topics_configs list(object)
    List of topic configs in topic policy. See topicsConfig Block for more information.
    tierConfigs List<GuardrailTopicPolicyConfigTierConfig>
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    topicsConfigs List<GuardrailTopicPolicyConfigTopicsConfig>
    List of topic configs in topic policy. See topicsConfig Block for more information.
    tierConfigs GuardrailTopicPolicyConfigTierConfig[]
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    topicsConfigs GuardrailTopicPolicyConfigTopicsConfig[]
    List of topic configs in topic policy. See topicsConfig Block for more information.
    tier_configs Sequence[GuardrailTopicPolicyConfigTierConfig]
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    topics_configs Sequence[GuardrailTopicPolicyConfigTopicsConfig]
    List of topic configs in topic policy. See topicsConfig Block for more information.
    tierConfigs List<Property Map>
    Configuration block for the topic policy tier. See topic_policy_config.tier_config Block for more information.
    topicsConfigs List<Property Map>
    List of topic configs in topic policy. See topicsConfig Block for more information.

    GuardrailTopicPolicyConfigTierConfig, GuardrailTopicPolicyConfigTierConfigArgs

    TierName string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    TierName string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tier_name string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tierName String
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tierName string
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tier_name str
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.
    tierName String
    Name of the topic policy tier. Valid values: CLASSIC, STANDARD. STANDARD requires crossRegionConfig.

    GuardrailTopicPolicyConfigTopicsConfig, GuardrailTopicPolicyConfigTopicsConfigArgs

    Definition string
    Definition of topic in topic policy.
    Name string
    Name of topic in topic policy.
    Type string
    Type of topic in a policy.
    Examples List<string>
    List of text examples.
    Definition string
    Definition of topic in topic policy.
    Name string
    Name of topic in topic policy.
    Type string
    Type of topic in a policy.
    Examples []string
    List of text examples.
    definition string
    Definition of topic in topic policy.
    name string
    Name of topic in topic policy.
    type string
    Type of topic in a policy.
    examples list(string)
    List of text examples.
    definition String
    Definition of topic in topic policy.
    name String
    Name of topic in topic policy.
    type String
    Type of topic in a policy.
    examples List<String>
    List of text examples.
    definition string
    Definition of topic in topic policy.
    name string
    Name of topic in topic policy.
    type string
    Type of topic in a policy.
    examples string[]
    List of text examples.
    definition str
    Definition of topic in topic policy.
    name str
    Name of topic in topic policy.
    type str
    Type of topic in a policy.
    examples Sequence[str]
    List of text examples.
    definition String
    Definition of topic in topic policy.
    name String
    Name of topic in topic policy.
    type String
    Type of topic in a policy.
    examples List<String>
    List of text examples.

    GuardrailWordPolicyConfig, GuardrailWordPolicyConfigArgs

    ManagedWordListsConfigs List<GuardrailWordPolicyConfigManagedWordListsConfig>
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    WordsConfigs List<GuardrailWordPolicyConfigWordsConfig>
    List of custom word configs. See wordsConfig Block for more information.
    ManagedWordListsConfigs []GuardrailWordPolicyConfigManagedWordListsConfig
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    WordsConfigs []GuardrailWordPolicyConfigWordsConfig
    List of custom word configs. See wordsConfig Block for more information.
    managed_word_lists_configs list(object)
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    words_configs list(object)
    List of custom word configs. See wordsConfig Block for more information.
    managedWordListsConfigs List<GuardrailWordPolicyConfigManagedWordListsConfig>
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    wordsConfigs List<GuardrailWordPolicyConfigWordsConfig>
    List of custom word configs. See wordsConfig Block for more information.
    managedWordListsConfigs GuardrailWordPolicyConfigManagedWordListsConfig[]
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    wordsConfigs GuardrailWordPolicyConfigWordsConfig[]
    List of custom word configs. See wordsConfig Block for more information.
    managed_word_lists_configs Sequence[GuardrailWordPolicyConfigManagedWordListsConfig]
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    words_configs Sequence[GuardrailWordPolicyConfigWordsConfig]
    List of custom word configs. See wordsConfig Block for more information.
    managedWordListsConfigs List<Property Map>
    Config for the list of managed words. See managedWordListsConfig Block for more information.
    wordsConfigs List<Property Map>
    List of custom word configs. See wordsConfig Block for more information.

    GuardrailWordPolicyConfigManagedWordListsConfig, GuardrailWordPolicyConfigManagedWordListsConfigArgs

    Type string
    Options for managed words.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    Type string
    Options for managed words.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    type string
    Options for managed words.
    input_action string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    type String
    Options for managed words.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    type string
    Options for managed words.
    inputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    inputEnabled boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    outputEnabled boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    type str
    Options for managed words.
    input_action str
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action str
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    type String
    Options for managed words.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.

    GuardrailWordPolicyConfigWordsConfig, GuardrailWordPolicyConfigWordsConfigArgs

    Text string
    Custom word text.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    Text string
    Custom word text.
    InputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    InputEnabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    OutputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    OutputEnabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    text string
    Custom word text.
    input_action string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    text String
    Custom word text.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    text string
    Custom word text.
    inputAction string
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    inputEnabled boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction string
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    outputEnabled boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    text str
    Custom word text.
    input_action str
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    input_enabled bool
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    output_action str
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    output_enabled bool
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
    text String
    Custom word text.
    inputAction String
    Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE.
    inputEnabled Boolean
    Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
    outputAction String
    Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE.
    outputEnabled Boolean
    Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.

    Import

    Using pulumi import, import Amazon Bedrock Guardrail using a comma-delimited string of guardrailId and version. For example:

    $ pulumi import aws:bedrock/guardrail:Guardrail example guardrail-id-12345678,DRAFT
    

    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 logo
    Viewing docs for AWS v7.51.0
    published on Thursday, Oct 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial