output "aws_dynamodb_table_arn" {
  description = "Amazon Resource Name (ARN) of the dynamodb table"
  value       = element(concat(aws_dynamodb_table.dynamodb_table.*.arn, [""]), 0)
}

output "aws_dynamodb_table_id" {
  description = "Unique identifier for the dynamodb table"
  value       = element(concat(aws_dynamodb_table.dynamodb_table.*.id, [""]), 0)
}

output "aws_dynamodb_table_stream_arn" {
  description = "Table stream Amazon Resource Name (ARN) of the dynamodb table"
  value = element(
    concat(aws_dynamodb_table.dynamodb_table.*.stream_arn, [""]),
    0,
  )
}

output "aws_dynamodb_table_arn_with_sort_key" {
  description = "Amazon Resource Name (ARN) of the dynamodb table"
  value = element(
    concat(aws_dynamodb_table.dynamodb_table_with_sort_key.*.arn, [""]),
    0,
  )
}

output "aws_dynamodb_table_id_with_sort_key" {
  description = "Unique identifier for the dynamodb table"
  value = element(
    concat(aws_dynamodb_table.dynamodb_table_with_sort_key.*.id, [""]),
    0,
  )
}

output "aws_dynamodb_table_stream_arn_with_sort_key" {
  description = "Table stream Amazon Resource Name (ARN) of the dynamodb table"
  value = element(
    concat(
      aws_dynamodb_table.dynamodb_table_with_sort_key.*.stream_arn,
      [""],
    ),
    0,
  )
}

