Skip to content
v2.273.0

ContributorInsightsSpecification Struct ​

Reference to ContributorInsightsSpecification.

Example ​

ts
import * as cdk from 'aws-cdk-lib';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'Stack', { env: { region: 'us-west-2' } });

const globalTable = new dynamodb.TableV2(stack, 'GlobalTable', {
  partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },
  contributorInsightsSpecification: {
    enabled: true,
  },
  pointInTimeRecoverySpecification: {
      pointInTimeRecoveryEnabled: true,
  },
  replicas: [
    {
      region: 'us-east-1',
      tableClass: dynamodb.TableClass.STANDARD_INFREQUENT_ACCESS,
      pointInTimeRecoverySpecification: {
        pointInTimeRecoveryEnabled: false,
      },
    },
    {
      region: 'us-east-2',
      contributorInsightsSpecification: {
        enabled: false,
      },
    },
  ],
});

Properties ​

enabledbooleanenabledboolenabledBooleanEnabledboolEnabled*bool= falserequired#
Indicates whether contributor insights is enabled.
Indicates the type of metrics captured by contributor insights.