in aws-sns-subscription/src/main/java/software/amazon/sns/subscription/UpdateHandler.java [133:162]
private SetSubscriptionAttributesResponse updateSubscription(
final SetSubscriptionAttributesRequest setSubscriptionAttributesRequest,
final ProxyClient<SnsClient> proxyClient) {
final SetSubscriptionAttributesResponse setSubscriptionAttributesResponse;
try {
setSubscriptionAttributesResponse = proxyClient.injectCredentialsAndInvokeV2(setSubscriptionAttributesRequest, proxyClient.client()::setSubscriptionAttributes);
} catch (final SubscriptionLimitExceededException e) {
throw new CfnServiceLimitExceededException(e);
} catch (final FilterPolicyLimitExceededException e) {
throw new CfnServiceLimitExceededException(e);
} catch (final InvalidParameterException e) {
throw new CfnInvalidRequestException(e);
} catch (final InternalErrorException e) {
throw new CfnInternalFailureException(e);
} catch (final NotFoundException e) {
throw new CfnNotFoundException(e);
} catch (final AuthorizationErrorException e) {
throw new CfnAccessDeniedException(e);
} catch (final InvalidSecurityException e) {
throw new CfnInvalidCredentialsException(e);
} catch (final Exception e) {
throw new CfnInternalFailureException(e);
}
logger.log(String.format("Subscription Arn %s is updated successfully", setSubscriptionAttributesRequest.subscriptionArn()));
return setSubscriptionAttributesResponse;
}