Class CfnEnforcedGuardrailConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrock.CfnEnforcedGuardrailConfiguration
- All Implemented Interfaces:
IInspectable,IEnforcedGuardrailConfigurationRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:31:49.826Z")
@Stability(Stable)
public class CfnEnforcedGuardrailConfiguration
extends CfnResource
implements IInspectable, IEnforcedGuardrailConfigurationRef
Definition of AWS::Bedrock::EnforcedGuardrailConfiguration Resource Type.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
CfnEnforcedGuardrailConfiguration cfnEnforcedGuardrailConfiguration = CfnEnforcedGuardrailConfiguration.Builder.create(this, "MyCfnEnforcedGuardrailConfiguration")
.guardrailIdentifier("guardrailIdentifier")
.guardrailVersion("guardrailVersion")
// the properties below are optional
.modelEnforcement(ModelEnforcementProperty.builder()
.excludedModels(List.of("excludedModels"))
.includedModels(List.of("includedModels"))
.build())
.selectiveContentGuarding(SelectiveContentGuardingProperty.builder()
.messages("messages")
.system("system")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEnforcedGuardrailConfiguration.static interfaceModel-specific information for the enforced guardrail configuration.static interfaceSelective content guarding controls for enforced guardrails.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrock.IEnforcedGuardrailConfigurationRef
IEnforcedGuardrailConfigurationRef.Jsii$Default, IEnforcedGuardrailConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEnforcedGuardrailConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEnforcedGuardrailConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnEnforcedGuardrailConfiguration(software.constructs.Construct scope, String id, CfnEnforcedGuardrailConfigurationProps props) Create a newAWS::Bedrock::EnforcedGuardrailConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionUnique ID for the account enforced configuration.Timestamp when the configuration was created.The ARN of the role used to create the configuration.ARN representation for the guardrail.Unique ID for the guardrail.Configuration owner type.Timestamp when the configuration was last updated.The ARN of the role used to update the configuration.A reference to a EnforcedGuardrailConfiguration resource.Identifier for the guardrail, could be the ID or the ARN.Numerical guardrail version (not DRAFT).Model-specific information for the enforced guardrail configuration.Selective content guarding controls for enforced guardrails.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnEnforcedGuardrailConfiguration.renderProperties(Map<String, Object> props) voidsetGuardrailIdentifier(String value) Identifier for the guardrail, could be the ID or the ARN.voidsetGuardrailVersion(String value) Numerical guardrail version (not DRAFT).voidsetModelEnforcement(IResolvable value) Model-specific information for the enforced guardrail configuration.voidModel-specific information for the enforced guardrail configuration.voidSelective content guarding controls for enforced guardrails.voidsetSelectiveContentGuarding(CfnEnforcedGuardrailConfiguration.SelectiveContentGuardingProperty value) Selective content guarding controls for enforced guardrails.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEnforcedGuardrailConfiguration
protected CfnEnforcedGuardrailConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEnforcedGuardrailConfiguration
protected CfnEnforcedGuardrailConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEnforcedGuardrailConfiguration
@Stability(Stable) public CfnEnforcedGuardrailConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEnforcedGuardrailConfigurationProps props) Create a newAWS::Bedrock::EnforcedGuardrailConfiguration.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnEnforcedGuardrailConfiguration
@Stability(Stable) @NotNull public static Boolean isCfnEnforcedGuardrailConfiguration(@NotNull Object x) Checks whether the given object is a CfnEnforcedGuardrailConfiguration.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrConfigId
Unique ID for the account enforced configuration. -
getAttrCreatedAt
Timestamp when the configuration was created. -
getAttrCreatedBy
The ARN of the role used to create the configuration. -
getAttrGuardrailArn
ARN representation for the guardrail. -
getAttrGuardrailId
Unique ID for the guardrail. -
getAttrOwner
Configuration owner type. -
getAttrUpdatedAt
Timestamp when the configuration was last updated. -
getAttrUpdatedBy
The ARN of the role used to update the configuration. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEnforcedGuardrailConfigurationRef
@Stability(Stable) @NotNull public EnforcedGuardrailConfigurationReference getEnforcedGuardrailConfigurationRef()A reference to a EnforcedGuardrailConfiguration resource.- Specified by:
getEnforcedGuardrailConfigurationRefin interfaceIEnforcedGuardrailConfigurationRef
-
getGuardrailIdentifier
Identifier for the guardrail, could be the ID or the ARN. -
setGuardrailIdentifier
Identifier for the guardrail, could be the ID or the ARN. -
getGuardrailVersion
Numerical guardrail version (not DRAFT). -
setGuardrailVersion
Numerical guardrail version (not DRAFT). -
getModelEnforcement
Model-specific information for the enforced guardrail configuration.Returns union: either
IResolvableorCfnEnforcedGuardrailConfiguration.ModelEnforcementProperty -
setModelEnforcement
Model-specific information for the enforced guardrail configuration. -
setModelEnforcement
@Stability(Stable) public void setModelEnforcement(@Nullable CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty value) Model-specific information for the enforced guardrail configuration. -
getSelectiveContentGuarding
Selective content guarding controls for enforced guardrails.Returns union: either
IResolvableorCfnEnforcedGuardrailConfiguration.SelectiveContentGuardingProperty -
setSelectiveContentGuarding
Selective content guarding controls for enforced guardrails. -
setSelectiveContentGuarding
@Stability(Stable) public void setSelectiveContentGuarding(@Nullable CfnEnforcedGuardrailConfiguration.SelectiveContentGuardingProperty value) Selective content guarding controls for enforced guardrails.
-