Table of Contents

Class OnDemandThroughput

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

The maximum throughput of a table or a global secondary index with PayPerRequest capacity: requests above it are throttled.

public sealed record OnDemandThroughput : IEquatable<OnDemandThroughput>
Inheritance
OnDemandThroughput
Implements
Inherited Members

Remarks

Without a maximum, on-demand throughput is bounded only by the account's quota per table, 40,000 read and 40,000 write request units by default. A maximum is at least 1 and at most that quota, and DynamoDB applies it on a best-effort basis: burst capacity can let a few requests above it through.

In a request, set MaxReadRequestUnits, MaxWriteRequestUnits or both: a member that is null is not sent and, in UpdateTable, keeps its current value. -1 removes a maximum. DynamoDB rejects a maximum on a table or index with Provisioned capacity, and a table that switches to provisioned capacity loses its maximums.

In a description, null or -1 means that there is no maximum; DynamoDB may leave the whole object out when neither has one.

Constructors

OnDemandThroughput()

public OnDemandThroughput()

Properties

MaxReadRequestUnits

Gets the maximum read request units per second: at least 1, or -1 in a request to remove the maximum. null sends nothing, and in a description means, as -1 does, that reads have no maximum.

public long? MaxReadRequestUnits { get; init; }

Property Value

long?

MaxWriteRequestUnits

Gets the maximum write request units per second: at least 1, or -1 in a request to remove the maximum. null sends nothing, and in a description means, as -1 does, that writes have no maximum.

public long? MaxWriteRequestUnits { get; init; }

Property Value

long?

Methods

Equals(OnDemandThroughput?)

public bool Equals(OnDemandThroughput? other)

Parameters

other OnDemandThroughput

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OnDemandThroughput?, OnDemandThroughput?)

public static bool operator ==(OnDemandThroughput? left, OnDemandThroughput? right)

Parameters

left OnDemandThroughput
right OnDemandThroughput

Returns

bool

operator !=(OnDemandThroughput?, OnDemandThroughput?)

public static bool operator !=(OnDemandThroughput? left, OnDemandThroughput? right)

Parameters

left OnDemandThroughput
right OnDemandThroughput

Returns

bool