Module Smaws_Client_Organizations.EnablePolicyType

Enables a policy type in a root. After you enable a policy type in a root, you can attach policies of that type to the root, any organizational unit (OU), or account in that root. You can undo this by using the DisablePolicyType operation.

This is an asynchronous request that Amazon Web Services performs in the background. 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.

You can enable a policy type in a root only if that policy type is available in the organization. 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 | `PolicyTypeAlreadyEnabledException of Types.policy_type_already_enabled_exception | `PolicyTypeNotAvailableForOrganizationException of Types.policy_type_not_available_for_organization_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 ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.enable_policy_type_request -> (Types.enable_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 | `PolicyTypeAlreadyEnabledException of Types.policy_type_already_enabled_exception | `PolicyTypeNotAvailableForOrganizationException of Types.policy_type_not_available_for_organization_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.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.enable_policy_type_request -> (Types.enable_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 | `PolicyTypeAlreadyEnabledException of Types.policy_type_already_enabled_exception | `PolicyTypeNotAvailableForOrganizationException of Types.policy_type_not_available_for_organization_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