/** * Vault Secret Management API * Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](https://docs.oracle.com/iaas/Content/KeyManagement/Tasks/managingsecrets.htm). * OpenAPI spec version: 20180608 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ import * as model from "../model"; /** * A rule that helps enforce the expiration of a secret's contents. */ export interface SecretExpiryRule extends model.SecretRule { /** * A property indicating how long the secret contents will be considered valid, expressed in * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) format. The secret needs to be * updated when the secret content expires. * The timer resets after you update the secret contents. * The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. * For example, pass {@code P3D} to have the secret version expire every 3 days. * */ "secretVersionExpiryInterval"?: string; /** * An optional property indicating the absolute time when this secret will expire, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. * The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. * Example: {@code 2019-04-03T21:10:29.600Z} * */ "timeOfAbsoluteExpiry"?: Date; /** * A property indicating whether to block retrieval of the secret content, on expiry. The default is false. * If the secret has already expired and you would like to retrieve the secret contents, * you need to edit the secret rule to disable this property, to allow reading the secret content. * */ "isSecretContentRetrievalBlockedOnExpiry"?: boolean; "ruleType": string; } export declare namespace SecretExpiryRule { function getJsonObj(obj: SecretExpiryRule, isParentJsonObj?: boolean): object; const ruleType = "SECRET_EXPIRY_RULE"; function getDeserializedJsonObj(obj: SecretExpiryRule, isParentJsonObj?: boolean): object; }