published on Tuesday, Nov 17, 2026 by Defang
defang-scalewaypublished 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,
region: Optional[str] = None,
destination: Optional[str] = None,
logs_endpoint: Optional[str] = None,
logs_token: Optional[str] = None,
project_id: Optional[str] = None,
source: Optional[str] = None,
disk_size_gb: Optional[int] = None,
dockerfile: Optional[str] = None,
instance_type: Optional[str] = None,
max_wait_time: Optional[int] = None,
args: Optional[Mapping[str, str]] = None,
target: 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-scaleway:Build
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "defang-scaleway_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 DefangScaleway.Build("buildResource", new()
{
Region = "string",
Destination = "string",
LogsEndpoint = "string",
LogsToken = "string",
ProjectId = "string",
Source = "string",
DiskSizeGb = 0,
Dockerfile = "string",
InstanceType = "string",
MaxWaitTime = 0,
Args =
{
{ "string", "string" },
},
Target = "string",
Triggers = new[]
{
"string",
},
});
example, err := defangscaleway.NewBuild(ctx, "buildResource", &defangscaleway.BuildArgs{
Region: pulumi.String("string"),
Destination: pulumi.String("string"),
LogsEndpoint: pulumi.String("string"),
LogsToken: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Source: pulumi.String("string"),
DiskSizeGb: pulumi.Int(0),
Dockerfile: pulumi.String("string"),
InstanceType: pulumi.String("string"),
MaxWaitTime: pulumi.Int(0),
Args: pulumi.StringMap{
"string": pulumi.String("string"),
},
Target: pulumi.String("string"),
Triggers: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "defang-scaleway_build" "buildResource" {
lifecycle {
create_before_destroy = true
}
region = "string"
destination = "string"
logs_endpoint = "string"
logs_token = "string"
project_id = "string"
source = "string"
disk_size_gb = 0
dockerfile = "string"
instance_type = "string"
max_wait_time = 0
args = {
"string" = "string"
}
target = "string"
triggers = ["string"]
}
var buildResource = new Build("buildResource", BuildArgs.builder()
.region("string")
.destination("string")
.logsEndpoint("string")
.logsToken("string")
.projectId("string")
.source("string")
.diskSizeGb(0)
.dockerfile("string")
.instanceType("string")
.maxWaitTime(0)
.args(Map.of("string", "string"))
.target("string")
.triggers("string")
.build());
build_resource = defang_scaleway.Build("buildResource",
region="string",
destination="string",
logs_endpoint="string",
logs_token="string",
project_id="string",
source="string",
disk_size_gb=0,
dockerfile="string",
instance_type="string",
max_wait_time=0,
args={
"string": "string",
},
target="string",
triggers=["string"])
const buildResource = new defang_scaleway.Build("buildResource", {
region: "string",
destination: "string",
logsEndpoint: "string",
logsToken: "string",
projectId: "string",
source: "string",
diskSizeGb: 0,
dockerfile: "string",
instanceType: "string",
maxWaitTime: 0,
args: {
string: "string",
},
target: "string",
triggers: ["string"],
});
type: defang-scaleway:Build
properties:
args:
string: string
destination: string
diskSizeGb: 0
dockerfile: string
instanceType: string
logsEndpoint: string
logsToken: string
maxWaitTime: 0
projectId: string
region: string
source: string
target: 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:
- Destination string
- Logs
Endpoint string - Logs
Token string - Project
Id string - Region string
- Source string
- Args Dictionary<string, string>
- Disk
Size intGb - Dockerfile string
- Instance
Type string - Max
Wait intTime - Target string
- Triggers List<string>
- Destination string
- Logs
Endpoint string - Logs
Token string - Project
Id string - Region string
- Source string
- Args map[string]string
- Disk
Size intGb - Dockerfile string
- Instance
Type string - Max
Wait intTime - Target string
- Triggers []string
- destination string
- logs_
endpoint string - logs_
token string - project_
id string - region string
- source string
- args map(string)
- disk_
size_ numbergb - dockerfile string
- instance_
type string - max_
wait_ numbertime - target string
- triggers list(string)
- destination String
- logs
Endpoint String - logs
Token String - project
Id String - region String
- source String
- args Map<String,String>
- disk
Size IntegerGb - dockerfile String
- instance
Type String - max
Wait IntegerTime - target String
- triggers List<String>
- destination string
- logs
Endpoint string - logs
Token string - project
Id string - region string
- source string
- args {[key: string]: string}
- disk
Size numberGb - dockerfile string
- instance
Type string - max
Wait numberTime - target string
- triggers string[]
- destination str
- logs_
endpoint str - logs_
token str - project_
id str - region str
- source str
- args Mapping[str, str]
- disk_
size_ intgb - dockerfile str
- instance_
type str - max_
wait_ inttime - target str
- triggers Sequence[str]
- destination String
- logs
Endpoint String - logs
Token String - project
Id String - region String
- source String
- args Map<String>
- disk
Size NumberGb - dockerfile String
- instance
Type String - max
Wait NumberTime - target String
- triggers List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Build resource produces the following output properties:
- Build
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Image string
- Log
Selector string
- Build
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Image string
- Log
Selector string
- build_
id string - id string
- The provider-assigned unique ID for this managed resource.
- image string
- log_
selector string
- build
Id String - id String
- The provider-assigned unique ID for this managed resource.
- image String
- log
Selector String
- build
Id string - id string
- The provider-assigned unique ID for this managed resource.
- image string
- log
Selector string
- build_
id str - id str
- The provider-assigned unique ID for this managed resource.
- image str
- log_
selector str
- build
Id String - id String
- The provider-assigned unique ID for this managed resource.
- image String
- log
Selector String
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-scaleway:Build get: id: ${id}import {
to = defang-scaleway_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-scaleway DefangLabs/pulumi-defang
- License
- Apache-2.0
defang-scalewaypublished on Tuesday, Nov 17, 2026 by Defang