heroku.app.Release
Explore with Pulumi AI
Example Usage
resource "heroku_app" "foobar" {
name = "foobar"
region = "us"
}
# Upload your slug
resource "heroku_app_release" "foobar-release" {
app_id = heroku_app.foobar.id
slug_id = "01234567-89ab-cdef-0123-456789abcdef"
}
Create Release Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Release(name: string, args: ReleaseArgs, opts?: CustomResourceOptions);
@overload
def Release(resource_name: str,
args: ReleaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Release(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
slug_id: Optional[str] = None,
description: Optional[str] = None)
func NewRelease(ctx *Context, name string, args ReleaseArgs, opts ...ResourceOption) (*Release, error)
public Release(string name, ReleaseArgs args, CustomResourceOptions? opts = null)
public Release(String name, ReleaseArgs args)
public Release(String name, ReleaseArgs args, CustomResourceOptions options)
type: heroku:app:Release
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 ReleaseArgs
- 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 ReleaseArgs
- 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 ReleaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReleaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReleaseArgs
- 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 releaseResource = new Heroku.App.Release("releaseResource", new()
{
AppId = "string",
SlugId = "string",
Description = "string",
});
example, err := app.NewRelease(ctx, "releaseResource", &app.ReleaseArgs{
AppId: pulumi.String("string"),
SlugId: pulumi.String("string"),
Description: pulumi.String("string"),
})
var releaseResource = new Release("releaseResource", ReleaseArgs.builder()
.appId("string")
.slugId("string")
.description("string")
.build());
release_resource = heroku.app.Release("releaseResource",
app_id="string",
slug_id="string",
description="string")
const releaseResource = new heroku.app.Release("releaseResource", {
appId: "string",
slugId: "string",
description: "string",
});
type: heroku:app:Release
properties:
appId: string
description: string
slugId: string
Release 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 Release resource accepts the following input properties:
- App
Id string - Heroku app ID (do not use app name)
- Slug
Id string - unique identifier of slug
- Description string
- description of changes in this release
- App
Id string - Heroku app ID (do not use app name)
- Slug
Id string - unique identifier of slug
- Description string
- description of changes in this release
- app
Id String - Heroku app ID (do not use app name)
- slug
Id String - unique identifier of slug
- description String
- description of changes in this release
- app
Id string - Heroku app ID (do not use app name)
- slug
Id string - unique identifier of slug
- description string
- description of changes in this release
- app_
id str - Heroku app ID (do not use app name)
- slug_
id str - unique identifier of slug
- description str
- description of changes in this release
- app
Id String - Heroku app ID (do not use app name)
- slug
Id String - unique identifier of slug
- description String
- description of changes in this release
Outputs
All input properties are implicitly available as output properties. Additionally, the Release resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Release Resource
Get an existing Release 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?: ReleaseState, opts?: CustomResourceOptions): Release
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
description: Optional[str] = None,
slug_id: Optional[str] = None) -> Release
func GetRelease(ctx *Context, name string, id IDInput, state *ReleaseState, opts ...ResourceOption) (*Release, error)
public static Release Get(string name, Input<string> id, ReleaseState? state, CustomResourceOptions? opts = null)
public static Release get(String name, Output<String> id, ReleaseState state, CustomResourceOptions options)
resources: _: type: heroku:app:Release 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)
- Description string
- description of changes in this release
- Slug
Id string - unique identifier of slug
- App
Id string - Heroku app ID (do not use app name)
- Description string
- description of changes in this release
- Slug
Id string - unique identifier of slug
- app
Id String - Heroku app ID (do not use app name)
- description String
- description of changes in this release
- slug
Id String - unique identifier of slug
- app
Id string - Heroku app ID (do not use app name)
- description string
- description of changes in this release
- slug
Id string - unique identifier of slug
- app_
id str - Heroku app ID (do not use app name)
- description str
- description of changes in this release
- slug_
id str - unique identifier of slug
- app
Id String - Heroku app ID (do not use app name)
- description String
- description of changes in this release
- slug
Id String - unique identifier of slug
Import
The most recent app release can be imported using the application name.
For example:
$ pulumi import heroku:app/release:Release foobar-release foobar
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- heroku pulumiverse/pulumi-heroku
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
heroku
Terraform Provider.