Smaws_Client_SNS.AddPermissionAdds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions.
To remove the ability to change topic permissions, you must deny permissions to the AddPermission, RemovePermission, and SetTopicAttributes actions in your IAM policy.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `AuthorizationErrorException of Types.authorization_error_exception
| `InternalErrorException of Types.internal_error_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `NotFoundException of Types.not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.add_permission_input ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AuthorizationErrorException of Types.authorization_error_exception
| `InternalErrorException of Types.internal_error_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `NotFoundException of Types.not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.add_permission_input ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AuthorizationErrorException of Types.authorization_error_exception
| `InternalErrorException of Types.internal_error_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `NotFoundException of Types.not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result