NetworkListSubscription

Use the akamai.NetworkListSubscription resource to specify a set of email addresses to be notified of changes to any of a set of network lists.

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 subscribe = new Akamai.NetworkListSubscription("subscribe", new Akamai.NetworkListSubscriptionArgs
        {
            NetworkLists = networkListsFilter.Apply(networkListsFilter => networkListsFilter.Lists),
            Recipients = 
            {
                "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.NewNetworkListSubscription(ctx, "subscribe", &akamai.NetworkListSubscriptionArgs{
			NetworkLists: interface{}(networkListsFilter.Lists),
			Recipients: 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"])
subscribe = akamai.NetworkListSubscription("subscribe",
    network_lists=network_lists_filter.lists,
    recipients=["user@example.com"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const networkListsFilter = akamai.getNetworkLists({
    name: _var.network_list,
});
const subscribe = new akamai.NetworkListSubscription("subscribe", {
    networkLists: networkListsFilter.then(networkListsFilter => networkListsFilter.lists),
    recipients: ["user@example.com"],
});

Create a NetworkListSubscription Resource

new NetworkListSubscription(name: string, args: NetworkListSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def NetworkListSubscription(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            network_lists: Optional[Sequence[str]] = None,
                            recipients: Optional[Sequence[str]] = None)
@overload
def NetworkListSubscription(resource_name: str,
                            args: NetworkListSubscriptionArgs,
                            opts: Optional[ResourceOptions] = None)
func NewNetworkListSubscription(ctx *Context, name string, args NetworkListSubscriptionArgs, opts ...ResourceOption) (*NetworkListSubscription, error)
public NetworkListSubscription(string name, NetworkListSubscriptionArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args NetworkListSubscriptionArgs
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 NetworkListSubscriptionArgs
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 NetworkListSubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkListSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

NetworkLists List<string>
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
Recipients List<string>
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.
NetworkLists []string
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
Recipients []string
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.
networkLists string[]
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
recipients string[]
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.
network_lists Sequence[str]
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
recipients Sequence[str]
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.

Outputs

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

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

Look up an Existing NetworkListSubscription Resource

Get an existing NetworkListSubscription 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?: NetworkListSubscriptionState, opts?: CustomResourceOptions): NetworkListSubscription
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        network_lists: Optional[Sequence[str]] = None,
        recipients: Optional[Sequence[str]] = None) -> NetworkListSubscription
func GetNetworkListSubscription(ctx *Context, name string, id IDInput, state *NetworkListSubscriptionState, opts ...ResourceOption) (*NetworkListSubscription, error)
public static NetworkListSubscription Get(string name, Input<string> id, NetworkListSubscriptionState? 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:

NetworkLists List<string>
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
Recipients List<string>
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.
NetworkLists []string
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
Recipients []string
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.
networkLists string[]
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
recipients string[]
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.
network_lists Sequence[str]
A list containing one or more IDs of the network lists to which the indicated email addresses should be subscribed.
recipients Sequence[str]
A bracketed, comma-separated list of email addresses that will be notified of changes to any of the specified network lists.

Package Details

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