@SdkInternalApi
    final GetAttachmentResult executeGetAttachment(GetAttachmentRequest getAttachmentRequest) {

        ExecutionContext executionContext = createExecutionContext(getAttachmentRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetAttachmentRequest> request = null;
        Response<GetAttachmentResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetAttachmentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAttachmentRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "ConnectParticipant");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAttachment");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<GetAttachmentResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAttachmentResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active
contacts.
</p>
<note>
<p>
<code>ConnectionToken</code> is used for invoking this API instead of <code>ParticipantToken</code>.
</p>
</note>
<p>
The Amazon Connect Participant Service APIs do not use <a
href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4
authentication</a>.
</p>

@param getAttachmentRequest
@return Result of the GetAttachment operation returned by the service.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws InternalServerException
        This exception occurs when there is an internal failure in the Amazon Connect service.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws ValidationException
        The input fails to satisfy the constraints specified by Amazon Connect.
@sample AmazonConnectParticipant.GetAttachment
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/GetAttachment"
     target="_top">AWS API Documentation</a>
aws-java-sdk-connectparticipant/src/main/java/com/amazonaws/services/connectparticipant/AmazonConnectParticipantClient.java