Class KeyExpirationAlert
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Represents an alert for keys approaching expiration.
public sealed record KeyExpirationAlert : IEquatable<KeyExpirationAlert>
- Inheritance
-
KeyExpirationAlert
- Implements
- Inherited Members
Constructors
KeyExpirationAlert(string, string, DateTimeOffset, int)
Represents an alert for keys approaching expiration.
public KeyExpirationAlert(string KeyId, string Provider, DateTimeOffset ExpiresAt, int DaysUntilExpiration)
Parameters
KeyIdstringThe identifier of the key nearing expiration.
ProviderstringThe KMS provider name.
ExpiresAtDateTimeOffsetWhen the key expires.
DaysUntilExpirationintDays remaining until expiration.
Properties
DaysUntilExpiration
Days remaining until expiration.
public int DaysUntilExpiration { get; init; }
Property Value
ExpiresAt
When the key expires.
public DateTimeOffset ExpiresAt { get; init; }
Property Value
KeyId
The identifier of the key nearing expiration.
public string KeyId { get; init; }
Property Value
Provider
The KMS provider name.
public string Provider { get; init; }
Property Value
Severity
Gets the severity based on days until expiration.
public AlertSeverity Severity { get; }