WriteOnDemandThroughputSettingsProperty Struct
Sets the write request settings for a global table or a global secondary index.
You can only specify this setting if your resource uses the PAY_PER_REQUEST BillingMode .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const writeOnDemandThroughputSettingsProperty: dynamodb.CfnGlobalTable.WriteOnDemandThroughputSettingsProperty = {
maxWriteRequestUnits: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb
write_on_demand_throughput_settings_property = dynamodb.CfnGlobalTable.WriteOnDemandThroughputSettingsProperty(
max_write_request_units=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;
WriteOnDemandThroughputSettingsProperty writeOnDemandThroughputSettingsProperty = WriteOnDemandThroughputSettingsProperty.builder()
.maxWriteRequestUnits(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;
var writeOnDemandThroughputSettingsProperty = new WriteOnDemandThroughputSettingsProperty {
MaxWriteRequestUnits = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
writeOnDemandThroughputSettingsProperty := &WriteOnDemandThroughputSettingsProperty{
MaxWriteRequestUnits: jsii.Number(123),
}
Properties
maxWriteRequestUnitsoptionalnumbermax_write_request_unitsoptionalint | floatmaxWriteRequestUnitsoptionalNumberMaxWriteRequestUnitsoptionaldoubleMaxWriteRequestUnitsoptional*float64 #Maximum number of write request settings for the specified replica of a global table.