Akamai

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

AppSecVersionNodes

Scopes: Security configuration

Updates the version notes for a security configuration.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/version-notes

Output Options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • output_text. Tabular report showing the updated version notes.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var versionNotesAppSecVersionNodes = new Akamai.AppSecVersionNodes("versionNotesAppSecVersionNodes", new Akamai.AppSecVersionNodesArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            VersionNotes = "This version enables reputation profiles.",
        });
        this.VersionNotes = versionNotesAppSecVersionNodes.OutputText;
    }

    [Output("versionNotes")]
    public Output<string> VersionNotes { get; set; }
}
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 {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		versionNotesAppSecVersionNodes, err := akamai.NewAppSecVersionNodes(ctx, "versionNotesAppSecVersionNodes", &akamai.AppSecVersionNodesArgs{
			ConfigId:     pulumi.Int(configuration.ConfigId),
			VersionNotes: pulumi.String("This version enables reputation profiles."),
		})
		if err != nil {
			return err
		}
		ctx.Export("versionNotes", versionNotesAppSecVersionNodes.OutputText)
		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.AppSecVersionNodes;
import com.pulumi.akamai.AppSecVersionNodesArgs;
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 configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
            .name("Documentation")
            .build());

        var versionNotesAppSecVersionNodes = new AppSecVersionNodes("versionNotesAppSecVersionNodes", AppSecVersionNodesArgs.builder()        
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .versionNotes("This version enables reputation profiles.")
            .build());

        ctx.export("versionNotes", versionNotesAppSecVersionNodes.outputText());
    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
version_notes_app_sec_version_nodes = akamai.AppSecVersionNodes("versionNotesAppSecVersionNodes",
    config_id=configuration.config_id,
    version_notes="This version enables reputation profiles.")
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: "Documentation",
});
const versionNotesAppSecVersionNodes = new akamai.AppSecVersionNodes("versionNotesAppSecVersionNodes", {
    configId: configuration.then(configuration => configuration.configId),
    versionNotes: "This version enables reputation profiles.",
});
export const versionNotes = versionNotesAppSecVersionNodes.outputText;
resources:
  versionNotesAppSecVersionNodes:
    type: akamai:AppSecVersionNodes
    properties:
      configId: ${configuration.configId}
      versionNotes: This version enables reputation profiles.
variables:
  configuration: # USE CASE: User wants to update the version notes for the latest version of a security configuration.
    Fn::Invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation
outputs:
  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)
public AppSecVersionNodes(String name, AppSecVersionNodesArgs args)
public AppSecVersionNodes(String name, AppSecVersionNodesArgs args, CustomResourceOptions options)
type: akamai:AppSecVersionNodes
properties: # The arguments to resource properties.
options: # 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.
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.
name String
The unique name of the resource.
args AppSecVersionNodesArgs
The arguments to resource properties.
options 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

. Unique identifier of the security configuration whose version notes are being modified.

VersionNotes string

. Brief description of the security configuration version.

ConfigId int

. Unique identifier of the security configuration whose version notes are being modified.

VersionNotes string

. Brief description of the security configuration version.

configId Integer

. Unique identifier of the security configuration whose version notes are being modified.

versionNotes String

. Brief description of the security configuration version.

configId number

. Unique identifier of the security configuration whose version notes are being modified.

versionNotes string

. Brief description of the security configuration version.

config_id int

. Unique identifier of the security configuration whose version notes are being modified.

version_notes str

. Brief description of the security configuration version.

configId Number

. Unique identifier of the security configuration whose version notes are being modified.

versionNotes String

. Brief description of the security configuration version.

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

Text Export representation

Id string

The provider-assigned unique ID for this managed resource.

OutputText string

Text Export representation

id String

The provider-assigned unique ID for this managed resource.

outputText String

Text Export representation

id string

The provider-assigned unique ID for this managed resource.

outputText string

Text Export representation

id str

The provider-assigned unique ID for this managed resource.

output_text str

Text Export representation

id String

The provider-assigned unique ID for this managed resource.

outputText String

Text Export representation

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)
public static AppSecVersionNodes get(String name, Output<String> id, AppSecVersionNodesState 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 configuration whose version notes are being modified.

OutputText string

Text Export representation

VersionNotes string

. Brief description of the security configuration version.

ConfigId int

. Unique identifier of the security configuration whose version notes are being modified.

OutputText string

Text Export representation

VersionNotes string

. Brief description of the security configuration version.

configId Integer

. Unique identifier of the security configuration whose version notes are being modified.

outputText String

Text Export representation

versionNotes String

. Brief description of the security configuration version.

configId number

. Unique identifier of the security configuration whose version notes are being modified.

outputText string

Text Export representation

versionNotes string

. Brief description of the security configuration version.

config_id int

. Unique identifier of the security configuration whose version notes are being modified.

output_text str

Text Export representation

version_notes str

. Brief description of the security configuration version.

configId Number

. Unique identifier of the security configuration whose version notes are being modified.

outputText String

Text Export representation

versionNotes String

. Brief description of the security configuration version.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.