AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ImportSourceCredentialsAsync.

Namespace: Amazon.CodeBuild
Assembly: AWSSDK.CodeBuild.dll
Version: 3.x.y.z

Syntax

C#
public abstract ImportSourceCredentialsResponse ImportSourceCredentials(
         ImportSourceCredentialsRequest request
)

Parameters

request
Type: Amazon.CodeBuild.Model.ImportSourceCredentialsRequest

Container for the necessary parameters to execute the ImportSourceCredentials service method.

Return Value


The response from the ImportSourceCredentials service method, as returned by CodeBuild.

Exceptions

ExceptionCondition
AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
InvalidInputException The input value that was provided is not valid.
ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also