EdgeWorker

The akamai.EdgeWorker resource lets you deploy custom code on thousands of edge servers and apply logic that creates powerful web experiences.

Attributes reference

  • edgeworker_id - Unique identifier for an EdgeWorker ID.
  • local_bundle_hash - A SHA-256 hash digest of the EdgeWorkers code bundle.
  • version - Unique identifier for a specific EdgeWorker version.
  • warnings - List of validation warnings.

Example Usage

Basic usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var ew = new Akamai.EdgeWorker("ew", new Akamai.EdgeWorkerArgs
        {
            GroupId = 72297,
            ResourceTierId = 100,
            LocalBundle = @var.Bundle_path,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.NewEdgeWorker(ctx, "ew", &akamai.EdgeWorkerArgs{
			GroupId:        pulumi.Int(72297),
			ResourceTierId: pulumi.Int(100),
			LocalBundle:    pulumi.Any(_var.Bundle_path),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.EdgeWorker;
import com.pulumi.akamai.EdgeWorkerArgs;
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 ew = new EdgeWorker("ew", EdgeWorkerArgs.builder()        
            .groupId(72297)
            .resourceTierId(100)
            .localBundle(var_.bundle_path())
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

ew = akamai.EdgeWorker("ew",
    group_id=72297,
    resource_tier_id=100,
    local_bundle=var["bundle_path"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const ew = new akamai.EdgeWorker("ew", {
    groupId: 72297,
    resourceTierId: 100,
    localBundle: _var.bundle_path,
});
resources:
  ew:
    type: akamai:EdgeWorker
    properties:
      groupId: 72297
      resourceTierId: 100
      localBundle: ${var.bundle_path}

Create EdgeWorker Resource

new EdgeWorker(name: string, args: EdgeWorkerArgs, opts?: CustomResourceOptions);
@overload
def EdgeWorker(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               group_id: Optional[int] = None,
               local_bundle: Optional[str] = None,
               name: Optional[str] = None,
               resource_tier_id: Optional[int] = None)
@overload
def EdgeWorker(resource_name: str,
               args: EdgeWorkerArgs,
               opts: Optional[ResourceOptions] = None)
func NewEdgeWorker(ctx *Context, name string, args EdgeWorkerArgs, opts ...ResourceOption) (*EdgeWorker, error)
public EdgeWorker(string name, EdgeWorkerArgs args, CustomResourceOptions? opts = null)
public EdgeWorker(String name, EdgeWorkerArgs args)
public EdgeWorker(String name, EdgeWorkerArgs args, CustomResourceOptions options)
type: akamai:EdgeWorker
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EdgeWorkerArgs
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 EdgeWorkerArgs
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 EdgeWorkerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EdgeWorkerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EdgeWorkerArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

GroupId int

- (Required) Identifies a group to assign to the EdgeWorker ID.

ResourceTierId int

- (Required) Unique identifier of the resource tier.

LocalBundle string

- (Optional) The path to the EdgeWorkers code bundle.

Name string

- (Required) The name of the EdgeWorker ID.

GroupId int

- (Required) Identifies a group to assign to the EdgeWorker ID.

ResourceTierId int

- (Required) Unique identifier of the resource tier.

LocalBundle string

- (Optional) The path to the EdgeWorkers code bundle.

Name string

- (Required) The name of the EdgeWorker ID.

groupId Integer

- (Required) Identifies a group to assign to the EdgeWorker ID.

resourceTierId Integer

- (Required) Unique identifier of the resource tier.

localBundle String

- (Optional) The path to the EdgeWorkers code bundle.

name String

- (Required) The name of the EdgeWorker ID.

groupId number

- (Required) Identifies a group to assign to the EdgeWorker ID.

resourceTierId number

- (Required) Unique identifier of the resource tier.

localBundle string

- (Optional) The path to the EdgeWorkers code bundle.

name string

- (Required) The name of the EdgeWorker ID.

group_id int

- (Required) Identifies a group to assign to the EdgeWorker ID.

resource_tier_id int

- (Required) Unique identifier of the resource tier.

local_bundle str

- (Optional) The path to the EdgeWorkers code bundle.

name str

- (Required) The name of the EdgeWorker ID.

groupId Number

- (Required) Identifies a group to assign to the EdgeWorker ID.

resourceTierId Number

- (Required) Unique identifier of the resource tier.

localBundle String

- (Optional) The path to the EdgeWorkers code bundle.

name String

- (Required) The name of the EdgeWorker ID.

Outputs

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

EdgeworkerId int

The unique identifier of the EdgeWorker

Id string

The provider-assigned unique ID for this managed resource.

LocalBundleHash string

The local bundle hash for the EdgeWorker

Version string

The bundle version

Warnings List<string>

The list of warnings returned by EdgeWorker validation

EdgeworkerId int

The unique identifier of the EdgeWorker

Id string

The provider-assigned unique ID for this managed resource.

LocalBundleHash string

The local bundle hash for the EdgeWorker

Version string

The bundle version

Warnings []string

The list of warnings returned by EdgeWorker validation

edgeworkerId Integer

The unique identifier of the EdgeWorker

id String

The provider-assigned unique ID for this managed resource.

localBundleHash String

The local bundle hash for the EdgeWorker

version String

The bundle version

warnings List<String>

The list of warnings returned by EdgeWorker validation

edgeworkerId number

The unique identifier of the EdgeWorker

id string

The provider-assigned unique ID for this managed resource.

localBundleHash string

The local bundle hash for the EdgeWorker

version string

The bundle version

warnings string[]

The list of warnings returned by EdgeWorker validation

edgeworker_id int

The unique identifier of the EdgeWorker

id str

The provider-assigned unique ID for this managed resource.

local_bundle_hash str

The local bundle hash for the EdgeWorker

version str

The bundle version

warnings Sequence[str]

The list of warnings returned by EdgeWorker validation

edgeworkerId Number

The unique identifier of the EdgeWorker

id String

The provider-assigned unique ID for this managed resource.

localBundleHash String

The local bundle hash for the EdgeWorker

version String

The bundle version

warnings List<String>

The list of warnings returned by EdgeWorker validation

Look up Existing EdgeWorker Resource

Get an existing EdgeWorker 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?: EdgeWorkerState, opts?: CustomResourceOptions): EdgeWorker
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        edgeworker_id: Optional[int] = None,
        group_id: Optional[int] = None,
        local_bundle: Optional[str] = None,
        local_bundle_hash: Optional[str] = None,
        name: Optional[str] = None,
        resource_tier_id: Optional[int] = None,
        version: Optional[str] = None,
        warnings: Optional[Sequence[str]] = None) -> EdgeWorker
func GetEdgeWorker(ctx *Context, name string, id IDInput, state *EdgeWorkerState, opts ...ResourceOption) (*EdgeWorker, error)
public static EdgeWorker Get(string name, Input<string> id, EdgeWorkerState? state, CustomResourceOptions? opts = null)
public static EdgeWorker get(String name, Output<String> id, EdgeWorkerState 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:
EdgeworkerId int

The unique identifier of the EdgeWorker

GroupId int

- (Required) Identifies a group to assign to the EdgeWorker ID.

LocalBundle string

- (Optional) The path to the EdgeWorkers code bundle.

LocalBundleHash string

The local bundle hash for the EdgeWorker

Name string

- (Required) The name of the EdgeWorker ID.

ResourceTierId int

- (Required) Unique identifier of the resource tier.

Version string

The bundle version

Warnings List<string>

The list of warnings returned by EdgeWorker validation

EdgeworkerId int

The unique identifier of the EdgeWorker

GroupId int

- (Required) Identifies a group to assign to the EdgeWorker ID.

LocalBundle string

- (Optional) The path to the EdgeWorkers code bundle.

LocalBundleHash string

The local bundle hash for the EdgeWorker

Name string

- (Required) The name of the EdgeWorker ID.

ResourceTierId int

- (Required) Unique identifier of the resource tier.

Version string

The bundle version

Warnings []string

The list of warnings returned by EdgeWorker validation

edgeworkerId Integer

The unique identifier of the EdgeWorker

groupId Integer

- (Required) Identifies a group to assign to the EdgeWorker ID.

localBundle String

- (Optional) The path to the EdgeWorkers code bundle.

localBundleHash String

The local bundle hash for the EdgeWorker

name String

- (Required) The name of the EdgeWorker ID.

resourceTierId Integer

- (Required) Unique identifier of the resource tier.

version String

The bundle version

warnings List<String>

The list of warnings returned by EdgeWorker validation

edgeworkerId number

The unique identifier of the EdgeWorker

groupId number

- (Required) Identifies a group to assign to the EdgeWorker ID.

localBundle string

- (Optional) The path to the EdgeWorkers code bundle.

localBundleHash string

The local bundle hash for the EdgeWorker

name string

- (Required) The name of the EdgeWorker ID.

resourceTierId number

- (Required) Unique identifier of the resource tier.

version string

The bundle version

warnings string[]

The list of warnings returned by EdgeWorker validation

edgeworker_id int

The unique identifier of the EdgeWorker

group_id int

- (Required) Identifies a group to assign to the EdgeWorker ID.

local_bundle str

- (Optional) The path to the EdgeWorkers code bundle.

local_bundle_hash str

The local bundle hash for the EdgeWorker

name str

- (Required) The name of the EdgeWorker ID.

resource_tier_id int

- (Required) Unique identifier of the resource tier.

version str

The bundle version

warnings Sequence[str]

The list of warnings returned by EdgeWorker validation

edgeworkerId Number

The unique identifier of the EdgeWorker

groupId Number

- (Required) Identifies a group to assign to the EdgeWorker ID.

localBundle String

- (Optional) The path to the EdgeWorkers code bundle.

localBundleHash String

The local bundle hash for the EdgeWorker

name String

- (Required) The name of the EdgeWorker ID.

resourceTierId Number

- (Required) Unique identifier of the resource tier.

version String

The bundle version

warnings List<String>

The list of warnings returned by EdgeWorker validation

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.