Class: Aws::CodeBuild::Types::ImportSourceCredentialsInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CodeBuild::Types::ImportSourceCredentialsInput
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-codebuild/types.rb
Overview
When making an API call, you may pass ImportSourceCredentialsInput data as a hash:
{
username: "NonEmptyString",
token: "SensitiveNonEmptyString", # required
server_type: "GITHUB", # required, accepts GITHUB, BITBUCKET, GITHUB_ENTERPRISE
auth_type: "OAUTH", # required, accepts OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN
}
Instance Attribute Summary collapse
-
#auth_type ⇒ String
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository.
-
#server_type ⇒ String
The source provider used for this project.
-
#token ⇒ String
For GitHub or GitHub Enterprise, this is the personal access token.
-
#username ⇒ String
The Bitbucket username when the ‘authType` is BASIC_AUTH.
Instance Attribute Details
#auth_type ⇒ String
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 AWS CodeBuild console.
1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/aws-sdk-codebuild/types.rb', line 1038 class ImportSourceCredentialsInput < Struct.new( :username, :token, :server_type, :auth_type) include Aws::Structure end |
#server_type ⇒ String
The source provider used for this project.
1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/aws-sdk-codebuild/types.rb', line 1038 class ImportSourceCredentialsInput < Struct.new( :username, :token, :server_type, :auth_type) include Aws::Structure end |
#token ⇒ String
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/aws-sdk-codebuild/types.rb', line 1038 class ImportSourceCredentialsInput < Struct.new( :username, :token, :server_type, :auth_type) include Aws::Structure end |
#username ⇒ String
The Bitbucket username when the ‘authType` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/aws-sdk-codebuild/types.rb', line 1038 class ImportSourceCredentialsInput < Struct.new( :username, :token, :server_type, :auth_type) include Aws::Structure end |