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.

Container for the parameters to the ImportSourceCredentials operation. Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeBuild.AmazonCodeBuildRequest
      Amazon.CodeBuild.Model.ImportSourceCredentialsRequest

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

Syntax

C#
public class ImportSourceCredentialsRequest : AmazonCodeBuildRequest
         IAmazonWebServiceRequest

The ImportSourceCredentialsRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AuthType Amazon.CodeBuild.AuthType

Gets and sets the property AuthType.

The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

Public Property ServerType Amazon.CodeBuild.ServerType

Gets and sets the property ServerType.

The source provider used for this project.

Public Property ShouldOverwrite System.Boolean

Gets and sets the property ShouldOverwrite.

Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

Public Property Token System.String

Gets and sets the property Token.

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password.

Public Property Username System.String

Gets and sets the property Username.

The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5