Bedrock / Client / put_enforced_guardrail_configuration

put_enforced_guardrail_configuration

Bedrock.Client.put_enforced_guardrail_configuration(**kwargs)

Sets the account-level enforced guardrail configuration.

See also: AWS API Documentation

Request Syntax

response = client.put_enforced_guardrail_configuration(
    configId='string',
    guardrailInferenceConfig={
        'guardrailIdentifier': 'string',
        'guardrailVersion': 'string',
        'inputTags': 'HONOR'|'IGNORE'
    }
)
Parameters:
  • configId (string) – Unique ID for the account enforced configuration.

  • guardrailInferenceConfig (dict) –

    [REQUIRED]

    Account-level enforced guardrail input configuration.

    • guardrailIdentifier (string) – [REQUIRED]

      Identifier for the guardrail, could be the ID or the ARN.

    • guardrailVersion (string) – [REQUIRED]

      Numerical guardrail version.

    • inputTags (string) – [REQUIRED]

      Whether to honor or ignore input tags at runtime.

Return type:

dict

Returns:

Response Syntax

{
    'configId': 'string',
    'updatedAt': datetime(2015, 1, 1),
    'updatedBy': 'string'
}

Response Structure

  • (dict) –

    • configId (string) –

      Unique ID for the account enforced configuration.

    • updatedAt (datetime) –

      Timestamp.

    • updatedBy (string) –

      The ARN of the role used to update the configuration.

Exceptions

  • Bedrock.Client.exceptions.ResourceNotFoundException

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.ConflictException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.ThrottlingException