Smaws_Client_Organizations.DescribeEffectivePolicyReturns the contents of the effective policy for specified policy type and account. The effective policy is the aggregation of any policies of the specified type that the account inherits, plus any policy of that type that is directly attached to the account.
This operation applies only to management policies. It does not apply to authorization policies: service control policies (SCPs) and resource control policies (RCPs).
For more information about policy inheritance, see Understanding management policy inheritance in the Organizations User Guide.
You can call this operation from any account in a organization.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AWSOrganizationsNotInUseException of
Types.aws_organizations_not_in_use_exception
| `ConstraintViolationException of Types.constraint_violation_exception
| `EffectivePolicyNotFoundException of
Types.effective_policy_not_found_exception
| `InvalidInputException of Types.invalid_input_exception
| `ServiceException of Types.service_exception
| `TargetNotFoundException of Types.target_not_found_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedAPIEndpointException of
Types.unsupported_api_endpoint_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.describe_effective_policy_request ->
(Types.describe_effective_policy_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AWSOrganizationsNotInUseException of
Types.aws_organizations_not_in_use_exception
| `ConstraintViolationException of Types.constraint_violation_exception
| `EffectivePolicyNotFoundException of
Types.effective_policy_not_found_exception
| `InvalidInputException of Types.invalid_input_exception
| `ServiceException of Types.service_exception
| `TargetNotFoundException of Types.target_not_found_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.describe_effective_policy_request ->
(Types.describe_effective_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
| `ConstraintViolationException of Types.constraint_violation_exception
| `EffectivePolicyNotFoundException of
Types.effective_policy_not_found_exception
| `InvalidInputException of Types.invalid_input_exception
| `ServiceException of Types.service_exception
| `TargetNotFoundException of Types.target_not_found_exception
| `TooManyRequestsException of Types.too_many_requests_exception
| `UnsupportedAPIEndpointException of
Types.unsupported_api_endpoint_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result