Class CfnTablePropsMixin.OnDemandThroughputProperty
Sets the maximum number of read and write units for the specified on-demand table.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.DynamoDB
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnTablePropsMixin.OnDemandThroughputProperty : CfnTablePropsMixin.IOnDemandThroughputProperty
Syntax (vb)
Public Class CfnTablePropsMixin.OnDemandThroughputProperty Implements CfnTablePropsMixin.IOnDemandThroughputProperty
Remarks
If you use this property, you must specify MaxReadRequestUnits , MaxWriteRequestUnits , or both.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.DynamoDB;
var onDemandThroughputProperty = new OnDemandThroughputProperty {
MaxReadRequestUnits = 123,
MaxWriteRequestUnits = 123
};
Synopsis
Constructors
| OnDemandThroughputProperty() | Sets the maximum number of read and write units for the specified on-demand table. |
Properties
| MaxReadRequestUnits | Maximum number of read request units for the specified table. |
| MaxWriteRequestUnits | Maximum number of write request units for the specified table. |
Constructors
OnDemandThroughputProperty()
Sets the maximum number of read and write units for the specified on-demand table.
public OnDemandThroughputProperty()
Remarks
If you use this property, you must specify MaxReadRequestUnits , MaxWriteRequestUnits , or both.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.DynamoDB;
var onDemandThroughputProperty = new OnDemandThroughputProperty {
MaxReadRequestUnits = 123,
MaxWriteRequestUnits = 123
};
Properties
MaxReadRequestUnits
Maximum number of read request units for the specified table.
public double? MaxReadRequestUnits { get; set; }
Property Value
Remarks
To specify a maximum OnDemandThroughput on your table, set the value of MaxReadRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxReadRequestUnits to -1.
MaxWriteRequestUnits
Maximum number of write request units for the specified table.
public double? MaxWriteRequestUnits { get; set; }
Property Value
Remarks
To specify a maximum OnDemandThroughput on your table, set the value of MaxWriteRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxWriteRequestUnits to -1.