Smaws_Client_Organizations.DisablePolicyTypeDisables an organizational policy type in a root. A policy of a certain type can be attached to entities in a root only if that type is enabled in the root. After you perform this operation, you no longer can attach policies of the specified type to that root or to any organizational unit (OU) or account in that root. You can undo this by using the EnablePolicyType operation.
This is an asynchronous request that Amazon Web Services performs in the background. If you disable a policy type for a root, it still appears enabled for the organization if all features are enabled for the organization. Amazon Web Services recommends that you first use ListRoots to see the status of policy types for a specified root, and then use this operation.
You can only call this operation from the management account or a member account that is a delegated administrator.
To view the status of available policy types in the organization, use ListRoots.
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
| `InvalidInputException of Types.invalid_input_exception
| `PolicyChangesInProgressException of
Types.policy_changes_in_progress_exception
| `PolicyTypeNotEnabledException of Types.policy_type_not_enabled_exception
| `RootNotFoundException of Types.root_not_found_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedAPIEndpointException of
Types.unsupported_api_endpoint_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.disable_policy_type_request ->
(Types.disable_policy_type_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
| `InvalidInputException of Types.invalid_input_exception
| `PolicyChangesInProgressException of
Types.policy_changes_in_progress_exception
| `PolicyTypeNotEnabledException of Types.policy_type_not_enabled_exception
| `RootNotFoundException of Types.root_not_found_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedAPIEndpointException of
Types.unsupported_api_endpoint_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.disable_policy_type_request ->
(Types.disable_policy_type_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
| `InvalidInputException of Types.invalid_input_exception
| `PolicyChangesInProgressException of
Types.policy_changes_in_progress_exception
| `PolicyTypeNotEnabledException of Types.policy_type_not_enabled_exception
| `RootNotFoundException of Types.root_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