# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::Comprehend # @api private module Endpoints class BatchDetectDominantLanguage def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class BatchDetectEntities def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class BatchDetectKeyPhrases def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class BatchDetectSentiment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class BatchDetectSyntax def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class BatchDetectTargetedSentiment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ClassifyDocument def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ContainsPiiEntities def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateDataset def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateDocumentClassifier def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateEndpoint def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateEntityRecognizer def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateFlywheel def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteDocumentClassifier def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteEndpoint def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteEntityRecognizer def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteFlywheel def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeDataset def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeDocumentClassificationJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeDocumentClassifier def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeDominantLanguageDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeEndpoint def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeEntitiesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeEntityRecognizer def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeEventsDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeFlywheel def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeFlywheelIteration def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeKeyPhrasesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribePiiEntitiesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeSentimentDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeTargetedSentimentDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeTopicsDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectDominantLanguage def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectEntities def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectKeyPhrases def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectPiiEntities def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectSentiment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectSyntax def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DetectTargetedSentiment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ImportModel def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListDatasets def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListDocumentClassificationJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListDocumentClassifierSummaries def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListDocumentClassifiers def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListDominantLanguageDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEndpoints def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEntitiesDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEntityRecognizerSummaries def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEntityRecognizers def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEventsDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListFlywheelIterationHistory def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListFlywheels def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListKeyPhrasesDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListPiiEntitiesDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListSentimentDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListTagsForResource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListTargetedSentimentDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListTopicsDetectionJobs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class PutResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartDocumentClassificationJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartDominantLanguageDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartEntitiesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartEventsDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartFlywheelIteration def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartKeyPhrasesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartPiiEntitiesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartSentimentDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartTargetedSentimentDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartTopicsDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopDominantLanguageDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopEntitiesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopEventsDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopKeyPhrasesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopPiiEntitiesDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopSentimentDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopTargetedSentimentDetectionJob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopTrainingDocumentClassifier def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StopTrainingEntityRecognizer def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class TagResource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UntagResource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateEndpoint def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateFlywheel def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::Comprehend::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end end end