Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ProvisionedThroughput: Fn.If(ResourceConstants.CONDITIONS.ShouldUsePayPerRequestBilling, Refs.NoValue, {
ReadCapacityUnits: Fn.Ref(ResourceConstants.PARAMETERS.DynamoDBModelTableReadIOPS),
WriteCapacityUnits: Fn.Ref(ResourceConstants.PARAMETERS.DynamoDBModelTableWriteIOPS),
}) as any,
SSESpecification: {
SSEEnabled: Fn.If(ResourceConstants.CONDITIONS.ShouldUseServerSideEncryption, true, false),
},
PointInTimeRecoverySpecification: Fn.If(
ResourceConstants.CONDITIONS.ShouldUsePointInTimeRecovery,
{
PointInTimeRecoveryEnabled: true,
},
Refs.NoValue
) as any,
...(isSyncEnabled && {
TimeToLiveSpecification: SyncUtils.syncTTLConfig(),
}),
}).deletionPolicy(deletionPolicy);
}