Skip to content

ImportSourceCredentialsInput

Source code in docs_src/capo_codebuild/types/import_source_credentials_input.py
class ImportSourceCredentialsInput(TypedDict, closed=True):
    username: NotRequired["capo_codebuild.types.non_empty_string.NonEmptyString"]
    """<p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This parameter is not valid for other types of source providers or connections. </p>"""
    token: "capo_codebuild.types.sensitive_non_empty_string.SensitiveNonEmptyString"
    """<p> For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the <code>authType</code> CODECONNECTIONS, this is the <code>connectionArn</code>. For the <code>authType</code> SECRETS_MANAGER, this is the <code>secretArn</code>.</p>"""
    server_type: "capo_codebuild.types.server_type.ServerType"
    """<p> The source provider used for this project. </p>"""
    auth_type: "capo_codebuild.types.auth_type.AuthType"
    """<p> The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.</p>"""
    should_overwrite: NotRequired["capo_codebuild.types.wrapper_boolean.WrapperBoolean"]
    """<p> Set to <code>false</code> to prevent overwriting the repository source credentials. Set to <code>true</code> to overwrite the repository source credentials. The default value is <code>true</code>. </p>"""

auth_type instance-attribute

auth_type: AuthType

The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

server_type instance-attribute

server_type: ServerType

The source provider used for this project.

should_overwrite instance-attribute

should_overwrite: NotRequired[WrapperBoolean]

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 instance-attribute

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.

username instance-attribute

username: NotRequired[NonEmptyString]

The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.