Amazon DynamoDB

2018/07/24 - Amazon DynamoDB - 2 updated api methods

Changes  With this SDK update, APIs UpdateGlobalTableSettings and DescribeGlobalTableSettings now allow consistently configuring AutoScaling settings for a DynamoDB global table. Previously, they would only allow consistently setting IOPS. Now new APIs are being released, existing APIs are being extended.

DescribeGlobalTableSettings (updated) Link ¶
Changes (response)
{'ReplicaSettings': {'ReplicaGlobalSecondaryIndexSettings': {'ProvisionedReadCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                                                            'AutoScalingRoleArn': 'string',
                                                                                                            'MaximumUnits': 'long',
                                                                                                            'MinimumUnits': 'long',
                                                                                                            'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                                                 'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                                              'ScaleInCooldown': 'integer',
                                                                                                                                                                              'ScaleOutCooldown': 'integer',
                                                                                                                                                                              'TargetValue': 'double'}}]},
                                                             'ProvisionedWriteCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                                                             'AutoScalingRoleArn': 'string',
                                                                                                             'MaximumUnits': 'long',
                                                                                                             'MinimumUnits': 'long',
                                                                                                             'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                                                  'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                                               'ScaleInCooldown': 'integer',
                                                                                                                                                                               'ScaleOutCooldown': 'integer',
                                                                                                                                                                               'TargetValue': 'double'}}]}},
                     'ReplicaProvisionedReadCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                           'AutoScalingRoleArn': 'string',
                                                                           'MaximumUnits': 'long',
                                                                           'MinimumUnits': 'long',
                                                                           'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                             'ScaleInCooldown': 'integer',
                                                                                                                                             'ScaleOutCooldown': 'integer',
                                                                                                                                             'TargetValue': 'double'}}]},
                     'ReplicaProvisionedWriteCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                            'AutoScalingRoleArn': 'string',
                                                                            'MaximumUnits': 'long',
                                                                            'MinimumUnits': 'long',
                                                                            'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                 'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                              'ScaleInCooldown': 'integer',
                                                                                                                                              'ScaleOutCooldown': 'integer',
                                                                                                                                              'TargetValue': 'double'}}]}}}

Describes region specific settings for a global table.

See also: AWS API Documentation

Request Syntax

client.describe_global_table_settings(
    GlobalTableName='string'
)
type GlobalTableName

string

param GlobalTableName

[REQUIRED]

The name of the global table to describe.

rtype

dict

returns

Response Syntax

{
    'GlobalTableName': 'string',
    'ReplicaSettings': [
        {
            'RegionName': 'string',
            'ReplicaStatus': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE',
            'ReplicaProvisionedReadCapacityUnits': 123,
            'ReplicaProvisionedReadCapacityAutoScalingSettings': {
                'MinimumUnits': 123,
                'MaximumUnits': 123,
                'AutoScalingDisabled': True|False,
                'AutoScalingRoleArn': 'string',
                'ScalingPolicies': [
                    {
                        'PolicyName': 'string',
                        'TargetTrackingScalingPolicyConfiguration': {
                            'DisableScaleIn': True|False,
                            'ScaleInCooldown': 123,
                            'ScaleOutCooldown': 123,
                            'TargetValue': 123.0
                        }
                    },
                ]
            },
            'ReplicaProvisionedWriteCapacityUnits': 123,
            'ReplicaProvisionedWriteCapacityAutoScalingSettings': {
                'MinimumUnits': 123,
                'MaximumUnits': 123,
                'AutoScalingDisabled': True|False,
                'AutoScalingRoleArn': 'string',
                'ScalingPolicies': [
                    {
                        'PolicyName': 'string',
                        'TargetTrackingScalingPolicyConfiguration': {
                            'DisableScaleIn': True|False,
                            'ScaleInCooldown': 123,
                            'ScaleOutCooldown': 123,
                            'TargetValue': 123.0
                        }
                    },
                ]
            },
            'ReplicaGlobalSecondaryIndexSettings': [
                {
                    'IndexName': 'string',
                    'IndexStatus': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE',
                    'ProvisionedReadCapacityUnits': 123,
                    'ProvisionedReadCapacityAutoScalingSettings': {
                        'MinimumUnits': 123,
                        'MaximumUnits': 123,
                        'AutoScalingDisabled': True|False,
                        'AutoScalingRoleArn': 'string',
                        'ScalingPolicies': [
                            {
                                'PolicyName': 'string',
                                'TargetTrackingScalingPolicyConfiguration': {
                                    'DisableScaleIn': True|False,
                                    'ScaleInCooldown': 123,
                                    'ScaleOutCooldown': 123,
                                    'TargetValue': 123.0
                                }
                            },
                        ]
                    },
                    'ProvisionedWriteCapacityUnits': 123,
                    'ProvisionedWriteCapacityAutoScalingSettings': {
                        'MinimumUnits': 123,
                        'MaximumUnits': 123,
                        'AutoScalingDisabled': True|False,
                        'AutoScalingRoleArn': 'string',
                        'ScalingPolicies': [
                            {
                                'PolicyName': 'string',
                                'TargetTrackingScalingPolicyConfiguration': {
                                    'DisableScaleIn': True|False,
                                    'ScaleInCooldown': 123,
                                    'ScaleOutCooldown': 123,
                                    'TargetValue': 123.0
                                }
                            },
                        ]
                    }
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • GlobalTableName (string) --

      The name of the global table.

    • ReplicaSettings (list) --

      The region specific settings for the global table.

      • (dict) --

        Represents the properties of a replica.

        • RegionName (string) --

          The region name of the replica.

        • ReplicaStatus (string) --

          The current state of the region:

          • CREATING - The region is being created.

          • UPDATING - The region is being updated.

          • DELETING - The region is being deleted.

          • ACTIVE - The region is ready for use.

        • ReplicaProvisionedReadCapacityUnits (integer) --

          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .

        • ReplicaProvisionedReadCapacityAutoScalingSettings (dict) --

          Autoscaling settings for a global table replica's read capacity units.

          • MinimumUnits (integer) --

            The minimum capacity units that a global table or global secondary index should be scaled down to.

          • MaximumUnits (integer) --

            The maximum capacity units that a global table or global secondary index should be scaled up to.

          • AutoScalingDisabled (boolean) --

            Disabled autoscaling for this global table or global secondary index.

          • AutoScalingRoleArn (string) --

            Role ARN used for configuring autoScaling policy.

          • ScalingPolicies (list) --

            Information about the scaling policies.

            • (dict) --

              Represents the properties of the scaling policy.

              • PolicyName (string) --

                The name of the scaling policy.

              • TargetTrackingScalingPolicyConfiguration (dict) --

                Represents a target tracking scaling policy configuration.

                • DisableScaleIn (boolean) --

                  Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                • ScaleInCooldown (integer) --

                  The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                • ScaleOutCooldown (integer) --

                  The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                • TargetValue (float) --

                  The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

        • ReplicaProvisionedWriteCapacityUnits (integer) --

          The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .

        • ReplicaProvisionedWriteCapacityAutoScalingSettings (dict) --

          AutoScaling settings for a global table replica's write capacity units.

          • MinimumUnits (integer) --

            The minimum capacity units that a global table or global secondary index should be scaled down to.

          • MaximumUnits (integer) --

            The maximum capacity units that a global table or global secondary index should be scaled up to.

          • AutoScalingDisabled (boolean) --

            Disabled autoscaling for this global table or global secondary index.

          • AutoScalingRoleArn (string) --

            Role ARN used for configuring autoScaling policy.

          • ScalingPolicies (list) --

            Information about the scaling policies.

            • (dict) --

              Represents the properties of the scaling policy.

              • PolicyName (string) --

                The name of the scaling policy.

              • TargetTrackingScalingPolicyConfiguration (dict) --

                Represents a target tracking scaling policy configuration.

                • DisableScaleIn (boolean) --

                  Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                • ScaleInCooldown (integer) --

                  The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                • ScaleOutCooldown (integer) --

                  The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                • TargetValue (float) --

                  The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

        • ReplicaGlobalSecondaryIndexSettings (list) --

          Replica global secondary index settings for the global table.

          • (dict) --

            Represents the properties of a global secondary index.

            • IndexName (string) --

              The name of the global secondary index. The name must be unique among all other indexes on this table.

            • IndexStatus (string) --

              The current status of the global secondary index:

              • CREATING - The global secondary index is being created.

              • UPDATING - The global secondary index is being updated.

              • DELETING - The global secondary index is being deleted.

              • ACTIVE - The global secondary index is ready for use.

            • ProvisionedReadCapacityUnits (integer) --

              The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException .

            • ProvisionedReadCapacityAutoScalingSettings (dict) --

              Autoscaling settings for a global secondary index replica's read capacity units.

              • MinimumUnits (integer) --

                The minimum capacity units that a global table or global secondary index should be scaled down to.

              • MaximumUnits (integer) --

                The maximum capacity units that a global table or global secondary index should be scaled up to.

              • AutoScalingDisabled (boolean) --

                Disabled autoscaling for this global table or global secondary index.

              • AutoScalingRoleArn (string) --

                Role ARN used for configuring autoScaling policy.

              • ScalingPolicies (list) --

                Information about the scaling policies.

                • (dict) --

                  Represents the properties of the scaling policy.

                  • PolicyName (string) --

                    The name of the scaling policy.

                  • TargetTrackingScalingPolicyConfiguration (dict) --

                    Represents a target tracking scaling policy configuration.

                    • DisableScaleIn (boolean) --

                      Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                    • ScaleInCooldown (integer) --

                      The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                    • ScaleOutCooldown (integer) --

                      The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                    • TargetValue (float) --

                      The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

            • ProvisionedWriteCapacityUnits (integer) --

              The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException .

            • ProvisionedWriteCapacityAutoScalingSettings (dict) --

              AutoScaling settings for a global secondary index replica's write capacity units.

              • MinimumUnits (integer) --

                The minimum capacity units that a global table or global secondary index should be scaled down to.

              • MaximumUnits (integer) --

                The maximum capacity units that a global table or global secondary index should be scaled up to.

              • AutoScalingDisabled (boolean) --

                Disabled autoscaling for this global table or global secondary index.

              • AutoScalingRoleArn (string) --

                Role ARN used for configuring autoScaling policy.

              • ScalingPolicies (list) --

                Information about the scaling policies.

                • (dict) --

                  Represents the properties of the scaling policy.

                  • PolicyName (string) --

                    The name of the scaling policy.

                  • TargetTrackingScalingPolicyConfiguration (dict) --

                    Represents a target tracking scaling policy configuration.

                    • DisableScaleIn (boolean) --

                      Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                    • ScaleInCooldown (integer) --

                      The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                    • ScaleOutCooldown (integer) --

                      The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                    • TargetValue (float) --

                      The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

UpdateGlobalTableSettings (updated) Link ¶
Changes (request, response)
Request
{'GlobalTableGlobalSecondaryIndexSettingsUpdate': {'ProvisionedWriteCapacityAutoScalingSettingsUpdate': {'AutoScalingDisabled': 'boolean',
                                                                                                         'AutoScalingRoleArn': 'string',
                                                                                                         'MaximumUnits': 'long',
                                                                                                         'MinimumUnits': 'long',
                                                                                                         'ScalingPolicyUpdate': {'PolicyName': 'string',
                                                                                                                                 'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                                              'ScaleInCooldown': 'integer',
                                                                                                                                                                              'ScaleOutCooldown': 'integer',
                                                                                                                                                                              'TargetValue': 'double'}}}},
 'GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate': {'AutoScalingDisabled': 'boolean',
                                                                  'AutoScalingRoleArn': 'string',
                                                                  'MaximumUnits': 'long',
                                                                  'MinimumUnits': 'long',
                                                                  'ScalingPolicyUpdate': {'PolicyName': 'string',
                                                                                          'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                       'ScaleInCooldown': 'integer',
                                                                                                                                       'ScaleOutCooldown': 'integer',
                                                                                                                                       'TargetValue': 'double'}}},
 'ReplicaSettingsUpdate': {'ReplicaGlobalSecondaryIndexSettingsUpdate': {'ProvisionedReadCapacityAutoScalingSettingsUpdate': {'AutoScalingDisabled': 'boolean',
                                                                                                                              'AutoScalingRoleArn': 'string',
                                                                                                                              'MaximumUnits': 'long',
                                                                                                                              'MinimumUnits': 'long',
                                                                                                                              'ScalingPolicyUpdate': {'PolicyName': 'string',
                                                                                                                                                      'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                                                                   'ScaleInCooldown': 'integer',
                                                                                                                                                                                                   'ScaleOutCooldown': 'integer',
                                                                                                                                                                                                   'TargetValue': 'double'}}}},
                           'ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate': {'AutoScalingDisabled': 'boolean',
                                                                                       'AutoScalingRoleArn': 'string',
                                                                                       'MaximumUnits': 'long',
                                                                                       'MinimumUnits': 'long',
                                                                                       'ScalingPolicyUpdate': {'PolicyName': 'string',
                                                                                                               'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                            'ScaleInCooldown': 'integer',
                                                                                                                                                            'ScaleOutCooldown': 'integer',
                                                                                                                                                            'TargetValue': 'double'}}}}}
Response
{'ReplicaSettings': {'ReplicaGlobalSecondaryIndexSettings': {'ProvisionedReadCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                                                            'AutoScalingRoleArn': 'string',
                                                                                                            'MaximumUnits': 'long',
                                                                                                            'MinimumUnits': 'long',
                                                                                                            'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                                                 'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                                              'ScaleInCooldown': 'integer',
                                                                                                                                                                              'ScaleOutCooldown': 'integer',
                                                                                                                                                                              'TargetValue': 'double'}}]},
                                                             'ProvisionedWriteCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                                                             'AutoScalingRoleArn': 'string',
                                                                                                             'MaximumUnits': 'long',
                                                                                                             'MinimumUnits': 'long',
                                                                                                             'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                                                  'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                                                               'ScaleInCooldown': 'integer',
                                                                                                                                                                               'ScaleOutCooldown': 'integer',
                                                                                                                                                                               'TargetValue': 'double'}}]}},
                     'ReplicaProvisionedReadCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                           'AutoScalingRoleArn': 'string',
                                                                           'MaximumUnits': 'long',
                                                                           'MinimumUnits': 'long',
                                                                           'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                             'ScaleInCooldown': 'integer',
                                                                                                                                             'ScaleOutCooldown': 'integer',
                                                                                                                                             'TargetValue': 'double'}}]},
                     'ReplicaProvisionedWriteCapacityAutoScalingSettings': {'AutoScalingDisabled': 'boolean',
                                                                            'AutoScalingRoleArn': 'string',
                                                                            'MaximumUnits': 'long',
                                                                            'MinimumUnits': 'long',
                                                                            'ScalingPolicies': [{'PolicyName': 'string',
                                                                                                 'TargetTrackingScalingPolicyConfiguration': {'DisableScaleIn': 'boolean',
                                                                                                                                              'ScaleInCooldown': 'integer',
                                                                                                                                              'ScaleOutCooldown': 'integer',
                                                                                                                                              'TargetValue': 'double'}}]}}}

Updates settings for a global table.

See also: AWS API Documentation

Request Syntax

client.update_global_table_settings(
    GlobalTableName='string',
    GlobalTableProvisionedWriteCapacityUnits=123,
    GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate={
        'MinimumUnits': 123,
        'MaximumUnits': 123,
        'AutoScalingDisabled': True|False,
        'AutoScalingRoleArn': 'string',
        'ScalingPolicyUpdate': {
            'PolicyName': 'string',
            'TargetTrackingScalingPolicyConfiguration': {
                'DisableScaleIn': True|False,
                'ScaleInCooldown': 123,
                'ScaleOutCooldown': 123,
                'TargetValue': 123.0
            }
        }
    },
    GlobalTableGlobalSecondaryIndexSettingsUpdate=[
        {
            'IndexName': 'string',
            'ProvisionedWriteCapacityUnits': 123,
            'ProvisionedWriteCapacityAutoScalingSettingsUpdate': {
                'MinimumUnits': 123,
                'MaximumUnits': 123,
                'AutoScalingDisabled': True|False,
                'AutoScalingRoleArn': 'string',
                'ScalingPolicyUpdate': {
                    'PolicyName': 'string',
                    'TargetTrackingScalingPolicyConfiguration': {
                        'DisableScaleIn': True|False,
                        'ScaleInCooldown': 123,
                        'ScaleOutCooldown': 123,
                        'TargetValue': 123.0
                    }
                }
            }
        },
    ],
    ReplicaSettingsUpdate=[
        {
            'RegionName': 'string',
            'ReplicaProvisionedReadCapacityUnits': 123,
            'ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate': {
                'MinimumUnits': 123,
                'MaximumUnits': 123,
                'AutoScalingDisabled': True|False,
                'AutoScalingRoleArn': 'string',
                'ScalingPolicyUpdate': {
                    'PolicyName': 'string',
                    'TargetTrackingScalingPolicyConfiguration': {
                        'DisableScaleIn': True|False,
                        'ScaleInCooldown': 123,
                        'ScaleOutCooldown': 123,
                        'TargetValue': 123.0
                    }
                }
            },
            'ReplicaGlobalSecondaryIndexSettingsUpdate': [
                {
                    'IndexName': 'string',
                    'ProvisionedReadCapacityUnits': 123,
                    'ProvisionedReadCapacityAutoScalingSettingsUpdate': {
                        'MinimumUnits': 123,
                        'MaximumUnits': 123,
                        'AutoScalingDisabled': True|False,
                        'AutoScalingRoleArn': 'string',
                        'ScalingPolicyUpdate': {
                            'PolicyName': 'string',
                            'TargetTrackingScalingPolicyConfiguration': {
                                'DisableScaleIn': True|False,
                                'ScaleInCooldown': 123,
                                'ScaleOutCooldown': 123,
                                'TargetValue': 123.0
                            }
                        }
                    }
                },
            ]
        },
    ]
)
type GlobalTableName

string

param GlobalTableName

[REQUIRED]

The name of the global table

type GlobalTableProvisionedWriteCapacityUnits

integer

param GlobalTableProvisionedWriteCapacityUnits

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

type GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate

dict

param GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate

AutoScaling settings for managing provisioned write capacity for the global table.

  • MinimumUnits (integer) --

    The minimum capacity units that a global table or global secondary index should be scaled down to.

  • MaximumUnits (integer) --

    The maximum capacity units that a global table or global secondary index should be scaled up to.

  • AutoScalingDisabled (boolean) --

    Disabled autoscaling for this global table or global secondary index.

  • AutoScalingRoleArn (string) --

    Role ARN used for configuring autoscaling policy.

  • ScalingPolicyUpdate (dict) --

    The scaling policy to apply for scaling target global table or global secondary index capacity units.

    • PolicyName (string) --

      The name of the scaling policy.

    • TargetTrackingScalingPolicyConfiguration (dict) -- [REQUIRED]

      Represents a target tracking scaling policy configuration.

      • DisableScaleIn (boolean) --

        Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

      • ScaleInCooldown (integer) --

        The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

      • ScaleOutCooldown (integer) --

        The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

      • TargetValue (float) -- [REQUIRED]

        The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

type GlobalTableGlobalSecondaryIndexSettingsUpdate

list

param GlobalTableGlobalSecondaryIndexSettingsUpdate

Represents the settings of a global secondary index for a global table that will be modified.

  • (dict) --

    Represents the settings of a global secondary index for a global table that will be modified.

    • IndexName (string) -- [REQUIRED]

      The name of the global secondary index. The name must be unique among all other indexes on this table.

    • ProvisionedWriteCapacityUnits (integer) --

      The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

    • ProvisionedWriteCapacityAutoScalingSettingsUpdate (dict) --

      AutoScaling settings for managing a global secondary index's write capacity units.

      • MinimumUnits (integer) --

        The minimum capacity units that a global table or global secondary index should be scaled down to.

      • MaximumUnits (integer) --

        The maximum capacity units that a global table or global secondary index should be scaled up to.

      • AutoScalingDisabled (boolean) --

        Disabled autoscaling for this global table or global secondary index.

      • AutoScalingRoleArn (string) --

        Role ARN used for configuring autoscaling policy.

      • ScalingPolicyUpdate (dict) --

        The scaling policy to apply for scaling target global table or global secondary index capacity units.

        • PolicyName (string) --

          The name of the scaling policy.

        • TargetTrackingScalingPolicyConfiguration (dict) -- [REQUIRED]

          Represents a target tracking scaling policy configuration.

          • DisableScaleIn (boolean) --

            Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

          • ScaleInCooldown (integer) --

            The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

          • ScaleOutCooldown (integer) --

            The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

          • TargetValue (float) -- [REQUIRED]

            The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

type ReplicaSettingsUpdate

list

param ReplicaSettingsUpdate

Represents the settings for a global table in a region that will be modified.

  • (dict) --

    Represents the settings for a global table in a region that will be modified.

    • RegionName (string) -- [REQUIRED]

      The region of the replica to be added.

    • ReplicaProvisionedReadCapacityUnits (integer) --

      The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .

    • ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate (dict) --

      Autoscaling settings for managing a global table replica's read capacity units.

      • MinimumUnits (integer) --

        The minimum capacity units that a global table or global secondary index should be scaled down to.

      • MaximumUnits (integer) --

        The maximum capacity units that a global table or global secondary index should be scaled up to.

      • AutoScalingDisabled (boolean) --

        Disabled autoscaling for this global table or global secondary index.

      • AutoScalingRoleArn (string) --

        Role ARN used for configuring autoscaling policy.

      • ScalingPolicyUpdate (dict) --

        The scaling policy to apply for scaling target global table or global secondary index capacity units.

        • PolicyName (string) --

          The name of the scaling policy.

        • TargetTrackingScalingPolicyConfiguration (dict) -- [REQUIRED]

          Represents a target tracking scaling policy configuration.

          • DisableScaleIn (boolean) --

            Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

          • ScaleInCooldown (integer) --

            The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

          • ScaleOutCooldown (integer) --

            The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

          • TargetValue (float) -- [REQUIRED]

            The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

    • ReplicaGlobalSecondaryIndexSettingsUpdate (list) --

      Represents the settings of a global secondary index for a global table that will be modified.

      • (dict) --

        Represents the settings of a global secondary index for a global table that will be modified.

        • IndexName (string) -- [REQUIRED]

          The name of the global secondary index. The name must be unique among all other indexes on this table.

        • ProvisionedReadCapacityUnits (integer) --

          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException .

        • ProvisionedReadCapacityAutoScalingSettingsUpdate (dict) --

          Autoscaling settings for managing a global secondary index replica's read capacity units.

          • MinimumUnits (integer) --

            The minimum capacity units that a global table or global secondary index should be scaled down to.

          • MaximumUnits (integer) --

            The maximum capacity units that a global table or global secondary index should be scaled up to.

          • AutoScalingDisabled (boolean) --

            Disabled autoscaling for this global table or global secondary index.

          • AutoScalingRoleArn (string) --

            Role ARN used for configuring autoscaling policy.

          • ScalingPolicyUpdate (dict) --

            The scaling policy to apply for scaling target global table or global secondary index capacity units.

            • PolicyName (string) --

              The name of the scaling policy.

            • TargetTrackingScalingPolicyConfiguration (dict) -- [REQUIRED]

              Represents a target tracking scaling policy configuration.

              • DisableScaleIn (boolean) --

                Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

              • ScaleInCooldown (integer) --

                The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

              • ScaleOutCooldown (integer) --

                The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

              • TargetValue (float) -- [REQUIRED]

                The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

rtype

dict

returns

Response Syntax

{
    'GlobalTableName': 'string',
    'ReplicaSettings': [
        {
            'RegionName': 'string',
            'ReplicaStatus': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE',
            'ReplicaProvisionedReadCapacityUnits': 123,
            'ReplicaProvisionedReadCapacityAutoScalingSettings': {
                'MinimumUnits': 123,
                'MaximumUnits': 123,
                'AutoScalingDisabled': True|False,
                'AutoScalingRoleArn': 'string',
                'ScalingPolicies': [
                    {
                        'PolicyName': 'string',
                        'TargetTrackingScalingPolicyConfiguration': {
                            'DisableScaleIn': True|False,
                            'ScaleInCooldown': 123,
                            'ScaleOutCooldown': 123,
                            'TargetValue': 123.0
                        }
                    },
                ]
            },
            'ReplicaProvisionedWriteCapacityUnits': 123,
            'ReplicaProvisionedWriteCapacityAutoScalingSettings': {
                'MinimumUnits': 123,
                'MaximumUnits': 123,
                'AutoScalingDisabled': True|False,
                'AutoScalingRoleArn': 'string',
                'ScalingPolicies': [
                    {
                        'PolicyName': 'string',
                        'TargetTrackingScalingPolicyConfiguration': {
                            'DisableScaleIn': True|False,
                            'ScaleInCooldown': 123,
                            'ScaleOutCooldown': 123,
                            'TargetValue': 123.0
                        }
                    },
                ]
            },
            'ReplicaGlobalSecondaryIndexSettings': [
                {
                    'IndexName': 'string',
                    'IndexStatus': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE',
                    'ProvisionedReadCapacityUnits': 123,
                    'ProvisionedReadCapacityAutoScalingSettings': {
                        'MinimumUnits': 123,
                        'MaximumUnits': 123,
                        'AutoScalingDisabled': True|False,
                        'AutoScalingRoleArn': 'string',
                        'ScalingPolicies': [
                            {
                                'PolicyName': 'string',
                                'TargetTrackingScalingPolicyConfiguration': {
                                    'DisableScaleIn': True|False,
                                    'ScaleInCooldown': 123,
                                    'ScaleOutCooldown': 123,
                                    'TargetValue': 123.0
                                }
                            },
                        ]
                    },
                    'ProvisionedWriteCapacityUnits': 123,
                    'ProvisionedWriteCapacityAutoScalingSettings': {
                        'MinimumUnits': 123,
                        'MaximumUnits': 123,
                        'AutoScalingDisabled': True|False,
                        'AutoScalingRoleArn': 'string',
                        'ScalingPolicies': [
                            {
                                'PolicyName': 'string',
                                'TargetTrackingScalingPolicyConfiguration': {
                                    'DisableScaleIn': True|False,
                                    'ScaleInCooldown': 123,
                                    'ScaleOutCooldown': 123,
                                    'TargetValue': 123.0
                                }
                            },
                        ]
                    }
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • GlobalTableName (string) --

      The name of the global table.

    • ReplicaSettings (list) --

      The region specific settings for the global table.

      • (dict) --

        Represents the properties of a replica.

        • RegionName (string) --

          The region name of the replica.

        • ReplicaStatus (string) --

          The current state of the region:

          • CREATING - The region is being created.

          • UPDATING - The region is being updated.

          • DELETING - The region is being deleted.

          • ACTIVE - The region is ready for use.

        • ReplicaProvisionedReadCapacityUnits (integer) --

          The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .

        • ReplicaProvisionedReadCapacityAutoScalingSettings (dict) --

          Autoscaling settings for a global table replica's read capacity units.

          • MinimumUnits (integer) --

            The minimum capacity units that a global table or global secondary index should be scaled down to.

          • MaximumUnits (integer) --

            The maximum capacity units that a global table or global secondary index should be scaled up to.

          • AutoScalingDisabled (boolean) --

            Disabled autoscaling for this global table or global secondary index.

          • AutoScalingRoleArn (string) --

            Role ARN used for configuring autoScaling policy.

          • ScalingPolicies (list) --

            Information about the scaling policies.

            • (dict) --

              Represents the properties of the scaling policy.

              • PolicyName (string) --

                The name of the scaling policy.

              • TargetTrackingScalingPolicyConfiguration (dict) --

                Represents a target tracking scaling policy configuration.

                • DisableScaleIn (boolean) --

                  Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                • ScaleInCooldown (integer) --

                  The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                • ScaleOutCooldown (integer) --

                  The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                • TargetValue (float) --

                  The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

        • ReplicaProvisionedWriteCapacityUnits (integer) --

          The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException . For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .

        • ReplicaProvisionedWriteCapacityAutoScalingSettings (dict) --

          AutoScaling settings for a global table replica's write capacity units.

          • MinimumUnits (integer) --

            The minimum capacity units that a global table or global secondary index should be scaled down to.

          • MaximumUnits (integer) --

            The maximum capacity units that a global table or global secondary index should be scaled up to.

          • AutoScalingDisabled (boolean) --

            Disabled autoscaling for this global table or global secondary index.

          • AutoScalingRoleArn (string) --

            Role ARN used for configuring autoScaling policy.

          • ScalingPolicies (list) --

            Information about the scaling policies.

            • (dict) --

              Represents the properties of the scaling policy.

              • PolicyName (string) --

                The name of the scaling policy.

              • TargetTrackingScalingPolicyConfiguration (dict) --

                Represents a target tracking scaling policy configuration.

                • DisableScaleIn (boolean) --

                  Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                • ScaleInCooldown (integer) --

                  The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                • ScaleOutCooldown (integer) --

                  The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                • TargetValue (float) --

                  The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

        • ReplicaGlobalSecondaryIndexSettings (list) --

          Replica global secondary index settings for the global table.

          • (dict) --

            Represents the properties of a global secondary index.

            • IndexName (string) --

              The name of the global secondary index. The name must be unique among all other indexes on this table.

            • IndexStatus (string) --

              The current status of the global secondary index:

              • CREATING - The global secondary index is being created.

              • UPDATING - The global secondary index is being updated.

              • DELETING - The global secondary index is being deleted.

              • ACTIVE - The global secondary index is ready for use.

            • ProvisionedReadCapacityUnits (integer) --

              The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException .

            • ProvisionedReadCapacityAutoScalingSettings (dict) --

              Autoscaling settings for a global secondary index replica's read capacity units.

              • MinimumUnits (integer) --

                The minimum capacity units that a global table or global secondary index should be scaled down to.

              • MaximumUnits (integer) --

                The maximum capacity units that a global table or global secondary index should be scaled up to.

              • AutoScalingDisabled (boolean) --

                Disabled autoscaling for this global table or global secondary index.

              • AutoScalingRoleArn (string) --

                Role ARN used for configuring autoScaling policy.

              • ScalingPolicies (list) --

                Information about the scaling policies.

                • (dict) --

                  Represents the properties of the scaling policy.

                  • PolicyName (string) --

                    The name of the scaling policy.

                  • TargetTrackingScalingPolicyConfiguration (dict) --

                    Represents a target tracking scaling policy configuration.

                    • DisableScaleIn (boolean) --

                      Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                    • ScaleInCooldown (integer) --

                      The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                    • ScaleOutCooldown (integer) --

                      The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                    • TargetValue (float) --

                      The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

            • ProvisionedWriteCapacityUnits (integer) --

              The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException .

            • ProvisionedWriteCapacityAutoScalingSettings (dict) --

              AutoScaling settings for a global secondary index replica's write capacity units.

              • MinimumUnits (integer) --

                The minimum capacity units that a global table or global secondary index should be scaled down to.

              • MaximumUnits (integer) --

                The maximum capacity units that a global table or global secondary index should be scaled up to.

              • AutoScalingDisabled (boolean) --

                Disabled autoscaling for this global table or global secondary index.

              • AutoScalingRoleArn (string) --

                Role ARN used for configuring autoScaling policy.

              • ScalingPolicies (list) --

                Information about the scaling policies.

                • (dict) --

                  Represents the properties of the scaling policy.

                  • PolicyName (string) --

                    The name of the scaling policy.

                  • TargetTrackingScalingPolicyConfiguration (dict) --

                    Represents a target tracking scaling policy configuration.

                    • DisableScaleIn (boolean) --

                      Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

                    • ScaleInCooldown (integer) --

                      The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application autoscaling scales out your scalable target immediately.

                    • ScaleOutCooldown (integer) --

                      The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out.

                    • TargetValue (float) --

                      The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).