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

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

    Using getEnforcedGuardrailConfiguration

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEnforcedGuardrailConfiguration(args: GetEnforcedGuardrailConfigurationArgs, opts?: InvokeOptions): Promise<GetEnforcedGuardrailConfigurationResult>
    function getEnforcedGuardrailConfigurationOutput(args: GetEnforcedGuardrailConfigurationOutputArgs, opts?: InvokeOptions): Output<GetEnforcedGuardrailConfigurationResult>
    def get_enforced_guardrail_configuration(config_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetEnforcedGuardrailConfigurationResult
    def get_enforced_guardrail_configuration_output(config_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetEnforcedGuardrailConfigurationResult]
    func LookupEnforcedGuardrailConfiguration(ctx *Context, args *LookupEnforcedGuardrailConfigurationArgs, opts ...InvokeOption) (*LookupEnforcedGuardrailConfigurationResult, error)
    func LookupEnforcedGuardrailConfigurationOutput(ctx *Context, args *LookupEnforcedGuardrailConfigurationOutputArgs, opts ...InvokeOption) LookupEnforcedGuardrailConfigurationResultOutput

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

    public static class GetEnforcedGuardrailConfiguration 
    {
        public static Task<GetEnforcedGuardrailConfigurationResult> InvokeAsync(GetEnforcedGuardrailConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetEnforcedGuardrailConfigurationResult> Invoke(GetEnforcedGuardrailConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnforcedGuardrailConfigurationResult> getEnforcedGuardrailConfiguration(GetEnforcedGuardrailConfigurationArgs args, InvokeOptions options)
    public static Output<GetEnforcedGuardrailConfigurationResult> getEnforcedGuardrailConfiguration(GetEnforcedGuardrailConfigurationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:bedrock:getEnforcedGuardrailConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConfigId string
    Unique ID for the account enforced configuration
    ConfigId string
    Unique ID for the account enforced configuration
    configId String
    Unique ID for the account enforced configuration
    configId string
    Unique ID for the account enforced configuration
    config_id str
    Unique ID for the account enforced configuration
    configId String
    Unique ID for the account enforced configuration

    getEnforcedGuardrailConfiguration Result

    The following output properties are available:

    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
    GuardrailIdentifier string
    Identifier for the guardrail, could be the ID or the ARN
    GuardrailVersion string
    Numerical guardrail version (not DRAFT)
    ModelEnforcement Pulumi.AwsNative.Bedrock.Outputs.EnforcedGuardrailConfigurationModelEnforcement
    Owner Pulumi.AwsNative.Bedrock.EnforcedGuardrailConfigurationConfigOwner
    SelectiveContentGuarding Pulumi.AwsNative.Bedrock.Outputs.EnforcedGuardrailConfigurationSelectiveContentGuarding
    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
    GuardrailIdentifier string
    Identifier for the guardrail, could be the ID or the ARN
    GuardrailVersion string
    Numerical guardrail version (not DRAFT)
    ModelEnforcement EnforcedGuardrailConfigurationModelEnforcement
    Owner EnforcedGuardrailConfigurationConfigOwner
    SelectiveContentGuarding EnforcedGuardrailConfigurationSelectiveContentGuarding
    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
    guardrailIdentifier String
    Identifier for the guardrail, could be the ID or the ARN
    guardrailVersion String
    Numerical guardrail version (not DRAFT)
    modelEnforcement EnforcedGuardrailConfigurationModelEnforcement
    owner EnforcedGuardrailConfigurationConfigOwner
    selectiveContentGuarding EnforcedGuardrailConfigurationSelectiveContentGuarding
    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
    guardrailIdentifier string
    Identifier for the guardrail, could be the ID or the ARN
    guardrailVersion string
    Numerical guardrail version (not DRAFT)
    modelEnforcement EnforcedGuardrailConfigurationModelEnforcement
    owner EnforcedGuardrailConfigurationConfigOwner
    selectiveContentGuarding EnforcedGuardrailConfigurationSelectiveContentGuarding
    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
    guardrail_identifier str
    Identifier for the guardrail, could be the ID or the ARN
    guardrail_version str
    Numerical guardrail version (not DRAFT)
    model_enforcement EnforcedGuardrailConfigurationModelEnforcement
    owner EnforcedGuardrailConfigurationConfigOwner
    selective_content_guarding EnforcedGuardrailConfigurationSelectiveContentGuarding
    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
    guardrailIdentifier String
    Identifier for the guardrail, could be the ID or the ARN
    guardrailVersion String
    Numerical guardrail version (not DRAFT)
    modelEnforcement Property Map
    owner "ACCOUNT"
    selectiveContentGuarding Property Map
    updatedAt String
    Timestamp when the configuration was last updated
    updatedBy String
    The ARN of the role used to update the configuration

    Supporting Types

    EnforcedGuardrailConfigurationConfigOwner

    EnforcedGuardrailConfigurationModelEnforcement

    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

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

    EnforcedGuardrailConfigurationSelectiveContentGuardingMessages

    EnforcedGuardrailConfigurationSelectiveContentGuardingSystem

    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.