Module Values.LifecyclePolicySource

The configuration details for a lifecycle policy resource.

Sourcetype nonrec t = {
  1. arn : LifecyclePolicyArn.t option;
    (*

    The Amazon Resource Name (ARN) of the lifecycle policy resource.

    *)
  2. name : ResourceName.t option;
    (*

    The name of the lifecycle policy.

    *)
  3. description : NonEmptyString.t option;
    (*

    Optional description for the lifecycle policy.

    *)
  4. status : LifecyclePolicyStatus.t option;
    (*

    Indicates whether the lifecycle policy resource is enabled.

    *)
  5. executionRole : RoleNameOrArn.t option;
    (*

    The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.

    *)
  6. resourceType : LifecyclePolicyResourceType.t option;
    (*

    The type of resources the lifecycle policy targets.

    *)
  7. policyDetails : LifecyclePolicyDetails.t option;
    (*

    The configuration details for a lifecycle policy resource.

    *)
  8. resourceSelection : LifecyclePolicyResourceSelection.t option;
    (*

    Resource selection criteria used to run the lifecycle policy.

    *)
  9. dateCreated : DateTimeTimestamp.t option;
    (*

    The timestamp when Image Builder created the lifecycle policy resource.

    *)
  10. dateUpdated : DateTimeTimestamp.t option;
    (*

    The timestamp when Image Builder updated the lifecycle policy resource.

    *)
  11. dateLastRun : DateTimeTimestamp.t option;
    (*

    The timestamp for the last time Image Builder ran the lifecycle policy.

    *)
  12. tags : TagMap.t option;
    (*

    To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.

    *)
}
Sourceval make : ?arn:??? -> ?name:??? -> ?description:??? -> ?status:??? -> ?executionRole:??? -> ?resourceType:??? -> ?policyDetails:??? -> ?resourceSelection:??? -> ?dateCreated:??? -> ?dateUpdated:??? -> ?dateLastRun:??? -> ?tags:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of LifecyclePolicyDetailFilterValue.t | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `Structure of (string * [> `Boolean of Boolean.t | `List of [> `String of NonEmptyString.t ] list | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `Structure of (string * [> `Enum of string | `Integer of LifecyclePolicyDetailExclusionRulesAmisLastLaunchedValue.t ]) list ]) list ]) list ]) list ] list | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of LifecyclePolicyArn.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of ResourceName.t ]) list ] list | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list ]) list | `Timestamp of DateTimeTimestamp.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