Skip to main content

Lambda Custom Resource that emits a metric on the size of your DynamoDB Tables.

Project description

Python

from aws_cdk import core
from ddbsizemetric import DDBSizeLib


class MyStack(core.Stack):

    def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
        super().__init__(scope, id, **kwargs)

        # The polling frequency defaults to once every 6 hours, which is how frequently DynamoDB updates the
        # Table information. In this example, we set it to once every 12 hours.
        DDBSizeLib(self, "MyDynamoTableScanner", polling_frequency=core.Duration.hours(12))

Javascript



          

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddbsizemetric-0.1.0a8.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

ddbsizemetric-0.1.0a8-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page