aws-cdk.aws-dynamodb-global


Nameaws-cdk.aws-dynamodb-global JSON
Version 1.203.0 PyPI version JSON
download
home_pagehttps://github.com/aws/aws-cdk
SummaryBuild a global dynamodb table
upload_time2023-05-31 23:02:00
maintainer
docs_urlNone
authorAmazon Web Services
requires_python~=3.7
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # @aws-cdk/aws-dynamodb-global

<!--BEGIN STABILITY BANNER-->---


![Deprecated](https://img.shields.io/badge/deprecated-critical.svg?style=for-the-badge)

> This API may emit warnings. Backward compatibility is not guaranteed.

---
<!--END STABILITY BANNER-->

## NOTICE: This module has been deprecated in favor of `@aws-cdk/aws-dynamodb.Table.replicationRegions`

---


Global Tables builds upon DynamoDB’s global footprint to provide you with a fully managed, multi-region, and multi-master database that provides fast, local, read and write performance for massively scaled, global applications. Global Tables replicates your Amazon DynamoDB tables automatically across your choice of AWS regions.

Here is a minimal deployable Global DynamoDB tables definition:

```python
from aws_cdk.aws_dynamodb import Attribute
from aws_cdk.aws_dynamodb import AttributeType
from aws_cdk.aws_dynamodb_global import GlobalTable
from aws_cdk.core import App

app = App()
GlobalTable(app, "globdynamodb",
    partition_key=Attribute(name="hashKey", type=AttributeType.STRING),
    table_name="GlobalTable",
    regions=["us-east-1", "us-east-2", "us-west-2"]
)
app.synth()
```

## Implementation Notes

AWS Global DynamoDB Tables is an odd case currently.  The way this package works -

* Creates a DynamoDB table in a separate stack in each `DynamoDBGlobalStackProps.region` specified
* Deploys a CFN Custom Resource to your stack's specified region that calls a lambda that runs the aws cli which calls `createGlobalTable()`

### Notes

GlobalTable() will set `dynamoProps.stream` to be `NEW_AND_OLD_IMAGES` since this is a required attribute for AWS Global DynamoDB tables to work.  The package will throw an error if any other `stream` specification is set in `DynamoDBGlobalStackProps`.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aws/aws-cdk",
    "name": "aws-cdk.aws-dynamodb-global",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Amazon Web Services",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c0/11/f0770e55ec9d0a4c68763680b8675f6cdfb4bca61efb91be02c4f8c47046/aws-cdk.aws-dynamodb-global-1.203.0.tar.gz",
    "platform": null,
    "description": "# @aws-cdk/aws-dynamodb-global\n\n<!--BEGIN STABILITY BANNER-->---\n\n\n![Deprecated](https://img.shields.io/badge/deprecated-critical.svg?style=for-the-badge)\n\n> This API may emit warnings. Backward compatibility is not guaranteed.\n\n---\n<!--END STABILITY BANNER-->\n\n## NOTICE: This module has been deprecated in favor of `@aws-cdk/aws-dynamodb.Table.replicationRegions`\n\n---\n\n\nGlobal Tables builds upon DynamoDB\u2019s global footprint to provide you with a fully managed, multi-region, and multi-master database that provides fast, local, read and write performance for massively scaled, global applications. Global Tables replicates your Amazon DynamoDB tables automatically across your choice of AWS regions.\n\nHere is a minimal deployable Global DynamoDB tables definition:\n\n```python\nfrom aws_cdk.aws_dynamodb import Attribute\nfrom aws_cdk.aws_dynamodb import AttributeType\nfrom aws_cdk.aws_dynamodb_global import GlobalTable\nfrom aws_cdk.core import App\n\napp = App()\nGlobalTable(app, \"globdynamodb\",\n    partition_key=Attribute(name=\"hashKey\", type=AttributeType.STRING),\n    table_name=\"GlobalTable\",\n    regions=[\"us-east-1\", \"us-east-2\", \"us-west-2\"]\n)\napp.synth()\n```\n\n## Implementation Notes\n\nAWS Global DynamoDB Tables is an odd case currently.  The way this package works -\n\n* Creates a DynamoDB table in a separate stack in each `DynamoDBGlobalStackProps.region` specified\n* Deploys a CFN Custom Resource to your stack's specified region that calls a lambda that runs the aws cli which calls `createGlobalTable()`\n\n### Notes\n\nGlobalTable() will set `dynamoProps.stream` to be `NEW_AND_OLD_IMAGES` since this is a required attribute for AWS Global DynamoDB tables to work.  The package will throw an error if any other `stream` specification is set in `DynamoDBGlobalStackProps`.\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Build a global dynamodb table",
    "version": "1.203.0",
    "project_urls": {
        "Homepage": "https://github.com/aws/aws-cdk",
        "Source": "https://github.com/aws/aws-cdk.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52d4c1143545c974a2c190479710e0057cc392aa0986cc801dc1c1438e44242a",
                "md5": "c9a83bbc981f8c72716686d2c2cc8928",
                "sha256": "b916d0541f7dcc21d431f41d1a0d38c62d6565371ecb418f1a7e7931ac23b7eb"
            },
            "downloads": -1,
            "filename": "aws_cdk.aws_dynamodb_global-1.203.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9a83bbc981f8c72716686d2c2cc8928",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.7",
            "size": 38346,
            "upload_time": "2023-05-31T22:54:26",
            "upload_time_iso_8601": "2023-05-31T22:54:26.651143Z",
            "url": "https://files.pythonhosted.org/packages/52/d4/c1143545c974a2c190479710e0057cc392aa0986cc801dc1c1438e44242a/aws_cdk.aws_dynamodb_global-1.203.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c011f0770e55ec9d0a4c68763680b8675f6cdfb4bca61efb91be02c4f8c47046",
                "md5": "b903581348ce9e4d76e6e1ffc0596451",
                "sha256": "e177d2931181a43c3cfd9688e45c25807c1aa9a5ab7e8ffb556ad514ae5fb707"
            },
            "downloads": -1,
            "filename": "aws-cdk.aws-dynamodb-global-1.203.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b903581348ce9e4d76e6e1ffc0596451",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.7",
            "size": 39320,
            "upload_time": "2023-05-31T23:02:00",
            "upload_time_iso_8601": "2023-05-31T23:02:00.366929Z",
            "url": "https://files.pythonhosted.org/packages/c0/11/f0770e55ec9d0a4c68763680b8675f6cdfb4bca61efb91be02c4f8c47046/aws-cdk.aws-dynamodb-global-1.203.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-31 23:02:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aws",
    "github_project": "aws-cdk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aws-cdk.aws-dynamodb-global"
}
        
Elapsed time: 0.10743s