AppSecConfigurationRename

The akamai.AppSecConfigurationRename resource allows you to rename an existing security configuration.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configurationAppSecConfiguration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        var configurationAppSecConfigurationRename = new Akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename", new Akamai.AppSecConfigurationRenameArgs
        {
            ConfigId = configurationAppSecConfiguration.Apply(configurationAppSecConfiguration => configurationAppSecConfiguration.ConfigId),
            Description = @var.Description,
        });
    }

}
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.Security_configuration
		configurationAppSecConfiguration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecConfigurationRename(ctx, "configurationAppSecConfigurationRename", &akamai.AppSecConfigurationRenameArgs{
			ConfigId:    pulumi.Int(configurationAppSecConfiguration.ConfigId),
			Description: pulumi.Any(_var.Description),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration_app_sec_configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
configuration_app_sec_configuration_rename = akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename",
    config_id=configuration_app_sec_configuration.config_id,
    description=var["description"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configurationAppSecConfiguration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const configurationAppSecConfigurationRename = new akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename", {
    configId: configurationAppSecConfiguration.then(configurationAppSecConfiguration => configurationAppSecConfiguration.configId),
    description: _var.description,
});

Create a AppSecConfigurationRename Resource

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

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

ConfigId int
The ID of the security configuration to be renamed.
Description string
The description to be applied to the configuration.
Name string
The new name to be given to the configuration.
ConfigId int
The ID of the security configuration to be renamed.
Description string
The description to be applied to the configuration.
Name string
The new name to be given to the configuration.
configId number
The ID of the security configuration to be renamed.
description string
The description to be applied to the configuration.
name string
The new name to be given to the configuration.
config_id int
The ID of the security configuration to be renamed.
description str
The description to be applied to the configuration.
name str
The new name to be given to the configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the AppSecConfigurationRename 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 AppSecConfigurationRename Resource

Get an existing AppSecConfigurationRename 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?: AppSecConfigurationRenameState, opts?: CustomResourceOptions): AppSecConfigurationRename
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        description: Optional[str] = None,
        name: Optional[str] = None) -> AppSecConfigurationRename
func GetAppSecConfigurationRename(ctx *Context, name string, id IDInput, state *AppSecConfigurationRenameState, opts ...ResourceOption) (*AppSecConfigurationRename, error)
public static AppSecConfigurationRename Get(string name, Input<string> id, AppSecConfigurationRenameState? 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:

ConfigId int
The ID of the security configuration to be renamed.
Description string
The description to be applied to the configuration.
Name string
The new name to be given to the configuration.
ConfigId int
The ID of the security configuration to be renamed.
Description string
The description to be applied to the configuration.
Name string
The new name to be given to the configuration.
configId number
The ID of the security configuration to be renamed.
description string
The description to be applied to the configuration.
name string
The new name to be given to the configuration.
config_id int
The ID of the security configuration to be renamed.
description str
The description to be applied to the configuration.
name str
The new name to be given to the configuration.

Package Details

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