1. Registry
  2. Packages
  3. Defang Providers
  4. API Docs
  5. Build
Viewing docs for defang-scaleway v2.12.2
published on Tuesday, Nov 17, 2026 by Defang
defang-scaleway logo defang-scaleway
Viewing docs for defang-scaleway v2.12.2
published 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)
    public Build(String name, BuildArgs args)
    public Build(String name, BuildArgs args, CustomResourceOptions options)
    
    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
    LogsEndpoint string
    LogsToken string
    ProjectId string
    Region string
    Source string
    Args Dictionary<string, string>
    DiskSizeGb int
    Dockerfile string
    InstanceType string
    MaxWaitTime int
    Target string
    Triggers List<string>
    Destination string
    LogsEndpoint string
    LogsToken string
    ProjectId string
    Region string
    Source string
    Args map[string]string
    DiskSizeGb int
    Dockerfile string
    InstanceType string
    MaxWaitTime int
    Target string
    Triggers []string
    destination string
    logs_endpoint string
    logs_token string
    project_id string
    region string
    source string
    args map(string)
    disk_size_gb number
    dockerfile string
    instance_type string
    max_wait_time number
    target string
    triggers list(string)
    destination String
    logsEndpoint String
    logsToken String
    projectId String
    region String
    source String
    args Map<String,String>
    diskSizeGb Integer
    dockerfile String
    instanceType String
    maxWaitTime Integer
    target String
    triggers List<String>
    destination string
    logsEndpoint string
    logsToken string
    projectId string
    region string
    source string
    args {[key: string]: string}
    diskSizeGb number
    dockerfile string
    instanceType string
    maxWaitTime number
    target string
    triggers string[]
    destination String
    logsEndpoint String
    logsToken String
    projectId String
    region String
    source String
    args Map<String>
    diskSizeGb Number
    dockerfile String
    instanceType String
    maxWaitTime Number
    target 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
    LogSelector string
    BuildId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Image string
    LogSelector string
    build_id string
    id string
    The provider-assigned unique ID for this managed resource.
    image string
    log_selector string
    buildId String
    id String
    The provider-assigned unique ID for this managed resource.
    image String
    logSelector String
    buildId string
    id string
    The provider-assigned unique ID for this managed resource.
    image string
    logSelector string
    build_id str
    id str
    The provider-assigned unique ID for this managed resource.
    image str
    log_selector str
    buildId String
    id String
    The provider-assigned unique ID for this managed resource.
    image String
    logSelector 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) -> Build
    func 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-scaleway logo defang-scaleway
    Viewing docs for defang-scaleway v2.12.2
    published on Tuesday, Nov 17, 2026 by Defang

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial