Skip to content
v2.278.0

CfnDocumentClassifierEndpointProps Struct ​

Properties for defining a CfnDocumentClassifierEndpoint.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_comprehend as comprehend } from 'aws-cdk-lib';
const cfnDocumentClassifierEndpointProps: comprehend.CfnDocumentClassifierEndpointProps = {
  desiredInferenceUnits: 123,
  endpointName: 'endpointName',
  modelArn: 'modelArn',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_comprehend as comprehend

cfn_document_classifier_endpoint_props = comprehend.CfnDocumentClassifierEndpointProps(
    desired_inference_units=123,
    endpoint_name="endpointName",
    model_arn="modelArn",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// 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.*;

CfnDocumentClassifierEndpointProps cfnDocumentClassifierEndpointProps = CfnDocumentClassifierEndpointProps.builder()
        .desiredInferenceUnits(123)
        .endpointName("endpointName")
        .modelArn("modelArn")

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Comprehend;

var cfnDocumentClassifierEndpointProps = new CfnDocumentClassifierEndpointProps {
    DesiredInferenceUnits = 123,
    EndpointName = "endpointName",
    ModelArn = "modelArn",

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDocumentClassifierEndpointProps := &CfnDocumentClassifierEndpointProps{
	DesiredInferenceUnits: jsii.Number(123),
	EndpointName: jsii.String("endpointName"),
	ModelArn: jsii.String("modelArn"),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

desiredInferenceUnitsnumberdesired_inference_unitsint | floatdesiredInferenceUnitsNumberDesiredInferenceUnitsdoubleDesiredInferenceUnits*float64 required #
The desired number of inference units to be used by the model.

Each inference unit represents throughput of 100 characters per second.

endpointNamestringendpoint_namestrendpointNameStringEndpointNamestringEndpointName*string required #
The name of the endpoint.

The name must be unique within the AWS Region and account.

modelArnstringmodel_arnstrmodelArnStringModelArnstringModelArn*string required #
The Amazon Resource Name (ARN) of the document classifier model to which the endpoint is attached.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Tags associated with the endpoint being created.