1. Packages
  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.62.0
published on Monday, Apr 20, 2026 by Pulumi
aws-native logo

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

Viewing docs for AWS Cloud Control v1.62.0
published on Monday, Apr 20, 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.
    
    

    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:

    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
    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"
    updatedAt String
    Timestamp when the configuration was last updated
    updatedBy String
    The ARN of the role used to update the configuration

    Supporting Types

    EnforcedGuardrailConfigurationConfigOwner, EnforcedGuardrailConfigurationConfigOwnerArgs

    Account
    ACCOUNT
    EnforcedGuardrailConfigurationConfigOwnerAccount
    ACCOUNT
    Account
    ACCOUNT
    Account
    ACCOUNT
    ACCOUNT
    ACCOUNT
    "ACCOUNT"
    ACCOUNT

    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
    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

    EnforcedGuardrailConfigurationSelectiveContentGuardingMessages, EnforcedGuardrailConfigurationSelectiveContentGuardingMessagesArgs

    Selective
    SELECTIVE
    Comprehensive
    COMPREHENSIVE
    EnforcedGuardrailConfigurationSelectiveContentGuardingMessagesSelective
    SELECTIVE
    EnforcedGuardrailConfigurationSelectiveContentGuardingMessagesComprehensive
    COMPREHENSIVE
    Selective
    SELECTIVE
    Comprehensive
    COMPREHENSIVE
    Selective
    SELECTIVE
    Comprehensive
    COMPREHENSIVE
    SELECTIVE
    SELECTIVE
    COMPREHENSIVE
    COMPREHENSIVE
    "SELECTIVE"
    SELECTIVE
    "COMPREHENSIVE"
    COMPREHENSIVE

    EnforcedGuardrailConfigurationSelectiveContentGuardingSystem, EnforcedGuardrailConfigurationSelectiveContentGuardingSystemArgs

    Selective
    SELECTIVE
    Comprehensive
    COMPREHENSIVE
    EnforcedGuardrailConfigurationSelectiveContentGuardingSystemSelective
    SELECTIVE
    EnforcedGuardrailConfigurationSelectiveContentGuardingSystemComprehensive
    COMPREHENSIVE
    Selective
    SELECTIVE
    Comprehensive
    COMPREHENSIVE
    Selective
    SELECTIVE
    Comprehensive
    COMPREHENSIVE
    SELECTIVE
    SELECTIVE
    COMPREHENSIVE
    COMPREHENSIVE
    "SELECTIVE"
    SELECTIVE
    "COMPREHENSIVE"
    COMPREHENSIVE

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.62.0
    published on Monday, Apr 20, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.