in aws-sns-topic/src/main/java/software/amazon/sns/topic/BaseHandlerStd.java [106:122]
protected GetTopicAttributesResponse getTopicAttributes(
final GetTopicAttributesRequest getTopicAttributesRequest,
final ProxyClient<SnsClient> proxyClient) {
GetTopicAttributesResponse getTopicAttributesResponse;
try {
getTopicAttributesResponse = proxyClient.injectCredentialsAndInvokeV2(getTopicAttributesRequest, proxyClient.client()::getTopicAttributes);
} catch (final NotFoundException e) {
throw new CfnNotFoundException(ResourceModel.TYPE_NAME, getTopicAttributesRequest.topicArn(), e);
} catch (final InvalidParameterException e) {
throw new CfnInvalidRequestException(e);
} catch (final SnsException e) {
throw new CfnGeneralServiceException(e);
} catch (final SdkException e) {
throw new CfnInternalFailureException(e);
}
return getTopicAttributesResponse;
}