AppSecActivations

The akamai.AppSecActivations resource allows you to activate or deactivate a given security configuration version.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Akamai Tools",
        }));
        var activation = new Akamai.AppSecActivations("activation", new Akamai.AppSecActivationsArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            Version = configuration.Apply(configuration => configuration.LatestVersion),
            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 := "Akamai Tools"
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecActivations(ctx, "activation", &akamai.AppSecActivationsArgs{
			ConfigId: pulumi.Int(configuration.ConfigId),
			Version:  pulumi.Int(configuration.LatestVersion),
			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

configuration = akamai.get_app_sec_configuration(name="Akamai Tools")
activation = akamai.AppSecActivations("activation",
    config_id=configuration.config_id,
    version=configuration.latest_version,
    network="STAGING",
    notes="TEST Notes",
    notification_emails=["user@example.com"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
const activation = new akamai.AppSecActivations("activation", {
    configId: configuration.then(configuration => configuration.configId),
    version: configuration.then(configuration => configuration.latestVersion),
    network: "STAGING",
    notes: "TEST Notes",
    notificationEmails: ["user@example.com"],
});

Create a AppSecActivations Resource

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

AppSecActivations Resource Properties

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

Inputs

The AppSecActivations resource accepts the following input properties:

ConfigId int
The ID of the security configuration to use.
NotificationEmails List<string>
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Version int
The version number of the security configuration to use.
Activate bool
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
Network string
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
Notes string
An optional text note describing this operation.
ConfigId int
The ID of the security configuration to use.
NotificationEmails []string
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Version int
The version number of the security configuration to use.
Activate bool
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
Network string
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
Notes string
An optional text note describing this operation.
configId number
The ID of the security configuration to use.
notificationEmails string[]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
version number
The version number of the security configuration to use.
activate boolean
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
network string
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
notes string
An optional text note describing this operation.
config_id int
The ID of the security configuration to use.
notification_emails Sequence[str]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
version int
The version number of the security configuration to use.
activate bool
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
network str
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
notes str
An optional text note describing this operation.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the operation. The following values are may be returned:
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the operation. The following values are may be returned:
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the operation. The following values are may be returned:
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the operation. The following values are may be returned:

Look up an Existing AppSecActivations Resource

Get an existing AppSecActivations 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?: AppSecActivationsState, opts?: CustomResourceOptions): AppSecActivations
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        activate: Optional[bool] = None,
        config_id: Optional[int] = None,
        network: Optional[str] = None,
        notes: Optional[str] = None,
        notification_emails: Optional[Sequence[str]] = None,
        status: Optional[str] = None,
        version: Optional[int] = None) -> AppSecActivations
func GetAppSecActivations(ctx *Context, name string, id IDInput, state *AppSecActivationsState, opts ...ResourceOption) (*AppSecActivations, error)
public static AppSecActivations Get(string name, Input<string> id, AppSecActivationsState? 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
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
ConfigId int
The ID of the security configuration to use.
Network string
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
Notes string
An optional text note describing this operation.
NotificationEmails List<string>
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Status string
The status of the operation. The following values are may be returned:
Version int
The version number of the security configuration to use.
Activate bool
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
ConfigId int
The ID of the security configuration to use.
Network string
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
Notes string
An optional text note describing this operation.
NotificationEmails []string
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
Status string
The status of the operation. The following values are may be returned:
Version int
The version number of the security configuration to use.
activate boolean
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
configId number
The ID of the security configuration to use.
network string
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
notes string
An optional text note describing this operation.
notificationEmails string[]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
status string
The status of the operation. The following values are may be returned:
version number
The version number of the security configuration to use.
activate bool
A boolean indicating whether to activate the specified configuration version. If not supplied, True is assumed.
config_id int
The ID of the security configuration to use.
network str
The network in which the security configuration should be activated. If supplied, must be either STAGING or PRODUCTION. If not supplied, STAGING will be assumed.
notes str
An optional text note describing this operation.
notification_emails Sequence[str]
A bracketed, comma-separated list of email addresses that will be notified when the operation is complete.
status str
The status of the operation. The following values are may be returned:
version int
The version number of the security configuration to use.

Package Details

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