describeCrossAccountAttachment method

Future<DescribeCrossAccountAttachmentResponse> describeCrossAccountAttachment({
  1. required String attachmentArn,
})

Gets configuration information about a cross-account attachment.

May throw AccessDeniedException. May throw AttachmentNotFoundException. May throw InternalServiceErrorException. May throw InvalidArgumentException.

Parameter attachmentArn : The Amazon Resource Name (ARN) for the cross-account attachment to describe.

Implementation

Future<DescribeCrossAccountAttachmentResponse>
    describeCrossAccountAttachment({
  required String attachmentArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'GlobalAccelerator_V20180706.DescribeCrossAccountAttachment'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AttachmentArn': attachmentArn,
    },
  );

  return DescribeCrossAccountAttachmentResponse.fromJson(jsonResponse.body);
}