Table of Contents

Class UpdateGlobalSecondaryIndexAction

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

Changes the capacity or the on-demand maximums of a global secondary index, as part of a GlobalSecondaryIndexUpdate.

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

Remarks

Set ProvisionedThroughput for an index of a table with Provisioned capacity, and OnDemandThroughput for one with PayPerRequest capacity. The key and the projection of an index cannot be changed: delete the index and create it again.

Constructors

UpdateGlobalSecondaryIndexAction()

public UpdateGlobalSecondaryIndexAction()

Properties

IndexName

Gets the name of the index to change.

public required string IndexName { get; init; }

Property Value

string

OnDemandThroughput

Gets the new maximum throughput of an index of a table with on-demand capacity. null keeps the current maximums, and so does a member of it that is null; -1 removes a maximum.

public OnDemandThroughput? OnDemandThroughput { get; init; }

Property Value

OnDemandThroughput

ProvisionedThroughput

Gets the new capacity of an index of a table with provisioned capacity. null sends nothing.

public ProvisionedThroughput? ProvisionedThroughput { get; init; }

Property Value

ProvisionedThroughput

Methods

Equals(UpdateGlobalSecondaryIndexAction?)

public bool Equals(UpdateGlobalSecondaryIndexAction? other)

Parameters

other UpdateGlobalSecondaryIndexAction

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 ==(UpdateGlobalSecondaryIndexAction?, UpdateGlobalSecondaryIndexAction?)

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

Parameters

left UpdateGlobalSecondaryIndexAction
right UpdateGlobalSecondaryIndexAction

Returns

bool

operator !=(UpdateGlobalSecondaryIndexAction?, UpdateGlobalSecondaryIndexAction?)

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

Parameters

left UpdateGlobalSecondaryIndexAction
right UpdateGlobalSecondaryIndexAction

Returns

bool