akamai.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
Basic usage
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var configurationAppSecConfiguration = Akamai.GetAppSecConfiguration.Invoke(new()
{
Name = "Documentation",
});
var configurationAppSecConfigurationRename = new Akamai.AppSecConfigurationRename("configurationAppSecConfigurationRename", new()
{
ConfigId = configurationAppSecConfiguration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
Description = "This configuration is by both the documentation team and the training team.",
});
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
configurationAppSecConfiguration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
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 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:
- Config
Id int . Unique identifier of the security configuring 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 configuring being renamed.
- Description string
. Brief description of the security configuration.
- Name string
. New name for the security configuration.
- config
Id Integer . Unique identifier of the security configuring being renamed.
- description String
. Brief description of the security configuration.
- name String
. New name for the security configuration.
- config
Id number . Unique identifier of the security configuring 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 configuring being renamed.
- description str
. Brief description of the security configuration.
- name str
. New name for the security configuration.
- config
Id Number . Unique identifier of the security configuring 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 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.
- Config
Id int . Unique identifier of the security configuring 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 configuring being renamed.
- Description string
. Brief description of the security configuration.
- Name string
. New name for the security configuration.
- config
Id Integer . Unique identifier of the security configuring being renamed.
- description String
. Brief description of the security configuration.
- name String
. New name for the security configuration.
- config
Id number . Unique identifier of the security configuring 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 configuring being renamed.
- description str
. Brief description of the security configuration.
- name str
. New name for the security configuration.
- config
Id Number . Unique identifier of the security configuring being renamed.
- description String
. Brief description of the security configuration.
- name String
. New name for the security configuration.
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.