NetworkListActivations

Use the akamai.NetworkListActivations resource to activate a network list in either the STAGING or PRODUCTION environment.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var networkListsFilter = Output.Create(Akamai.GetNetworkLists.InvokeAsync(new Akamai.GetNetworkListsArgs
        {
            Name = @var.Network_list,
        }));
        var activation = new Akamai.NetworkListActivations("activation", new Akamai.NetworkListActivationsArgs
        {
            NetworkListId = networkListsFilter.Apply(networkListsFilter => networkListsFilter.Lists?[0]),
            Network = "STAGING",
            Notes = "TEST Notes",
            NotificationEmails = 
            {
                "user@example.com",
            },
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := _var.Network_list
		networkListsFilter, err := akamai.GetNetworkLists(ctx, &GetNetworkListsArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewNetworkListActivations(ctx, "activation", &akamai.NetworkListActivationsArgs{
			NetworkListId: pulumi.String(networkListsFilter.Lists[0]),
			Network:       pulumi.String("STAGING"),
			Notes:         pulumi.String("TEST Notes"),
			NotificationEmails: pulumi.StringArray{
				pulumi.String("user@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

network_lists_filter = akamai.get_network_lists(name=var["network_list"])
activation = akamai.NetworkListActivations("activation",
    network_list_id=network_lists_filter.lists[0],
    network="STAGING",
    notes="TEST Notes",
    notification_emails=["user@example.com"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const networkListsFilter = akamai.getNetworkLists({
    name: _var.network_list,
});
const activation = new akamai.NetworkListActivations("activation", {
    networkListId: networkListsFilter.then(networkListsFilter => networkListsFilter.lists?[0]),
    network: "STAGING",
    notes: "TEST Notes",
    notificationEmails: ["user@example.com"],
});

Create a NetworkListActivations Resource

new NetworkListActivations(name: string, args: NetworkListActivationsArgs, opts?: CustomResourceOptions);
@overload
def NetworkListActivations(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           activate: Optional[bool] = None,
                           network: Optional[str] = None,
                           network_list_id: Optional[str] = None,
                           notes: Optional[str] = None,
                           notification_emails: Optional[Sequence[str]] = None)
@overload
def NetworkListActivations(resource_name: str,
                           args: NetworkListActivationsArgs,
                           opts: Optional[ResourceOptions] = None)
func NewNetworkListActivations(ctx *Context, name string, args NetworkListActivationsArgs, opts ...ResourceOption) (*NetworkListActivations, error)
public NetworkListActivations(string name, NetworkListActivationsArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args NetworkListActivationsArgs
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 NetworkListActivationsArgs
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 NetworkListActivationsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkListActivationsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

NetworkListId string
The ID of the network list to be activated
NotificationEmails List<string>
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Activate bool
Network string
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
Notes string
A comment describing the activation.
NetworkListId string
The ID of the network list to be activated
NotificationEmails []string
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Activate bool
Network string
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
Notes string
A comment describing the activation.
networkListId string
The ID of the network list to be activated
notificationEmails string[]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
activate boolean
network string
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
notes string
A comment describing the activation.
network_list_id str
The ID of the network list to be activated
notification_emails Sequence[str]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
activate bool
network str
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
notes str
A comment describing the activation.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status string
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.
id string
The provider-assigned unique ID for this managed resource.
status string
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.
id str
The provider-assigned unique ID for this managed resource.
status str
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.

Look up an Existing NetworkListActivations Resource

Get an existing NetworkListActivations 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?: NetworkListActivationsState, opts?: CustomResourceOptions): NetworkListActivations
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        activate: Optional[bool] = None,
        network: Optional[str] = None,
        network_list_id: Optional[str] = None,
        notes: Optional[str] = None,
        notification_emails: Optional[Sequence[str]] = None,
        status: Optional[str] = None) -> NetworkListActivations
func GetNetworkListActivations(ctx *Context, name string, id IDInput, state *NetworkListActivationsState, opts ...ResourceOption) (*NetworkListActivations, error)
public static NetworkListActivations Get(string name, Input<string> id, NetworkListActivationsState? 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
Network string
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
NetworkListId string
The ID of the network list to be activated
Notes string
A comment describing the activation.
NotificationEmails List<string>
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Status string
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.
Activate bool
Network string
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
NetworkListId string
The ID of the network list to be activated
Notes string
A comment describing the activation.
NotificationEmails []string
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Status string
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.
activate boolean
network string
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
networkListId string
The ID of the network list to be activated
notes string
A comment describing the activation.
notificationEmails string[]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
status string
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.
activate bool
network str
The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.
network_list_id str
The ID of the network list to be activated
notes str
A comment describing the activation.
notification_emails Sequence[str]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
status str
The string ACTIVATED if the activation was successful, or a string identifying the reason why the network list was not activated.

Package Details

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