Module Values.UpdateRuleResponseSource

Updates an existing Recycle Bin retention rule. You can update a retention rule's description, resource tags, and retention period at any time after creation. You can't update a retention rule's resource type after creation. For more information, see Update Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.

Sourcetype nonrec t = {
  1. identifier : RuleIdentifier.t option;
    (*

    The unique ID of the retention rule.

    *)
  2. retentionPeriod : RetentionPeriod.t option;
  3. description : Description.t option;
    (*

    The retention rule description.

    *)
  4. resourceType : ResourceType.t option;
    (*

    The resource type retained by the retention rule.

    *)
  5. resourceTags : ResourceTags.t option;
    (*

    [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

    *)
  6. status : RuleStatus.t option;
    (*

    The state of the retention rule. Only retention rules that are in the available state retain resources.

    *)
  7. lockState : LockState.t option;
    (*

    [Region-level retention rules only] The lock state for the retention rule. locked - The retention rule is locked and can't be modified or deleted. pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

    *)
  8. lockEndTime : TimeStamp.t option;
    (*

    The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.

    *)
  9. ruleArn : RuleArn.t option;
    (*

    The Amazon Resource Name (ARN) of the retention rule.

    *)
  10. excludeResourceTags : ExcludeResourceTags.t option;
    (*

    [Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

    *)
}
Sourcetype nonrec error = [
  1. | `ConflictException of ConflictException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  5. | `ValidationException of ValidationException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?identifier:??? -> ?retentionPeriod:??? -> ?description:??? -> ?resourceType:??? -> ?resourceTags:??? -> ?status:??? -> ?lockState:??? -> ?lockEndTime:??? -> ?ruleArn:??? -> ?excludeResourceTags:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of ResourceTagKey.t ]) list ] list | `String of RuleIdentifier.t | `Structure of (string * [> `Enum of string | `Integer of RetentionPeriodValue.t ]) list | `Timestamp of TimeStamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t