Bedrock / Client / list_enforced_guardrails_configuration
list_enforced_guardrails_configuration¶
- Bedrock.Client.list_enforced_guardrails_configuration(**kwargs)¶
Lists the account-level enforced guardrail configurations.
See also: AWS API Documentation
Request Syntax
response = client.list_enforced_guardrails_configuration( nextToken='string' )
- Parameters:
nextToken (string) – Opaque continuation token of previous paginated response.
- Return type:
dict
- Returns:
Response Syntax
{ 'guardrailsConfig': [ { 'configId': 'string', 'guardrailArn': 'string', 'guardrailId': 'string', 'inputTags': 'HONOR'|'IGNORE', 'selectiveContentGuarding': { 'system': 'SELECTIVE'|'COMPREHENSIVE', 'messages': 'SELECTIVE'|'COMPREHENSIVE' }, 'guardrailVersion': 'string', 'createdAt': datetime(2015, 1, 1), 'createdBy': 'string', 'updatedAt': datetime(2015, 1, 1), 'updatedBy': 'string', 'owner': 'ACCOUNT', 'modelEnforcement': { 'includedModels': [ 'string', ], 'excludedModels': [ 'string', ] } }, ], 'nextToken': 'string' }
Response Structure
(dict) –
guardrailsConfig (list) –
Array of AccountEnforcedGuardrailOutputConfiguration objects.
(dict) –
Account enforced guardrail output configuration.
configId (string) –
Unique ID for the account enforced configuration.
guardrailArn (string) –
ARN representation for the guardrail.
guardrailId (string) –
Unique ID for the guardrail.
inputTags (string) –
Whether to honor or ignore input tags at runtime.
selectiveContentGuarding (dict) –
Selective content guarding controls for enforced guardrails.
system (string) –
Selective guarding mode for system prompts.”
messages (string) –
Selective guarding mode for user messages.
guardrailVersion (string) –
Numerical guardrail version.
createdAt (datetime) –
Timestamp.
createdBy (string) –
The ARN of the role used to update the configuration.
updatedAt (datetime) –
Timestamp.
updatedBy (string) –
The ARN of the role used to update the configuration.
owner (string) –
Configuration owner type.
modelEnforcement (dict) –
Model-specific information for the enforced guardrail configuration.
includedModels (list) –
Models to enforce the guardrail on.
(string) –
excludedModels (list) –
Models to exclude from enforcement of the guardrail.
(string) –
nextToken (string) –
Opaque continuation token of previous paginated response.
Exceptions
Bedrock.Client.exceptions.ResourceNotFoundExceptionBedrock.Client.exceptions.AccessDeniedExceptionBedrock.Client.exceptions.ValidationExceptionBedrock.Client.exceptions.InternalServerExceptionBedrock.Client.exceptions.ThrottlingException