1. Packages
  2. AWS Native
  3. API Docs
  4. amplify
  5. Branch

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.amplify.Branch

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    The AWS::Amplify::Branch resource creates a new branch within an app.

    Create Branch Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Branch(name: string, args: BranchArgs, opts?: CustomResourceOptions);
    @overload
    def Branch(resource_name: str,
               args: BranchArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Branch(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               app_id: Optional[str] = None,
               backend: Optional[BranchBackendArgs] = None,
               basic_auth_config: Optional[BranchBasicAuthConfigArgs] = None,
               branch_name: Optional[str] = None,
               build_spec: Optional[str] = None,
               description: Optional[str] = None,
               enable_auto_build: Optional[bool] = None,
               enable_performance_mode: Optional[bool] = None,
               enable_pull_request_preview: Optional[bool] = None,
               environment_variables: Optional[Sequence[BranchEnvironmentVariableArgs]] = None,
               framework: Optional[str] = None,
               pull_request_environment_name: Optional[str] = None,
               stage: Optional[BranchStage] = None,
               tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewBranch(ctx *Context, name string, args BranchArgs, opts ...ResourceOption) (*Branch, error)
    public Branch(string name, BranchArgs args, CustomResourceOptions? opts = null)
    public Branch(String name, BranchArgs args)
    public Branch(String name, BranchArgs args, CustomResourceOptions options)
    
    type: aws-native:amplify:Branch
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BranchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BranchArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BranchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BranchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BranchArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const branchResource = new aws_native.amplify.Branch("branchResource", {
        appId: "string",
        backend: {
            stackArn: "string",
        },
        basicAuthConfig: {
            password: "string",
            username: "string",
            enableBasicAuth: false,
        },
        branchName: "string",
        buildSpec: "string",
        description: "string",
        enableAutoBuild: false,
        enablePerformanceMode: false,
        enablePullRequestPreview: false,
        environmentVariables: [{
            name: "string",
            value: "string",
        }],
        framework: "string",
        pullRequestEnvironmentName: "string",
        stage: aws_native.amplify.BranchStage.Experimental,
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    Coming soon!
    

    Branch Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Branch resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Branch resource produces the following output properties:

    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    BranchBackend, BranchBackendArgs

    StackArn string
    StackArn string
    stackArn String
    stackArn string
    stackArn String

    BranchBasicAuthConfig, BranchBasicAuthConfigArgs

    password String
    username String
    enableBasicAuth Boolean
    password string
    username string
    enableBasicAuth boolean
    password String
    username String
    enableBasicAuth Boolean

    BranchEnvironmentVariable, BranchEnvironmentVariableArgs

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    BranchStage, BranchStageArgs

    Experimental
    EXPERIMENTAL
    Beta
    BETA
    PullRequest
    PULL_REQUEST
    Production
    PRODUCTION
    Development
    DEVELOPMENT
    BranchStageExperimental
    EXPERIMENTAL
    BranchStageBeta
    BETA
    BranchStagePullRequest
    PULL_REQUEST
    BranchStageProduction
    PRODUCTION
    BranchStageDevelopment
    DEVELOPMENT
    Experimental
    EXPERIMENTAL
    Beta
    BETA
    PullRequest
    PULL_REQUEST
    Production
    PRODUCTION
    Development
    DEVELOPMENT
    Experimental
    EXPERIMENTAL
    Beta
    BETA
    PullRequest
    PULL_REQUEST
    Production
    PRODUCTION
    Development
    DEVELOPMENT
    EXPERIMENTAL
    EXPERIMENTAL
    BETA
    BETA
    PULL_REQUEST
    PULL_REQUEST
    PRODUCTION
    PRODUCTION
    DEVELOPMENT
    DEVELOPMENT
    "EXPERIMENTAL"
    EXPERIMENTAL
    "BETA"
    BETA
    "PULL_REQUEST"
    PULL_REQUEST
    "PRODUCTION"
    PRODUCTION
    "DEVELOPMENT"
    DEVELOPMENT

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi