Class UpdateGlobalSecondaryIndexAction
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
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
ProvisionedThroughput
Gets the new capacity of an index of a table with provisioned capacity. null sends nothing.
public ProvisionedThroughput? ProvisionedThroughput { get; init; }
Property Value
Methods
Equals(UpdateGlobalSecondaryIndexAction?)
public bool Equals(UpdateGlobalSecondaryIndexAction? 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 ==(UpdateGlobalSecondaryIndexAction?, UpdateGlobalSecondaryIndexAction?)
public static bool operator ==(UpdateGlobalSecondaryIndexAction? left, UpdateGlobalSecondaryIndexAction? right)
Parameters
Returns
operator !=(UpdateGlobalSecondaryIndexAction?, UpdateGlobalSecondaryIndexAction?)
public static bool operator !=(UpdateGlobalSecondaryIndexAction? left, UpdateGlobalSecondaryIndexAction? right)