deleteSourceCredentials method

Future<DeleteSourceCredentialsOutput> deleteSourceCredentials({
  1. required String arn,
})

Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter arn : The Amazon Resource Name (ARN) of the token.

Implementation

Future<DeleteSourceCredentialsOutput> deleteSourceCredentials({
  required String arn,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  _s.validateStringLength(
    'arn',
    arn,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeBuild_20161006.DeleteSourceCredentials'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'arn': arn,
    },
  );

  return DeleteSourceCredentialsOutput.fromJson(jsonResponse.body);
}