Class CfnTerminology
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.translate.CfnTerminology
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITerminologyRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T17:00:05.667Z")
@Stability(Stable)
public class CfnTerminology
extends CfnResource
implements IInspectable, ITerminologyRef, ITaggableV2
A custom terminology resource for Amazon Translate that enables customized translations.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.translate.*;
CfnTerminology cfnTerminology = CfnTerminology.Builder.create(this, "MyCfnTerminology")
.name("name")
// the properties below are optional
.description("description")
.encryptionKey(EncryptionKeyProperty.builder()
.id("id")
.type("type")
.build())
.mergeStrategy("mergeStrategy")
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.terminologyData(TerminologyDataProperty.builder()
.file("file")
.format("format")
// the properties below are optional
.directionality("directionality")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTerminology.static interfaceThe encryption key for the custom terminology.static interfaceExample:static interfaceThe terminology data for the custom terminology being imported.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.translate.ITerminologyRef
ITerminologyRef.Jsii$Default, ITerminologyRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTerminology(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTerminology(software.amazon.jsii.JsiiObjectRef objRef) CfnTerminology(software.constructs.Construct scope, String id, CfnTerminologyProps props) Create a newAWS::Translate::Terminology. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTerminology(ITerminologyRef resource) The Amazon Resource Name (ARN) of the custom terminology.The time the terminology was created.The directionality of the terminology.The format of the terminology data.The time the terminology was last updated.The size of the terminology file in bytes.The source language code for the custom terminology.The target language codes for the custom terminology.The number of terms in the custom terminology.Tag Manager which manages the tags for this resource.The description of the custom terminology.The encryption key for the custom terminology.The merge strategy for the custom terminology.getName()The name of the custom terminology.getTags()Tags associated with the terminology.The terminology data for the custom terminology being imported.A reference to a Terminology resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTerminology.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the custom terminology.voidsetEncryptionKey(IResolvable value) The encryption key for the custom terminology.voidThe encryption key for the custom terminology.voidsetMergeStrategy(String value) The merge strategy for the custom terminology.voidThe name of the custom terminology.voidTags associated with the terminology.voidsetTerminologyData(IResolvable value) The terminology data for the custom terminology being imported.voidThe terminology data for the custom terminology being imported.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTerminology
protected CfnTerminology(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTerminology
protected CfnTerminology(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTerminology
@Stability(Stable) public CfnTerminology(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTerminologyProps props) Create a newAWS::Translate::Terminology.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTerminology
@Stability(Stable) @NotNull public static String arnForTerminology(@NotNull ITerminologyRef resource) - Parameters:
resource- This parameter is required.
-
isCfnTerminology
Checks whether the given object is a CfnTerminology.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the custom terminology. -
getAttrCreatedAt
The time the terminology was created. -
getAttrDirectionality
The directionality of the terminology. -
getAttrFormat
The format of the terminology data. -
getAttrLastUpdatedAt
The time the terminology was last updated. -
getAttrSizeBytes
The size of the terminology file in bytes. -
getAttrSourceLanguageCode
The source language code for the custom terminology. -
getAttrTargetLanguageCodes
The target language codes for the custom terminology. -
getAttrTermCount
The number of terms in the custom terminology. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTerminologyRef
A reference to a Terminology resource.- Specified by:
getTerminologyRefin interfaceITerminologyRef
-
getName
The name of the custom terminology. -
setName
The name of the custom terminology. -
getDescription
The description of the custom terminology. -
setDescription
The description of the custom terminology. -
getEncryptionKey
The encryption key for the custom terminology.Returns union: either
IResolvableorCfnTerminology.EncryptionKeyProperty -
setEncryptionKey
The encryption key for the custom terminology. -
setEncryptionKey
@Stability(Stable) public void setEncryptionKey(@Nullable CfnTerminology.EncryptionKeyProperty value) The encryption key for the custom terminology. -
getMergeStrategy
The merge strategy for the custom terminology. -
setMergeStrategy
The merge strategy for the custom terminology. -
getTags
Tags associated with the terminology. -
setTags
Tags associated with the terminology. -
getTerminologyData
The terminology data for the custom terminology being imported.Returns union: either
IResolvableorCfnTerminology.TerminologyDataProperty -
setTerminologyData
The terminology data for the custom terminology being imported. -
setTerminologyData
@Stability(Stable) public void setTerminologyData(@Nullable CfnTerminology.TerminologyDataProperty value) The terminology data for the custom terminology being imported.
-