Class CfnDataTableAttribute
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.connect.CfnDataTableAttribute
- All Implemented Interfaces:
IInspectable,IDataTableAttributeRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-03T13:58:20.441Z")
@Stability(Stable)
public class CfnDataTableAttribute
extends CfnResource
implements IInspectable, IDataTableAttributeRef
Represents an attribute (column) in a data table.
Attributes define the schema and validation rules for values that can be stored in the table. They specify the data type, constraints, and whether the attribute is used as a primary key for record identification.
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.connect.*;
CfnDataTableAttribute cfnDataTableAttribute = CfnDataTableAttribute.Builder.create(this, "MyCfnDataTableAttribute")
.dataTableArn("dataTableArn")
.description("description")
.instanceArn("instanceArn")
.name("name")
.primary(false)
.validation(ValidationProperty.builder()
.enum(EnumProperty.builder()
.strict(false)
.values(List.of("values"))
.build())
.exclusiveMaximum(123)
.exclusiveMinimum(123)
.maximum(123)
.maxLength(123)
.maxValues(123)
.minimum(123)
.minLength(123)
.minValues(123)
.multipleOf(123)
.build())
.valueType("valueType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDataTableAttribute.static interfaceExample:static interfaceExample:static interfaceDefines validation rules for data table attribute values.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.interfaces.connect.IDataTableAttributeRef
IDataTableAttributeRef.Jsii$Default, IDataTableAttributeRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataTableAttribute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataTableAttribute(software.amazon.jsii.JsiiObjectRef objRef) CfnDataTableAttribute(software.constructs.Construct scope, String id) Create a newAWS::Connect::DataTableAttribute.CfnDataTableAttribute(software.constructs.Construct scope, String id, CfnDataTableAttributeProps props) Create a newAWS::Connect::DataTableAttribute. -
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier for the attribute within the data table.The AWS Region where this attribute was last modified, used for region replication.The timestamp when this attribute was last modified.The Amazon Resource Name (ARN) of the data table that contains this attribute.A reference to a DataTableAttribute resource.An optional description explaining the purpose and usage of this attribute.The Amazon Resource Name (ARN) of the instance.getName()The human-readable name of the attribute.Boolean indicating whether this attribute is used as a primary key for record identification.The validation rules applied to values of this attribute.The type of value allowed for this attribute.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDataTableAttribute.renderProperties(Map<String, Object> props) voidsetDataTableArn(String value) The Amazon Resource Name (ARN) of the data table that contains this attribute.voidsetDescription(String value) An optional description explaining the purpose and usage of this attribute.voidsetInstanceArn(String value) The Amazon Resource Name (ARN) of the instance.voidThe human-readable name of the attribute.voidsetPrimary(Boolean value) Boolean indicating whether this attribute is used as a primary key for record identification.voidsetPrimary(IResolvable value) Boolean indicating whether this attribute is used as a primary key for record identification.voidsetValidation(IResolvable value) The validation rules applied to values of this attribute.voidThe validation rules applied to values of this attribute.voidsetValueType(String value) The type of value allowed for this attribute.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnDataTableAttribute
protected CfnDataTableAttribute(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataTableAttribute
protected CfnDataTableAttribute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataTableAttribute
@Stability(Stable) public CfnDataTableAttribute(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDataTableAttributeProps props) Create a newAWS::Connect::DataTableAttribute.- 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.
-
CfnDataTableAttribute
@Stability(Stable) public CfnDataTableAttribute(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::Connect::DataTableAttribute.- 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.
-
-
Method Details
-
isCfnDataTableAttribute
Checks whether the given object is a CfnDataTableAttribute.- 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.
-
getAttrAttributeId
The unique identifier for the attribute within the data table. -
getAttrLastModifiedRegion
The AWS Region where this attribute was last modified, used for region replication. -
getAttrLastModifiedTime
The timestamp when this attribute was last modified. -
getAttrLockVersion
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDataTableAttributeRef
A reference to a DataTableAttribute resource.- Specified by:
getDataTableAttributeRefin interfaceIDataTableAttributeRef
-
getDataTableArn
The Amazon Resource Name (ARN) of the data table that contains this attribute. -
setDataTableArn
The Amazon Resource Name (ARN) of the data table that contains this attribute. -
getDescription
An optional description explaining the purpose and usage of this attribute. -
setDescription
An optional description explaining the purpose and usage of this attribute. -
getInstanceArn
The Amazon Resource Name (ARN) of the instance. -
setInstanceArn
The Amazon Resource Name (ARN) of the instance. -
getName
The human-readable name of the attribute. -
setName
The human-readable name of the attribute. -
getPrimary
Boolean indicating whether this attribute is used as a primary key for record identification.Returns union: either
BooleanorIResolvable -
setPrimary
Boolean indicating whether this attribute is used as a primary key for record identification. -
setPrimary
Boolean indicating whether this attribute is used as a primary key for record identification. -
getValidation
The validation rules applied to values of this attribute.Returns union: either
IResolvableorCfnDataTableAttribute.ValidationProperty -
setValidation
The validation rules applied to values of this attribute. -
setValidation
@Stability(Stable) public void setValidation(@Nullable CfnDataTableAttribute.ValidationProperty value) The validation rules applied to values of this attribute. -
getValueType
The type of value allowed for this attribute. -
setValueType
The type of value allowed for this attribute.
-