Module Values.PolicySource

Contains information about a managed policy. This data type is used as a response element in the CreatePolicy, GetPolicy, and ListPolicies operations. For more information about managed policies, refer to Managed policies and inline policies in the IAM User Guide.

Sourcetype nonrec t = {
  1. policyName : PolicyNameType.t option;
    (*

    The friendly name (not ARN) identifying the policy.

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

    The stable and unique string identifying the policy. For more information about IDs, see IAM identifiers in the IAM User Guide.

    *)
  3. arn : ArnType.t option;
  4. path : PolicyPathType.t option;
    (*

    The path to the policy. For more information about paths, see IAM identifiers in the IAM User Guide.

    *)
  5. defaultVersionId : PolicyVersionIdType.t option;
    (*

    The identifier for the version of the policy that is set as the default version.

    *)
  6. attachmentCount : AttachmentCountType.t option;
    (*

    The number of entities (users, groups, and roles) that the policy is attached to.

    *)
  7. permissionsBoundaryUsageCount : AttachmentCountType.t option;
    (*

    The number of entities (users and roles) for which the policy is used to set the permissions boundary. For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.

    *)
  8. isAttachable : BooleanType.t option;
    (*

    Specifies whether the policy can be attached to an IAM user, group, or role.

    *)
  9. description : PolicyDescriptionType.t option;
    (*

    A friendly description of the policy. This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

    *)
  10. createDate : DateType.t option;
    (*

    The date and time, in ISO 8601 date-time format, when the policy was created.

    *)
  11. updateDate : DateType.t option;
    (*

    The date and time, in ISO 8601 date-time format, when the policy was last updated. When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

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

    A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

    *)
}
Sourceval make : ?policyName:??? -> ?policyId:??? -> ?arn:??? -> ?path:??? -> ?defaultVersionId:??? -> ?attachmentCount:??? -> ?permissionsBoundaryUsageCount:??? -> ?isAttachable:??? -> ?description:??? -> ?createDate:??? -> ?updateDate:??? -> ?tags:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of BooleanType.t | `Integer of AttachmentCountType.t | `List of [> `Structure of (string * [> `String of TagKeyType.t ]) list ] list | `String of PolicyNameType.t | `Timestamp of DateType.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