Smaws_Client_CloudWatchLogs.DescribeAccountPoliciesReturns a list of all CloudWatch Logs account policies in the account.
To use this operation, you must be signed on with the correct permissions depending on the type of policy that you are retrieving information for.
logs:GetDataProtectionPolicy and logs:DescribeAccountPolicies permissions.logs:DescribeSubscriptionFilters and logs:DescribeAccountPolicies permissions.logs:GetTransformer and logs:DescribeAccountPolicies permissions.logs:DescribeIndexPolicies and logs:DescribeAccountPolicies permissions.val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.describe_account_policies_request ->
(Types.describe_account_policies_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.describe_account_policies_request ->
(Types.describe_account_policies_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result