Akamai

Pulumi Official
Package maintained by Pulumi
v2.9.0 published on Wednesday, Apr 6, 2022 by Pulumi

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 {
		networkListsFilter, err := akamai.GetNetworkLists(ctx, &GetNetworkListsArgs{
			Name: pulumi.StringRef(_var.Network_list),
		}, 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
	})
}

Coming soon!

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"],
});

Coming soon!

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)
public NetworkListActivations(String name, NetworkListActivationsArgs args)
public NetworkListActivations(String name, NetworkListActivationsArgs args, CustomResourceOptions options)
type: akamai:NetworkListActivations
properties: # The arguments to resource properties.
options: # 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.
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.
name String
The unique name of the resource.
args NetworkListActivationsArgs
The arguments to resource properties.
options 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

Deprecated:

The setting "activate" has been deprecated.

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

Deprecated:

The setting "activate" has been deprecated.

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 List

A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.

activate Boolean

Deprecated:

The setting "activate" has been deprecated.

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

Deprecated:

The setting "activate" has been deprecated.

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

Deprecated:

The setting "activate" has been deprecated.

network str

The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.

notes str

A comment describing the activation.

networkListId String

The ID of the network list to be activated

notificationEmails List

A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.

activate Boolean

Deprecated:

The setting "activate" has been deprecated.

network String

The network to be used, either STAGING or PRODUCTION. If not supplied, defaults to STAGING.

notes String

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 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.

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.

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)
public static NetworkListActivations get(String name, Output<String> id, NetworkListActivationsState 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:
Activate bool

Deprecated:

The setting "activate" has been deprecated.

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

Deprecated:

The setting "activate" has been deprecated.

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

Deprecated:

The setting "activate" has been deprecated.

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

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

Deprecated:

The setting "activate" has been deprecated.

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

Deprecated:

The setting "activate" has been deprecated.

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.

activate Boolean

Deprecated:

The setting "activate" has been deprecated.

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

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.

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.