# yaml-language-server: $schema=../../../schemas/@aws-mdaa/dataops-dynamodb.json
# (Required) Name of the Data Ops Project
# Name the project the resources of which can be used by this dynamodb app.
# Other resources within the project can be referenced in the dynamodb config using
# the "project:" prefix on the config value.
projectName: hda-project
# List of dynamodb definitions
tableDefinitions:
  file_tracker_history:
    # Partition key, required
    partitionKey:
      name: source_table_name
      type: S
    # Sort key, optional
    sortKey:
      name: file_id
      type: S
    # Optional. If missing, will assume PAY_PER_REQUEST. if PROVISIONED will need to indicate the read and write capacities
    billingMode: PROVISIONED
    # Required only for PROVISIONED billing mode: for an item up to 4 KB, one read capacity unit (RCU) represents one strongly consistent read operation per second, or two eventually consistent read operations per second
    readCapacity: 10
    # Required only for PROVISIONED billing mode: A write capacity unit (WCU) represents one write per second for an item up to 1 KB
    writeCapacity: 10
  file_tracker:
    # Partition key, required
    partitionKey:
      name: source_table_name
      type: S
    # Sort key, optional
    sortKey:
      name: file_id
      type: S
    # Optional. If missing, will assume PAY_PER_REQUEST. if PROVISIONED will need to indicate the read and write capacities
    billingMode: PROVISIONED
    # Required only for PROVISIONED billing mode: for an item up to 4 KB, one read capacity unit (RCU) represents one strongly consistent read operation per second, or two eventually consistent read operations per second
    readCapacity: 10
    # Required only for PROVISIONED billing mode: A write capacity unit (WCU) represents one write per second for an item up to 1 KB
    writeCapacity: 10
  odpf_batch_config:
    # Partition key, required
    partitionKey:
      name: refresh_cadence
      type: S
    # Optional. If missing, will assume PAY_PER_REQUEST. if PROVISIONED will need to indicate the read and write capacities
    billingMode: PROVISIONED
    # Required only for PROVISIONED billing mode: for an item up to 4 KB, one read capacity unit (RCU) represents one strongly consistent read operation per second, or two eventually consistent read operations per second
    readCapacity: 10
    # Required only for PROVISIONED billing mode: A write capacity unit (WCU) represents one write per second for an item up to 1 KB
    writeCapacity: 10
  odpf_raw_table_config:
    # Partition key, required
    partitionKey:
      name: refresh_cadence
      type: S
    # Sort key, optional
    sortKey:
      name: source_table_name
      type: S
    # Optional. If missing, will assume PAY_PER_REQUEST. if PROVISIONED will need to indicate the read and write capacities
    billingMode: PROVISIONED
    # Required only for PROVISIONED billing mode: for an item up to 4 KB, one read capacity unit (RCU) represents one strongly consistent read operation per second, or two eventually consistent read operations per second
    readCapacity: 10
    # Required only for PROVISIONED billing mode: A write capacity unit (WCU) represents one write per second for an item up to 1 KB
    writeCapacity: 10
  odpf_file_processing_tracker_history:
    # Partition key, required
    partitionKey:
      name: raw_table_name
      type: S
    # Sort key, optional
    sortKey:
      name: glue_job_run_id
      type: S
    # Optional. If missing, will assume PAY_PER_REQUEST. if PROVISIONED will need to indicate the read and write capacities
    billingMode: PROVISIONED
    # Required only for PROVISIONED billing mode: for an item up to 4 KB, one read capacity unit (RCU) represents one strongly consistent read operation per second, or two eventually consistent read operations per second
    readCapacity: 10
    # Required only for PROVISIONED billing mode: A write capacity unit (WCU) represents one write per second for an item up to 1 KB
    writeCapacity: 10
  odpf_file_processing_tracker:
    # Partition key, required
    partitionKey:
      name: raw_table_name
      type: S
    # Sort key, optional
    sortKey:
      name: glue_job_run_id
      type: S
    # Optional. If missing, will assume PAY_PER_REQUEST. if PROVISIONED will need to indicate the read and write capacities
    billingMode: PROVISIONED
    # Required only for PROVISIONED billing mode: for an item up to 4 KB, one read capacity unit (RCU) represents one strongly consistent read operation per second, or two eventually consistent read operations per second
    readCapacity: 10
    # Required only for PROVISIONED billing mode: A write capacity unit (WCU) represents one write per second for an item up to 1 KB
    writeCapacity: 10

