Module Values.CreateLifecyclePolicyRequestSource

Create a lifecycle policy resource.

Sourcetype nonrec t = {
  1. name : ResourceName.t;
    (*

    The name of the lifecycle policy to create.

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

    Optional description for the lifecycle policy.

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

    Indicates whether the lifecycle policy resource is enabled.

    *)
  4. executionRole : RoleNameOrArn.t;
    (*

    The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.

    *)
  5. resourceType : LifecyclePolicyResourceType.t;
    (*

    The type of Image Builder resource that the lifecycle policy applies to.

    *)
  6. policyDetails : LifecyclePolicyDetails.t;
    (*

    Configuration details for the lifecycle policy rules.

    *)
  7. resourceSelection : LifecyclePolicyResourceSelection.t;
    (*

    Selection criteria for the resources that the lifecycle policy applies to.

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

    Tags to apply to the lifecycle policy resource.

    *)
  9. clientToken : ClientToken.t;
    (*

    Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?status:??? -> ?tags:??? -> name:ResourceName.t -> executionRole:RoleNameOrArn.t -> resourceType:LifecyclePolicyResourceType.t -> policyDetails:LifecyclePolicyDetails.t -> resourceSelection:LifecyclePolicyResourceSelection.t -> clientToken:ClientToken.t -> 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 ResourceName.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 ]) 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