deleteConnection method
The connection to be deleted.
May throw ResourceNotFoundException.
Parameter connectionArn
:
The Amazon Resource Name (ARN) of the connection to be deleted.
Implementation
Future<void> deleteConnection({
required String connectionArn,
}) async {
ArgumentError.checkNotNull(connectionArn, 'connectionArn');
_s.validateStringLength(
'connectionArn',
connectionArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target':
'com.amazonaws.codestar.connections.CodeStar_connections_20191201.DeleteConnection'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConnectionArn': connectionArn,
},
);
}