Akamai

v3.1.1 published on Tuesday, Nov 1, 2022 by Pulumi

EdgeWorkersActivation

Use the akamai.EdgeWorkersActivation resource to activate a specific EdgeWorker version. An activation deploys the version to either the Akamai staging or production network.

Before activating on production, activate on staging first. This way you can detect any problems in staging before your changes progress to production.

Example Usage

Basic usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var test = new Akamai.EdgeWorkersActivation("test", new Akamai.EdgeWorkersActivationArgs
        {
            EdgeworkerId = 1234,
            Network = "STAGING",
            Version = "test1",
        });
    }

}
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.NewEdgeWorkersActivation(ctx, "test", &akamai.EdgeWorkersActivationArgs{
			EdgeworkerId: pulumi.Int(1234),
			Network:      pulumi.String("STAGING"),
			Version:      pulumi.String("test1"),
		})
		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.EdgeWorkersActivation;
import com.pulumi.akamai.EdgeWorkersActivationArgs;
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 test = new EdgeWorkersActivation("test", EdgeWorkersActivationArgs.builder()        
            .edgeworkerId(1234)
            .network("STAGING")
            .version("test1")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

test = akamai.EdgeWorkersActivation("test",
    edgeworker_id=1234,
    network="STAGING",
    version="test1")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const test = new akamai.EdgeWorkersActivation("test", {
    edgeworkerId: 1234,
    network: "STAGING",
    version: "test1",
});
resources:
  test:
    type: akamai:EdgeWorkersActivation
    properties:
      edgeworkerId: 1234
      network: STAGING
      version: test1

Create EdgeWorkersActivation Resource

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

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

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

EdgeworkerId int

A unique identifier for the EdgeWorker ID you want to activate.

Network string

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

Version string

The EdgeWorker version you want to activate.

EdgeworkerId int

A unique identifier for the EdgeWorker ID you want to activate.

Network string

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

Version string

The EdgeWorker version you want to activate.

edgeworkerId Integer

A unique identifier for the EdgeWorker ID you want to activate.

network String

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version String

The EdgeWorker version you want to activate.

edgeworkerId number

A unique identifier for the EdgeWorker ID you want to activate.

network string

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version string

The EdgeWorker version you want to activate.

edgeworker_id int

A unique identifier for the EdgeWorker ID you want to activate.

network str

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version str

The EdgeWorker version you want to activate.

edgeworkerId Number

A unique identifier for the EdgeWorker ID you want to activate.

network String

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version String

The EdgeWorker version you want to activate.

Outputs

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

ActivationId int

(Required) Unique identifier of the activation.

Id string

The provider-assigned unique ID for this managed resource.

ActivationId int

(Required) Unique identifier of the activation.

Id string

The provider-assigned unique ID for this managed resource.

activationId Integer

(Required) Unique identifier of the activation.

id String

The provider-assigned unique ID for this managed resource.

activationId number

(Required) Unique identifier of the activation.

id string

The provider-assigned unique ID for this managed resource.

activation_id int

(Required) Unique identifier of the activation.

id str

The provider-assigned unique ID for this managed resource.

activationId Number

(Required) Unique identifier of the activation.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing EdgeWorkersActivation Resource

Get an existing EdgeWorkersActivation 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?: EdgeWorkersActivationState, opts?: CustomResourceOptions): EdgeWorkersActivation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        activation_id: Optional[int] = None,
        edgeworker_id: Optional[int] = None,
        network: Optional[str] = None,
        version: Optional[str] = None) -> EdgeWorkersActivation
func GetEdgeWorkersActivation(ctx *Context, name string, id IDInput, state *EdgeWorkersActivationState, opts ...ResourceOption) (*EdgeWorkersActivation, error)
public static EdgeWorkersActivation Get(string name, Input<string> id, EdgeWorkersActivationState? state, CustomResourceOptions? opts = null)
public static EdgeWorkersActivation get(String name, Output<String> id, EdgeWorkersActivationState 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:
ActivationId int

(Required) Unique identifier of the activation.

EdgeworkerId int

A unique identifier for the EdgeWorker ID you want to activate.

Network string

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

Version string

The EdgeWorker version you want to activate.

ActivationId int

(Required) Unique identifier of the activation.

EdgeworkerId int

A unique identifier for the EdgeWorker ID you want to activate.

Network string

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

Version string

The EdgeWorker version you want to activate.

activationId Integer

(Required) Unique identifier of the activation.

edgeworkerId Integer

A unique identifier for the EdgeWorker ID you want to activate.

network String

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version String

The EdgeWorker version you want to activate.

activationId number

(Required) Unique identifier of the activation.

edgeworkerId number

A unique identifier for the EdgeWorker ID you want to activate.

network string

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version string

The EdgeWorker version you want to activate.

activation_id int

(Required) Unique identifier of the activation.

edgeworker_id int

A unique identifier for the EdgeWorker ID you want to activate.

network str

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version str

The EdgeWorker version you want to activate.

activationId Number

(Required) Unique identifier of the activation.

edgeworkerId Number

A unique identifier for the EdgeWorker ID you want to activate.

network String

The network you want to activate the policy version on. For the Staging network, specify either STAGING, STAG, or S. For the Production network, specify either PRODUCTION, PROD, or P. All values are case insensitive.

version String

The EdgeWorker version you want to activate.

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.