Skip to main content

source_credentials

Creates, updates, deletes, gets or lists a source_credentials resource.

Overview​

Namesource_credentials
TypeResource
Idaws.codebuild.source_credentials

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
source_credentials_infosarrayA list of SourceCredentialsInfo objects. Each SourceCredentialsInfo object includes the authentication type, token ARN, and type of source provider for one set of credentials.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_source_credentialsselectregionReturns a list of SourceCredentialsInfo objects.
delete_source_credentialsdeleteregionDeletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.
import_source_credentialsexecregion, token, serverType, authTypeImports 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Returns a list of SourceCredentialsInfo objects.

SELECT
source_credentials_infos
FROM aws.codebuild.source_credentials
WHERE region = '{{ region }}' -- required
;

DELETE examples​

Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.

DELETE FROM aws.codebuild.source_credentials
WHERE region = '{{ region }}' --required
;

Lifecycle Methods​

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.

EXEC aws.codebuild.source_credentials.import_source_credentials
@region='{{ region }}' --required
@@json=
'{
"username": "{{ username }}",
"token": "{{ token }}",
"serverType": "{{ serverType }}",
"authType": "{{ authType }}",
"shouldOverwrite": {{ shouldOverwrite }}
}'
;