2019/08/08 - AWS CodeBuild - 1 updated api methods
Changes CodeBuild adds CloudFormation support for SourceCredential
{'shouldOverwrite': 'boolean'}
Imports the source repository credentials for an AWS CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
See also: AWS API Documentation
Request Syntax
client.import_source_credentials( username='string', token='string', serverType='GITHUB'|'BITBUCKET'|'GITHUB_ENTERPRISE', authType='OAUTH'|'BASIC_AUTH'|'PERSONAL_ACCESS_TOKEN', shouldOverwrite=True|False )
string
The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
string
[REQUIRED]
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
string
[REQUIRED]
The source provider used for this project.
string
[REQUIRED]
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.
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 .
dict
Response Syntax
{ 'arn': 'string' }
Response Structure
(dict) --
arn (string) --
The Amazon Resource Name (ARN) of the token.