Values.CreateRuleResponseSourceCreates a Recycle Bin retention rule. You can create two types of retention rules: Tag-level retention rules - These retention rules use resource tags to identify the resources to protect. For each retention rule, you specify one or more tag key and value pairs. Resources (of the specified type) that have at least one of these tag key and value pairs are automatically retained in the Recycle Bin upon deletion. Use this type of retention rule to protect specific resources in your account based on their tags. Region-level retention rules - These retention rules, by default, apply to all of the resources (of the specified type) in the Region, even if the resources are not tagged. However, you can specify exclusion tags to exclude resources that have specific tags. Use this type of retention rule to protect all resources of a specific type in a Region. For more information, see Create Recycle Bin retention rules in the Amazon EBS User Guide.
type nonrec t = {identifier : RuleIdentifier.t option;The unique ID of the retention rule.
*)retentionPeriod : RetentionPeriod.t option;description : Description.t option;The retention rule description.
*)resourceType : ResourceType.t option;The resource type retained by the retention rule.
*)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.
*)status : RuleStatus.t option;The state of the retention rule. Only retention rules that are in the available state retain resources.
*)lockConfiguration : LockConfiguration.t option;Information about the retention rule lock configuration.
*)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.
*)ruleArn : RuleArn.t option;The Amazon Resource Name (ARN) of the retention rule.
*)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.
*)}type nonrec error = [ | `InternalServerException of InternalServerException.t| `ServiceQuotaExceededException of ServiceQuotaExceededException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalServerException of InternalServerException.t
| `ServiceQuotaExceededException of ServiceQuotaExceededException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalServerException of InternalServerException.t
| `ServiceQuotaExceededException of ServiceQuotaExceededException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of (string * [> `String of TagKey.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 ]