heroku.slug.Slug
Explore with Pulumi AI
Create Slug Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Slug(name: string, args: SlugArgs, opts?: CustomResourceOptions);
@overload
def Slug(resource_name: str,
args: SlugArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Slug(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
process_types: Optional[Mapping[str, Any]] = None,
buildpack_provided_description: Optional[str] = None,
checksum: Optional[str] = None,
commit: Optional[str] = None,
commit_description: Optional[str] = None,
file_path: Optional[str] = None,
file_url: Optional[str] = None,
stack: Optional[str] = None)
func NewSlug(ctx *Context, name string, args SlugArgs, opts ...ResourceOption) (*Slug, error)
public Slug(string name, SlugArgs args, CustomResourceOptions? opts = null)
type: heroku:slug:Slug
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 SlugArgs
- 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 SlugArgs
- 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 SlugArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SlugArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SlugArgs
- 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 slugResource = new Heroku.Slug.Slug("slugResource", new()
{
AppId = "string",
ProcessTypes =
{
{ "string", "any" },
},
BuildpackProvidedDescription = "string",
Checksum = "string",
Commit = "string",
CommitDescription = "string",
FilePath = "string",
FileUrl = "string",
Stack = "string",
});
example, err := slug.NewSlug(ctx, "slugResource", &slug.SlugArgs{
AppId: pulumi.String("string"),
ProcessTypes: pulumi.Map{
"string": pulumi.Any("any"),
},
BuildpackProvidedDescription: pulumi.String("string"),
Checksum: pulumi.String("string"),
Commit: pulumi.String("string"),
CommitDescription: pulumi.String("string"),
FilePath: pulumi.String("string"),
FileUrl: pulumi.String("string"),
Stack: pulumi.String("string"),
})
var slugResource = new Slug("slugResource", SlugArgs.builder()
.appId("string")
.processTypes(Map.of("string", "any"))
.buildpackProvidedDescription("string")
.checksum("string")
.commit("string")
.commitDescription("string")
.filePath("string")
.fileUrl("string")
.stack("string")
.build());
slug_resource = heroku.slug.Slug("slugResource",
app_id="string",
process_types={
"string": "any",
},
buildpack_provided_description="string",
checksum="string",
commit="string",
commit_description="string",
file_path="string",
file_url="string",
stack="string")
const slugResource = new heroku.slug.Slug("slugResource", {
appId: "string",
processTypes: {
string: "any",
},
buildpackProvidedDescription: "string",
checksum: "string",
commit: "string",
commitDescription: "string",
filePath: "string",
fileUrl: "string",
stack: "string",
});
type: heroku:slug:Slug
properties:
appId: string
buildpackProvidedDescription: string
checksum: string
commit: string
commitDescription: string
filePath: string
fileUrl: string
processTypes:
string: any
stack: string
Slug 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 Slug resource accepts the following input properties:
- App
Id string - Process
Types Dictionary<string, object> - Buildpack
Provided stringDescription - Checksum string
- Commit string
- Commit
Description string - File
Path string - File
Url string - Stack string
- App
Id string - Process
Types map[string]interface{} - Buildpack
Provided stringDescription - Checksum string
- Commit string
- Commit
Description string - File
Path string - File
Url string - Stack string
- app
Id String - process
Types Map<String,Object> - buildpack
Provided StringDescription - checksum String
- commit String
- commit
Description String - file
Path String - file
Url String - stack String
- app
Id string - process
Types {[key: string]: any} - buildpack
Provided stringDescription - checksum string
- commit string
- commit
Description string - file
Path string - file
Url string - stack string
- app_
id str - process_
types Mapping[str, Any] - buildpack_
provided_ strdescription - checksum str
- commit str
- commit_
description str - file_
path str - file_
url str - stack str
- app
Id String - process
Types Map<Any> - buildpack
Provided StringDescription - checksum String
- commit String
- commit
Description String - file
Path String - file
Url String - stack String
Outputs
All input properties are implicitly available as output properties. Additionally, the Slug resource produces the following output properties:
- Blobs
List<Pulumiverse.
Heroku. Slug. Outputs. Slug Blob> - Id string
- The provider-assigned unique ID for this managed resource.
- Size int
- Stack
Id string
- Blobs
[]Slug
Blob - Id string
- The provider-assigned unique ID for this managed resource.
- Size int
- Stack
Id string
- blobs
List<Slug
Blob> - id String
- The provider-assigned unique ID for this managed resource.
- size Integer
- stack
Id String
- blobs
Slug
Blob[] - id string
- The provider-assigned unique ID for this managed resource.
- size number
- stack
Id string
- blobs
Sequence[Slug
Blob] - id str
- The provider-assigned unique ID for this managed resource.
- size int
- stack_
id str
- blobs List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- size Number
- stack
Id String
Look up Existing Slug Resource
Get an existing Slug 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?: SlugState, opts?: CustomResourceOptions): Slug
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
blobs: Optional[Sequence[SlugBlobArgs]] = None,
buildpack_provided_description: Optional[str] = None,
checksum: Optional[str] = None,
commit: Optional[str] = None,
commit_description: Optional[str] = None,
file_path: Optional[str] = None,
file_url: Optional[str] = None,
process_types: Optional[Mapping[str, Any]] = None,
size: Optional[int] = None,
stack: Optional[str] = None,
stack_id: Optional[str] = None) -> Slug
func GetSlug(ctx *Context, name string, id IDInput, state *SlugState, opts ...ResourceOption) (*Slug, error)
public static Slug Get(string name, Input<string> id, SlugState? state, CustomResourceOptions? opts = null)
public static Slug get(String name, Output<String> id, SlugState state, CustomResourceOptions options)
resources: _: type: heroku:slug:Slug 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 - Blobs
List<Pulumiverse.
Heroku. Slug. Inputs. Slug Blob> - Buildpack
Provided stringDescription - Checksum string
- Commit string
- Commit
Description string - File
Path string - File
Url string - Process
Types Dictionary<string, object> - Size int
- Stack string
- Stack
Id string
- App
Id string - Blobs
[]Slug
Blob Args - Buildpack
Provided stringDescription - Checksum string
- Commit string
- Commit
Description string - File
Path string - File
Url string - Process
Types map[string]interface{} - Size int
- Stack string
- Stack
Id string
- app
Id String - blobs
List<Slug
Blob> - buildpack
Provided StringDescription - checksum String
- commit String
- commit
Description String - file
Path String - file
Url String - process
Types Map<String,Object> - size Integer
- stack String
- stack
Id String
- app
Id string - blobs
Slug
Blob[] - buildpack
Provided stringDescription - checksum string
- commit string
- commit
Description string - file
Path string - file
Url string - process
Types {[key: string]: any} - size number
- stack string
- stack
Id string
- app_
id str - blobs
Sequence[Slug
Blob Args] - buildpack_
provided_ strdescription - checksum str
- commit str
- commit_
description str - file_
path str - file_
url str - process_
types Mapping[str, Any] - size int
- stack str
- stack_
id str
- app
Id String - blobs List<Property Map>
- buildpack
Provided StringDescription - checksum String
- commit String
- commit
Description String - file
Path String - file
Url String - process
Types Map<Any> - size Number
- stack String
- stack
Id String
Supporting Types
SlugBlob, SlugBlobArgs
Package Details
- Repository
- heroku pulumiverse/pulumi-heroku
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
heroku
Terraform Provider.