| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DynamoDB.UpdateGlobalTableSettings
Description
Updates settings for a global table.
Synopsis
- data UpdateGlobalTableSettings = UpdateGlobalTableSettings' {
- globalTableBillingMode :: Maybe BillingMode
- globalTableGlobalSecondaryIndexSettingsUpdate :: Maybe (NonEmpty GlobalTableGlobalSecondaryIndexSettingsUpdate)
- globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate :: Maybe AutoScalingSettingsUpdate
- globalTableProvisionedWriteCapacityUnits :: Maybe Natural
- replicaSettingsUpdate :: Maybe (NonEmpty ReplicaSettingsUpdate)
- globalTableName :: Text
- newUpdateGlobalTableSettings :: Text -> UpdateGlobalTableSettings
- updateGlobalTableSettings_globalTableBillingMode :: Lens' UpdateGlobalTableSettings (Maybe BillingMode)
- updateGlobalTableSettings_globalTableGlobalSecondaryIndexSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty GlobalTableGlobalSecondaryIndexSettingsUpdate))
- updateGlobalTableSettings_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe AutoScalingSettingsUpdate)
- updateGlobalTableSettings_globalTableProvisionedWriteCapacityUnits :: Lens' UpdateGlobalTableSettings (Maybe Natural)
- updateGlobalTableSettings_replicaSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty ReplicaSettingsUpdate))
- updateGlobalTableSettings_globalTableName :: Lens' UpdateGlobalTableSettings Text
- data UpdateGlobalTableSettingsResponse = UpdateGlobalTableSettingsResponse' {}
- newUpdateGlobalTableSettingsResponse :: Int -> UpdateGlobalTableSettingsResponse
- updateGlobalTableSettingsResponse_globalTableName :: Lens' UpdateGlobalTableSettingsResponse (Maybe Text)
- updateGlobalTableSettingsResponse_replicaSettings :: Lens' UpdateGlobalTableSettingsResponse (Maybe [ReplicaSettingsDescription])
- updateGlobalTableSettingsResponse_httpStatus :: Lens' UpdateGlobalTableSettingsResponse Int
Creating a Request
data UpdateGlobalTableSettings Source #
See: newUpdateGlobalTableSettings smart constructor.
Constructors
| UpdateGlobalTableSettings' | |
Fields
| |
Instances
newUpdateGlobalTableSettings Source #
Arguments
| :: Text | |
| -> UpdateGlobalTableSettings |
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: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 usingPROVISIONEDfor predictable workloads.PROVISIONEDsets the billing mode to Provisioned Mode.PAY_PER_REQUEST- We recommend usingPAY_PER_REQUESTfor unpredictable workloads.PAY_PER_REQUESTsets the billing mode to On-Demand Mode.
$sel:globalTableGlobalSecondaryIndexSettingsUpdate:UpdateGlobalTableSettings', updateGlobalTableSettings_globalTableGlobalSecondaryIndexSettingsUpdate - Represents the settings of a global secondary index for a global table
that will be modified.
$sel:globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:UpdateGlobalTableSettings', updateGlobalTableSettings_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate - Auto scaling settings for managing provisioned write capacity for the
global table.
$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.
UpdateGlobalTableSettings, updateGlobalTableSettings_globalTableName - The name of the global table
Request Lenses
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 usingPROVISIONEDfor predictable workloads.PROVISIONEDsets the billing mode to Provisioned Mode.PAY_PER_REQUEST- We recommend usingPAY_PER_REQUESTfor unpredictable workloads.PAY_PER_REQUESTsets the billing mode to On-Demand Mode.
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_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe AutoScalingSettingsUpdate) Source #
Auto scaling settings for managing provisioned write capacity for the global table.
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_globalTableName :: Lens' UpdateGlobalTableSettings Text Source #
The name of the global table
Destructuring the Response
data UpdateGlobalTableSettingsResponse Source #
See: newUpdateGlobalTableSettingsResponse smart constructor.
Constructors
| UpdateGlobalTableSettingsResponse' | |
Fields
| |
Instances
newUpdateGlobalTableSettingsResponse Source #
Arguments
| :: Int | |
| -> UpdateGlobalTableSettingsResponse |
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:
UpdateGlobalTableSettings, updateGlobalTableSettingsResponse_globalTableName - The name of the global table.
$sel:replicaSettings:UpdateGlobalTableSettingsResponse', updateGlobalTableSettingsResponse_replicaSettings - The Region-specific settings for the global table.
$sel:httpStatus:UpdateGlobalTableSettingsResponse', updateGlobalTableSettingsResponse_httpStatus - The response's http status code.
Response Lenses
updateGlobalTableSettingsResponse_globalTableName :: Lens' UpdateGlobalTableSettingsResponse (Maybe Text) Source #
The name of the global table.
updateGlobalTableSettingsResponse_replicaSettings :: Lens' UpdateGlobalTableSettingsResponse (Maybe [ReplicaSettingsDescription]) Source #
The Region-specific settings for the global table.
updateGlobalTableSettingsResponse_httpStatus :: Lens' UpdateGlobalTableSettingsResponse Int Source #
The response's http status code.