aws-cdk-lib.aws_sam.CfnFunction.DynamoDBEventProperty

interface DynamoDBEventProperty

LanguageType name
.NETAmazon.CDK.AWS.SAM.CfnFunction.DynamoDBEventProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssam#CfnFunction_DynamoDBEventProperty
Javasoftware.amazon.awscdk.services.sam.CfnFunction.DynamoDBEventProperty
Pythonaws_cdk.aws_sam.CfnFunction.DynamoDBEventProperty
TypeScript aws-cdk-lib » aws_sam » CfnFunction » DynamoDBEventProperty

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const dynamoDBEventProperty: sam.CfnFunction.DynamoDBEventProperty = {
  startingPosition: 'startingPosition',
  stream: 'stream',

  // the properties below are optional
  batchSize: 123,
  bisectBatchOnFunctionError: false,
  destinationConfig: {
    onFailure: {
      destination: 'destination',

      // the properties below are optional
      type: 'type',
    },
  },
  enabled: false,
  maximumBatchingWindowInSeconds: 123,
  maximumRecordAgeInSeconds: 123,
  maximumRetryAttempts: 123,
  parallelizationFactor: 123,
};

Properties

NameTypeDescription
startingPositionstringCfnFunction.DynamoDBEventProperty.StartingPosition.
streamstringCfnFunction.DynamoDBEventProperty.Stream.
batchSize?numberCfnFunction.DynamoDBEventProperty.BatchSize.
bisectBatchOnFunctionError?boolean | IResolvableCfnFunction.DynamoDBEventProperty.BisectBatchOnFunctionError.
destinationConfig?IResolvable | DestinationConfigPropertyCfnFunction.DynamoDBEventProperty.DestinationConfig.
enabled?boolean | IResolvableCfnFunction.DynamoDBEventProperty.Enabled.
maximumBatchingWindowInSeconds?numberCfnFunction.DynamoDBEventProperty.MaximumBatchingWindowInSeconds.
maximumRecordAgeInSeconds?numberCfnFunction.DynamoDBEventProperty.MaximumRecordAgeInSeconds.
maximumRetryAttempts?numberCfnFunction.DynamoDBEventProperty.MaximumRetryAttempts.
parallelizationFactor?numberCfnFunction.DynamoDBEventProperty.ParallelizationFactor.

startingPosition

Type: string

CfnFunction.DynamoDBEventProperty.StartingPosition.


stream

Type: string

CfnFunction.DynamoDBEventProperty.Stream.


batchSize?

Type: number (optional)

CfnFunction.DynamoDBEventProperty.BatchSize.


bisectBatchOnFunctionError?

Type: boolean | IResolvable (optional)

CfnFunction.DynamoDBEventProperty.BisectBatchOnFunctionError.


destinationConfig?

Type: IResolvable | DestinationConfigProperty (optional)

CfnFunction.DynamoDBEventProperty.DestinationConfig.


enabled?

Type: boolean | IResolvable (optional)

CfnFunction.DynamoDBEventProperty.Enabled.


maximumBatchingWindowInSeconds?

Type: number (optional)

CfnFunction.DynamoDBEventProperty.MaximumBatchingWindowInSeconds.


maximumRecordAgeInSeconds?

Type: number (optional)

CfnFunction.DynamoDBEventProperty.MaximumRecordAgeInSeconds.


maximumRetryAttempts?

Type: number (optional)

CfnFunction.DynamoDBEventProperty.MaximumRetryAttempts.


parallelizationFactor?

Type: number (optional)

CfnFunction.DynamoDBEventProperty.ParallelizationFactor.