Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

AppSecConfigurationRename

Scopes: Security configuration

Renames an existing security configuration. Note that you can change only the configuration name. You can’t modify the ID assigned to a security configuration.

Related API Endpoint: /appsec/v1/configs/{configId}

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configurationAppSecConfiguration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var configurationAppSecConfigurationRename = new Akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename", new Akamai.AppSecConfigurationRenameArgs
        {
            ConfigId = configurationAppSecConfiguration.Apply(configurationAppSecConfiguration => configurationAppSecConfiguration.ConfigId),
            Description = "This configuration is by both the documentation team and the training team.",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		configurationAppSecConfiguration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecConfigurationRename(ctx, "configurationAppSecConfigurationRename", &akamai.AppSecConfigurationRenameArgs{
			ConfigId:    pulumi.Int(configurationAppSecConfiguration.ConfigId),
			Description: pulumi.String("This configuration is by both the documentation team and the training team."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.AppSecConfigurationRename;
import com.pulumi.akamai.AppSecConfigurationRenameArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var configurationAppSecConfiguration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
            .name("Documentation")
            .build());

        var configurationAppSecConfigurationRename = new AppSecConfigurationRename("configurationAppSecConfigurationRename", AppSecConfigurationRenameArgs.builder()        
            .configId(configurationAppSecConfiguration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .description("This configuration is by both the documentation team and the training team.")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

configuration_app_sec_configuration = akamai.get_app_sec_configuration(name="Documentation")
configuration_app_sec_configuration_rename = akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename",
    config_id=configuration_app_sec_configuration.config_id,
    description="This configuration is by both the documentation team and the training team.")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configurationAppSecConfiguration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const configurationAppSecConfigurationRename = new akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename", {
    configId: configurationAppSecConfiguration.then(configurationAppSecConfiguration => configurationAppSecConfiguration.configId),
    description: "This configuration is by both the documentation team and the training team.",
});
resources:
  configurationAppSecConfigurationRename:
    type: akamai:AppSecConfigurationRename
    properties:
      configId: ${configurationAppSecConfiguration.configId}
      description: This configuration is by both the documentation team and the training team.
variables:
  configurationAppSecConfiguration:
    Fn::Invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation

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)
public AppSecConfigurationRename(String name, AppSecConfigurationRenameArgs args)
public AppSecConfigurationRename(String name, AppSecConfigurationRenameArgs args, CustomResourceOptions options)
type: akamai:AppSecConfigurationRename
properties: # The arguments to resource properties.
options: # 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.
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.
name String
The unique name of the resource.
args AppSecConfigurationRenameArgs
The arguments to resource properties.
options 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

. Unique identifier of the security configurating being renamed.

Description string

. Brief description of the security configuration.

Name string

. New name for the security configuration.

ConfigId int

. Unique identifier of the security configurating being renamed.

Description string

. Brief description of the security configuration.

Name string

. New name for the security configuration.

configId Integer

. Unique identifier of the security configurating being renamed.

description String

. Brief description of the security configuration.

name String

. New name for the security configuration.

configId number

. Unique identifier of the security configurating being renamed.

description string

. Brief description of the security configuration.

name string

. New name for the security configuration.

config_id int

. Unique identifier of the security configurating being renamed.

description str

. Brief description of the security configuration.

name str

. New name for the security configuration.

configId Number

. Unique identifier of the security configurating being renamed.

description String

. Brief description of the security configuration.

name String

. New name for the security 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 string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

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)
public static AppSecConfigurationRename get(String name, Output<String> id, AppSecConfigurationRenameState 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.
The following state arguments are supported:
ConfigId int

. Unique identifier of the security configurating being renamed.

Description string

. Brief description of the security configuration.

Name string

. New name for the security configuration.

ConfigId int

. Unique identifier of the security configurating being renamed.

Description string

. Brief description of the security configuration.

Name string

. New name for the security configuration.

configId Integer

. Unique identifier of the security configurating being renamed.

description String

. Brief description of the security configuration.

name String

. New name for the security configuration.

configId number

. Unique identifier of the security configurating being renamed.

description string

. Brief description of the security configuration.

name string

. New name for the security configuration.

config_id int

. Unique identifier of the security configurating being renamed.

description str

. Brief description of the security configuration.

name str

. New name for the security configuration.

configId Number

. Unique identifier of the security configurating being renamed.

description String

. Brief description of the security configuration.

name String

. New name for the security 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.