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

heroku.slug.Slug

Explore with Pulumi AI

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

    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)
    public Slug(String name, SlugArgs args)
    public Slug(String name, SlugArgs args, CustomResourceOptions options)
    
    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.

    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

    The Slug resource accepts the following input properties:

    AppId string
    ProcessTypes Dictionary<string, object>
    BuildpackProvidedDescription string
    Checksum string
    Commit string
    CommitDescription string
    FilePath string
    FileUrl string
    Stack string
    AppId string
    ProcessTypes map[string]interface{}
    BuildpackProvidedDescription string
    Checksum string
    Commit string
    CommitDescription string
    FilePath string
    FileUrl string
    Stack string
    appId String
    processTypes Map<String,Object>
    buildpackProvidedDescription String
    checksum String
    commit String
    commitDescription String
    filePath String
    fileUrl String
    stack String
    appId string
    processTypes {[key: string]: any}
    buildpackProvidedDescription string
    checksum string
    commit string
    commitDescription string
    filePath string
    fileUrl string
    stack string
    appId String
    processTypes Map<Any>
    buildpackProvidedDescription String
    checksum String
    commit String
    commitDescription String
    filePath String
    fileUrl 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.SlugBlob>
    Id string
    The provider-assigned unique ID for this managed resource.
    Size int
    StackId string
    Blobs []SlugBlob
    Id string
    The provider-assigned unique ID for this managed resource.
    Size int
    StackId string
    blobs List<SlugBlob>
    id String
    The provider-assigned unique ID for this managed resource.
    size Integer
    stackId String
    blobs SlugBlob[]
    id string
    The provider-assigned unique ID for this managed resource.
    size number
    stackId string
    blobs Sequence[SlugBlob]
    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
    stackId 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)
    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:
    AppId string
    Blobs []SlugBlobArgs
    BuildpackProvidedDescription string
    Checksum string
    Commit string
    CommitDescription string
    FilePath string
    FileUrl string
    ProcessTypes map[string]interface{}
    Size int
    Stack string
    StackId string
    appId String
    blobs List<SlugBlob>
    buildpackProvidedDescription String
    checksum String
    commit String
    commitDescription String
    filePath String
    fileUrl String
    processTypes Map<String,Object>
    size Integer
    stack String
    stackId String
    appId string
    blobs SlugBlob[]
    buildpackProvidedDescription string
    checksum string
    commit string
    commitDescription string
    filePath string
    fileUrl string
    processTypes {[key: string]: any}
    size number
    stack string
    stackId string

    Supporting Types

    SlugBlob, SlugBlobArgs

    Method string
    Url string
    Method string
    Url string
    method String
    url String
    method string
    url string
    method str
    url str
    method String
    url 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