Module Smaws_Client_Organizations.UpdatePolicy

Updates an existing policy with a new name, description, or content. If you don't supply any parameter, that value remains unchanged. You can't change a policy's type.

You can only call this operation from the management account or a member account that is a delegated administrator.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicatePolicyException of Types.duplicate_policy_exception | `InvalidInputException of Types.invalid_input_exception | `MalformedPolicyDocumentException of Types.malformed_policy_document_exception | `PolicyChangesInProgressException of Types.policy_changes_in_progress_exception | `PolicyNotFoundException of Types.policy_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnsupportedAPIEndpointException of Types.unsupported_api_endpoint_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.update_policy_request -> (Types.update_policy_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicatePolicyException of Types.duplicate_policy_exception | `InvalidInputException of Types.invalid_input_exception | `MalformedPolicyDocumentException of Types.malformed_policy_document_exception | `PolicyChangesInProgressException of Types.policy_changes_in_progress_exception | `PolicyNotFoundException of Types.policy_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnsupportedAPIEndpointException of Types.unsupported_api_endpoint_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.update_policy_request -> (Types.update_policy_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicatePolicyException of Types.duplicate_policy_exception | `InvalidInputException of Types.invalid_input_exception | `MalformedPolicyDocumentException of Types.malformed_policy_document_exception | `PolicyChangesInProgressException of Types.policy_changes_in_progress_exception | `PolicyNotFoundException of Types.policy_not_found_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnsupportedAPIEndpointException of Types.unsupported_api_endpoint_exception ] * Smaws_Lib.Response.metadata) Stdlib.result