delete_platform_application(
platform_application_arn: String,
*,
config_overrides: Optional[SNSClientConfig] = None,
) -> None
Deletes a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). For more information, see Using Amazon SNS Mobile Push Notifications.
Parameters:
-
platform_application_arn
(String)
–
PlatformApplicationArn of platform application object to delete.
Raises:
Source code in docs_src/capo_sns/_services/sns.py
| def delete_platform_application(
self,
platform_application_arn: "capo_sns.types.string.String",
*,
config_overrides: Optional[SNSClientConfig] = None,
) -> None:
"""<p>Deletes a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html">Using Amazon SNS Mobile Push Notifications</a>. </p>
Args:
platform_application_arn: <p> <code>PlatformApplicationArn</code> of platform application object to delete.</p>
Raises:
capo_sns.errors.authorization_error_exception.AuthorizationErrorException: <p>Indicates that the user has been denied access to the requested resource.</p>
capo_sns.errors.internal_error_exception.InternalErrorException: <p>Indicates an internal service error.</p>
capo_sns.errors.invalid_parameter_exception.InvalidParameterException: <p>Indicates that a request parameter does not comply with the associated constraints.</p>
capo_sns.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sns.types.delete_platform_application_input.DeletePlatformApplicationInput]",
) -> OperationResponse[None]:
import capo_sns._operations.amazon_simple_notification_service.delete_platform_application
output, http_response = (
capo_sns._operations.amazon_simple_notification_service.delete_platform_application.delete_platform_application(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeletePlatformApplication")
)
input_: capo_sns.types.delete_platform_application_input.DeletePlatformApplicationInput = {
"platform_application_arn": platform_application_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|