1. Packages
  2. Gcore Provider
  3. API Docs
  4. FastedgeBinary
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

gcore.FastedgeBinary

Explore with Pulumi AI

gcore logo
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

    WebAssembly binary to use in FastEdge applications.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const testBinary = new gcore.FastedgeBinary("testBinary", {filename: "test.wasm"});
    
    import pulumi
    import pulumi_gcore as gcore
    
    test_binary = gcore.FastedgeBinary("testBinary", filename="test.wasm")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.NewFastedgeBinary(ctx, "testBinary", &gcore.FastedgeBinaryArgs{
    			Filename: pulumi.String("test.wasm"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var testBinary = new Gcore.FastedgeBinary("testBinary", new()
        {
            Filename = "test.wasm",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.FastedgeBinary;
    import com.pulumi.gcore.FastedgeBinaryArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testBinary = new FastedgeBinary("testBinary", FastedgeBinaryArgs.builder()
                .filename("test.wasm")
                .build());
    
        }
    }
    
    resources:
      testBinary:
        type: gcore:FastedgeBinary
        properties:
          filename: test.wasm
    

    Create FastedgeBinary Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FastedgeBinary(name: string, args: FastedgeBinaryArgs, opts?: CustomResourceOptions);
    @overload
    def FastedgeBinary(resource_name: str,
                       args: FastedgeBinaryArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def FastedgeBinary(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       filename: Optional[str] = None,
                       fastedge_binary_id: Optional[str] = None)
    func NewFastedgeBinary(ctx *Context, name string, args FastedgeBinaryArgs, opts ...ResourceOption) (*FastedgeBinary, error)
    public FastedgeBinary(string name, FastedgeBinaryArgs args, CustomResourceOptions? opts = null)
    public FastedgeBinary(String name, FastedgeBinaryArgs args)
    public FastedgeBinary(String name, FastedgeBinaryArgs args, CustomResourceOptions options)
    
    type: gcore:FastedgeBinary
    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 FastedgeBinaryArgs
    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 FastedgeBinaryArgs
    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 FastedgeBinaryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FastedgeBinaryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FastedgeBinaryArgs
    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 fastedgeBinaryResource = new Gcore.FastedgeBinary("fastedgeBinaryResource", new()
    {
        Filename = "string",
        FastedgeBinaryId = "string",
    });
    
    example, err := gcore.NewFastedgeBinary(ctx, "fastedgeBinaryResource", &gcore.FastedgeBinaryArgs{
    	Filename:         pulumi.String("string"),
    	FastedgeBinaryId: pulumi.String("string"),
    })
    
    var fastedgeBinaryResource = new FastedgeBinary("fastedgeBinaryResource", FastedgeBinaryArgs.builder()
        .filename("string")
        .fastedgeBinaryId("string")
        .build());
    
    fastedge_binary_resource = gcore.FastedgeBinary("fastedgeBinaryResource",
        filename="string",
        fastedge_binary_id="string")
    
    const fastedgeBinaryResource = new gcore.FastedgeBinary("fastedgeBinaryResource", {
        filename: "string",
        fastedgeBinaryId: "string",
    });
    
    type: gcore:FastedgeBinary
    properties:
        fastedgeBinaryId: string
        filename: string
    

    FastedgeBinary 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 FastedgeBinary resource accepts the following input properties:

    Filename string
    WebAssembly binary file to upload.
    FastedgeBinaryId string
    The ID of this resource.
    Filename string
    WebAssembly binary file to upload.
    FastedgeBinaryId string
    The ID of this resource.
    filename String
    WebAssembly binary file to upload.
    fastedgeBinaryId String
    The ID of this resource.
    filename string
    WebAssembly binary file to upload.
    fastedgeBinaryId string
    The ID of this resource.
    filename str
    WebAssembly binary file to upload.
    fastedge_binary_id str
    The ID of this resource.
    filename String
    WebAssembly binary file to upload.
    fastedgeBinaryId String
    The ID of this resource.

    Outputs

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

    Checksum string
    Binary checksum.
    Id string
    The provider-assigned unique ID for this managed resource.
    Checksum string
    Binary checksum.
    Id string
    The provider-assigned unique ID for this managed resource.
    checksum String
    Binary checksum.
    id String
    The provider-assigned unique ID for this managed resource.
    checksum string
    Binary checksum.
    id string
    The provider-assigned unique ID for this managed resource.
    checksum str
    Binary checksum.
    id str
    The provider-assigned unique ID for this managed resource.
    checksum String
    Binary checksum.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FastedgeBinary Resource

    Get an existing FastedgeBinary 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?: FastedgeBinaryState, opts?: CustomResourceOptions): FastedgeBinary
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            checksum: Optional[str] = None,
            fastedge_binary_id: Optional[str] = None,
            filename: Optional[str] = None) -> FastedgeBinary
    func GetFastedgeBinary(ctx *Context, name string, id IDInput, state *FastedgeBinaryState, opts ...ResourceOption) (*FastedgeBinary, error)
    public static FastedgeBinary Get(string name, Input<string> id, FastedgeBinaryState? state, CustomResourceOptions? opts = null)
    public static FastedgeBinary get(String name, Output<String> id, FastedgeBinaryState state, CustomResourceOptions options)
    resources:  _:    type: gcore:FastedgeBinary    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.
    The following state arguments are supported:
    Checksum string
    Binary checksum.
    FastedgeBinaryId string
    The ID of this resource.
    Filename string
    WebAssembly binary file to upload.
    Checksum string
    Binary checksum.
    FastedgeBinaryId string
    The ID of this resource.
    Filename string
    WebAssembly binary file to upload.
    checksum String
    Binary checksum.
    fastedgeBinaryId String
    The ID of this resource.
    filename String
    WebAssembly binary file to upload.
    checksum string
    Binary checksum.
    fastedgeBinaryId string
    The ID of this resource.
    filename string
    WebAssembly binary file to upload.
    checksum str
    Binary checksum.
    fastedge_binary_id str
    The ID of this resource.
    filename str
    WebAssembly binary file to upload.
    checksum String
    Binary checksum.
    fastedgeBinaryId String
    The ID of this resource.
    filename String
    WebAssembly binary file to upload.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core