protected GetTopicAttributesResponse retrieveTopicAttributes()

in aws-sns-subscription/src/main/java/software/amazon/sns/subscription/BaseHandlerStd.java [121:148]


  protected GetTopicAttributesResponse retrieveTopicAttributes(GetTopicAttributesRequest getTopicAttributesRequest,
  final ProxyClient<SnsClient> proxyClient)  {

    final GetTopicAttributesResponse getTopicAttributesResponse;

    try {
      getTopicAttributesResponse = proxyClient.injectCredentialsAndInvokeV2(getTopicAttributesRequest, proxyClient.client()::getTopicAttributes);

    } 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);
    }

    return getTopicAttributesResponse;
  }