CfnEntityRecognizerEndpointProps Struct
Properties for defining a CfnEntityRecognizerEndpoint.
| Source | |
|---|---|
| Type last changed |
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 cfnEntityRecognizerEndpointProps: comprehend.CfnEntityRecognizerEndpointProps = {
desiredInferenceUnits: 123,
endpointName: 'endpointName',
// the properties below are optional
dataAccessRoleArn: 'dataAccessRoleArn',
flywheelArn: 'flywheelArn',
modelArn: 'modelArn',
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_entity_recognizer_endpoint_props = comprehend.CfnEntityRecognizerEndpointProps(
desired_inference_units=123,
endpoint_name="endpointName",
# the properties below are optional
data_access_role_arn="dataAccessRoleArn",
flywheel_arn="flywheelArn",
model_arn="modelArn",
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.*;
CfnEntityRecognizerEndpointProps cfnEntityRecognizerEndpointProps = CfnEntityRecognizerEndpointProps.builder()
.desiredInferenceUnits(123)
.endpointName("endpointName")
// the properties below are optional
.dataAccessRoleArn("dataAccessRoleArn")
.flywheelArn("flywheelArn")
.modelArn("modelArn")
.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 cfnEntityRecognizerEndpointProps = new CfnEntityRecognizerEndpointProps {
DesiredInferenceUnits = 123,
EndpointName = "endpointName",
// the properties below are optional
DataAccessRoleArn = "dataAccessRoleArn",
FlywheelArn = "flywheelArn",
ModelArn = "modelArn",
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"
cfnEntityRecognizerEndpointProps := &CfnEntityRecognizerEndpointProps{
DesiredInferenceUnits: jsii.Number(123),
EndpointName: jsii.String("endpointName"),
// the properties below are optional
DataAccessRoleArn: jsii.String("dataAccessRoleArn"),
FlywheelArn: jsii.String("flywheelArn"),
ModelArn: jsii.String("modelArn"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
dataAccessRoleArnoptionalstringdata_access_role_arnoptionalstrdataAccessRoleArnoptionalStringDataAccessRoleArnoptionalstringDataAccessRoleArnoptional*string #The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
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.
flywheelArnoptionalstringflywheel_arnoptionalstrflywheelArnoptionalStringFlywheelArnoptionalstringFlywheelArnoptional*string #The Amazon Resource Name (ARN) of the flywheel to which the endpoint is attached.
modelArnoptionalstringmodel_arnoptionalstrmodelArnoptionalStringModelArnoptionalstringModelArnoptional*string #The Amazon Resource Name (ARN) of the entity recognizer model to which the endpoint is attached.