1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. bedrock
  6. EnforcedGuardrailConfiguration

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Definition of AWS::Bedrock::EnforcedGuardrailConfiguration Resource Type

    Create EnforcedGuardrailConfiguration Resource

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

    Constructor syntax

    new EnforcedGuardrailConfiguration(name: string, args: EnforcedGuardrailConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def EnforcedGuardrailConfiguration(resource_name: str,
                                       args: EnforcedGuardrailConfigurationArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnforcedGuardrailConfiguration(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       guardrail_identifier: Optional[str] = None,
                                       guardrail_version: Optional[str] = None,
                                       model_enforcement: Optional[EnforcedGuardrailConfigurationModelEnforcementArgs] = None,
                                       selective_content_guarding: Optional[EnforcedGuardrailConfigurationSelectiveContentGuardingArgs] = None)
    func NewEnforcedGuardrailConfiguration(ctx *Context, name string, args EnforcedGuardrailConfigurationArgs, opts ...ResourceOption) (*EnforcedGuardrailConfiguration, error)
    public EnforcedGuardrailConfiguration(string name, EnforcedGuardrailConfigurationArgs args, CustomResourceOptions? opts = null)
    public EnforcedGuardrailConfiguration(String name, EnforcedGuardrailConfigurationArgs args)
    public EnforcedGuardrailConfiguration(String name, EnforcedGuardrailConfigurationArgs args, CustomResourceOptions options)
    
    type: aws-native:bedrock:EnforcedGuardrailConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_bedrock_enforced_guardrail_configuration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnforcedGuardrailConfigurationArgs
    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 EnforcedGuardrailConfigurationArgs
    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 EnforcedGuardrailConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnforcedGuardrailConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnforcedGuardrailConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    guardrail_identifier string
    Identifier for the guardrail, could be the ID or the ARN
    guardrail_version string
    Numerical guardrail version (not DRAFT)
    model_enforcement object
    selective_content_guarding object
    guardrailIdentifier String
    Identifier for the guardrail, could be the ID or the ARN
    guardrailVersion String
    Numerical guardrail version (not DRAFT)
    modelEnforcement Property Map
    selectiveContentGuarding Property Map

    Outputs

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

    ConfigId string
    Unique ID for the account enforced configuration
    CreatedAt string
    Timestamp when the configuration was created
    CreatedBy string
    The ARN of the role used to create the configuration
    GuardrailArn string
    ARN representation for the guardrail
    GuardrailId string
    Unique ID for the guardrail
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner Pulumi.AwsNative.Bedrock.EnforcedGuardrailConfigurationConfigOwner
    UpdatedAt string
    Timestamp when the configuration was last updated
    UpdatedBy string
    The ARN of the role used to update the configuration
    ConfigId string
    Unique ID for the account enforced configuration
    CreatedAt string
    Timestamp when the configuration was created
    CreatedBy string
    The ARN of the role used to create the configuration
    GuardrailArn string
    ARN representation for the guardrail
    GuardrailId string
    Unique ID for the guardrail
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner EnforcedGuardrailConfigurationConfigOwner
    UpdatedAt string
    Timestamp when the configuration was last updated
    UpdatedBy string
    The ARN of the role used to update the configuration
    config_id string
    Unique ID for the account enforced configuration
    created_at string
    Timestamp when the configuration was created
    created_by string
    The ARN of the role used to create the configuration
    guardrail_arn string
    ARN representation for the guardrail
    guardrail_id string
    Unique ID for the guardrail
    id string
    The provider-assigned unique ID for this managed resource.
    owner "ACCOUNT" | "ORGANIZATION"
    updated_at string
    Timestamp when the configuration was last updated
    updated_by string
    The ARN of the role used to update the configuration
    configId String
    Unique ID for the account enforced configuration
    createdAt String
    Timestamp when the configuration was created
    createdBy String
    The ARN of the role used to create the configuration
    guardrailArn String
    ARN representation for the guardrail
    guardrailId String
    Unique ID for the guardrail
    id String
    The provider-assigned unique ID for this managed resource.
    owner EnforcedGuardrailConfigurationConfigOwner
    updatedAt String
    Timestamp when the configuration was last updated
    updatedBy String
    The ARN of the role used to update the configuration
    configId string
    Unique ID for the account enforced configuration
    createdAt string
    Timestamp when the configuration was created
    createdBy string
    The ARN of the role used to create the configuration
    guardrailArn string
    ARN representation for the guardrail
    guardrailId string
    Unique ID for the guardrail
    id string
    The provider-assigned unique ID for this managed resource.
    owner EnforcedGuardrailConfigurationConfigOwner
    updatedAt string
    Timestamp when the configuration was last updated
    updatedBy string
    The ARN of the role used to update the configuration
    config_id str
    Unique ID for the account enforced configuration
    created_at str
    Timestamp when the configuration was created
    created_by str
    The ARN of the role used to create the configuration
    guardrail_arn str
    ARN representation for the guardrail
    guardrail_id str
    Unique ID for the guardrail
    id str
    The provider-assigned unique ID for this managed resource.
    owner EnforcedGuardrailConfigurationConfigOwner
    updated_at str
    Timestamp when the configuration was last updated
    updated_by str
    The ARN of the role used to update the configuration
    configId String
    Unique ID for the account enforced configuration
    createdAt String
    Timestamp when the configuration was created
    createdBy String
    The ARN of the role used to create the configuration
    guardrailArn String
    ARN representation for the guardrail
    guardrailId String
    Unique ID for the guardrail
    id String
    The provider-assigned unique ID for this managed resource.
    owner "ACCOUNT" | "ORGANIZATION"
    updatedAt String
    Timestamp when the configuration was last updated
    updatedBy String
    The ARN of the role used to update the configuration

    Look up Existing EnforcedGuardrailConfiguration Resource

    Get an existing EnforcedGuardrailConfiguration 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>, opts?: CustomResourceOptions): EnforcedGuardrailConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> EnforcedGuardrailConfiguration
    func GetEnforcedGuardrailConfiguration(ctx *Context, name string, id IDInput, state *EnforcedGuardrailConfigurationState, opts ...ResourceOption) (*EnforcedGuardrailConfiguration, error)
    public static EnforcedGuardrailConfiguration Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static EnforcedGuardrailConfiguration get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingEnforcedGuardrailConfiguration:    type: aws-native:bedrock:EnforcedGuardrailConfiguration    get:      id: ${id}
    import {
      to = aws-native_bedrock_enforced_guardrail_configuration.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state EnforcedGuardrailConfigurationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    EnforcedGuardrailConfigurationConfigOwner

    Configuration owner type

    NameValue
    AccountACCOUNT
    OrganizationORGANIZATION
    NameValue
    EnforcedGuardrailConfigurationConfigOwnerAccountACCOUNT
    EnforcedGuardrailConfigurationConfigOwnerOrganizationORGANIZATION
    Value
    ACCOUNT
    ORGANIZATION
    NameValue
    AccountACCOUNT
    OrganizationORGANIZATION
    NameValue
    AccountACCOUNT
    OrganizationORGANIZATION
    NameValue
    ACCOUNTACCOUNT
    ORGANIZATIONORGANIZATION
    Value
    ACCOUNT
    ORGANIZATION

    EnforcedGuardrailConfigurationModelEnforcement, EnforcedGuardrailConfigurationModelEnforcementArgs

    Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models

    ExcludedModels List<string>
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    IncludedModels List<string>
    Models to enforce the guardrail on
    ExcludedModels []string
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    IncludedModels []string
    Models to enforce the guardrail on
    excluded_models list(string)
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    included_models list(string)
    Models to enforce the guardrail on
    excludedModels List<String>
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    includedModels List<String>
    Models to enforce the guardrail on
    excludedModels string[]
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    includedModels string[]
    Models to enforce the guardrail on
    excluded_models Sequence[str]
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    included_models Sequence[str]
    Models to enforce the guardrail on
    excludedModels List<String>
    Models to exclude from enforcement. If a model is in both lists, it is excluded
    includedModels List<String>
    Models to enforce the guardrail on

    EnforcedGuardrailConfigurationSelectiveContentGuarding, EnforcedGuardrailConfigurationSelectiveContentGuardingArgs

    Selective content guarding controls for enforced guardrails

    messages "SELECTIVE" | "COMPREHENSIVE"
    Selective guarding mode for user messages
    system "SELECTIVE" | "COMPREHENSIVE"
    Selective guarding mode for system prompts
    messages "SELECTIVE" | "COMPREHENSIVE"
    Selective guarding mode for user messages
    system "SELECTIVE" | "COMPREHENSIVE"
    Selective guarding mode for system prompts

    EnforcedGuardrailConfigurationSelectiveContentGuardingMessages

    Selective guarding mode for user messages

    NameValue
    SelectiveSELECTIVE
    ComprehensiveCOMPREHENSIVE
    NameValue
    EnforcedGuardrailConfigurationSelectiveContentGuardingMessagesSelectiveSELECTIVE
    EnforcedGuardrailConfigurationSelectiveContentGuardingMessagesComprehensiveCOMPREHENSIVE
    Value
    SELECTIVE
    COMPREHENSIVE
    NameValue
    SelectiveSELECTIVE
    ComprehensiveCOMPREHENSIVE
    NameValue
    SelectiveSELECTIVE
    ComprehensiveCOMPREHENSIVE
    NameValue
    SELECTIVESELECTIVE
    COMPREHENSIVECOMPREHENSIVE
    Value
    SELECTIVE
    COMPREHENSIVE

    EnforcedGuardrailConfigurationSelectiveContentGuardingSystem

    Selective guarding mode for system prompts

    NameValue
    SelectiveSELECTIVE
    ComprehensiveCOMPREHENSIVE
    NameValue
    EnforcedGuardrailConfigurationSelectiveContentGuardingSystemSelectiveSELECTIVE
    EnforcedGuardrailConfigurationSelectiveContentGuardingSystemComprehensiveCOMPREHENSIVE
    Value
    SELECTIVE
    COMPREHENSIVE
    NameValue
    SelectiveSELECTIVE
    ComprehensiveCOMPREHENSIVE
    NameValue
    SelectiveSELECTIVE
    ComprehensiveCOMPREHENSIVE
    NameValue
    SELECTIVESELECTIVE
    COMPREHENSIVECOMPREHENSIVE
    Value
    SELECTIVE
    COMPREHENSIVE

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial