AppSecMatchTarget

The akamai.AppSecMatchTarget resource allows you to create or modify a match target associated with a given security configuration version.

Example Usage

using System.IO;
using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Akamai Tools",
        }));
        var matchTarget = new Akamai.AppSecMatchTarget("matchTarget", new Akamai.AppSecMatchTargetArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            Version = configuration.Apply(configuration => configuration.LatestVersion),
            Json = File.ReadAllText($"{path.Module}/match_targets.json"),
        });
    }

}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Akamai Tools")
match_target = akamai.AppSecMatchTarget("matchTarget",
    config_id=configuration.config_id,
    version=configuration.latest_version,
    json=(lambda path: open(path).read())(f"{path['module']}/match_targets.json"))
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
import * from "fs";

const configuration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
const matchTarget = new akamai.AppSecMatchTarget("matchTarget", {
    configId: configuration.then(configuration => configuration.configId),
    version: configuration.then(configuration => configuration.latestVersion),
    json: fs.readFileSync(`${path.module}/match_targets.json`),
});

Create a AppSecMatchTarget Resource

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

AppSecMatchTarget Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The AppSecMatchTarget resource accepts the following input properties:

ConfigId int
The ID of the security configuration to use.
Json string
The name of a JSON file containing one or more match target definitions (format).
Version int
The version number of the security configuration to use.
ConfigId int
The ID of the security configuration to use.
Json string
The name of a JSON file containing one or more match target definitions (format).
Version int
The version number of the security configuration to use.
configId number
The ID of the security configuration to use.
json string
The name of a JSON file containing one or more match target definitions (format).
version number
The version number of the security configuration to use.
config_id int
The ID of the security configuration to use.
json str
The name of a JSON file containing one or more match target definitions (format).
version int
The version number of the security configuration to use.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
MatchTargetId int
The ID of the match target.
Id string
The provider-assigned unique ID for this managed resource.
MatchTargetId int
The ID of the match target.
id string
The provider-assigned unique ID for this managed resource.
matchTargetId number
The ID of the match target.
id str
The provider-assigned unique ID for this managed resource.
match_target_id int
The ID of the match target.

Look up an Existing AppSecMatchTarget Resource

Get an existing AppSecMatchTarget 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?: AppSecMatchTargetState, opts?: CustomResourceOptions): AppSecMatchTarget
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        json: Optional[str] = None,
        match_target_id: Optional[int] = None,
        version: Optional[int] = None) -> AppSecMatchTarget
func GetAppSecMatchTarget(ctx *Context, name string, id IDInput, state *AppSecMatchTargetState, opts ...ResourceOption) (*AppSecMatchTarget, error)
public static AppSecMatchTarget Get(string name, Input<string> id, AppSecMatchTargetState? 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 use.
Json string
The name of a JSON file containing one or more match target definitions (format).
MatchTargetId int
The ID of the match target.
Version int
The version number of the security configuration to use.
ConfigId int
The ID of the security configuration to use.
Json string
The name of a JSON file containing one or more match target definitions (format).
MatchTargetId int
The ID of the match target.
Version int
The version number of the security configuration to use.
configId number
The ID of the security configuration to use.
json string
The name of a JSON file containing one or more match target definitions (format).
matchTargetId number
The ID of the match target.
version number
The version number of the security configuration to use.
config_id int
The ID of the security configuration to use.
json str
The name of a JSON file containing one or more match target definitions (format).
match_target_id int
The ID of the match target.
version int
The version number of the security configuration to use.

Package Details

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