Class CfnEntityRecognizerEndpoint.Builder
java.lang.Object
software.amazon.awscdk.services.comprehend.CfnEntityRecognizerEndpoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEntityRecognizerEndpoint>
- Enclosing class:
CfnEntityRecognizerEndpoint
@Stability(Stable)
public static final class CfnEntityRecognizerEndpoint.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEntityRecognizerEndpoint>
A fluent builder for
CfnEntityRecognizerEndpoint.-
Method Summary
Modifier and TypeMethodDescriptionbuild()dataAccessRoleArn(String dataAccessRoleArn) 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).desiredInferenceUnits(Number desiredInferenceUnits) The desired number of inference units to be used by the model.endpointName(String endpointName) The name of the endpoint.flywheelArn(String flywheelArn) The Amazon Resource Name (ARN) of the flywheel to which the endpoint is attached.The Amazon Resource Name (ARN) of the entity recognizer model to which the endpoint is attached.Tags associated with the endpoint being created.
-
Method Details
-
create
@Stability(Stable) public static CfnEntityRecognizerEndpoint.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnEntityRecognizerEndpoint.Builder.
-
desiredInferenceUnits
@Stability(Stable) public CfnEntityRecognizerEndpoint.Builder desiredInferenceUnits(Number desiredInferenceUnits) The desired number of inference units to be used by the model.Each inference unit represents throughput of 100 characters per second.
- Parameters:
desiredInferenceUnits- The desired number of inference units to be used by the model. This parameter is required.- Returns:
this- See Also:
-
endpointName
The name of the endpoint.The name must be unique within the AWS Region and account.
- Parameters:
endpointName- The name of the endpoint. This parameter is required.- Returns:
this- See Also:
-
dataAccessRoleArn
@Stability(Stable) public CfnEntityRecognizerEndpoint.Builder dataAccessRoleArn(String dataAccessRoleArn) 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).- Parameters:
dataAccessRoleArn- 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). This parameter is required.- Returns:
this- See Also:
-
flywheelArn
The Amazon Resource Name (ARN) of the flywheel to which the endpoint is attached.- Parameters:
flywheelArn- The Amazon Resource Name (ARN) of the flywheel to which the endpoint is attached. This parameter is required.- Returns:
this- See Also:
-
modelArn
The Amazon Resource Name (ARN) of the entity recognizer model to which the endpoint is attached.- Parameters:
modelArn- The Amazon Resource Name (ARN) of the entity recognizer model to which the endpoint is attached. This parameter is required.- Returns:
this- See Also:
-
tags
Tags associated with the endpoint being created.- Parameters:
tags- Tags associated with the endpoint being created. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEntityRecognizerEndpoint>- Returns:
- a newly built instance of
CfnEntityRecognizerEndpoint.
-