Module Smaws_Client_IAM.DeletePolicy

Deletes the specified managed policy.

Before you can delete a managed policy, you must first detach the policy from all users, groups, and roles that it is attached to. In addition, you must delete all the policy's versions. The following steps describe the process for deleting a managed policy:

For information about managed policies, see Managed policies and inline policies in the IAM User Guide.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `DeleteConflictException of Types.delete_conflict_exception | `InvalidInputException of Types.invalid_input_exception | `LimitExceededException of Types.limit_exceeded_exception | `NoSuchEntityException of Types.no_such_entity_exception | `ServiceFailureException of Types.service_failure_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.delete_policy_request -> (Smaws_Lib.Smithy_api.Types.unit_, [> Smaws_Lib.Protocols.AwsQuery.error | `DeleteConflictException of Types.delete_conflict_exception | `InvalidInputException of Types.invalid_input_exception | `LimitExceededException of Types.limit_exceeded_exception | `NoSuchEntityException of Types.no_such_entity_exception | `ServiceFailureException of Types.service_failure_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.delete_policy_request -> (Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `DeleteConflictException of Types.delete_conflict_exception | `InvalidInputException of Types.invalid_input_exception | `LimitExceededException of Types.limit_exceeded_exception | `NoSuchEntityException of Types.no_such_entity_exception | `ServiceFailureException of Types.service_failure_exception ] * Smaws_Lib.Response.metadata) Stdlib.result