You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CodeBuild::Types::ImportSourceCredentialsInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CodeBuild::Types::ImportSourceCredentialsInput
- Defined in:
- (unknown)
Overview
When passing ImportSourceCredentialsInput as input to an Aws::Client method, you can use a vanilla 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
should_overwrite: false,
}
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.
-
#should_overwrite ⇒ Boolean
Set to
false
to prevent overwriting the repository source credentials. -
#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.
Possible values:
- OAUTH
- BASIC_AUTH
- PERSONAL_ACCESS_TOKEN
#server_type ⇒ String
The source provider used for this project.
Possible values:
- GITHUB
- BITBUCKET
- GITHUB_ENTERPRISE
#should_overwrite ⇒ Boolean
Set to false
to prevent overwriting the repository source credentials.
Set to true
to overwrite the repository source credentials. The
default value is true
.
#token ⇒ String
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
#username ⇒ String
The Bitbucket username when the authType
is BASIC_AUTH. This
parameter is not valid for other types of source providers or
connections.