Class CfnApp.AutoBranchCreationConfigProperty
Use the AutoBranchCreationConfig property type to automatically create branches that match a certain pattern.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Amplify
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AutoBranchCreationConfigProperty : Object, CfnApp.IAutoBranchCreationConfigProperty
Syntax (vb)
Public Class AutoBranchCreationConfigProperty
Inherits Object
Implements CfnApp.IAutoBranchCreationConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Amplify;
var autoBranchCreationConfigProperty = new AutoBranchCreationConfigProperty {
AutoBranchCreationPatterns = new [] { "autoBranchCreationPatterns" },
BasicAuthConfig = new BasicAuthConfigProperty {
EnableBasicAuth = false,
Password = "password",
Username = "username"
},
BuildSpec = "buildSpec",
EnableAutoBranchCreation = false,
EnableAutoBuild = false,
EnablePerformanceMode = false,
EnablePullRequestPreview = false,
EnvironmentVariables = new [] { new EnvironmentVariableProperty {
Name = "name",
Value = "value"
} },
Framework = "framework",
PullRequestEnvironmentName = "pullRequestEnvironmentName",
Stage = "stage"
};
Synopsis
Constructors
AutoBranchCreationConfigProperty() |
Properties
AutoBranchCreationPatterns | Automated branch creation glob patterns for the Amplify app. |
BasicAuthConfig | Sets password protection for your auto created branch. |
BuildSpec | The build specification (build spec) for the autocreated branch. |
EnableAutoBranchCreation | Enables automated branch creation for the Amplify app. |
EnableAutoBuild | Enables auto building for the auto created branch. |
EnablePerformanceMode | Enables performance mode for the branch. |
EnablePullRequestPreview | Sets whether pull request previews are enabled for each branch that Amplify Hosting automatically creates for your app. |
EnvironmentVariables | The environment variables for the autocreated branch. |
Framework | The framework for the autocreated branch. |
PullRequestEnvironmentName | If pull request previews are enabled, you can use this property to specify a dedicated backend environment for your previews. |
Stage | Stage for the auto created branch. |
Constructors
AutoBranchCreationConfigProperty()
public AutoBranchCreationConfigProperty()
Properties
AutoBranchCreationPatterns
Automated branch creation glob patterns for the Amplify app.
public string[] AutoBranchCreationPatterns { get; set; }
Property Value
System.String[]
Remarks
BasicAuthConfig
Sets password protection for your auto created branch.
public object BasicAuthConfig { get; set; }
Property Value
System.Object
Remarks
BuildSpec
The build specification (build spec) for the autocreated branch.
public string BuildSpec { get; set; }
Property Value
System.String
Remarks
EnableAutoBranchCreation
Enables automated branch creation for the Amplify app.
public object EnableAutoBranchCreation { get; set; }
Property Value
System.Object
Remarks
EnableAutoBuild
Enables auto building for the auto created branch.
public object EnableAutoBuild { get; set; }
Property Value
System.Object
Remarks
EnablePerformanceMode
Enables performance mode for the branch.
public object EnablePerformanceMode { get; set; }
Property Value
System.Object
Remarks
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.
EnablePullRequestPreview
Sets whether pull request previews are enabled for each branch that Amplify Hosting automatically creates for your app.
public object EnablePullRequestPreview { get; set; }
Property Value
System.Object
Remarks
Amplify 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, Amplify Hosting 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 in the AWS Amplify Hosting User Guide .
EnvironmentVariables
The environment variables for the autocreated branch.
public object EnvironmentVariables { get; set; }
Property Value
System.Object
Remarks
Framework
The framework for the autocreated branch.
public string Framework { get; set; }
Property Value
System.String
Remarks
PullRequestEnvironmentName
If pull request previews are enabled, you can use this property to specify a dedicated backend environment for your previews.
public string PullRequestEnvironmentName { get; set; }
Property Value
System.String
Remarks
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, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify deletes this environment when the pull request is closed.
For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide .
Stage
Stage for the auto created branch.
public string Stage { get; set; }
Property Value
System.String