{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codebuild/refs/heads/main/json-structure/amazon-codebuild-import-source-credentials-input-structure.json",
"name": "ImportSourceCredentialsInput",
"description": "ImportSourceCredentialsInput schema from Amazon CodeBuild",
"type": "object",
"properties": {
"username": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": " The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections. "
}
]
},
"token": {
"allOf": [
{
"$ref": "#/components/schemas/SensitiveNonEmptyString"
},
{
"description": " For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. "
}
]
},
"serverType": {
"allOf": [
{
"$ref": "#/components/schemas/ServerType"
},
{
"description": " The source provider used for this project. "
}
]
},
"authType": {
"allOf": [
{
"$ref": "#/components/schemas/AuthType"
},
{
"description": " 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. "
}
]
},
"shouldOverwrite": {
"allOf": [
{
"$ref": "#/components/schemas/WrapperBoolean"
},
{
"description": " Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true. "
}
]
}
},
"required": [
"token",
"serverType",
"authType"
]
}