Module Values.LockRuleResponseSource

Locks a Region-level retention rule. A locked retention rule can't be modified or deleted. You can't lock tag-level retention rules, or Region-level retention rules that have exclusion tags.

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

    The unique ID of the retention rule.

    *)
  2. description : Description.t option;
    (*

    The retention rule description.

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

    The resource type retained by the retention rule.

    *)
  4. retentionPeriod : RetentionPeriod.t option;
  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. lockConfiguration : LockConfiguration.t option;
    (*

    Information about the retention rule lock configuration.

    *)
  8. 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.

    *)
  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. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?identifier:??? -> ?description:??? -> ?resourceType:??? -> ?retentionPeriod:??? -> ?resourceTags:??? -> ?status:??? -> ?lockConfiguration:??? -> ?lockState:??? -> ?ruleArn:??? -> ?excludeResourceTags:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.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 | `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 | `Structure of (string * [> `Enum of string | `Integer of UnlockDelayValue.t ]) list ]) list ]) 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