Documentation ¶
Index ¶
- func App_IsConstruct(x interface{}) *bool
- func App_IsResource(construct awscdk.IConstruct) *bool
- func Branch_IsConstruct(x interface{}) *bool
- func Branch_IsResource(construct awscdk.IConstruct) *bool
- func CfnApp_CFN_RESOURCE_TYPE_NAME() *string
- func CfnApp_IsCfnElement(x interface{}) *bool
- func CfnApp_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnApp_IsConstruct(x interface{}) *bool
- func CfnBranch_CFN_RESOURCE_TYPE_NAME() *string
- func CfnBranch_IsCfnElement(x interface{}) *bool
- func CfnBranch_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnBranch_IsConstruct(x interface{}) *bool
- func CfnDomain_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDomain_IsCfnElement(x interface{}) *bool
- func CfnDomain_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDomain_IsConstruct(x interface{}) *bool
- func Domain_IsConstruct(x interface{}) *bool
- func Domain_IsResource(construct awscdk.IConstruct) *bool
- func NewApp_Override(a App, scope constructs.Construct, id *string, props *AppProps)
- func NewBasicAuth_Override(b BasicAuth, props *BasicAuthProps)
- func NewBranch_Override(b Branch, scope constructs.Construct, id *string, props *BranchProps)
- func NewCfnApp_Override(c CfnApp, scope awscdk.Construct, id *string, props *CfnAppProps)
- func NewCfnBranch_Override(c CfnBranch, scope awscdk.Construct, id *string, props *CfnBranchProps)
- func NewCfnDomain_Override(c CfnDomain, scope awscdk.Construct, id *string, props *CfnDomainProps)
- func NewCodeCommitSourceCodeProvider_Override(c CodeCommitSourceCodeProvider, props *CodeCommitSourceCodeProviderProps)
- func NewCustomRule_Override(c CustomRule, options *CustomRuleOptions)
- func NewDomain_Override(d Domain, scope constructs.Construct, id *string, props *DomainProps)
- func NewGitHubSourceCodeProvider_Override(g GitHubSourceCodeProvider, props *GitHubSourceCodeProviderProps)
- func NewGitLabSourceCodeProvider_Override(g GitLabSourceCodeProvider, props *GitLabSourceCodeProviderProps)
- type App
- type AppProps
- type AutoBranchCreation
- type BasicAuth
- type BasicAuthConfig
- type BasicAuthProps
- type Branch
- type BranchOptions
- type BranchProps
- type CfnApp
- type CfnAppProps
- type CfnApp_AutoBranchCreationConfigProperty
- type CfnApp_BasicAuthConfigProperty
- type CfnApp_CustomRuleProperty
- type CfnApp_EnvironmentVariableProperty
- type CfnBranch
- type CfnBranchProps
- type CfnBranch_BasicAuthConfigProperty
- type CfnBranch_EnvironmentVariableProperty
- type CfnDomain
- type CfnDomainProps
- type CfnDomain_SubDomainSettingProperty
- type CodeCommitSourceCodeProvider
- type CodeCommitSourceCodeProviderProps
- type CustomResponseHeader
- type CustomRule
- type CustomRuleOptions
- type Domain
- type DomainOptions
- type DomainProps
- type GitHubSourceCodeProvider
- type GitHubSourceCodeProviderProps
- type GitLabSourceCodeProvider
- type GitLabSourceCodeProviderProps
- type IApp
- type IBranch
- type ISourceCodeProvider
- type RedirectStatus
- type SourceCodeProviderConfig
- type SubDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func App_IsConstruct ¶
func App_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func App_IsResource ¶
func App_IsResource(construct awscdk.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func Branch_IsConstruct ¶
func Branch_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func Branch_IsResource ¶
func Branch_IsResource(construct awscdk.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func CfnApp_CFN_RESOURCE_TYPE_NAME ¶
func CfnApp_CFN_RESOURCE_TYPE_NAME() *string
func CfnApp_IsCfnElement ¶
func CfnApp_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnApp_IsCfnResource ¶
func CfnApp_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnApp_IsConstruct ¶
func CfnApp_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnBranch_CFN_RESOURCE_TYPE_NAME ¶
func CfnBranch_CFN_RESOURCE_TYPE_NAME() *string
func CfnBranch_IsCfnElement ¶
func CfnBranch_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnBranch_IsCfnResource ¶
func CfnBranch_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnBranch_IsConstruct ¶
func CfnBranch_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnDomain_CFN_RESOURCE_TYPE_NAME ¶
func CfnDomain_CFN_RESOURCE_TYPE_NAME() *string
func CfnDomain_IsCfnElement ¶
func CfnDomain_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnDomain_IsCfnResource ¶
func CfnDomain_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnDomain_IsConstruct ¶
func CfnDomain_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func Domain_IsConstruct ¶
func Domain_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func Domain_IsResource ¶
func Domain_IsResource(construct awscdk.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func NewApp_Override ¶
Experimental.
func NewBasicAuth_Override ¶
func NewBasicAuth_Override(b BasicAuth, props *BasicAuthProps)
Experimental.
func NewBranch_Override ¶
func NewBranch_Override(b Branch, scope constructs.Construct, id *string, props *BranchProps)
Experimental.
func NewCfnApp_Override ¶
func NewCfnApp_Override(c CfnApp, scope awscdk.Construct, id *string, props *CfnAppProps)
Create a new `AWS::Amplify::App`.
func NewCfnBranch_Override ¶
func NewCfnBranch_Override(c CfnBranch, scope awscdk.Construct, id *string, props *CfnBranchProps)
Create a new `AWS::Amplify::Branch`.
func NewCfnDomain_Override ¶
func NewCfnDomain_Override(c CfnDomain, scope awscdk.Construct, id *string, props *CfnDomainProps)
Create a new `AWS::Amplify::Domain`.
func NewCodeCommitSourceCodeProvider_Override ¶
func NewCodeCommitSourceCodeProvider_Override(c CodeCommitSourceCodeProvider, props *CodeCommitSourceCodeProviderProps)
Experimental.
func NewCustomRule_Override ¶
func NewCustomRule_Override(c CustomRule, options *CustomRuleOptions)
Experimental.
func NewDomain_Override ¶
func NewDomain_Override(d Domain, scope constructs.Construct, id *string, props *DomainProps)
Experimental.
func NewGitHubSourceCodeProvider_Override ¶
func NewGitHubSourceCodeProvider_Override(g GitHubSourceCodeProvider, props *GitHubSourceCodeProviderProps)
Experimental.
func NewGitLabSourceCodeProvider_Override ¶
func NewGitLabSourceCodeProvider_Override(g GitLabSourceCodeProvider, props *GitLabSourceCodeProviderProps)
Experimental.
Types ¶
type App ¶
type App interface { awscdk.Resource IApp awsiam.IGrantable AppId() *string AppName() *string Arn() *string DefaultDomain() *string Env() *awscdk.ResourceEnvironment GrantPrincipal() awsiam.IPrincipal Node() awscdk.ConstructNode PhysicalName() *string Stack() awscdk.Stack AddAutoBranchEnvironment(name *string, value *string) App AddBranch(id *string, options *BranchOptions) Branch AddCustomRule(rule CustomRule) App AddDomain(id *string, options *DomainOptions) Domain AddEnvironment(name *string, value *string) App ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string Prepare() Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string }
An Amplify Console application.
TODO: EXAMPLE
Experimental.
type AppProps ¶
type AppProps struct { // The name for the application. // Experimental. AppName *string `json:"appName" yaml:"appName"` // The auto branch creation configuration. // // Use this to automatically create // branches that match a certain pattern. // Experimental. AutoBranchCreation *AutoBranchCreation `json:"autoBranchCreation" yaml:"autoBranchCreation"` // Automatically disconnect a branch in the Amplify Console when you delete a branch from your Git repository. // Experimental. AutoBranchDeletion *bool `json:"autoBranchDeletion" yaml:"autoBranchDeletion"` // The Basic Auth configuration. // // Use this to set password protection at an // app level to all your branches. // Experimental. BasicAuth BasicAuth `json:"basicAuth" yaml:"basicAuth"` // BuildSpec for the application. // // Alternatively, add a `amplify.yml` // file to the repository. // See: https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html // // Experimental. BuildSpec awscodebuild.BuildSpec `json:"buildSpec" yaml:"buildSpec"` // The custom HTTP response headers for an Amplify app. // See: https://docs.aws.amazon.com/amplify/latest/userguide/custom-headers.html // // Experimental. CustomResponseHeaders *[]*CustomResponseHeader `json:"customResponseHeaders" yaml:"customResponseHeaders"` // Custom rewrite/redirect rules for the application. // Experimental. CustomRules *[]CustomRule `json:"customRules" yaml:"customRules"` // A description for the application. // Experimental. Description *string `json:"description" yaml:"description"` // 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. // Experimental. EnvironmentVariables *map[string]*string `json:"environmentVariables" yaml:"environmentVariables"` // The IAM service role to associate with the application. // // The App // implements IGrantable. // Experimental. Role awsiam.IRole `json:"role" yaml:"role"` // The source code provider for this application. // Experimental. SourceCodeProvider ISourceCodeProvider `json:"sourceCodeProvider" yaml:"sourceCodeProvider"` }
Properties for an App.
TODO: EXAMPLE
Experimental.
type AutoBranchCreation ¶
type AutoBranchCreation struct { // Whether to enable auto building for the auto created branch. // Experimental. AutoBuild *bool `json:"autoBuild" yaml:"autoBuild"` // The Basic Auth configuration. // // Use this to set password protection for // the auto created branch. // Experimental. BasicAuth BasicAuth `json:"basicAuth" yaml:"basicAuth"` // Build spec for the auto created branch. // Experimental. BuildSpec awscodebuild.BuildSpec `json:"buildSpec" yaml:"buildSpec"` // Environment variables for the auto created branch. // // All environment variables that you add are encrypted to prevent rogue // access so you can use them to store secret information. // Experimental. EnvironmentVariables *map[string]*string `json:"environmentVariables" yaml:"environmentVariables"` // Automated branch creation glob patterns. // Experimental. Patterns *[]*string `json:"patterns" yaml:"patterns"` // The dedicated backend environment for the pull request previews of the auto created branch. // Experimental. PullRequestEnvironmentName *string `json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Whether to enable pull request preview for the auto created branch. // Experimental. PullRequestPreview *bool `json:"pullRequestPreview" yaml:"pullRequestPreview"` // Stage for the auto created branch. // Experimental. Stage *string `json:"stage" yaml:"stage"` }
Auto branch creation configuration.
TODO: EXAMPLE
Experimental.
type BasicAuth ¶
type BasicAuth interface {
Bind(scope awscdk.Construct, id *string) *BasicAuthConfig
}
Basic Auth configuration.
TODO: EXAMPLE
Experimental.
func BasicAuth_FromCredentials ¶
func BasicAuth_FromCredentials(username *string, password awscdk.SecretValue) BasicAuth
Creates a Basic Auth configuration from a username and a password. Experimental.
func BasicAuth_FromGeneratedPassword ¶
Creates a Basic Auth configuration with a password generated in Secrets Manager. Experimental.
type BasicAuthConfig ¶
type BasicAuthConfig struct { // Whether to enable Basic Auth. // Experimental. EnableBasicAuth *bool `json:"enableBasicAuth" yaml:"enableBasicAuth"` // The password. // Experimental. Password *string `json:"password" yaml:"password"` // The username. // Experimental. Username *string `json:"username" yaml:"username"` }
A Basic Auth configuration.
TODO: EXAMPLE
Experimental.
type BasicAuthProps ¶
type BasicAuthProps struct { // The username. // Experimental. Username *string `json:"username" yaml:"username"` // The encryption key to use to encrypt the password when it's generated in Secrets Manager. // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey" yaml:"encryptionKey"` // The password. // Experimental. Password awscdk.SecretValue `json:"password" yaml:"password"` }
Properties for a BasicAuth.
TODO: EXAMPLE
Experimental.
type Branch ¶
type Branch interface { awscdk.Resource IBranch Arn() *string BranchName() *string Env() *awscdk.ResourceEnvironment Node() awscdk.ConstructNode PhysicalName() *string Stack() awscdk.Stack AddEnvironment(name *string, value *string) Branch ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string Prepare() Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string }
An Amplify Console branch.
TODO: EXAMPLE
Experimental.
func NewBranch ¶
func NewBranch(scope constructs.Construct, id *string, props *BranchProps) Branch
Experimental.
type BranchOptions ¶
type BranchOptions struct { // Asset for deployment. // // The Amplify app must not have a sourceCodeProvider configured as this resource uses Amplify's // startDeployment API to initiate and deploy a S3 asset onto the App. // Experimental. Asset awss3assets.Asset `json:"asset" yaml:"asset"` // Whether to enable auto building for the branch. // Experimental. AutoBuild *bool `json:"autoBuild" yaml:"autoBuild"` // The Basic Auth configuration. // // Use this to set password protection for // the branch // Experimental. BasicAuth BasicAuth `json:"basicAuth" yaml:"basicAuth"` // The name of the branch. // Experimental. BranchName *string `json:"branchName" yaml:"branchName"` // BuildSpec for the branch. // See: https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html // // Experimental. BuildSpec awscodebuild.BuildSpec `json:"buildSpec" yaml:"buildSpec"` // A description for the branch. // Experimental. Description *string `json:"description" yaml:"description"` // Environment variables for the branch. // // All environment variables that you add are encrypted to prevent rogue // access so you can use them to store secret information. // Experimental. EnvironmentVariables *map[string]*string `json:"environmentVariables" yaml:"environmentVariables"` // Enables performance mode for the branch. // // Performance mode optimizes for faster hosting performance by keeping content cached at the edge // for a longer interval. When performance mode is enabled, hosting configuration or code changes // can take up to 10 minutes to roll out. // Experimental. PerformanceMode *bool `json:"performanceMode" yaml:"performanceMode"` // The dedicated backend environment for the pull request previews. // Experimental. PullRequestEnvironmentName *string `json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Whether to enable pull request preview for the branch. // Experimental. PullRequestPreview *bool `json:"pullRequestPreview" yaml:"pullRequestPreview"` // Stage for the branch. // Experimental. Stage *string `json:"stage" yaml:"stage"` }
Options to add a branch to an application.
TODO: EXAMPLE
Experimental.
type BranchProps ¶
type BranchProps struct { // Asset for deployment. // // The Amplify app must not have a sourceCodeProvider configured as this resource uses Amplify's // startDeployment API to initiate and deploy a S3 asset onto the App. // Experimental. Asset awss3assets.Asset `json:"asset" yaml:"asset"` // Whether to enable auto building for the branch. // Experimental. AutoBuild *bool `json:"autoBuild" yaml:"autoBuild"` // The Basic Auth configuration. // // Use this to set password protection for // the branch // Experimental. BasicAuth BasicAuth `json:"basicAuth" yaml:"basicAuth"` // The name of the branch. // Experimental. BranchName *string `json:"branchName" yaml:"branchName"` // BuildSpec for the branch. // See: https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html // // Experimental. BuildSpec awscodebuild.BuildSpec `json:"buildSpec" yaml:"buildSpec"` // A description for the branch. // Experimental. Description *string `json:"description" yaml:"description"` // Environment variables for the branch. // // All environment variables that you add are encrypted to prevent rogue // access so you can use them to store secret information. // Experimental. EnvironmentVariables *map[string]*string `json:"environmentVariables" yaml:"environmentVariables"` // Enables performance mode for the branch. // // Performance mode optimizes for faster hosting performance by keeping content cached at the edge // for a longer interval. When performance mode is enabled, hosting configuration or code changes // can take up to 10 minutes to roll out. // Experimental. PerformanceMode *bool `json:"performanceMode" yaml:"performanceMode"` // The dedicated backend environment for the pull request previews. // Experimental. PullRequestEnvironmentName *string `json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Whether to enable pull request preview for the branch. // Experimental. PullRequestPreview *bool `json:"pullRequestPreview" yaml:"pullRequestPreview"` // Stage for the branch. // Experimental. Stage *string `json:"stage" yaml:"stage"` // The application within which the branch must be created. // Experimental. App IApp `json:"app" yaml:"app"` }
Properties for a Branch.
TODO: EXAMPLE
Experimental.
type CfnApp ¶
type CfnApp interface { awscdk.CfnResource awscdk.IInspectable AccessToken() *string SetAccessToken(val *string) AttrAppId() *string AttrAppName() *string AttrArn() *string AttrDefaultDomain() *string AutoBranchCreationConfig() interface{} SetAutoBranchCreationConfig(val interface{}) BasicAuthConfig() interface{} SetBasicAuthConfig(val interface{}) BuildSpec() *string SetBuildSpec(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string CustomHeaders() *string SetCustomHeaders(val *string) CustomRules() interface{} SetCustomRules(val interface{}) Description() *string SetDescription(val *string) EnableBranchAutoDeletion() interface{} SetEnableBranchAutoDeletion(val interface{}) EnvironmentVariables() interface{} SetEnvironmentVariables(val interface{}) IamServiceRole() *string SetIamServiceRole(val *string) LogicalId() *string Name() *string SetName(val *string) Node() awscdk.ConstructNode OauthToken() *string SetOauthToken(val *string) Ref() *string Repository() *string SetRepository(val *string) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Amplify::App`.
The AWS::Amplify::App resource creates Apps in the Amplify Console. An App is a collection of branches.
TODO: EXAMPLE
type CfnAppProps ¶
type CfnAppProps struct { // The name for an Amplify app. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. // // *Pattern:* (?s).+ Name *string `json:"name" yaml:"name"` // 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. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. AccessToken *string `json:"accessToken" yaml:"accessToken"` // Sets the configuration for your automatic branch creation. AutoBranchCreationConfig interface{} `json:"autoBranchCreationConfig" yaml:"autoBranchCreationConfig"` // The credentials for basic authorization for an Amplify app. // // You must base64-encode the authorization credentials and provide them in the format `user:password` . BasicAuthConfig interface{} `json:"basicAuthConfig" yaml:"basicAuthConfig"` // The build specification (build spec) for an Amplify app. // // *Length Constraints:* Minimum length of 1. Maximum length of 25000. // // *Pattern:* (?s).+ BuildSpec *string `json:"buildSpec" yaml:"buildSpec"` // The custom HTTP headers for an Amplify app. // // *Length Constraints:* Minimum length of 0. Maximum length of 25000. // // *Pattern:* (?s).* CustomHeaders *string `json:"customHeaders" yaml:"customHeaders"` // The custom rewrite and redirect rules for an Amplify app. CustomRules interface{} `json:"customRules" yaml:"customRules"` // The description for an Amplify app. // // *Length Constraints:* Maximum length of 1000. // // *Pattern:* (?s).* Description *string `json:"description" yaml:"description"` // Automatically disconnect a branch in the Amplify Console when you delete a branch from your Git repository. EnableBranchAutoDeletion interface{} `json:"enableBranchAutoDeletion" yaml:"enableBranchAutoDeletion"` // The environment variables map for an Amplify app. EnvironmentVariables interface{} `json:"environmentVariables" yaml:"environmentVariables"` // The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app. // // *Length Constraints:* Minimum length of 0. Maximum length of 1000. // // *Pattern:* (?s).* IamServiceRole *string `json:"iamServiceRole" yaml:"iamServiceRole"` // The OAuth token for a third-party source control system for an Amplify app. // // The OAuth token is used to create a webhook and a read-only deploy key. The OAuth token is not stored. // // *Length Constraints:* Maximum length of 1000. // // *Pattern:* (?s).* OauthToken *string `json:"oauthToken" yaml:"oauthToken"` // The repository for an Amplify app. // // *Pattern:* (?s).* Repository *string `json:"repository" yaml:"repository"` // The tag for an Amplify app. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` }
Properties for defining a `CfnApp`.
TODO: EXAMPLE
type CfnApp_AutoBranchCreationConfigProperty ¶
type CfnApp_AutoBranchCreationConfigProperty struct { // Automated branch creation glob patterns for the Amplify app. AutoBranchCreationPatterns *[]*string `json:"autoBranchCreationPatterns" yaml:"autoBranchCreationPatterns"` // Sets password protection for your auto created branch. BasicAuthConfig interface{} `json:"basicAuthConfig" yaml:"basicAuthConfig"` // The build specification (build spec) for the autocreated branch. // // *Length Constraints:* Minimum length of 1. Maximum length of 25000. BuildSpec *string `json:"buildSpec" yaml:"buildSpec"` // Enables automated branch creation for the Amplify app. EnableAutoBranchCreation interface{} `json:"enableAutoBranchCreation" yaml:"enableAutoBranchCreation"` // Enables auto building for the auto created branch. EnableAutoBuild interface{} `json:"enableAutoBuild" yaml:"enableAutoBuild"` // Enables performance mode for the branch. // // Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. EnablePerformanceMode interface{} `json:"enablePerformanceMode" yaml:"enablePerformanceMode"` // Sets whether pull request previews are enabled for each branch that Amplify Console automatically creates for your app. // // Amplify Console creates previews by deploying your app to a unique URL whenever a pull request is opened for the branch. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. // // To provide backend support for your preview, the Amplify Console automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the `PullRequestEnvironmentName` property. // // For more information, see [Web Previews](https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html) in the *AWS Amplify Console User Guide* . EnablePullRequestPreview interface{} `json:"enablePullRequestPreview" yaml:"enablePullRequestPreview"` // Environment variables for the auto created branch. EnvironmentVariables interface{} `json:"environmentVariables" yaml:"environmentVariables"` // If pull request previews are enabled, you can use this property to specify a dedicated backend environment for your previews. // // For example, you could specify an environment named `prod` , `test` , or `dev` that you initialized with the Amplify CLI. // // To enable pull request previews, set the `EnablePullRequestPreview` property to `true` . // // If you don't specify an environment, the Amplify Console provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Console deletes this environment when the pull request is closed. // // For more information about creating backend environments, see [Feature Branch Deployments and Team Workflows](https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html) in the *AWS Amplify Console User Guide* . // // *Length Constraints:* Maximum length of 20. // // *Pattern:* (?s).* PullRequestEnvironmentName *string `json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Stage for the auto created branch. Stage *string `json:"stage" yaml:"stage"` }
Use the AutoBranchCreationConfig property type to automatically create branches that match a certain pattern.
TODO: EXAMPLE
type CfnApp_BasicAuthConfigProperty ¶
type CfnApp_BasicAuthConfigProperty struct { // Enables basic authorization for the Amplify app's branches. EnableBasicAuth interface{} `json:"enableBasicAuth" yaml:"enableBasicAuth"` // The password for basic authorization. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. Password *string `json:"password" yaml:"password"` // The user name for basic authorization. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. Username *string `json:"username" yaml:"username"` }
Use the BasicAuthConfig property type to set password protection at an app level to all your branches.
TODO: EXAMPLE
type CfnApp_CustomRuleProperty ¶
type CfnApp_CustomRuleProperty struct { // The source pattern for a URL rewrite or redirect rule. // // *Length Constraints:* Minimum length of 1. Maximum length of 2048. // // *Pattern:* (?s).+ Source *string `json:"source" yaml:"source"` // The target pattern for a URL rewrite or redirect rule. // // *Length Constraints:* Minimum length of 1. Maximum length of 2048. // // *Pattern:* (?s).+ Target *string `json:"target" yaml:"target"` // The condition for a URL rewrite or redirect rule, such as a country code. // // *Length Constraints:* Minimum length of 0. Maximum length of 2048. // // *Pattern:* (?s).* Condition *string `json:"condition" yaml:"condition"` // The status code for a URL rewrite or redirect rule. // // - **200** - Represents a 200 rewrite rule. // - **301** - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL. // - **302** - Represents a 302 temporary redirect rule. // - **404** - Represents a 404 redirect rule. // - **404-200** - Represents a 404 rewrite rule. // // *Length Constraints:* Minimum length of 3. Maximum length of 7. // // *Pattern:* .{3,7} Status *string `json:"status" yaml:"status"` }
The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies.
Redirects enable a web app to reroute navigation from one URL to another.
TODO: EXAMPLE
type CfnApp_EnvironmentVariableProperty ¶
type CfnApp_EnvironmentVariableProperty struct { // The environment variable name. // // *Length Constraints:* Maximum length of 255. // // *Pattern:* (?s).* Name *string `json:"name" yaml:"name"` // The environment variable value. // // *Length Constraints:* Maximum length of 5500. // // *Pattern:* (?s).* Value *string `json:"value" yaml:"value"` }
Environment variables are key-value pairs that are available at build time.
Set environment variables for all branches in your app.
TODO: EXAMPLE
type CfnBranch ¶
type CfnBranch interface { awscdk.CfnResource awscdk.IInspectable AppId() *string SetAppId(val *string) AttrArn() *string AttrBranchName() *string BasicAuthConfig() interface{} SetBasicAuthConfig(val interface{}) BranchName() *string SetBranchName(val *string) BuildSpec() *string SetBuildSpec(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string Description() *string SetDescription(val *string) EnableAutoBuild() interface{} SetEnableAutoBuild(val interface{}) EnablePerformanceMode() interface{} SetEnablePerformanceMode(val interface{}) EnablePullRequestPreview() interface{} SetEnablePullRequestPreview(val interface{}) EnvironmentVariables() interface{} SetEnvironmentVariables(val interface{}) LogicalId() *string Node() awscdk.ConstructNode PullRequestEnvironmentName() *string SetPullRequestEnvironmentName(val *string) Ref() *string Stack() awscdk.Stack Stage() *string SetStage(val *string) Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Amplify::Branch`.
The AWS::Amplify::Branch resource creates a new branch within an app.
TODO: EXAMPLE
func NewCfnBranch ¶
func NewCfnBranch(scope awscdk.Construct, id *string, props *CfnBranchProps) CfnBranch
Create a new `AWS::Amplify::Branch`.
type CfnBranchProps ¶
type CfnBranchProps struct { // The unique ID for an Amplify app. // // *Length Constraints:* Minimum length of 1. Maximum length of 20. // // *Pattern:* d[a-z0-9]+ AppId *string `json:"appId" yaml:"appId"` // The name for the branch. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. // // *Pattern:* (?s).+ BranchName *string `json:"branchName" yaml:"branchName"` // The basic authorization credentials for a branch of an Amplify app. // // You must base64-encode the authorization credentials and provide them in the format `user:password` . BasicAuthConfig interface{} `json:"basicAuthConfig" yaml:"basicAuthConfig"` // The build specification (build spec) for the branch. // // *Length Constraints:* Minimum length of 1. Maximum length of 25000. // // *Pattern:* (?s).+ BuildSpec *string `json:"buildSpec" yaml:"buildSpec"` // The description for the branch that is part of an Amplify app. // // *Length Constraints:* Maximum length of 1000. // // *Pattern:* (?s).* Description *string `json:"description" yaml:"description"` // Enables auto building for the branch. EnableAutoBuild interface{} `json:"enableAutoBuild" yaml:"enableAutoBuild"` // Enables performance mode for the branch. // // Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. EnablePerformanceMode interface{} `json:"enablePerformanceMode" yaml:"enablePerformanceMode"` // Sets whether the Amplify Console creates a preview for each pull request that is made for this branch. // // If this property is enabled, the Amplify Console deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. // // To provide backend support for your preview, the Amplify Console automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the `PullRequestEnvironmentName` property. // // For more information, see [Web Previews](https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html) in the *AWS Amplify Console User Guide* . EnablePullRequestPreview interface{} `json:"enablePullRequestPreview" yaml:"enablePullRequestPreview"` // The environment variables for the branch. EnvironmentVariables interface{} `json:"environmentVariables" yaml:"environmentVariables"` // If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. // // For example, you could specify an environment named `prod` , `test` , or `dev` that you initialized with the Amplify CLI and mapped to this branch. // // To enable pull request previews, set the `EnablePullRequestPreview` property to `true` . // // If you don't specify an environment, the Amplify Console provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Console deletes this environment when the pull request is closed. // // For more information about creating backend environments, see [Feature Branch Deployments and Team Workflows](https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html) in the *AWS Amplify Console User Guide* . // // *Length Constraints:* Maximum length of 20. // // *Pattern:* (?s).* PullRequestEnvironmentName *string `json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Describes the current stage for the branch. // // *Valid Values:* PRODUCTION | BETA | DEVELOPMENT | EXPERIMENTAL | PULL_REQUEST Stage *string `json:"stage" yaml:"stage"` // The tag for the branch. Tags *[]*awscdk.CfnTag `json:"tags" yaml:"tags"` }
Properties for defining a `CfnBranch`.
TODO: EXAMPLE
type CfnBranch_BasicAuthConfigProperty ¶
type CfnBranch_BasicAuthConfigProperty struct { // The password for basic authorization. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. Password *string `json:"password" yaml:"password"` // The user name for basic authorization. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. Username *string `json:"username" yaml:"username"` // Enables basic authorization for the branch. EnableBasicAuth interface{} `json:"enableBasicAuth" yaml:"enableBasicAuth"` }
Use the BasicAuthConfig property type to set password protection for a specific branch.
TODO: EXAMPLE
type CfnBranch_EnvironmentVariableProperty ¶
type CfnBranch_EnvironmentVariableProperty struct { // The environment variable name. // // *Length Constraints:* Maximum length of 255. // // *Pattern:* (?s).* Name *string `json:"name" yaml:"name"` // The environment variable value. // // *Length Constraints:* Maximum length of 5500. // // *Pattern:* (?s).* Value *string `json:"value" yaml:"value"` }
The EnvironmentVariable property type sets environment variables for a specific branch.
Environment variables are key-value pairs that are available at build time.
TODO: EXAMPLE
type CfnDomain ¶
type CfnDomain interface { awscdk.CfnResource awscdk.IInspectable AppId() *string SetAppId(val *string) AttrArn() *string AttrAutoSubDomainCreationPatterns() *[]*string AttrAutoSubDomainIamRole() *string AttrCertificateRecord() *string AttrDomainName() *string AttrDomainStatus() *string AttrEnableAutoSubDomain() awscdk.IResolvable AttrStatusReason() *string AutoSubDomainCreationPatterns() *[]*string SetAutoSubDomainCreationPatterns(val *[]*string) AutoSubDomainIamRole() *string SetAutoSubDomainIamRole(val *string) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string DomainName() *string SetDomainName(val *string) EnableAutoSubDomain() interface{} SetEnableAutoSubDomain(val interface{}) LogicalId() *string Node() awscdk.ConstructNode Ref() *string Stack() awscdk.Stack SubDomainSettings() interface{} SetSubDomainSettings(val interface{}) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::Amplify::Domain`.
The AWS::Amplify::Domain resource allows you to connect a custom domain to your app.
TODO: EXAMPLE
func NewCfnDomain ¶
func NewCfnDomain(scope awscdk.Construct, id *string, props *CfnDomainProps) CfnDomain
Create a new `AWS::Amplify::Domain`.
type CfnDomainProps ¶
type CfnDomainProps struct { // The unique ID for an Amplify app. // // *Length Constraints:* Minimum length of 1. Maximum length of 20. // // *Pattern:* d[a-z0-9]+ AppId *string `json:"appId" yaml:"appId"` // The domain name for the domain association. // // *Length Constraints:* Maximum length of 255. // // *Pattern:* ^(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])(\.)?$ DomainName *string `json:"domainName" yaml:"domainName"` // The setting for the subdomain. SubDomainSettings interface{} `json:"subDomainSettings" yaml:"subDomainSettings"` // Sets the branch patterns for automatic subdomain creation. AutoSubDomainCreationPatterns *[]*string `json:"autoSubDomainCreationPatterns" yaml:"autoSubDomainCreationPatterns"` // The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. // // *Length Constraints:* Maximum length of 1000. // // *Pattern:* ^$|^arn:aws:iam::\d{12}:role.+ AutoSubDomainIamRole *string `json:"autoSubDomainIamRole" yaml:"autoSubDomainIamRole"` // Enables the automated creation of subdomains for branches. EnableAutoSubDomain interface{} `json:"enableAutoSubDomain" yaml:"enableAutoSubDomain"` }
Properties for defining a `CfnDomain`.
TODO: EXAMPLE
type CfnDomain_SubDomainSettingProperty ¶
type CfnDomain_SubDomainSettingProperty struct { // The branch name setting for the subdomain. // // *Length Constraints:* Minimum length of 1. Maximum length of 255. // // *Pattern:* (?s).+ BranchName *string `json:"branchName" yaml:"branchName"` // The prefix setting for the subdomain. // // *Length Constraints:* Maximum length of 255. // // *Pattern:* (?s).* Prefix *string `json:"prefix" yaml:"prefix"` }
The SubDomainSetting property type enables you to connect a subdomain (for example, example.exampledomain.com) to a specific branch.
TODO: EXAMPLE
type CodeCommitSourceCodeProvider ¶
type CodeCommitSourceCodeProvider interface { ISourceCodeProvider Bind(app App) *SourceCodeProviderConfig }
CodeCommit source code provider.
TODO: EXAMPLE
Experimental.
func NewCodeCommitSourceCodeProvider ¶
func NewCodeCommitSourceCodeProvider(props *CodeCommitSourceCodeProviderProps) CodeCommitSourceCodeProvider
Experimental.
type CodeCommitSourceCodeProviderProps ¶
type CodeCommitSourceCodeProviderProps struct { // The CodeCommit repository. // Experimental. Repository awscodecommit.IRepository `json:"repository" yaml:"repository"` }
Properties for a CodeCommit source code provider.
TODO: EXAMPLE
Experimental.
type CustomResponseHeader ¶
type CustomResponseHeader struct { // The map of custom headers to be applied. // Experimental. Headers *map[string]*string `json:"headers" yaml:"headers"` // These custom headers will be applied to all URL file paths that match this pattern. // Experimental. Pattern *string `json:"pattern" yaml:"pattern"` }
Custom response header of an Amplify App.
TODO: EXAMPLE
Experimental.
type CustomRule ¶
type CustomRule interface { Condition() *string Source() *string Status() RedirectStatus Target() *string }
Custom rewrite/redirect rule for an Amplify App.
TODO: EXAMPLE
See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html
Experimental.
func CustomRule_SINGLE_PAGE_APPLICATION_REDIRECT ¶
func CustomRule_SINGLE_PAGE_APPLICATION_REDIRECT() CustomRule
type CustomRuleOptions ¶
type CustomRuleOptions struct { // The source pattern for a URL rewrite or redirect rule. // See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html // // Experimental. Source *string `json:"source" yaml:"source"` // The target pattern for a URL rewrite or redirect rule. // See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html // // Experimental. Target *string `json:"target" yaml:"target"` // The condition for a URL rewrite or redirect rule, e.g. country code. // See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html // // Experimental. Condition *string `json:"condition" yaml:"condition"` // The status code for a URL rewrite or redirect rule. // See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html // // Experimental. Status RedirectStatus `json:"status" yaml:"status"` }
Options for a custom rewrite/redirect rule for an Amplify App.
TODO: EXAMPLE
Experimental.
type Domain ¶
type Domain interface { awscdk.Resource Arn() *string CertificateRecord() *string DomainAutoSubDomainCreationPatterns() *[]*string DomainAutoSubDomainIamRole() *string DomainEnableAutoSubDomain() awscdk.IResolvable DomainName() *string DomainStatus() *string Env() *awscdk.ResourceEnvironment Node() awscdk.ConstructNode PhysicalName() *string Stack() awscdk.Stack StatusReason() *string ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string MapRoot(branch IBranch) Domain MapSubDomain(branch IBranch, prefix *string) Domain OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string Prepare() Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string }
An Amplify Console domain.
TODO: EXAMPLE
Experimental.
func NewDomain ¶
func NewDomain(scope constructs.Construct, id *string, props *DomainProps) Domain
Experimental.
type DomainOptions ¶
type DomainOptions struct { // Branches which should automatically create subdomains. // Experimental. AutoSubdomainCreationPatterns *[]*string `json:"autoSubdomainCreationPatterns" yaml:"autoSubdomainCreationPatterns"` // The name of the domain. // Experimental. DomainName *string `json:"domainName" yaml:"domainName"` // Automatically create subdomains for connected branches. // Experimental. EnableAutoSubdomain *bool `json:"enableAutoSubdomain" yaml:"enableAutoSubdomain"` // Subdomains. // Experimental. SubDomains *[]*SubDomain `json:"subDomains" yaml:"subDomains"` }
Options to add a domain to an application.
TODO: EXAMPLE
Experimental.
type DomainProps ¶
type DomainProps struct { // Branches which should automatically create subdomains. // Experimental. AutoSubdomainCreationPatterns *[]*string `json:"autoSubdomainCreationPatterns" yaml:"autoSubdomainCreationPatterns"` // The name of the domain. // Experimental. DomainName *string `json:"domainName" yaml:"domainName"` // Automatically create subdomains for connected branches. // Experimental. EnableAutoSubdomain *bool `json:"enableAutoSubdomain" yaml:"enableAutoSubdomain"` // Subdomains. // Experimental. SubDomains *[]*SubDomain `json:"subDomains" yaml:"subDomains"` // The application to which the domain must be connected. // Experimental. App IApp `json:"app" yaml:"app"` // The IAM role with access to Route53 when using enableAutoSubdomain. // Experimental. AutoSubDomainIamRole awsiam.IRole `json:"autoSubDomainIamRole" yaml:"autoSubDomainIamRole"` }
Properties for a Domain.
TODO: EXAMPLE
Experimental.
type GitHubSourceCodeProvider ¶
type GitHubSourceCodeProvider interface { ISourceCodeProvider Bind(_app App) *SourceCodeProviderConfig }
GitHub source code provider.
TODO: EXAMPLE
Experimental.
func NewGitHubSourceCodeProvider ¶
func NewGitHubSourceCodeProvider(props *GitHubSourceCodeProviderProps) GitHubSourceCodeProvider
Experimental.
type GitHubSourceCodeProviderProps ¶
type GitHubSourceCodeProviderProps struct { // A personal access token with the `repo` scope. // Experimental. OauthToken awscdk.SecretValue `json:"oauthToken" yaml:"oauthToken"` // The user or organization owning the repository. // Experimental. Owner *string `json:"owner" yaml:"owner"` // The name of the repository. // Experimental. Repository *string `json:"repository" yaml:"repository"` }
Properties for a GitHub source code provider.
TODO: EXAMPLE
Experimental.
type GitLabSourceCodeProvider ¶
type GitLabSourceCodeProvider interface { ISourceCodeProvider Bind(_app App) *SourceCodeProviderConfig }
GitLab source code provider.
TODO: EXAMPLE
Experimental.
func NewGitLabSourceCodeProvider ¶
func NewGitLabSourceCodeProvider(props *GitLabSourceCodeProviderProps) GitLabSourceCodeProvider
Experimental.
type GitLabSourceCodeProviderProps ¶
type GitLabSourceCodeProviderProps struct { // A personal access token with the `repo` scope. // Experimental. OauthToken awscdk.SecretValue `json:"oauthToken" yaml:"oauthToken"` // The user or organization owning the repository. // Experimental. Owner *string `json:"owner" yaml:"owner"` // The name of the repository. // Experimental. Repository *string `json:"repository" yaml:"repository"` }
Properties for a GitLab source code provider.
TODO: EXAMPLE
Experimental.
type IApp ¶
An Amplify Console application. Experimental.
func App_FromAppId ¶
Import an existing application. Experimental.
type IBranch ¶
type IBranch interface { awscdk.IResource // The name of the branch. // Experimental. BranchName() *string }
A branch. Experimental.
func Branch_FromBranchName ¶
Import an existing branch. Experimental.
type ISourceCodeProvider ¶
type ISourceCodeProvider interface { // Binds the source code provider to an app. // Experimental. Bind(app App) *SourceCodeProviderConfig }
A source code provider. Experimental.
type RedirectStatus ¶
type RedirectStatus string
The status code for a URL rewrite or redirect rule.
TODO: EXAMPLE
Experimental.
const ( RedirectStatus_REWRITE RedirectStatus = "REWRITE" RedirectStatus_PERMANENT_REDIRECT RedirectStatus = "PERMANENT_REDIRECT" RedirectStatus_TEMPORARY_REDIRECT RedirectStatus = "TEMPORARY_REDIRECT" RedirectStatus_NOT_FOUND RedirectStatus = "NOT_FOUND" RedirectStatus_NOT_FOUND_REWRITE RedirectStatus = "NOT_FOUND_REWRITE" )
type SourceCodeProviderConfig ¶
type SourceCodeProviderConfig struct { // The repository for the application. Must use the `HTTPS` protocol. // // For example, `https://github.com/aws/aws-cdk`. // Experimental. Repository *string `json:"repository" yaml:"repository"` // 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. // Experimental. AccessToken awscdk.SecretValue `json:"accessToken" yaml:"accessToken"` // 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. // Experimental. OauthToken awscdk.SecretValue `json:"oauthToken" yaml:"oauthToken"` }
Configuration for the source code provider.
TODO: EXAMPLE
Experimental.