Class CfnAutomatedReasoningPolicyVersion

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.CfnAutomatedReasoningPolicyVersion
All Implemented Interfaces:
IInspectable, ITaggableV2, IAutomatedReasoningPolicyVersionRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-15T14:51:52.784Z") @Stability(Stable) public class CfnAutomatedReasoningPolicyVersion extends CfnResource implements IInspectable, IAutomatedReasoningPolicyVersionRef, ITaggableV2
Creates a new version of an existing Automated Reasoning policy.

This allows you to iterate on your policy rules while maintaining previous versions for rollback or comparison purposes.

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.*;
 CfnAutomatedReasoningPolicyVersion cfnAutomatedReasoningPolicyVersion = CfnAutomatedReasoningPolicyVersion.Builder.create(this, "MyCfnAutomatedReasoningPolicyVersion")
         .policyArn("policyArn")
         // the properties below are optional
         .lastUpdatedDefinitionHash("lastUpdatedDefinitionHash")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .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

    • CfnAutomatedReasoningPolicyVersion

      protected CfnAutomatedReasoningPolicyVersion(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAutomatedReasoningPolicyVersion

      protected CfnAutomatedReasoningPolicyVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAutomatedReasoningPolicyVersion

      @Stability(Stable) public CfnAutomatedReasoningPolicyVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAutomatedReasoningPolicyVersionProps props)
      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

    • 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.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the policy version was created.
    • getAttrDefinitionHash

      @Stability(Stable) @NotNull public String getAttrDefinitionHash()
      A hash of the policy definition used to identify the version.
    • getAttrDescription

      @Stability(Stable) @NotNull public String getAttrDescription()
      The description of the policy version.
    • getAttrName

      @Stability(Stable) @NotNull public String getAttrName()
      The name of the policy version.
    • getAttrPolicyId

      @Stability(Stable) @NotNull public String getAttrPolicyId()
      The unique identifier of the policy.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the policy version was last updated.
    • getAttrVersion

      @Stability(Stable) @NotNull public String getAttrVersion()
      The version number of the policy version.
    • getAutomatedReasoningPolicyVersionRef

      @Stability(Stable) @NotNull public AutomatedReasoningPolicyVersionReference getAutomatedReasoningPolicyVersionRef()
      A reference to a AutomatedReasoningPolicyVersion resource.
      Specified by:
      getAutomatedReasoningPolicyVersionRef in interface IAutomatedReasoningPolicyVersionRef
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

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

      @Stability(Stable) @NotNull public String getPolicyArn()
      The Amazon Resource Name (ARN) of the policy.
    • setPolicyArn

      @Stability(Stable) public void setPolicyArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the policy.
    • getLastUpdatedDefinitionHash

      @Stability(Stable) @Nullable public String getLastUpdatedDefinitionHash()
      The hash of the policy definition that was last updated.
    • setLastUpdatedDefinitionHash

      @Stability(Stable) public void setLastUpdatedDefinitionHash(@Nullable String value)
      The hash of the policy definition that was last updated.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags associated with the Automated Reasoning policy version.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags associated with the Automated Reasoning policy version.