aws-cdk-lib.aws_dynamodb.CfnGlobalTable.AttributeDefinitionProperty

interface AttributeDefinitionProperty

LanguageType name
.NETAmazon.CDK.AWS.DynamoDB.CfnGlobalTable.AttributeDefinitionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#CfnGlobalTable_AttributeDefinitionProperty
Javasoftware.amazon.awscdk.services.dynamodb.CfnGlobalTable.AttributeDefinitionProperty
Pythonaws_cdk.aws_dynamodb.CfnGlobalTable.AttributeDefinitionProperty
TypeScript aws-cdk-lib » aws_dynamodb » CfnGlobalTable » AttributeDefinitionProperty

Represents an attribute for describing the key schema for the table and indexes.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const attributeDefinitionProperty: dynamodb.CfnGlobalTable.AttributeDefinitionProperty = {
  attributeName: 'attributeName',
  attributeType: 'attributeType',
};

Properties

NameTypeDescription
attributeNamestringA name for the attribute.
attributeTypestringThe data type for the attribute, where:.

attributeName

Type: string

A name for the attribute.


attributeType

Type: string

The data type for the attribute, where:.

  • S - the attribute is of type String
  • N - the attribute is of type Number
  • B - the attribute is of type Binary