Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates settings for a global table.
Synopsis
- data UpdateGlobalTableSettings = UpdateGlobalTableSettings' {
- globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate :: Maybe AutoScalingSettingsUpdate
- globalTableBillingMode :: Maybe BillingMode
- globalTableProvisionedWriteCapacityUnits :: Maybe Natural
- replicaSettingsUpdate :: Maybe (NonEmpty ReplicaSettingsUpdate)
- globalTableGlobalSecondaryIndexSettingsUpdate :: Maybe (NonEmpty GlobalTableGlobalSecondaryIndexSettingsUpdate)
- globalTableName :: Text
- newUpdateGlobalTableSettings :: Text -> UpdateGlobalTableSettings
- updateGlobalTableSettings_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe AutoScalingSettingsUpdate)
- updateGlobalTableSettings_globalTableBillingMode :: Lens' UpdateGlobalTableSettings (Maybe BillingMode)
- updateGlobalTableSettings_globalTableProvisionedWriteCapacityUnits :: Lens' UpdateGlobalTableSettings (Maybe Natural)
- updateGlobalTableSettings_replicaSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty ReplicaSettingsUpdate))
- updateGlobalTableSettings_globalTableGlobalSecondaryIndexSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty GlobalTableGlobalSecondaryIndexSettingsUpdate))
- updateGlobalTableSettings_globalTableName :: Lens' UpdateGlobalTableSettings Text
- data UpdateGlobalTableSettingsResponse = UpdateGlobalTableSettingsResponse' {}
- newUpdateGlobalTableSettingsResponse :: Int -> UpdateGlobalTableSettingsResponse
- updateGlobalTableSettingsResponse_replicaSettings :: Lens' UpdateGlobalTableSettingsResponse (Maybe [ReplicaSettingsDescription])
- updateGlobalTableSettingsResponse_globalTableName :: Lens' UpdateGlobalTableSettingsResponse (Maybe Text)
- updateGlobalTableSettingsResponse_httpStatus :: Lens' UpdateGlobalTableSettingsResponse Int
Creating a Request
data UpdateGlobalTableSettings Source #
See: newUpdateGlobalTableSettings
smart constructor.
UpdateGlobalTableSettings' | |
|
Instances
newUpdateGlobalTableSettings Source #
Create a value of UpdateGlobalTableSettings
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:UpdateGlobalTableSettings'
, updateGlobalTableSettings_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate
- Auto scaling settings for managing provisioned write capacity for the
global table.
$sel:globalTableBillingMode:UpdateGlobalTableSettings'
, updateGlobalTableSettings_globalTableBillingMode
- The billing mode of the global table. If GlobalTableBillingMode
is not
specified, the global table defaults to PROVISIONED
capacity billing
mode.
PROVISIONED
- We recommend usingPROVISIONED
for predictable workloads.PROVISIONED
sets the billing mode to Provisioned Mode.PAY_PER_REQUEST
- We recommend usingPAY_PER_REQUEST
for unpredictable workloads.PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
$sel:globalTableProvisionedWriteCapacityUnits:UpdateGlobalTableSettings'
, updateGlobalTableSettings_globalTableProvisionedWriteCapacityUnits
- The maximum number of writes consumed per second before DynamoDB returns
a ThrottlingException.
$sel:replicaSettingsUpdate:UpdateGlobalTableSettings'
, updateGlobalTableSettings_replicaSettingsUpdate
- Represents the settings for a global table in a Region that will be
modified.
$sel:globalTableGlobalSecondaryIndexSettingsUpdate:UpdateGlobalTableSettings'
, updateGlobalTableSettings_globalTableGlobalSecondaryIndexSettingsUpdate
- Represents the settings of a global secondary index for a global table
that will be modified.
$sel:globalTableName:UpdateGlobalTableSettings'
, updateGlobalTableSettings_globalTableName
- The name of the global table
Request Lenses
updateGlobalTableSettings_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe AutoScalingSettingsUpdate) Source #
Auto scaling settings for managing provisioned write capacity for the global table.
updateGlobalTableSettings_globalTableBillingMode :: Lens' UpdateGlobalTableSettings (Maybe BillingMode) Source #
The billing mode of the global table. If GlobalTableBillingMode
is not
specified, the global table defaults to PROVISIONED
capacity billing
mode.
PROVISIONED
- We recommend usingPROVISIONED
for predictable workloads.PROVISIONED
sets the billing mode to Provisioned Mode.PAY_PER_REQUEST
- We recommend usingPAY_PER_REQUEST
for unpredictable workloads.PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
updateGlobalTableSettings_globalTableProvisionedWriteCapacityUnits :: Lens' UpdateGlobalTableSettings (Maybe Natural) Source #
The maximum number of writes consumed per second before DynamoDB returns
a ThrottlingException.
updateGlobalTableSettings_replicaSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty ReplicaSettingsUpdate)) Source #
Represents the settings for a global table in a Region that will be modified.
updateGlobalTableSettings_globalTableGlobalSecondaryIndexSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty GlobalTableGlobalSecondaryIndexSettingsUpdate)) Source #
Represents the settings of a global secondary index for a global table that will be modified.
updateGlobalTableSettings_globalTableName :: Lens' UpdateGlobalTableSettings Text Source #
The name of the global table
Destructuring the Response
data UpdateGlobalTableSettingsResponse Source #
See: newUpdateGlobalTableSettingsResponse
smart constructor.
UpdateGlobalTableSettingsResponse' | |
|
Instances
newUpdateGlobalTableSettingsResponse Source #
Create a value of UpdateGlobalTableSettingsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:replicaSettings:UpdateGlobalTableSettingsResponse'
, updateGlobalTableSettingsResponse_replicaSettings
- The Region-specific settings for the global table.
$sel:globalTableName:UpdateGlobalTableSettings'
, updateGlobalTableSettingsResponse_globalTableName
- The name of the global table.
$sel:httpStatus:UpdateGlobalTableSettingsResponse'
, updateGlobalTableSettingsResponse_httpStatus
- The response's http status code.
Response Lenses
updateGlobalTableSettingsResponse_replicaSettings :: Lens' UpdateGlobalTableSettingsResponse (Maybe [ReplicaSettingsDescription]) Source #
The Region-specific settings for the global table.
updateGlobalTableSettingsResponse_globalTableName :: Lens' UpdateGlobalTableSettingsResponse (Maybe Text) Source #
The name of the global table.
updateGlobalTableSettingsResponse_httpStatus :: Lens' UpdateGlobalTableSettingsResponse Int Source #
The response's http status code.