Table of Contents

Class GlobalSecondaryIndexUpdate

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

One change to the global secondary indexes of a table, in an UpdateTableRequest: an index to create, to update or to delete.

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

Remarks

Set exactly one of Create, Update and Delete. The library sends whatever is set and leaves the check to DynamoDB, which rejects an update with none or with several members with a ValidationException.

Constructors

GlobalSecondaryIndexUpdate()

public GlobalSecondaryIndexUpdate()

Properties

Create

Gets the index to create, or null if this change is another kind. The key attributes of the index must be defined in AttributeDefinitions or in the table already. The index is filled from the table (Backfilling) after DynamoDB has provisioned it, which takes minutes on an empty table and more on one that holds data.

public GlobalSecondaryIndex? Create { get; init; }

Property Value

GlobalSecondaryIndex

Delete

Gets the index to delete, or null if this change is another kind.

public DeleteGlobalSecondaryIndexAction? Delete { get; init; }

Property Value

DeleteGlobalSecondaryIndexAction

Update

Gets the index whose capacity or on-demand maximums to change, or null if this change is another kind.

public UpdateGlobalSecondaryIndexAction? Update { get; init; }

Property Value

UpdateGlobalSecondaryIndexAction

Methods

Equals(GlobalSecondaryIndexUpdate?)

public bool Equals(GlobalSecondaryIndexUpdate? other)

Parameters

other GlobalSecondaryIndexUpdate

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

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

Parameters

left GlobalSecondaryIndexUpdate
right GlobalSecondaryIndexUpdate

Returns

bool

operator !=(GlobalSecondaryIndexUpdate?, GlobalSecondaryIndexUpdate?)

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

Parameters

left GlobalSecondaryIndexUpdate
right GlobalSecondaryIndexUpdate

Returns

bool