AppSecReputationProfile

Use the akamai.AppSecReputationProfile resource to create or modify a reputation profile for a specific security configuration.

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 = @var.Security_configuration,
        }));
        // USE CASE: user wants to create a reputation profile for a given configuration and version, using a JSON definition
        var reputationProfile = new Akamai.AppSecReputationProfile("reputationProfile", new Akamai.AppSecReputationProfileArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            ReputationProfile = File.ReadAllText($"{path.Module}/reputation_profile.json"),
        });
        this.ReputationProfileId = akamai_appsec_reputation_profile.Reputation_profile_id;
    }

    [Output("reputationProfileId")]
    public Output<string> ReputationProfileId { get; set; }
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
# USE CASE: user wants to create a reputation profile for a given configuration and version, using a JSON definition
reputation_profile = akamai.AppSecReputationProfile("reputationProfile",
    config_id=configuration.config_id,
    reputation_profile=(lambda path: open(path).read())(f"{path['module']}/reputation_profile.json"))
pulumi.export("reputationProfileId", akamai_appsec_reputation_profile["reputation_profile_id"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
import * from "fs";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
// USE CASE: user wants to create a reputation profile for a given configuration and version, using a JSON definition
const reputationProfile = new akamai.AppSecReputationProfile("reputationProfile", {
    configId: configuration.then(configuration => configuration.configId),
    reputationProfile: fs.readFileSync(`${path.module}/reputation_profile.json`),
});
export const reputationProfileId = akamai_appsec_reputation_profile.reputation_profile_id;

Create a AppSecReputationProfile Resource

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

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

ConfigId int
The ID of the security configuration to use.
ReputationProfile string
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
ConfigId int
The ID of the security configuration to use.
ReputationProfile string
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
configId number
The ID of the security configuration to use.
reputationProfile string
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
config_id int
The ID of the security configuration to use.
reputation_profile str
The name of a file containing a JSON-formatted definition of the reputation profile. (format)

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
ReputationProfileId int
The ID of the newly created or modified reputation profile.
Id string
The provider-assigned unique ID for this managed resource.
ReputationProfileId int
The ID of the newly created or modified reputation profile.
id string
The provider-assigned unique ID for this managed resource.
reputationProfileId number
The ID of the newly created or modified reputation profile.
id str
The provider-assigned unique ID for this managed resource.
reputation_profile_id int
The ID of the newly created or modified reputation profile.

Look up an Existing AppSecReputationProfile Resource

Get an existing AppSecReputationProfile 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?: AppSecReputationProfileState, opts?: CustomResourceOptions): AppSecReputationProfile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        reputation_profile: Optional[str] = None,
        reputation_profile_id: Optional[int] = None) -> AppSecReputationProfile
func GetAppSecReputationProfile(ctx *Context, name string, id IDInput, state *AppSecReputationProfileState, opts ...ResourceOption) (*AppSecReputationProfile, error)
public static AppSecReputationProfile Get(string name, Input<string> id, AppSecReputationProfileState? 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.
ReputationProfile string
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
ReputationProfileId int
The ID of the newly created or modified reputation profile.
ConfigId int
The ID of the security configuration to use.
ReputationProfile string
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
ReputationProfileId int
The ID of the newly created or modified reputation profile.
configId number
The ID of the security configuration to use.
reputationProfile string
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
reputationProfileId number
The ID of the newly created or modified reputation profile.
config_id int
The ID of the security configuration to use.
reputation_profile str
The name of a file containing a JSON-formatted definition of the reputation profile. (format)
reputation_profile_id int
The ID of the newly created or modified reputation profile.

Package Details

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