SourceCodeProviderConfig

class aws_cdk.aws_amplify.SourceCodeProviderConfig(*, access_token=None, oauth_token=None, repository)

Bases: object

(experimental) Configuration for the source code provider.

Parameters
  • access_token (Optional[SecretValue]) – (experimental) Personal Access token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key. Token is not stored. Either accessToken or oauthToken must be specified if repository is sepcified. Default: - do not use a token

  • oauth_token (Optional[SecretValue]) – (experimental) OAuth token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key. OAuth token is not stored. Either accessToken or oauthToken must be specified if repository is sepcified. Default: - do not use a token

  • repository (str) – (experimental) The repository for the application. Must use the HTTPS protocol.

Stability

experimental

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_amplify as amplify
import aws_cdk.core as cdk

# secret_value is of type SecretValue

source_code_provider_config = amplify.SourceCodeProviderConfig(
    repository="repository",

    # the properties below are optional
    access_token=secret_value,
    oauth_token=secret_value
)

Attributes

access_token

(experimental) Personal Access token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key.

Token is not stored.

Either accessToken or oauthToken must be specified if repository is sepcified.

Default
  • do not use a token

Stability

experimental

Return type

Optional[SecretValue]

oauth_token

(experimental) OAuth token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key.

OAuth token is not stored.

Either accessToken or oauthToken must be specified if repository is sepcified.

Default
  • do not use a token

Stability

experimental

Return type

Optional[SecretValue]

repository

(experimental) The repository for the application.

Must use the HTTPS protocol.

Stability

experimental

Example:

# Example automatically generated from non-compiling source. May contain errors.
https:
Return type

str