404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.136.11.217: ~ $
**Example 1: To modify a table's billing mode**

The following ``update-table`` example increases the provisioned read and write capacity on the ``MusicCollection`` table. ::

    aws dynamodb update-table \
        --table-name MusicCollection \
        --billing-mode PROVISIONED \
        --provisioned-throughput ReadCapacityUnits=15,WriteCapacityUnits=10 

Output::

    {
        "TableDescription": {
            "AttributeDefinitions": [
                {
                    "AttributeName": "AlbumTitle",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "Artist",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "SongTitle",
                    "AttributeType": "S"
                }
            ],
            "TableName": "MusicCollection",
            "KeySchema": [
                {
                    "AttributeName": "Artist",
                    "KeyType": "HASH"
                },
                {
                    "AttributeName": "SongTitle",
                    "KeyType": "RANGE"
                }
            ],
            "TableStatus": "UPDATING",
            "CreationDateTime": "2020-05-26T15:59:49.473000-07:00",
            "ProvisionedThroughput": {
                "LastIncreaseDateTime": "2020-07-28T13:18:18.921000-07:00",
                "NumberOfDecreasesToday": 0,
                "ReadCapacityUnits": 15,
                "WriteCapacityUnits": 10
            },
            "TableSizeBytes": 182,
            "ItemCount": 2,
            "TableArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection",
            "TableId": "abcd0123-01ab-23cd-0123-abcdef123456",
            "BillingModeSummary": {
                "BillingMode": "PROVISIONED",
                "LastUpdateToPayPerRequestDateTime": "2020-07-28T13:14:48.366000-07:00"
            }
        }
    }

For more information, see `Updating a Table <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.UpdateTable>`__ in the *Amazon DynamoDB Developer Guide*.

**Example 2: To create a global secondary index**

The following example adds a global secondary index to the ``MusicCollection`` table. ::

    aws dynamodb update-table \
        --table-name MusicCollection \
        --attribute-definitions AttributeName=AlbumTitle,AttributeType=S \
        --global-secondary-index-updates file://gsi-updates.json

Contents of ``gsi-updates.json``::

    [
        {
            "Create": {
                "IndexName": "AlbumTitle-index",
                "KeySchema": [
                    {
                        "AttributeName": "AlbumTitle",
                        "KeyType": "HASH"
                    }
                ],
                "ProvisionedThroughput": {
                    "ReadCapacityUnits": 10,
                    "WriteCapacityUnits": 10
                },
                "Projection": {
                    "ProjectionType": "ALL"
                }
            }
        }
    ]

Output::

    {
        "TableDescription": {
            "AttributeDefinitions": [
                {
                    "AttributeName": "AlbumTitle",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "Artist",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "SongTitle",
                    "AttributeType": "S"
                }
            ],
            "TableName": "MusicCollection",
            "KeySchema": [
                {
                    "AttributeName": "Artist",
                    "KeyType": "HASH"
                },
                {
                    "AttributeName": "SongTitle",
                    "KeyType": "RANGE"
                }
            ],
            "TableStatus": "UPDATING",
            "CreationDateTime": "2020-05-26T15:59:49.473000-07:00",
            "ProvisionedThroughput": {
                "LastIncreaseDateTime": "2020-07-28T12:59:17.537000-07:00",
                "NumberOfDecreasesToday": 0,
                "ReadCapacityUnits": 15,
                "WriteCapacityUnits": 10
            },
            "TableSizeBytes": 182,
            "ItemCount": 2,
            "TableArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection",
            "TableId": "abcd0123-01ab-23cd-0123-abcdef123456",
            "BillingModeSummary": {
                "BillingMode": "PROVISIONED",
                "LastUpdateToPayPerRequestDateTime": "2020-07-28T13:14:48.366000-07:00"
            },
            "GlobalSecondaryIndexes": [
                {
                    "IndexName": "AlbumTitle-index",
                    "KeySchema": [
                        {
                            "AttributeName": "AlbumTitle",
                            "KeyType": "HASH"
                        }
                    ],
                    "Projection": {
                        "ProjectionType": "ALL"
                    },
                    "IndexStatus": "CREATING",
                    "Backfilling": false,
                    "ProvisionedThroughput": {
                        "NumberOfDecreasesToday": 0,
                        "ReadCapacityUnits": 10,
                        "WriteCapacityUnits": 10
                    },
                    "IndexSizeBytes": 0,
                    "ItemCount": 0,
                    "IndexArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/index/AlbumTitle-index"
                }
            ]
        }
    }

For more information, see `Updating a Table <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.UpdateTable>`__ in the *Amazon DynamoDB Developer Guide*.

**Example 3: To enable DynamoDB Streams on a table**

The following command enables DynamoDB Streams on the ``MusicCollection`` table. ::

    aws dynamodb update-table \
        --table-name MusicCollection \
        --stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE

Output::

    {
        "TableDescription": {
            "AttributeDefinitions": [
                {
                    "AttributeName": "AlbumTitle",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "Artist",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "SongTitle",
                    "AttributeType": "S"
                }
            ],
            "TableName": "MusicCollection",
            "KeySchema": [
                {
                    "AttributeName": "Artist",
                    "KeyType": "HASH"
                },
                {
                    "AttributeName": "SongTitle",
                    "KeyType": "RANGE"
                }
            ],
            "TableStatus": "UPDATING",
            "CreationDateTime": "2020-05-26T15:59:49.473000-07:00",
            "ProvisionedThroughput": {
                "LastIncreaseDateTime": "2020-07-28T12:59:17.537000-07:00",
                "NumberOfDecreasesToday": 0,
                "ReadCapacityUnits": 15,
                "WriteCapacityUnits": 10
            },
            "TableSizeBytes": 182,
            "ItemCount": 2,
            "TableArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection",
            "TableId": "abcd0123-01ab-23cd-0123-abcdef123456",
            "BillingModeSummary": {
                "BillingMode": "PROVISIONED",
                "LastUpdateToPayPerRequestDateTime": "2020-07-28T13:14:48.366000-07:00"
            },
            "LocalSecondaryIndexes": [
                {
                    "IndexName": "AlbumTitleIndex",
                    "KeySchema": [
                        {
                            "AttributeName": "Artist",
                            "KeyType": "HASH"
                        },
                        {
                            "AttributeName": "AlbumTitle",
                            "KeyType": "RANGE"
                        }
                    ],
                    "Projection": {
                        "ProjectionType": "INCLUDE",
                        "NonKeyAttributes": [
                            "Year",
                            "Genre"
                        ]
                    },
                    "IndexSizeBytes": 139,
                    "ItemCount": 2,
                    "IndexArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/index/AlbumTitleIndex"
                }
            ],
            "GlobalSecondaryIndexes": [
                {
                    "IndexName": "AlbumTitle-index",
                    "KeySchema": [
                        {
                            "AttributeName": "AlbumTitle",
                            "KeyType": "HASH"
                        }
                    ],
                    "Projection": {
                        "ProjectionType": "ALL"
                    },
                    "IndexStatus": "ACTIVE",
                    "ProvisionedThroughput": {
                        "NumberOfDecreasesToday": 0,
                        "ReadCapacityUnits": 10,
                        "WriteCapacityUnits": 10
                    },
                    "IndexSizeBytes": 0,
                    "ItemCount": 0,
                    "IndexArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/index/AlbumTitle-index"
                }
            ],
            "StreamSpecification": {
                "StreamEnabled": true,
                "StreamViewType": "NEW_IMAGE"
            },
            "LatestStreamLabel": "2020-07-28T21:53:39.112",
            "LatestStreamArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/stream/2020-07-28T21:53:39.112"
        }
    }

For more information, see `Updating a Table <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.UpdateTable>`__ in the *Amazon DynamoDB Developer Guide*.

**Example 4: To enable server-side encryption**

The following example enables server-side encryption on the ``MusicCollection`` table. ::

    aws dynamodb update-table \
        --table-name MusicCollection \
        --sse-specification Enabled=true,SSEType=KMS

Output::

    {
        "TableDescription": {
            "AttributeDefinitions": [
                {
                    "AttributeName": "AlbumTitle",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "Artist",
                    "AttributeType": "S"
                },
                {
                    "AttributeName": "SongTitle",
                    "AttributeType": "S"
                }
            ],
            "TableName": "MusicCollection",
            "KeySchema": [
                {
                    "AttributeName": "Artist",
                    "KeyType": "HASH"
                },
                {
                    "AttributeName": "SongTitle",
                    "KeyType": "RANGE"
                }
            ],
            "TableStatus": "ACTIVE",
            "CreationDateTime": "2020-05-26T15:59:49.473000-07:00",
            "ProvisionedThroughput": {
                "LastIncreaseDateTime": "2020-07-28T12:59:17.537000-07:00",
                "NumberOfDecreasesToday": 0,
                "ReadCapacityUnits": 15,
                "WriteCapacityUnits": 10
            },
            "TableSizeBytes": 182,
            "ItemCount": 2,
            "TableArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection",
            "TableId": "abcd0123-01ab-23cd-0123-abcdef123456",
            "BillingModeSummary": {
                "BillingMode": "PROVISIONED",
                "LastUpdateToPayPerRequestDateTime": "2020-07-28T13:14:48.366000-07:00"
            },
            "LocalSecondaryIndexes": [
                {
                    "IndexName": "AlbumTitleIndex",
                    "KeySchema": [
                        {
                            "AttributeName": "Artist",
                            "KeyType": "HASH"
                        },
                        {
                            "AttributeName": "AlbumTitle",
                            "KeyType": "RANGE"
                        }
                    ],
                    "Projection": {
                        "ProjectionType": "INCLUDE",
                        "NonKeyAttributes": [
                            "Year",
                            "Genre"
                        ]
                    },
                    "IndexSizeBytes": 139,
                    "ItemCount": 2,
                    "IndexArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/index/AlbumTitleIndex"
                }
            ],
            "GlobalSecondaryIndexes": [
                {
                    "IndexName": "AlbumTitle-index",
                    "KeySchema": [
                        {
                            "AttributeName": "AlbumTitle",
                            "KeyType": "HASH"
                        }
                    ],
                    "Projection": {
                        "ProjectionType": "ALL"
                    },
                    "IndexStatus": "ACTIVE",
                    "ProvisionedThroughput": {
                        "NumberOfDecreasesToday": 0,
                        "ReadCapacityUnits": 10,
                        "WriteCapacityUnits": 10
                    },
                    "IndexSizeBytes": 0,
                    "ItemCount": 0,
                    "IndexArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/index/AlbumTitle-index"
                }
            ],
            "StreamSpecification": {
                "StreamEnabled": true,
                "StreamViewType": "NEW_IMAGE"
            },
            "LatestStreamLabel": "2020-07-28T21:53:39.112",
            "LatestStreamArn": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/stream/2020-07-28T21:53:39.112",
            "SSEDescription": {
                "Status": "UPDATING"
            }
        }
    }

For more information, see `Updating a Table <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.UpdateTable>`__ in the *Amazon DynamoDB Developer Guide*.

Filemanager

Name Type Size Permission Actions
wait Folder 0755
batch-get-item.rst File 1.95 KB 0644
batch-write-item.rst File 2.92 KB 0644
create-backup.rst File 860 B 0755
create-global-table.rst File 1.03 KB 0755
create-table.rst File 22.02 KB 0644
delete-backup.rst File 1.85 KB 0755
delete-item.rst File 2.8 KB 0644
delete-table.rst File 789 B 0644
describe-backup.rst File 1.89 KB 0755
describe-continuous-backups.rst File 745 B 0755
describe-contributor-insights.rst File 1.14 KB 0644
describe-endpoints.rst File 542 B 0755
describe-global-table-settings.rst File 1.55 KB 0755
describe-global-table.rst File 952 B 0755
describe-limits.rst File 576 B 0755
describe-table-replica-auto-scaling.rst File 4.11 KB 0755
describe-table.rst File 1.41 KB 0644
describe-time-to-live.rst File 551 B 0755
get-item.rst File 3.17 KB 0644
list-backups.rst File 7.38 KB 0644
list-contributor-insights.rst File 3.33 KB 0644
list-global-tables.rst File 739 B 0755
list-tables.rst File 2.79 KB 0644
list-tags-of-resource.rst File 2.34 KB 0644
put-item.rst File 2.68 KB 0644
query.rst File 6.88 KB 0644
restore-table-from-backup.rst File 2.17 KB 0755
restore-table-to-point-in-time.rst File 2.05 KB 0755
scan.rst File 1.48 KB 0644
tag-resource.rst File 510 B 0755
transact-get-items.rst File 2.02 KB 0644
transact-write-items.rst File 3.98 KB 0644
untag-resource.rst File 521 B 0755
update-continuous-backups.rst File 908 B 0755
update-contributor-insights.rst File 780 B 0644
update-global-table-settings.rst File 2.15 KB 0755
update-global-table.rst File 1.06 KB 0755
update-item.rst File 3.39 KB 0644
update-table-replica-auto-scaling.rst File 6.29 KB 0755
update-table.rst File 14.27 KB 0644
update-time-to-live.rst File 585 B 0755