Type definitions#
Auto-generated documentation for Translate type annotations stubs module mypy-boto3-translate.
BlobTypeDef#
# BlobTypeDef definition
BlobTypeDef = Union[
str,
bytes,
IO[Any],
StreamingBody,
]
TimestampTypeDef#
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime,
str,
]
TermTypeDef#
# TermTypeDef definition
class TermTypeDef(TypedDict):
SourceText: NotRequired[str],
TargetText: NotRequired[str],
EncryptionKeyTypeDef#
# EncryptionKeyTypeDef definition
class EncryptionKeyTypeDef(TypedDict):
Type: EncryptionKeyTypeType, # (1)
Id: str,
ParallelDataConfigTypeDef#
# ParallelDataConfigTypeDef definition
class ParallelDataConfigTypeDef(TypedDict):
S3Uri: NotRequired[str],
Format: NotRequired[ParallelDataFormatType], # (1)
TagTypeDef#
# TagTypeDef definition
class TagTypeDef(TypedDict):
Key: str,
Value: str,
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
DeleteParallelDataRequestRequestTypeDef#
# DeleteParallelDataRequestRequestTypeDef definition
class DeleteParallelDataRequestRequestTypeDef(TypedDict):
Name: str,
DeleteTerminologyRequestRequestTypeDef#
# DeleteTerminologyRequestRequestTypeDef definition
class DeleteTerminologyRequestRequestTypeDef(TypedDict):
Name: str,
DescribeTextTranslationJobRequestRequestTypeDef#
# DescribeTextTranslationJobRequestRequestTypeDef definition
class DescribeTextTranslationJobRequestRequestTypeDef(TypedDict):
JobId: str,
GetParallelDataRequestRequestTypeDef#
# GetParallelDataRequestRequestTypeDef definition
class GetParallelDataRequestRequestTypeDef(TypedDict):
Name: str,
ParallelDataDataLocationTypeDef#
# ParallelDataDataLocationTypeDef definition
class ParallelDataDataLocationTypeDef(TypedDict):
RepositoryType: str,
Location: str,
GetTerminologyRequestRequestTypeDef#
# GetTerminologyRequestRequestTypeDef definition
class GetTerminologyRequestRequestTypeDef(TypedDict):
Name: str,
TerminologyDataFormat: NotRequired[TerminologyDataFormatType], # (1)
TerminologyDataLocationTypeDef#
# TerminologyDataLocationTypeDef definition
class TerminologyDataLocationTypeDef(TypedDict):
RepositoryType: str,
Location: str,
InputDataConfigTypeDef#
# InputDataConfigTypeDef definition
class InputDataConfigTypeDef(TypedDict):
S3Uri: str,
ContentType: str,
JobDetailsTypeDef#
# JobDetailsTypeDef definition
class JobDetailsTypeDef(TypedDict):
TranslatedDocumentsCount: NotRequired[int],
DocumentsWithErrorsCount: NotRequired[int],
InputDocumentsCount: NotRequired[int],
LanguageTypeDef#
# LanguageTypeDef definition
class LanguageTypeDef(TypedDict):
LanguageName: str,
LanguageCode: str,
ListLanguagesRequestRequestTypeDef#
# ListLanguagesRequestRequestTypeDef definition
class ListLanguagesRequestRequestTypeDef(TypedDict):
DisplayLanguageCode: NotRequired[DisplayLanguageCodeType], # (1)
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListParallelDataRequestRequestTypeDef#
# ListParallelDataRequestRequestTypeDef definition
class ListParallelDataRequestRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListTagsForResourceRequestRequestTypeDef#
# ListTagsForResourceRequestRequestTypeDef definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
ListTerminologiesRequestRequestTypeDef#
# ListTerminologiesRequestRequestTypeDef definition
class ListTerminologiesRequestRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
TranslationSettingsTypeDef#
# TranslationSettingsTypeDef definition
class TranslationSettingsTypeDef(TypedDict):
Formality: NotRequired[FormalityType], # (1)
Profanity: NotRequired[ProfanityType], # (2)
Brevity: NotRequired[BrevityType], # (3)
- See FormalityType
- See ProfanityType
- See BrevityType
StopTextTranslationJobRequestRequestTypeDef#
# StopTextTranslationJobRequestRequestTypeDef definition
class StopTextTranslationJobRequestRequestTypeDef(TypedDict):
JobId: str,
TranslatedDocumentTypeDef#
# TranslatedDocumentTypeDef definition
class TranslatedDocumentTypeDef(TypedDict):
Content: bytes,
UntagResourceRequestRequestTypeDef#
# UntagResourceRequestRequestTypeDef definition
class UntagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
TagKeys: Sequence[str],
AppliedTerminologyTypeDef#
# AppliedTerminologyTypeDef definition
class AppliedTerminologyTypeDef(TypedDict):
Name: NotRequired[str],
Terms: NotRequired[List[TermTypeDef]], # (1)
- See TermTypeDef
DocumentTypeDef#
# DocumentTypeDef definition
class DocumentTypeDef(TypedDict):
Content: Union[str, bytes, IO[Any], StreamingBody],
ContentType: str,
TerminologyDataTypeDef#
# TerminologyDataTypeDef definition
class TerminologyDataTypeDef(TypedDict):
File: Union[str, bytes, IO[Any], StreamingBody],
Format: TerminologyDataFormatType, # (1)
Directionality: NotRequired[DirectionalityType], # (2)
OutputDataConfigTypeDef#
# OutputDataConfigTypeDef definition
class OutputDataConfigTypeDef(TypedDict):
S3Uri: str,
EncryptionKey: NotRequired[EncryptionKeyTypeDef], # (1)
TerminologyPropertiesTypeDef#
# TerminologyPropertiesTypeDef definition
class TerminologyPropertiesTypeDef(TypedDict):
Name: NotRequired[str],
Description: NotRequired[str],
Arn: NotRequired[str],
SourceLanguageCode: NotRequired[str],
TargetLanguageCodes: NotRequired[List[str]],
EncryptionKey: NotRequired[EncryptionKeyTypeDef], # (1)
SizeBytes: NotRequired[int],
TermCount: NotRequired[int],
CreatedAt: NotRequired[datetime],
LastUpdatedAt: NotRequired[datetime],
Directionality: NotRequired[DirectionalityType], # (2)
Message: NotRequired[str],
SkippedTermCount: NotRequired[int],
Format: NotRequired[TerminologyDataFormatType], # (3)
ParallelDataPropertiesTypeDef#
# ParallelDataPropertiesTypeDef definition
class ParallelDataPropertiesTypeDef(TypedDict):
Name: NotRequired[str],
Arn: NotRequired[str],
Description: NotRequired[str],
Status: NotRequired[ParallelDataStatusType], # (1)
SourceLanguageCode: NotRequired[str],
TargetLanguageCodes: NotRequired[List[str]],
ParallelDataConfig: NotRequired[ParallelDataConfigTypeDef], # (2)
Message: NotRequired[str],
ImportedDataSize: NotRequired[int],
ImportedRecordCount: NotRequired[int],
FailedRecordCount: NotRequired[int],
SkippedRecordCount: NotRequired[int],
EncryptionKey: NotRequired[EncryptionKeyTypeDef], # (3)
CreatedAt: NotRequired[datetime],
LastUpdatedAt: NotRequired[datetime],
LatestUpdateAttemptStatus: NotRequired[ParallelDataStatusType], # (1)
LatestUpdateAttemptAt: NotRequired[datetime],
- See ParallelDataStatusType
- See ParallelDataConfigTypeDef
- See EncryptionKeyTypeDef
- See ParallelDataStatusType
UpdateParallelDataRequestRequestTypeDef#
# UpdateParallelDataRequestRequestTypeDef definition
class UpdateParallelDataRequestRequestTypeDef(TypedDict):
Name: str,
ParallelDataConfig: ParallelDataConfigTypeDef, # (1)
ClientToken: str,
Description: NotRequired[str],
CreateParallelDataRequestRequestTypeDef#
# CreateParallelDataRequestRequestTypeDef definition
class CreateParallelDataRequestRequestTypeDef(TypedDict):
Name: str,
ParallelDataConfig: ParallelDataConfigTypeDef, # (1)
ClientToken: str,
Description: NotRequired[str],
EncryptionKey: NotRequired[EncryptionKeyTypeDef], # (2)
Tags: NotRequired[Sequence[TagTypeDef]], # (3)
- See ParallelDataConfigTypeDef
- See EncryptionKeyTypeDef
- See TagTypeDef
TagResourceRequestRequestTypeDef#
# TagResourceRequestRequestTypeDef definition
class TagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)