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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrConfigId

      @Stability(Stable) @NotNull public String getAttrConfigId()
      Unique ID for the account enforced configuration.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      Timestamp when the configuration was created.
    • getAttrCreatedBy

      @Stability(Stable) @NotNull public String getAttrCreatedBy()
      The ARN of the role used to create the configuration.
    • getAttrGuardrailArn

      @Stability(Stable) @NotNull public String getAttrGuardrailArn()
      ARN representation for the guardrail.
    • getAttrGuardrailId

      @Stability(Stable) @NotNull public String getAttrGuardrailId()
      Unique ID for the guardrail.
    • getAttrOwner

      @Stability(Stable) @NotNull public String getAttrOwner()
      Configuration owner type.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      Timestamp when the configuration was last updated.
    • getAttrUpdatedBy

      @Stability(Stable) @NotNull public String getAttrUpdatedBy()
      The ARN of the role used to update the configuration.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getEnforcedGuardrailConfigurationRef

      @Stability(Stable) @NotNull public EnforcedGuardrailConfigurationReference getEnforcedGuardrailConfigurationRef()
      A reference to a EnforcedGuardrailConfiguration resource.
      Specified by:
      getEnforcedGuardrailConfigurationRef in interface IEnforcedGuardrailConfigurationRef
    • getGuardrailIdentifier

      @Stability(Stable) @NotNull public String getGuardrailIdentifier()
      Identifier for the guardrail, could be the ID or the ARN.
    • setGuardrailIdentifier

      @Stability(Stable) public void setGuardrailIdentifier(@NotNull String value)
      Identifier for the guardrail, could be the ID or the ARN.
    • getGuardrailVersion

      @Stability(Stable) @NotNull public String getGuardrailVersion()
      Numerical guardrail version (not DRAFT).
    • setGuardrailVersion

      @Stability(Stable) public void setGuardrailVersion(@NotNull String value)
      Numerical guardrail version (not DRAFT).
    • getModelEnforcement

      @Stability(Stable) @Nullable public Object getModelEnforcement()
      Model-specific information for the enforced guardrail configuration.

      Returns union: either IResolvable or CfnEnforcedGuardrailConfiguration.ModelEnforcementProperty

    • setModelEnforcement

      @Stability(Stable) public void setModelEnforcement(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public Object getSelectiveContentGuarding()
      Selective content guarding controls for enforced guardrails.

      Returns union: either IResolvable or CfnEnforcedGuardrailConfiguration.SelectiveContentGuardingProperty

    • setSelectiveContentGuarding

      @Stability(Stable) public void setSelectiveContentGuarding(@Nullable IResolvable value)
      Selective content guarding controls for enforced guardrails.
    • setSelectiveContentGuarding

      @Stability(Stable) public void setSelectiveContentGuarding(@Nullable CfnEnforcedGuardrailConfiguration.SelectiveContentGuardingProperty value)
      Selective content guarding controls for enforced guardrails.