heroku.build.Build
Explore with Pulumi AI
Import
Existing builds can be imported using the combination of the application name, a colon, and the build ID.
For example:
$ pulumi import heroku:build/build:Build foobar bazbux:4f1db8ef-ed5c-4c42-a3d6-3c28262d5abc
foobar
is the heroku_build resource’s namebazbux
is the Heroku app name (or ID) that the build belongs to:
separates the app identifier & the build identifier4f1db8ef…
is the build ID
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)
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.
Constructor 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={
"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
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:
- App
Id string - Heroku app ID (do not use app name)
- Source
Pulumiverse.
Heroku. Build. Inputs. Build Source - A block that specifies the source code to build & release:
- Buildpacks List<string>
- List of buildpack GitHub URLs
- App
Id string - Heroku app ID (do not use app name)
- Source
Build
Source Args - A block that specifies the source code to build & release:
- Buildpacks []string
- List of buildpack GitHub URLs
- app
Id String - Heroku app ID (do not use app name)
- source
Build
Source - A block that specifies the source code to build & release:
- buildpacks List<String>
- List of buildpack GitHub URLs
- app
Id string - Heroku app ID (do not use app name)
- source
Build
Source - A block that specifies the source code to build & release:
- buildpacks string[]
- List of buildpack GitHub URLs
- app_
id str - Heroku app ID (do not use app name)
- source
Build
Source Args - A block that specifies the source code to build & release:
- buildpacks Sequence[str]
- List of buildpack GitHub URLs
- app
Id String - Heroku app ID (do not use app name)
- source Property Map
- A block that specifies the source code to build & release:
- buildpacks List<String>
- List of buildpack GitHub URLs
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.
- Local
Checksum string - Output
Stream stringUrl - URL that streams the log output from the build
- Release
Id string - The Heroku app release created with a build's slug
- Slug
Id string - The Heroku slug created by a build
- Stack string
- Name or ID of the Heroku stack
- Status string
- The status of a build. Possible values are
pending
,successful
andfailed
- Users
List<Pulumiverse.
Heroku. Build. Outputs. Build User> - Heroku account that created a build
- Uuid string
- The ID of the build
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Checksum string - Output
Stream stringUrl - URL that streams the log output from the build
- Release
Id string - The Heroku app release created with a build's slug
- Slug
Id string - The Heroku slug created by a build
- Stack string
- Name or ID of the Heroku stack
- Status string
- The status of a build. Possible values are
pending
,successful
andfailed
- Users
[]Build
User - Heroku account that created a build
- Uuid string
- The ID of the build
- id String
- The provider-assigned unique ID for this managed resource.
- local
Checksum String - output
Stream StringUrl - URL that streams the log output from the build
- release
Id String - The Heroku app release created with a build's slug
- slug
Id String - The Heroku slug created by a build
- stack String
- Name or ID of the Heroku stack
- status String
- The status of a build. Possible values are
pending
,successful
andfailed
- users
List<Build
User> - Heroku account that created a build
- uuid String
- The ID of the build
- id string
- The provider-assigned unique ID for this managed resource.
- local
Checksum string - output
Stream stringUrl - URL that streams the log output from the build
- release
Id string - The Heroku app release created with a build's slug
- slug
Id string - The Heroku slug created by a build
- stack string
- Name or ID of the Heroku stack
- status string
- The status of a build. Possible values are
pending
,successful
andfailed
- users
Build
User[] - Heroku account that created a build
- uuid string
- The ID of the build
- id str
- The provider-assigned unique ID for this managed resource.
- local_
checksum str - output_
stream_ strurl - URL that streams the log output from the build
- release_
id str - The Heroku app release created with a build's slug
- slug_
id str - The Heroku slug created by a build
- stack str
- Name or ID of the Heroku stack
- status str
- The status of a build. Possible values are
pending
,successful
andfailed
- users
Sequence[Build
User] - Heroku account that created a build
- uuid str
- The ID of the build
- id String
- The provider-assigned unique ID for this managed resource.
- local
Checksum String - output
Stream StringUrl - URL that streams the log output from the build
- release
Id String - The Heroku app release created with a build's slug
- slug
Id String - The Heroku slug created by a build
- stack String
- Name or ID of the Heroku stack
- status String
- The status of a build. Possible values are
pending
,successful
andfailed
- users List<Property Map>
- Heroku account that created a build
- uuid String
- The ID of the build
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)
resources: _: type: heroku:build:Build get: id: ${id}
- 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.
- App
Id string - Heroku app ID (do not use app name)
- Buildpacks List<string>
- List of buildpack GitHub URLs
- Local
Checksum string - Output
Stream stringUrl - URL that streams the log output from the build
- Release
Id string - The Heroku app release created with a build's slug
- Slug
Id string - The Heroku slug created by a build
- Source
Pulumiverse.
Heroku. Build. Inputs. Build Source - A block that specifies the source code to build & release:
- Stack string
- Name or ID of the Heroku stack
- Status string
- The status of a build. Possible values are
pending
,successful
andfailed
- Users
List<Pulumiverse.
Heroku. Build. Inputs. Build User> - Heroku account that created a build
- Uuid string
- The ID of the build
- App
Id string - Heroku app ID (do not use app name)
- Buildpacks []string
- List of buildpack GitHub URLs
- Local
Checksum string - Output
Stream stringUrl - URL that streams the log output from the build
- Release
Id string - The Heroku app release created with a build's slug
- Slug
Id string - The Heroku slug created by a build
- Source
Build
Source Args - A block that specifies the source code to build & release:
- Stack string
- Name or ID of the Heroku stack
- Status string
- The status of a build. Possible values are
pending
,successful
andfailed
- Users
[]Build
User Args - Heroku account that created a build
- Uuid string
- The ID of the build
- app
Id String - Heroku app ID (do not use app name)
- buildpacks List<String>
- List of buildpack GitHub URLs
- local
Checksum String - output
Stream StringUrl - URL that streams the log output from the build
- release
Id String - The Heroku app release created with a build's slug
- slug
Id String - The Heroku slug created by a build
- source
Build
Source - A block that specifies the source code to build & release:
- stack String
- Name or ID of the Heroku stack
- status String
- The status of a build. Possible values are
pending
,successful
andfailed
- users
List<Build
User> - Heroku account that created a build
- uuid String
- The ID of the build
- app
Id string - Heroku app ID (do not use app name)
- buildpacks string[]
- List of buildpack GitHub URLs
- local
Checksum string - output
Stream stringUrl - URL that streams the log output from the build
- release
Id string - The Heroku app release created with a build's slug
- slug
Id string - The Heroku slug created by a build
- source
Build
Source - A block that specifies the source code to build & release:
- stack string
- Name or ID of the Heroku stack
- status string
- The status of a build. Possible values are
pending
,successful
andfailed
- users
Build
User[] - Heroku account that created a build
- uuid string
- The ID of the build
- app_
id str - Heroku app ID (do not use app name)
- buildpacks Sequence[str]
- List of buildpack GitHub URLs
- local_
checksum str - output_
stream_ strurl - URL that streams the log output from the build
- release_
id str - The Heroku app release created with a build's slug
- slug_
id str - The Heroku slug created by a build
- source
Build
Source Args - A block that specifies the source code to build & release:
- stack str
- Name or ID of the Heroku stack
- status str
- The status of a build. Possible values are
pending
,successful
andfailed
- users
Sequence[Build
User Args] - Heroku account that created a build
- uuid str
- The ID of the build
- app
Id String - Heroku app ID (do not use app name)
- buildpacks List<String>
- List of buildpack GitHub URLs
- local
Checksum String - output
Stream StringUrl - URL that streams the log output from the build
- release
Id String - The Heroku app release created with a build's slug
- slug
Id String - The Heroku slug created by a build
- source Property Map
- A block that specifies the source code to build & release:
- stack String
- Name or ID of the Heroku stack
- status String
- The status of a build. Possible values are
pending
,successful
andfailed
- users List<Property Map>
- Heroku account that created a build
- uuid String
- The ID of the build
Supporting Types
BuildSource, BuildSourceArgs
- Checksum string
- SHA256 hash of the tarball archive to verify its integrity, example:
SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Path string
- Local path to the source directory or tarball archive for the app
- Url string
https
location of the source archive for the app- Version string
- Use to track what version of your source originated this build. If you are creating builds from git-versioned source code, for example, the commit hash, or release tag would be a good value to use for the version parameter.
- Checksum string
- SHA256 hash of the tarball archive to verify its integrity, example:
SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Path string
- Local path to the source directory or tarball archive for the app
- Url string
https
location of the source archive for the app- Version string
- Use to track what version of your source originated this build. If you are creating builds from git-versioned source code, for example, the commit hash, or release tag would be a good value to use for the version parameter.
- checksum String
- SHA256 hash of the tarball archive to verify its integrity, example:
SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- path String
- Local path to the source directory or tarball archive for the app
- url String
https
location of the source archive for the app- version String
- Use to track what version of your source originated this build. If you are creating builds from git-versioned source code, for example, the commit hash, or release tag would be a good value to use for the version parameter.
- checksum string
- SHA256 hash of the tarball archive to verify its integrity, example:
SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- path string
- Local path to the source directory or tarball archive for the app
- url string
https
location of the source archive for the app- version string
- Use to track what version of your source originated this build. If you are creating builds from git-versioned source code, for example, the commit hash, or release tag would be a good value to use for the version parameter.
- checksum str
- SHA256 hash of the tarball archive to verify its integrity, example:
SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- path str
- Local path to the source directory or tarball archive for the app
- url str
https
location of the source archive for the app- version str
- Use to track what version of your source originated this build. If you are creating builds from git-versioned source code, for example, the commit hash, or release tag would be a good value to use for the version parameter.
- checksum String
- SHA256 hash of the tarball archive to verify its integrity, example:
SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- path String
- Local path to the source directory or tarball archive for the app
- url String
https
location of the source archive for the app- version String
- Use to track what version of your source originated this build. If you are creating builds from git-versioned source code, for example, the commit hash, or release tag would be a good value to use for the version parameter.
BuildUser, BuildUserArgs
Package Details
- Repository
- heroku pulumiverse/pulumi-heroku
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
heroku
Terraform Provider.