Class CfnDocumentClassifierEndpoint

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.comprehend.CfnDocumentClassifierEndpoint
All Implemented Interfaces:
IInspectable, IDocumentClassifierEndpointRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-09-30T11:04:48.430Z") @Stability(Stable) public class CfnDocumentClassifierEndpoint extends CfnResource implements IInspectable, IDocumentClassifierEndpointRef, ITaggableV2
An Amazon Comprehend endpoint that hosts a custom document classification model for real-time inference.

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.comprehend.*;
 CfnDocumentClassifierEndpoint cfnDocumentClassifierEndpoint = CfnDocumentClassifierEndpoint.Builder.create(this, "MyCfnDocumentClassifierEndpoint")
         .desiredInferenceUnits(123)
         .endpointName("endpointName")
         .modelArn("modelArn")
         // the properties below are optional
         .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

    • CfnDocumentClassifierEndpoint

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

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

      @Stability(Stable) public CfnDocumentClassifierEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDocumentClassifierEndpointProps props)
      Create a new AWS::Comprehend::DocumentClassifierEndpoint.

      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

    • arnForDocumentClassifierEndpoint

      @Stability(Stable) @NotNull public static String arnForDocumentClassifierEndpoint(@NotNull IDocumentClassifierEndpointRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnDocumentClassifierEndpoint

      @Stability(Stable) @NotNull public static Boolean isCfnDocumentClassifierEndpoint(@NotNull Object x)
      Checks whether the given object is a CfnDocumentClassifierEndpoint.

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

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the document classifier endpoint.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The creation date and time of the endpoint.
    • getAttrCurrentInferenceUnits

      @Stability(Stable) @NotNull public Number getAttrCurrentInferenceUnits()
      The number of inference units currently used by the model using this endpoint.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public String getAttrLastModifiedTime()
      The date and time that the endpoint was last modified.
    • 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
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getDocumentClassifierEndpointRef

      @Stability(Stable) @NotNull public DocumentClassifierEndpointReference getDocumentClassifierEndpointRef()
      A reference to a DocumentClassifierEndpoint resource.
      Specified by:
      getDocumentClassifierEndpointRef in interface IDocumentClassifierEndpointRef
    • getDesiredInferenceUnits

      @Stability(Stable) @NotNull public Number getDesiredInferenceUnits()
      The desired number of inference units to be used by the model.
    • setDesiredInferenceUnits

      @Stability(Stable) public void setDesiredInferenceUnits(@NotNull Number value)
      The desired number of inference units to be used by the model.
    • getEndpointName

      @Stability(Stable) @NotNull public String getEndpointName()
      The name of the endpoint.
    • setEndpointName

      @Stability(Stable) public void setEndpointName(@NotNull String value)
      The name of the endpoint.
    • getModelArn

      @Stability(Stable) @NotNull public String getModelArn()
      The Amazon Resource Name (ARN) of the document classifier model to which the endpoint is attached.
    • setModelArn

      @Stability(Stable) public void setModelArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the document classifier model to which the endpoint is attached.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags associated with the endpoint being created.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags associated with the endpoint being created.