published on Tuesday, Nov 17, 2026 by Defang
Defang AWSpublished on Tuesday, Nov 17, 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)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" {
lifecycle {
create_before_destroy = true
}
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:
- Project
Name string - Destination string
- Max
Wait intTime - Region string
- Triggers List<string>
- Project
Name string - Destination string
- Max
Wait intTime - Region string
- Triggers []string
- project_
name string - destination string
- max_
wait_ numbertime - region string
- triggers list(string)
- project
Name String - destination String
- max
Wait IntegerTime - region String
- triggers List<String>
- project
Name string - destination string
- max
Wait numberTime - region string
- triggers string[]
- project_
name str - destination str
- max_
wait_ inttime - region str
- triggers Sequence[str]
- project
Name String - destination String
- max
Wait NumberTime - region String
- triggers List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Build resource produces the following output properties:
Look up Existing Build Resource
Get an existing Build resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Build@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Buildfunc GetBuild(ctx *Context, name string, id IDInput, state *BuildState, opts ...ResourceOption) (*Build, error)public static Build Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Build get(String name, Output<String> id, CustomResourceOptions options)resources: existingBuild: type: defang-aws:Build get: id: ${id}import {
to = defang-aws_build.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state BuildState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- defang-aws DefangLabs/pulumi-defang
- License
- Apache-2.0
Defang AWSpublished on Tuesday, Nov 17, 2026 by Defang