Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang
published on Saturday, Jul 11, 2026 by Defang
Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang
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)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:
- 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:
Package Details
- Repository
- defang-aws DefangLabs/pulumi-defang
- License
- Apache-2.0
Viewing docs for Defang AWS v2.4.1
published on Saturday, Jul 11, 2026 by Defang
published on Saturday, Jul 11, 2026 by Defang