Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

PropertyActivation

The akamai.properties.PropertyActivation provides the resource for activating a property in the appropriate environment. Once you are satisfied with any version of a property, an activation deploys it, either to the Akamai staging or production network. You activate a specific version, but the same version can be activated separately more than once.

Example Usage

Basic usage:

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Akamai.Properties.PropertyActivation("example", new Akamai.Properties.PropertyActivationArgs
        {
            Activate = @var.Akamai_property_activate,
            Contacts = 
            {
                "user@example.org",
            },
            Network = "STAGING",
            Property = akamai_property.Example.Id,
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := properties.NewPropertyActivation(ctx, "example", &properties.PropertyActivationArgs{
            Activate: pulumi.Any(_var.Akamai_property_activate),
            Contacts: pulumi.StringArray{
                pulumi.String("user@example.org"),
            },
            Network:  pulumi.String("STAGING"),
            Property: pulumi.Any(akamai_property.Example.Id),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_akamai as akamai

example = akamai.properties.PropertyActivation("example",
    activate=var["akamai_property_activate"],
    contacts=["user@example.org"],
    network="STAGING",
    property=akamai_property["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = new akamai.properties.PropertyActivation("example", {
    activate: (var_akamai_property_activate === "true"),
    contacts: ["user@example.org"],
    network: "STAGING",
    property: akamai_property_example.id,
});

Create a PropertyActivation Resource

def PropertyActivation(resource_name, opts=None, activate=None, contacts=None, network=None, property=None, version=None, __props__=None)
name string
The unique name of the resource.
args PropertyActivationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PropertyActivationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PropertyActivationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

PropertyActivation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The PropertyActivation resource accepts the following input properties:

Contacts List<string>

— (Required) One or more email addresses to inform about activation changes.

Property string

— (Required) The property ID.

Activate bool

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

Network string

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

Version int

— (Optional) The version to activate. When unset it will activate the latest version of the property.

Contacts []string

— (Required) One or more email addresses to inform about activation changes.

Property string

— (Required) The property ID.

Activate bool

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

Network string

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

Version int

— (Optional) The version to activate. When unset it will activate the latest version of the property.

contacts string[]

— (Required) One or more email addresses to inform about activation changes.

property string

— (Required) The property ID.

activate boolean

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

network string

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

version number

— (Optional) The version to activate. When unset it will activate the latest version of the property.

contacts List[str]

— (Required) One or more email addresses to inform about activation changes.

property str

— (Required) The property ID.

activate bool

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

network str

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

version float

— (Optional) The version to activate. When unset it will activate the latest version of the property.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status string
Id string
The provider-assigned unique ID for this managed resource.
Status string
id string
The provider-assigned unique ID for this managed resource.
status string
id str
The provider-assigned unique ID for this managed resource.
status str

Look up an Existing PropertyActivation Resource

Get an existing PropertyActivation 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?: PropertyActivationState, opts?: CustomResourceOptions): PropertyActivation
static get(resource_name, id, opts=None, activate=None, contacts=None, network=None, property=None, status=None, version=None, __props__=None)
func GetPropertyActivation(ctx *Context, name string, id IDInput, state *PropertyActivationState, opts ...ResourceOption) (*PropertyActivation, error)
public static PropertyActivation Get(string name, Input<string> id, PropertyActivationState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Activate bool

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

Contacts List<string>

— (Required) One or more email addresses to inform about activation changes.

Network string

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

Property string

— (Required) The property ID.

Status string
Version int

— (Optional) The version to activate. When unset it will activate the latest version of the property.

Activate bool

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

Contacts []string

— (Required) One or more email addresses to inform about activation changes.

Network string

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

Property string

— (Required) The property ID.

Status string
Version int

— (Optional) The version to activate. When unset it will activate the latest version of the property.

activate boolean

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

contacts string[]

— (Required) One or more email addresses to inform about activation changes.

network string

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

property string

— (Required) The property ID.

status string
version number

— (Optional) The version to activate. When unset it will activate the latest version of the property.

activate bool

— (Optional, boolean) Whether to activate the property on the network. (Default: true).

contacts List[str]

— (Required) One or more email addresses to inform about activation changes.

network str

— (Optional) Akamai network to activate on. Allowed values staging or production (Default: staging).

property str

— (Required) The property ID.

status str
version float

— (Optional) The version to activate. When unset it will activate the latest version of the property.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.