All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.akamai.AppSecMalwarePolicyAction Maven / Gradle / Ivy

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.akamai;

import com.pulumi.akamai.AppSecMalwarePolicyActionArgs;
import com.pulumi.akamai.Utilities;
import com.pulumi.akamai.inputs.AppSecMalwarePolicyActionState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import javax.annotation.Nullable;

@ResourceType(type="akamai:index/appSecMalwarePolicyAction:AppSecMalwarePolicyAction")
public class AppSecMalwarePolicyAction extends com.pulumi.resources.CustomResource {
    /**
     * Action to be taken for requests scanned according to the malware policy
     * 
     */
    @Export(name="action", refs={String.class}, tree="[0]")
    private Output action;

    /**
     * @return Action to be taken for requests scanned according to the malware policy
     * 
     */
    public Output action() {
        return this.action;
    }
    /**
     * Unique identifier of the security configuration
     * 
     */
    @Export(name="configId", refs={Integer.class}, tree="[0]")
    private Output configId;

    /**
     * @return Unique identifier of the security configuration
     * 
     */
    public Output configId() {
        return this.configId;
    }
    /**
     * Unique identifier of the malware policy
     * 
     */
    @Export(name="malwarePolicyId", refs={Integer.class}, tree="[0]")
    private Output malwarePolicyId;

    /**
     * @return Unique identifier of the malware policy
     * 
     */
    public Output malwarePolicyId() {
        return this.malwarePolicyId;
    }
    /**
     * Unique identifier of the security policy
     * 
     */
    @Export(name="securityPolicyId", refs={String.class}, tree="[0]")
    private Output securityPolicyId;

    /**
     * @return Unique identifier of the security policy
     * 
     */
    public Output securityPolicyId() {
        return this.securityPolicyId;
    }
    /**
     * Action to be taken for requests not scanned according to the malware policy
     * 
     */
    @Export(name="unscannedAction", refs={String.class}, tree="[0]")
    private Output unscannedAction;

    /**
     * @return Action to be taken for requests not scanned according to the malware policy
     * 
     */
    public Output unscannedAction() {
        return this.unscannedAction;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public AppSecMalwarePolicyAction(java.lang.String name) {
        this(name, AppSecMalwarePolicyActionArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public AppSecMalwarePolicyAction(java.lang.String name, AppSecMalwarePolicyActionArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public AppSecMalwarePolicyAction(java.lang.String name, AppSecMalwarePolicyActionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("akamai:index/appSecMalwarePolicyAction:AppSecMalwarePolicyAction", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private AppSecMalwarePolicyAction(java.lang.String name, Output id, @Nullable AppSecMalwarePolicyActionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("akamai:index/appSecMalwarePolicyAction:AppSecMalwarePolicyAction", name, state, makeResourceOptions(options, id), false);
    }

    private static AppSecMalwarePolicyActionArgs makeArgs(AppSecMalwarePolicyActionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? AppSecMalwarePolicyActionArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static AppSecMalwarePolicyAction get(java.lang.String name, Output id, @Nullable AppSecMalwarePolicyActionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new AppSecMalwarePolicyAction(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy