AppProps

class aws_cdk.aws_amplify.AppProps(*, app_name=None, auto_branch_creation=None, auto_branch_deletion=None, basic_auth=None, build_spec=None, custom_rules=None, description=None, environment_variables=None, role=None, source_code_provider=None)

Bases: object

(experimental) Properties for an App.

Parameters
  • app_name (Optional[str]) – (experimental) The name for the application. Default: - a CDK generated name

  • auto_branch_creation (Optional[AutoBranchCreation]) – (experimental) The auto branch creation configuration. Use this to automatically create branches that match a certain pattern. Default: - no auto branch creation

  • auto_branch_deletion (Optional[bool]) – (experimental) Automatically disconnect a branch in the Amplify Console when you delete a branch from your Git repository. Default: false

  • basic_auth (Optional[BasicAuth]) – (experimental) The Basic Auth configuration. Use this to set password protection at an app level to all your branches. Default: - no password protection

  • build_spec (Optional[BuildSpec]) – (experimental) BuildSpec for the application. Alternatively, add a amplify.yml file to the repository. Default: - no build spec

  • custom_rules (Optional[List[CustomRule]]) – (experimental) Custom rewrite/redirect rules for the application. Default: - no custom rewrite/redirect rules

  • description (Optional[str]) – (experimental) A description for the application. Default: - no description

  • environment_variables (Optional[Mapping[str, str]]) – (experimental) Environment variables for the application. All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information. Default: - no environment variables

  • role (Optional[IRole]) – (experimental) The IAM service role to associate with the application. The App implements IGrantable. Default: - a new role is created

  • source_code_provider (Optional[ISourceCodeProvider]) – (experimental) The source code provider for this application. Default: - not connected to a source code provider

Stability

experimental

Attributes

app_name

(experimental) The name for the application.

Default
  • a CDK generated name

Stability

experimental

Return type

Optional[str]

auto_branch_creation

(experimental) The auto branch creation configuration.

Use this to automatically create branches that match a certain pattern.

Default
  • no auto branch creation

Stability

experimental

Return type

Optional[AutoBranchCreation]

auto_branch_deletion

(experimental) Automatically disconnect a branch in the Amplify Console when you delete a branch from your Git repository.

Default

false

Stability

experimental

Return type

Optional[bool]

basic_auth

(experimental) The Basic Auth configuration.

Use this to set password protection at an app level to all your branches.

Default
  • no password protection

Stability

experimental

Return type

Optional[BasicAuth]

build_spec

(experimental) BuildSpec for the application.

Alternatively, add a amplify.yml file to the repository.

Default
  • no build spec

See

https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html

Stability

experimental

Return type

Optional[BuildSpec]

custom_rules

(experimental) Custom rewrite/redirect rules for the application.

Default
  • no custom rewrite/redirect rules

Stability

experimental

Return type

Optional[List[CustomRule]]

description

(experimental) A description for the application.

Default
  • no description

Stability

experimental

Return type

Optional[str]

environment_variables

(experimental) Environment variables for the application.

All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.

Default
  • no environment variables

Stability

experimental

Return type

Optional[Mapping[str, str]]

role

(experimental) The IAM service role to associate with the application.

The App implements IGrantable.

Default
  • a new role is created

Stability

experimental

Return type

Optional[IRole]

source_code_provider

(experimental) The source code provider for this application.

Default
  • not connected to a source code provider

Stability

experimental

Return type

Optional[ISourceCodeProvider]