1. Packages
  2. Heroku
  3. API Docs
  4. build
  5. Build
Heroku v1.0.3 published on Friday, Apr 14, 2023 by pulumiverse - Marcel Arns

heroku.build.Build

Explore with Pulumi AI

heroku logo
Heroku v1.0.3 published on Friday, Apr 14, 2023 by pulumiverse - Marcel Arns

    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,
              app_id: Optional[str] = None,
              source: Optional[BuildSourceArgs] = None,
              buildpacks: 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: heroku:build:Build
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    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.

    Example

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

    var buildResource = new Heroku.Build.Build("buildResource", new()
    {
        AppId = "string",
        Source = new Heroku.Build.Inputs.BuildSourceArgs
        {
            Checksum = "string",
            Path = "string",
            Url = "string",
            Version = "string",
        },
        Buildpacks = new[]
        {
            "string",
        },
    });
    
    example, err := build.NewBuild(ctx, "buildResource", &build.BuildArgs{
    	AppId: pulumi.String("string"),
    	Source: &build.BuildSourceArgs{
    		Checksum: pulumi.String("string"),
    		Path:     pulumi.String("string"),
    		Url:      pulumi.String("string"),
    		Version:  pulumi.String("string"),
    	},
    	Buildpacks: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var buildResource = new Build("buildResource", BuildArgs.builder()
        .appId("string")
        .source(BuildSourceArgs.builder()
            .checksum("string")
            .path("string")
            .url("string")
            .version("string")
            .build())
        .buildpacks("string")
        .build());
    
    build_resource = heroku.build.Build("buildResource",
        app_id="string",
        source=heroku.build.BuildSourceArgs(
            checksum="string",
            path="string",
            url="string",
            version="string",
        ),
        buildpacks=["string"])
    
    const buildResource = new heroku.build.Build("buildResource", {
        appId: "string",
        source: {
            checksum: "string",
            path: "string",
            url: "string",
            version: "string",
        },
        buildpacks: ["string"],
    });
    
    type: heroku:build:Build
    properties:
        appId: string
        buildpacks:
            - string
        source:
            checksum: string
            path: string
            url: string
            version: 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

    The Build resource accepts the following input properties:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LocalChecksum string
    OutputStreamUrl string
    ReleaseId string
    SlugId string
    Stack string
    Status string
    Users List<Pulumiverse.Heroku.Build.Outputs.BuildUser>
    Uuid string
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalChecksum string
    OutputStreamUrl string
    ReleaseId string
    SlugId string
    Stack string
    Status string
    Users []BuildUser
    Uuid string
    id String
    The provider-assigned unique ID for this managed resource.
    localChecksum String
    outputStreamUrl String
    releaseId String
    slugId String
    stack String
    status String
    users List<BuildUser>
    uuid String
    id string
    The provider-assigned unique ID for this managed resource.
    localChecksum string
    outputStreamUrl string
    releaseId string
    slugId string
    stack string
    status string
    users BuildUser[]
    uuid string
    id str
    The provider-assigned unique ID for this managed resource.
    local_checksum str
    output_stream_url str
    release_id str
    slug_id str
    stack str
    status str
    users Sequence[BuildUser]
    uuid str
    id String
    The provider-assigned unique ID for this managed resource.
    localChecksum String
    outputStreamUrl String
    releaseId String
    slugId String
    stack String
    status String
    users List<Property Map>
    uuid 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>, state?: BuildState, opts?: CustomResourceOptions): Build
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[str] = None,
            buildpacks: Optional[Sequence[str]] = None,
            local_checksum: Optional[str] = None,
            output_stream_url: Optional[str] = None,
            release_id: Optional[str] = None,
            slug_id: Optional[str] = None,
            source: Optional[BuildSourceArgs] = None,
            stack: Optional[str] = None,
            status: Optional[str] = None,
            users: Optional[Sequence[BuildUserArgs]] = None,
            uuid: Optional[str] = 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, BuildState? state, CustomResourceOptions? opts = null)
    public static Build get(String name, Output<String> id, BuildState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    BuildSource, BuildSourceArgs

    Checksum string
    Path string
    Url string
    Version string
    Checksum string
    Path string
    Url string
    Version string
    checksum String
    path String
    url String
    version String
    checksum string
    path string
    url string
    version string
    checksum str
    path str
    url str
    version str
    checksum String
    path String
    url String
    version String

    BuildUser, BuildUserArgs

    Email string
    Id string
    Email string
    Id string
    email String
    id String
    email string
    id string
    email str
    id str
    email String
    id String

    Package Details

    Repository
    heroku pulumiverse/pulumi-heroku
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the heroku Terraform Provider.
    heroku logo
    Heroku v1.0.3 published on Friday, Apr 14, 2023 by pulumiverse - Marcel Arns