libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Comprehend.CreateEndpoint

Description

Creates a model-specific endpoint for synchronous inference for a previously trained custom model

Synopsis

Creating a Request

data CreateEndpoint Source #

See: newCreateEndpoint smart constructor.

Constructors

CreateEndpoint' 

Fields

  • dataAccessRoleArn :: Maybe Text

    The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).

  • clientRequestToken :: Maybe Text

    An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a ResourceInUseException.

  • tags :: Maybe [Tag]

    Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.

  • endpointName :: Text

    This is the descriptive suffix that becomes part of the EndpointArn used for all subsequent requests to this resource.

  • modelArn :: Text

    The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.

  • desiredInferenceUnits :: Natural

    The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

Instances

Instances details
Eq CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Read CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Show CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Generic CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Associated Types

type Rep CreateEndpoint :: Type -> Type #

NFData CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Methods

rnf :: CreateEndpoint -> () #

Hashable CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

ToJSON CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

AWSRequest CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Associated Types

type AWSResponse CreateEndpoint #

ToHeaders CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

ToPath CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

ToQuery CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

type Rep CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

type Rep CreateEndpoint = D1 ('MetaData "CreateEndpoint" "Amazonka.Comprehend.CreateEndpoint" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "CreateEndpoint'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dataAccessRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: (S1 ('MetaSel ('Just "endpointName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "modelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "desiredInferenceUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))
type AWSResponse CreateEndpoint Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

newCreateEndpoint Source #

Create a value of CreateEndpoint with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dataAccessRoleArn:CreateEndpoint', createEndpoint_dataAccessRoleArn - The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).

$sel:clientRequestToken:CreateEndpoint', createEndpoint_clientRequestToken - An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a ResourceInUseException.

$sel:tags:CreateEndpoint', createEndpoint_tags - Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.

$sel:endpointName:CreateEndpoint', createEndpoint_endpointName - This is the descriptive suffix that becomes part of the EndpointArn used for all subsequent requests to this resource.

$sel:modelArn:CreateEndpoint', createEndpoint_modelArn - The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.

$sel:desiredInferenceUnits:CreateEndpoint', createEndpoint_desiredInferenceUnits - The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

Request Lenses

createEndpoint_dataAccessRoleArn :: Lens' CreateEndpoint (Maybe Text) Source #

The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).

createEndpoint_clientRequestToken :: Lens' CreateEndpoint (Maybe Text) Source #

An idempotency token provided by the customer. If this token matches a previous endpoint creation request, Amazon Comprehend will not return a ResourceInUseException.

createEndpoint_tags :: Lens' CreateEndpoint (Maybe [Tag]) Source #

Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.

createEndpoint_endpointName :: Lens' CreateEndpoint Text Source #

This is the descriptive suffix that becomes part of the EndpointArn used for all subsequent requests to this resource.

createEndpoint_modelArn :: Lens' CreateEndpoint Text Source #

The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.

createEndpoint_desiredInferenceUnits :: Lens' CreateEndpoint Natural Source #

The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.

Destructuring the Response

data CreateEndpointResponse Source #

See: newCreateEndpointResponse smart constructor.

Constructors

CreateEndpointResponse' 

Fields

Instances

Instances details
Eq CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Read CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Show CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Generic CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Associated Types

type Rep CreateEndpointResponse :: Type -> Type #

NFData CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

Methods

rnf :: CreateEndpointResponse -> () #

type Rep CreateEndpointResponse Source # 
Instance details

Defined in Amazonka.Comprehend.CreateEndpoint

type Rep CreateEndpointResponse = D1 ('MetaData "CreateEndpointResponse" "Amazonka.Comprehend.CreateEndpoint" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "CreateEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "endpointArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateEndpointResponse Source #

Create a value of CreateEndpointResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:endpointArn:CreateEndpointResponse', createEndpointResponse_endpointArn - The Amazon Resource Number (ARN) of the endpoint being created.

$sel:httpStatus:CreateEndpointResponse', createEndpointResponse_httpStatus - The response's http status code.

Response Lenses

createEndpointResponse_endpointArn :: Lens' CreateEndpointResponse (Maybe Text) Source #

The Amazon Resource Number (ARN) of the endpoint being created.