Class TimeToLiveSpecification
The Time to Live setting of a table: whether DynamoDB deletes expired items, and which attribute holds the expiry time.
public sealed record TimeToLiveSpecification : IEquatable<TimeToLiveSpecification>
- Inheritance
-
TimeToLiveSpecification
- Implements
- Inherited Members
Remarks
The attribute of an item must be a number holding a Unix timestamp in seconds. Items without the attribute, or with another type of value, never expire.
Constructors
TimeToLiveSpecification()
public TimeToLiveSpecification()
Properties
AttributeName
Gets the name of the attribute with the expiry time, 1 to 255 characters. It cannot be changed while Time to Live is on; turn it off and on again with the new name.
public required string AttributeName { get; init; }
Property Value
Enabled
Gets a value indicating whether expired items are deleted.
public required bool Enabled { get; init; }
Property Value
Methods
Equals(TimeToLiveSpecification?)
public bool Equals(TimeToLiveSpecification? other)
Parameters
otherTimeToLiveSpecification
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 ==(TimeToLiveSpecification?, TimeToLiveSpecification?)
public static bool operator ==(TimeToLiveSpecification? left, TimeToLiveSpecification? right)
Parameters
leftTimeToLiveSpecificationrightTimeToLiveSpecification
Returns
operator !=(TimeToLiveSpecification?, TimeToLiveSpecification?)
public static bool operator !=(TimeToLiveSpecification? left, TimeToLiveSpecification? right)
Parameters
leftTimeToLiveSpecificationrightTimeToLiveSpecification