AppSecVersionNodes

Use the akamai.AppSecVersionNodes resource to update the version notes for a configuration.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        // USE CASE: user wants to update the version notes of the latest version
        var versionNotesAppSecVersionNodes = new Akamai.AppSecVersionNodes("versionNotesAppSecVersionNodes", new Akamai.AppSecVersionNodesArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            VersionNotes = @var.Version_notes,
        });
        this.VersionNotes = versionNotesAppSecVersionNodes.OutputText;
    }

    [Output("versionNotes")]
    public Output<string> VersionNotes { get; set; }
}
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
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		versionNotesAppSecVersionNodes, err := akamai.NewAppSecVersionNodes(ctx, "versionNotesAppSecVersionNodes", &akamai.AppSecVersionNodesArgs{
			ConfigId:     pulumi.Int(configuration.ConfigId),
			VersionNotes: pulumi.Any(_var.Version_notes),
		})
		if err != nil {
			return err
		}
		ctx.Export("versionNotes", versionNotesAppSecVersionNodes.OutputText)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
# USE CASE: user wants to update the version notes of the latest version
version_notes_app_sec_version_nodes = akamai.AppSecVersionNodes("versionNotesAppSecVersionNodes",
    config_id=configuration.config_id,
    version_notes=var["version_notes"])
pulumi.export("versionNotes", version_notes_app_sec_version_nodes.output_text)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
// USE CASE: user wants to update the version notes of the latest version
const versionNotesAppSecVersionNodes = new akamai.AppSecVersionNodes("versionNotesAppSecVersionNodes", {
    configId: configuration.then(configuration => configuration.configId),
    versionNotes: _var.version_notes,
});
export const versionNotes = versionNotesAppSecVersionNodes.outputText;

Create a AppSecVersionNodes Resource

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

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

ConfigId int
The configuration ID to use.
VersionNotes string
A string containing the version notes to be used.
ConfigId int
The configuration ID to use.
VersionNotes string
A string containing the version notes to be used.
configId number
The configuration ID to use.
versionNotes string
A string containing the version notes to be used.
config_id int
The configuration ID to use.
version_notes str
A string containing the version notes to be used.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the updated version notes.
Id string
The provider-assigned unique ID for this managed resource.
OutputText string
A tabular display showing the updated version notes.
id string
The provider-assigned unique ID for this managed resource.
outputText string
A tabular display showing the updated version notes.
id str
The provider-assigned unique ID for this managed resource.
output_text str
A tabular display showing the updated version notes.

Look up an Existing AppSecVersionNodes Resource

Get an existing AppSecVersionNodes 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?: AppSecVersionNodesState, opts?: CustomResourceOptions): AppSecVersionNodes
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        output_text: Optional[str] = None,
        version_notes: Optional[str] = None) -> AppSecVersionNodes
func GetAppSecVersionNodes(ctx *Context, name string, id IDInput, state *AppSecVersionNodesState, opts ...ResourceOption) (*AppSecVersionNodes, error)
public static AppSecVersionNodes Get(string name, Input<string> id, AppSecVersionNodesState? 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 configuration ID to use.
OutputText string
A tabular display showing the updated version notes.
VersionNotes string
A string containing the version notes to be used.
ConfigId int
The configuration ID to use.
OutputText string
A tabular display showing the updated version notes.
VersionNotes string
A string containing the version notes to be used.
configId number
The configuration ID to use.
outputText string
A tabular display showing the updated version notes.
versionNotes string
A string containing the version notes to be used.
config_id int
The configuration ID to use.
output_text str
A tabular display showing the updated version notes.
version_notes str
A string containing the version notes to be used.

Package Details

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