akamai.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 System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var test = new Akamai.EdgeWorkersActivation("test", new()
{
EdgeworkerId = 1234,
Network = "STAGING",
Version = "test1",
});
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/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:
- Edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. 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 string
The network you want to activate the policy version on. For the Staging network, specify either
STAGING
,STAG
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- Version string
The EdgeWorker version you want to activate.
- edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- version String
The EdgeWorker version you want to activate.
- edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- version str
The EdgeWorker version you want to activate.
- edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. 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:
- Activation
Id int (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 string
The provider-assigned unique ID for this managed resource.
- activation
Id Integer (Required) Unique identifier of the activation.
- id String
The provider-assigned unique ID for this managed resource.
- activation
Id 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.
- activation
Id 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.
- Activation
Id int (Required) Unique identifier of the activation.
- Edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. 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 string
The network you want to activate the policy version on. For the Staging network, specify either
STAGING
,STAG
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- Version string
The EdgeWorker version you want to activate.
- activation
Id Integer (Required) Unique identifier of the activation.
- edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- version String
The EdgeWorker version you want to activate.
- activation
Id number (Required) Unique identifier of the activation.
- edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- version str
The EdgeWorker version you want to activate.
- activation
Id Number (Required) Unique identifier of the activation.
- edgeworker
Id 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
, orS
. For the Production network, specify eitherPRODUCTION
,PROD
, orP
. All values are case insensitive.- version String
The EdgeWorker version you want to activate.
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.