Module Values.PolicyItemSource

Contains information about a policy. This data type is used as a response parameter for the ListPolicies operation.

Sourcetype nonrec t = {
  1. policyStoreId : PolicyStoreId.t option;
    (*

    The identifier of the policy store where the policy you want information about is stored.

    *)
  2. policyId : PolicyId.t option;
    (*

    The identifier of the policy you want information about.

    *)
  3. policyType : PolicyType.t option;
    (*

    The type of the policy. This is one of the following values: STATIC TEMPLATE_LINKED

    *)
  4. principal : EntityIdentifier.t option;
    (*

    The principal associated with the policy.

    *)
  5. resource : EntityIdentifier.t option;
    (*

    The resource associated with the policy.

    *)
  6. actions : ActionIdentifierList.t option;
    (*

    The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}.

    *)
  7. definition : PolicyDefinitionItem.t option;
    (*

    The policy definition of an item in the list of policies returned.

    *)
  8. createdDate : TimestampFormat.t option;
    (*

    The date and time the policy was created.

    *)
  9. lastUpdatedDate : TimestampFormat.t option;
    (*

    The date and time the policy was most recently updated.

    *)
  10. effect_ : PolicyEffect.t option;
    (*

    The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".

    *)
  11. name : PolicyName.t option;
    (*

    The name of the policy, if one was assigned when the policy was created or last updated.

    *)
}
Sourceval make : ?policyStoreId:??? -> ?policyId:??? -> ?policyType:??? -> ?principal:??? -> ?resource:??? -> ?actions:??? -> ?definition:??? -> ?createdDate:??? -> ?lastUpdatedDate:??? -> ?effect_:??? -> ?name:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of ActionType.t ]) list ] list | `String of PolicyStoreId.t | `Structure of (string * [> `String of EntityType.t | `Structure of (string * [> `String of StaticPolicyDescription.t | `Structure of (string * [> `String of EntityType.t ]) list ]) list ]) list | `Timestamp of TimestampFormat.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