Akamai
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:
- Network
List stringId The ID of the network list to be activated
- Notification
Emails List<string> A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
- Activate bool
The setting "activate" has been deprecated.
- Network string
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- Notes string
A comment describing the activation.
- Network
List stringId The ID of the network list to be activated
- Notification
Emails []string A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
- Activate bool
The setting "activate" has been deprecated.
- Network string
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- Notes string
A comment describing the activation.
- network
List StringId The ID of the network list to be activated
- notification
Emails List A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
- activate Boolean
The setting "activate" has been deprecated.
- network String
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- notes String
A comment describing the activation.
- network
List stringId The ID of the network list to be activated
- notification
Emails string[] A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
- activate boolean
The setting "activate" has been deprecated.
- network string
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- notes string
A comment describing the activation.
- network_
list_ strid 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
The setting "activate" has been deprecated.
- network str
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- notes str
A comment describing the activation.
- network
List StringId The ID of the network list to be activated
- notification
Emails List A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
- activate Boolean
The setting "activate" has been deprecated.
- network String
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- 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:
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.
- Activate bool
The setting "activate" has been deprecated.
- Network string
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- Network
List stringId The ID of the network list to be activated
- Notes string
A comment describing the activation.
- Notification
Emails 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
The setting "activate" has been deprecated.
- Network string
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- Network
List stringId The ID of the network list to be activated
- Notes string
A comment describing the activation.
- Notification
Emails []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
The setting "activate" has been deprecated.
- network String
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- network
List StringId The ID of the network list to be activated
- notes String
A comment describing the activation.
- notification
Emails 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
The setting "activate" has been deprecated.
- network string
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- network
List stringId The ID of the network list to be activated
- notes string
A comment describing the activation.
- notification
Emails 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
The setting "activate" has been deprecated.
- network str
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- network_
list_ strid 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
The setting "activate" has been deprecated.
- network String
The network to be used, either
STAGING
orPRODUCTION
. If not supplied, defaults toSTAGING
.- network
List StringId The ID of the network list to be activated
- notes String
A comment describing the activation.
- notification
Emails 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.