1. Packages
  2. Packages
  3. Defang Providers
  4. API Docs
  5. Build
Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang
defang-aws logo
Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang

    Create Build Resource

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

    Constructor syntax

    new Build(name: string, args: BuildArgs, opts?: CustomResourceOptions);
    @overload
    def Build(resource_name: str,
              args: BuildArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Build(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              project_name: Optional[str] = None,
              destination: Optional[str] = None,
              max_wait_time: Optional[int] = None,
              region: Optional[str] = None,
              triggers: Optional[Sequence[str]] = None)
    func NewBuild(ctx *Context, name string, args BuildArgs, opts ...ResourceOption) (*Build, error)
    public Build(string name, BuildArgs args, CustomResourceOptions? opts = null)
    public Build(String name, BuildArgs args)
    public Build(String name, BuildArgs args, CustomResourceOptions options)
    
    type: defang-aws:Build
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "defang-aws_build" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args BuildArgs
    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 BuildArgs
    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 BuildArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BuildArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BuildArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var buildResource = new DefangAws.Build("buildResource", new()
    {
        ProjectName = "string",
        Destination = "string",
        MaxWaitTime = 0,
        Region = "string",
        Triggers = new[]
        {
            "string",
        },
    });
    
    example, err := defangaws.NewBuild(ctx, "buildResource", &defangaws.BuildArgs{
    	ProjectName: pulumi.String("string"),
    	Destination: pulumi.String("string"),
    	MaxWaitTime: pulumi.Int(0),
    	Region:      pulumi.String("string"),
    	Triggers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "defang-aws_build" "buildResource" {
      project_name  = "string"
      destination   = "string"
      max_wait_time = 0
      region        = "string"
      triggers      = ["string"]
    }
    
    var buildResource = new Build("buildResource", BuildArgs.builder()
        .projectName("string")
        .destination("string")
        .maxWaitTime(0)
        .region("string")
        .triggers("string")
        .build());
    
    build_resource = defang_aws.Build("buildResource",
        project_name="string",
        destination="string",
        max_wait_time=0,
        region="string",
        triggers=["string"])
    
    const buildResource = new defang_aws.Build("buildResource", {
        projectName: "string",
        destination: "string",
        maxWaitTime: 0,
        region: "string",
        triggers: ["string"],
    });
    
    type: defang-aws:Build
    properties:
        destination: string
        maxWaitTime: 0
        projectName: string
        region: string
        triggers:
            - string
    

    Build Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Build resource accepts the following input properties:

    ProjectName string
    Destination string
    MaxWaitTime int
    Region string
    Triggers List<string>
    ProjectName string
    Destination string
    MaxWaitTime int
    Region string
    Triggers []string
    project_name string
    destination string
    max_wait_time number
    region string
    triggers list(string)
    projectName String
    destination String
    maxWaitTime Integer
    region String
    triggers List<String>
    projectName string
    destination string
    maxWaitTime number
    region string
    triggers string[]
    projectName String
    destination String
    maxWaitTime Number
    region String
    triggers List<String>

    Outputs

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

    BuildId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Image string
    BuildId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Image string
    build_id string
    id string
    The provider-assigned unique ID for this managed resource.
    image string
    buildId String
    id String
    The provider-assigned unique ID for this managed resource.
    image String
    buildId string
    id string
    The provider-assigned unique ID for this managed resource.
    image string
    build_id str
    id str
    The provider-assigned unique ID for this managed resource.
    image str
    buildId String
    id String
    The provider-assigned unique ID for this managed resource.
    image String

    Package Details

    Repository
    defang-aws DefangLabs/pulumi-defang
    License
    Apache-2.0
    defang-aws logo
    Viewing docs for Defang AWS v2.4.1
    published on Saturday, Jul 11, 2026 by Defang

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial