Class GlobalSecondaryIndexUpdate
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
Delete
Gets the index to delete, or null if this change is another kind.
public DeleteGlobalSecondaryIndexAction? Delete { get; init; }
Property Value
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
Methods
Equals(GlobalSecondaryIndexUpdate?)
public bool Equals(GlobalSecondaryIndexUpdate? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(GlobalSecondaryIndexUpdate?, GlobalSecondaryIndexUpdate?)
public static bool operator ==(GlobalSecondaryIndexUpdate? left, GlobalSecondaryIndexUpdate? right)
Parameters
Returns
operator !=(GlobalSecondaryIndexUpdate?, GlobalSecondaryIndexUpdate?)
public static bool operator !=(GlobalSecondaryIndexUpdate? left, GlobalSecondaryIndexUpdate? right)