describeVpcConnector method

Future<DescribeVpcConnectorResponse> describeVpcConnector({
  1. required String vpcConnectorArn,
})

Return a description of an App Runner VPC connector resource.

May throw InternalServiceErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter vpcConnectorArn : The Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.

The ARN must be a full VPC connector ARN.

Implementation

Future<DescribeVpcConnectorResponse> describeVpcConnector({
  required String vpcConnectorArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AppRunner.DescribeVpcConnector'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'VpcConnectorArn': vpcConnectorArn,
    },
  );

  return DescribeVpcConnectorResponse.fromJson(jsonResponse.body);
}