package awscdkamplifyalpha import ( "github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild" "github.com/aws/aws-cdk-go/awscdk/v2/awss3assets" ) // Properties for a Branch. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import amplify_alpha "github.com/aws/aws-cdk-go/awscdkamplifyalpha" // import "github.com/aws/aws-cdk-go/awscdk" // import "github.com/aws/aws-cdk-go/awscdk" // // var app app // var asset asset // var basicAuth basicAuth // var buildSpec buildSpec // // branchProps := &BranchProps{ // App: app, // // // the properties below are optional // Asset: asset, // AutoBuild: jsii.Boolean(false), // BasicAuth: basicAuth, // BranchName: jsii.String("branchName"), // BuildSpec: buildSpec, // Description: jsii.String("description"), // EnvironmentVariables: map[string]*string{ // "environmentVariablesKey": jsii.String("environmentVariables"), // }, // PerformanceMode: jsii.Boolean(false), // PullRequestEnvironmentName: jsii.String("pullRequestEnvironmentName"), // PullRequestPreview: jsii.Boolean(false), // Stage: jsii.String("stage"), // } // // Experimental. 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 `field:"optional" json:"asset" yaml:"asset"` // Whether to enable auto building for the branch. // Experimental. AutoBuild *bool `field:"optional" json:"autoBuild" yaml:"autoBuild"` // The Basic Auth configuration. // // Use this to set password protection for // the branch. // Experimental. BasicAuth BasicAuth `field:"optional" json:"basicAuth" yaml:"basicAuth"` // The name of the branch. // Experimental. BranchName *string `field:"optional" json:"branchName" yaml:"branchName"` // BuildSpec for the branch. // See: https://docs.aws.amazon.com/amplify/latest/userguide/build-settings.html // // Experimental. BuildSpec awscodebuild.BuildSpec `field:"optional" json:"buildSpec" yaml:"buildSpec"` // A description for the branch. // Experimental. Description *string `field:"optional" 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 `field:"optional" 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 `field:"optional" json:"performanceMode" yaml:"performanceMode"` // The dedicated backend environment for the pull request previews. // Experimental. PullRequestEnvironmentName *string `field:"optional" json:"pullRequestEnvironmentName" yaml:"pullRequestEnvironmentName"` // Whether to enable pull request preview for the branch. // Experimental. PullRequestPreview *bool `field:"optional" json:"pullRequestPreview" yaml:"pullRequestPreview"` // Stage for the branch. // Experimental. Stage *string `field:"optional" json:"stage" yaml:"stage"` // The application within which the branch must be created. // Experimental. App IApp `field:"required" json:"app" yaml:"app"` }