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.GetAppSecConfiguration(ctx, &akamai.GetAppSecConfigurationArgs{
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:
Outputs
All input properties are implicitly available as output properties. Additionally, the AppSecActivations resource produces the following output properties:
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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamai
Terraform Provider.