import * as cdk from "../../core/lib"; import * as constructs from "constructs"; import * as cfn_parse from "../../core/lib/helpers-internal"; import { IParallelDataRef, ITerminologyRef, ParallelDataReference, TerminologyReference } from "../../interfaces/generated/aws-translate-interfaces.generated"; /** * A parallel data resource in Amazon Translate used to customize machine translation output. * * @cloudformationResource AWS::Translate::ParallelData * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html */ export declare class CfnParallelData extends cdk.CfnResource implements cdk.IInspectable, IParallelDataRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnParallelData from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnParallelData; /** * Checks whether the given object is a CfnParallelData */ static isCfnParallelData(x: any): x is CfnParallelData; static arnForParallelData(resource: IParallelDataRef): string; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * A custom description for the parallel data resource. */ private _description?; /** * The encryption key used to encrypt this object. */ private _encryptionKey?; /** * A custom name for the parallel data resource. */ private _name; /** * Specifies the format and S3 location of the parallel data input file. */ private _parallelDataConfig; /** * Tags associated with the parallel data resource. */ private _tags?; protected readonly cfnPropertyNames: Record; /** * Create a new `AWS::Translate::ParallelData`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnParallelDataProps); get parallelDataRef(): ParallelDataReference; /** * A custom description for the parallel data resource. */ get description(): string | undefined; /** * A custom description for the parallel data resource. */ set description(value: string | undefined); /** * The encryption key used to encrypt this object. */ get encryptionKey(): CfnParallelData.EncryptionKeyProperty | cdk.IResolvable | undefined; /** * The encryption key used to encrypt this object. */ set encryptionKey(value: CfnParallelData.EncryptionKeyProperty | cdk.IResolvable | undefined); /** * A custom name for the parallel data resource. */ get name(): string; /** * A custom name for the parallel data resource. */ set name(value: string); /** * Specifies the format and S3 location of the parallel data input file. */ get parallelDataConfig(): cdk.IResolvable | CfnParallelData.ParallelDataConfigProperty; /** * Specifies the format and S3 location of the parallel data input file. */ set parallelDataConfig(value: cdk.IResolvable | CfnParallelData.ParallelDataConfigProperty); /** * Tags associated with the parallel data resource. */ get tags(): Array | undefined; /** * Tags associated with the parallel data resource. */ set tags(value: Array | undefined); /** * The Amazon Resource Name (ARN) of the parallel data resource. * * @cloudformationAttribute Arn */ get attrArn(): string; /** * The time at which the parallel data resource was created. * * @cloudformationAttribute CreatedAt */ get attrCreatedAt(): string; /** * The number of records unsuccessfully imported. * * @cloudformationAttribute FailedRecordCount */ get attrFailedRecordCount(): number; /** * The number of UTF-8 characters imported from the parallel data input file. * * @cloudformationAttribute ImportedDataSize */ get attrImportedDataSize(): number; /** * The number of records successfully imported. * * @cloudformationAttribute ImportedRecordCount */ get attrImportedRecordCount(): number; /** * The time at which the parallel data resource was last updated. * * @cloudformationAttribute LastUpdatedAt */ get attrLastUpdatedAt(): string; /** * The number of items skipped during import. * * @cloudformationAttribute SkippedRecordCount */ get attrSkippedRecordCount(): number; /** * The source language of the translations in the parallel data file. * * @cloudformationAttribute SourceLanguageCode */ get attrSourceLanguageCode(): string; /** * The status of the parallel data resource. * * @cloudformationAttribute Status */ get attrStatus(): string; /** * The language codes for the target languages available in the parallel data file. * * @cloudformationAttribute TargetLanguageCodes */ get attrTargetLanguageCodes(): Array; protected get cfnProperties(): Record; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record): Record; } export declare namespace CfnParallelData { /** * Specifies the format and S3 location of the parallel data input file. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-paralleldataconfig.html */ interface ParallelDataConfigProperty { /** * The format of the parallel data input file. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-paralleldataconfig.html#cfn-translate-paralleldata-paralleldataconfig-format */ readonly format: string; /** * The URI of the Amazon S3 folder that contains the parallel data input file. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-paralleldataconfig.html#cfn-translate-paralleldata-paralleldataconfig-s3uri */ readonly s3Uri: string; } /** * The encryption key used to encrypt this object. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-encryptionkey.html */ interface EncryptionKeyProperty { /** * The Amazon Resource Name (ARN) of the encryption key. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-encryptionkey.html#cfn-translate-paralleldata-encryptionkey-id */ readonly id: string; /** * The type of encryption key. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-encryptionkey.html#cfn-translate-paralleldata-encryptionkey-type */ readonly type: string; } /** * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-tagsitems.html */ interface TagsItemsProperty { /** * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-tagsitems.html#cfn-translate-paralleldata-tagsitems-key */ readonly key: string; /** * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-paralleldata-tagsitems.html#cfn-translate-paralleldata-tagsitems-value */ readonly value: string; } } /** * Properties for defining a `CfnParallelData` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html */ export interface CfnParallelDataProps { /** * A custom description for the parallel data resource. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html#cfn-translate-paralleldata-description */ readonly description?: string; /** * The encryption key used to encrypt this object. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html#cfn-translate-paralleldata-encryptionkey */ readonly encryptionKey?: CfnParallelData.EncryptionKeyProperty | cdk.IResolvable; /** * A custom name for the parallel data resource. * * Must be unique in the account and region. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html#cfn-translate-paralleldata-name */ readonly name: string; /** * Specifies the format and S3 location of the parallel data input file. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html#cfn-translate-paralleldata-paralleldataconfig */ readonly parallelDataConfig: cdk.IResolvable | CfnParallelData.ParallelDataConfigProperty; /** * Tags associated with the parallel data resource. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-paralleldata.html#cfn-translate-paralleldata-tags */ readonly tags?: Array; } /** * A custom terminology resource for Amazon Translate that enables customized translations. * * @cloudformationResource AWS::Translate::Terminology * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html */ export declare class CfnTerminology extends cdk.CfnResource implements cdk.IInspectable, ITerminologyRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnTerminology from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnTerminology; /** * Checks whether the given object is a CfnTerminology */ static isCfnTerminology(x: any): x is CfnTerminology; static arnForTerminology(resource: ITerminologyRef): string; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * The description of the custom terminology. */ private _description?; /** * The encryption key for the custom terminology. */ private _encryptionKey?; /** * The merge strategy for the custom terminology. */ private _mergeStrategy?; /** * The name of the custom terminology. */ private _name; /** * Tags associated with the terminology. */ private _tags?; /** * The terminology data for the custom terminology being imported. */ private _terminologyData?; protected readonly cfnPropertyNames: Record; /** * Create a new `AWS::Translate::Terminology`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnTerminologyProps); get terminologyRef(): TerminologyReference; /** * The description of the custom terminology. */ get description(): string | undefined; /** * The description of the custom terminology. */ set description(value: string | undefined); /** * The encryption key for the custom terminology. */ get encryptionKey(): CfnTerminology.EncryptionKeyProperty | cdk.IResolvable | undefined; /** * The encryption key for the custom terminology. */ set encryptionKey(value: CfnTerminology.EncryptionKeyProperty | cdk.IResolvable | undefined); /** * The merge strategy for the custom terminology. */ get mergeStrategy(): string | undefined; /** * The merge strategy for the custom terminology. */ set mergeStrategy(value: string | undefined); /** * The name of the custom terminology. */ get name(): string; /** * The name of the custom terminology. */ set name(value: string); /** * Tags associated with the terminology. */ get tags(): Array | undefined; /** * Tags associated with the terminology. */ set tags(value: Array | undefined); /** * The terminology data for the custom terminology being imported. */ get terminologyData(): cdk.IResolvable | CfnTerminology.TerminologyDataProperty | undefined; /** * The terminology data for the custom terminology being imported. */ set terminologyData(value: cdk.IResolvable | CfnTerminology.TerminologyDataProperty | undefined); /** * The Amazon Resource Name (ARN) of the custom terminology. * * @cloudformationAttribute Arn */ get attrArn(): string; /** * The time the terminology was created. * * @cloudformationAttribute CreatedAt */ get attrCreatedAt(): string; /** * The directionality of the terminology. * * @cloudformationAttribute Directionality */ get attrDirectionality(): string; /** * The format of the terminology data. * * @cloudformationAttribute Format */ get attrFormat(): string; /** * The time the terminology was last updated. * * @cloudformationAttribute LastUpdatedAt */ get attrLastUpdatedAt(): string; /** * The size of the terminology file in bytes. * * @cloudformationAttribute SizeBytes */ get attrSizeBytes(): number; /** * The source language code for the custom terminology. * * @cloudformationAttribute SourceLanguageCode */ get attrSourceLanguageCode(): string; /** * The target language codes for the custom terminology. * * @cloudformationAttribute TargetLanguageCodes */ get attrTargetLanguageCodes(): Array; /** * The number of terms in the custom terminology. * * @cloudformationAttribute TermCount */ get attrTermCount(): number; protected get cfnProperties(): Record; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record): Record; } export declare namespace CfnTerminology { /** * The terminology data for the custom terminology being imported. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-terminologydata.html */ interface TerminologyDataProperty { /** * The directionality of the terminology resource. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-terminologydata.html#cfn-translate-terminology-terminologydata-directionality */ readonly directionality?: string; /** * The file containing the custom terminology data, base64-encoded. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-terminologydata.html#cfn-translate-terminology-terminologydata-file */ readonly file: string; /** * The data format of the custom terminology. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-terminologydata.html#cfn-translate-terminology-terminologydata-format */ readonly format: string; } /** * The encryption key for the custom terminology. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-encryptionkey.html */ interface EncryptionKeyProperty { /** * The Amazon Resource Name (ARN) of the encryption key. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-encryptionkey.html#cfn-translate-terminology-encryptionkey-id */ readonly id: string; /** * The type of encryption key. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-encryptionkey.html#cfn-translate-terminology-encryptionkey-type */ readonly type: string; } /** * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-tagsitems.html */ interface TagsItemsProperty { /** * The key of the tag. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-tagsitems.html#cfn-translate-terminology-tagsitems-key */ readonly key: string; /** * The value of the tag. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-translate-terminology-tagsitems.html#cfn-translate-terminology-tagsitems-value */ readonly value: string; } } /** * Properties for defining a `CfnTerminology` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html */ export interface CfnTerminologyProps { /** * The description of the custom terminology. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html#cfn-translate-terminology-description */ readonly description?: string; /** * The encryption key for the custom terminology. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html#cfn-translate-terminology-encryptionkey */ readonly encryptionKey?: CfnTerminology.EncryptionKeyProperty | cdk.IResolvable; /** * The merge strategy for the custom terminology. * * Currently only OVERWRITE is supported. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html#cfn-translate-terminology-mergestrategy */ readonly mergeStrategy?: string; /** * The name of the custom terminology. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html#cfn-translate-terminology-name */ readonly name: string; /** * Tags associated with the terminology. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html#cfn-translate-terminology-tags */ readonly tags?: Array; /** * The terminology data for the custom terminology being imported. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-translate-terminology.html#cfn-translate-terminology-terminologydata */ readonly terminologyData?: cdk.IResolvable | CfnTerminology.TerminologyDataProperty; } export type { IParallelDataRef, ParallelDataReference }; export type { ITerminologyRef, TerminologyReference };