2026/03/06 - Amazon Bedrock - 2 updated api methods
Changes Amazon Bedrock Guardrails account-level enforcement APIs now support lists for model inclusion and exclusion from guardrail enforcement.
{'guardrailsConfig': {'modelEnforcement': {'excludedModels': ['string'],
'includedModels': ['string']}}}
Lists the account-level enforced guardrail configurations.
See also: AWS API Documentation
Request Syntax
client.list_enforced_guardrails_configuration(
nextToken='string'
)
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
'guardrailsConfig': [
{
'configId': 'string',
'guardrailArn': 'string',
'guardrailId': 'string',
'inputTags': 'HONOR'|'IGNORE',
'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.
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.
{'guardrailInferenceConfig': {'modelEnforcement': {'excludedModels': ['string'],
'includedModels': ['string']}}}
Sets the account-level enforced guardrail configuration.
See also: AWS API Documentation
Request Syntax
client.put_enforced_guardrail_configuration(
configId='string',
guardrailInferenceConfig={
'guardrailIdentifier': 'string',
'guardrailVersion': 'string',
'inputTags': 'HONOR'|'IGNORE',
'modelEnforcement': {
'includedModels': [
'string',
],
'excludedModels': [
'string',
]
}
}
)
string
Unique ID for the account enforced configuration.
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.
modelEnforcement (dict) --
Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models
includedModels (list) -- [REQUIRED]
Models to enforce the guardrail on.
(string) --
excludedModels (list) -- [REQUIRED]
Models to exclude from enforcement of the guardrail.
(string) --
dict
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.