Table of Contents

Class UpdateTimeToLiveRequest

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

Turns Time to Live on a table on or off (DynamoDB UpdateTimeToLive).

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

Remarks

With Time to Live on, DynamoDB deletes the items whose attribute named in TimeToLiveSpecification holds an epoch time in seconds that has passed. Deletion is a background process without a deadline: it typically happens within a few days of the expiry, not at the moment. Until then expired items are still returned by reads, queries and scans; filter on the expiry attribute if that matters. The deletion is free and shows up in the stream of the table as a removal by the DynamoDB service.

A change takes up to an hour to take effect, and the setting of a table can be changed again only after that hour.

Constructors

UpdateTimeToLiveRequest()

public UpdateTimeToLiveRequest()

Properties

TableName

Gets the table name (or table ARN).

public required string TableName { get; init; }

Property Value

string

TimeToLiveSpecification

Gets the new setting.

public required TimeToLiveSpecification TimeToLiveSpecification { get; init; }

Property Value

TimeToLiveSpecification

Methods

Equals(UpdateTimeToLiveRequest?)

public bool Equals(UpdateTimeToLiveRequest? other)

Parameters

other UpdateTimeToLiveRequest

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

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

Parameters

left UpdateTimeToLiveRequest
right UpdateTimeToLiveRequest

Returns

bool

operator !=(UpdateTimeToLiveRequest?, UpdateTimeToLiveRequest?)

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

Parameters

left UpdateTimeToLiveRequest
right UpdateTimeToLiveRequest

Returns

bool