Module Values.DeletePolicyVersionRequestSource

Deletes the specified version from the specified managed policy. You cannot delete the default version from a policy using this operation. To delete the default version from a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions. For information about versions for managed policies, see Versioning for managed policies in the IAM User Guide.

Sourcetype nonrec t = {
  1. policyArn : ArnType.t;
    (*

    The Amazon Resource Name (ARN) of the IAM policy from which you want to delete a version. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

    *)
  2. versionId : PolicyVersionIdType.t;
    (*

    The policy version to delete. This parameter allows (through its regex pattern) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits. For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.

    *)
}
Sourceval context_ : string
Sourceval make : policyArn:ArnType.t -> versionId:PolicyVersionIdType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ArnType.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