getSubscribedRuleGroup

aws.waf.getSubscribedRuleGroup retrieves information about a Managed WAF Rule Group from AWS Marketplace (needs to be subscribed to first).

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.waf.WafFunctions;
import com.pulumi.aws.waf.inputs.GetSubscribedRuleGroupArgs;
import com.pulumi.aws.waf.WebAcl;
import com.pulumi.aws.waf.WebAclArgs;
import com.pulumi.aws.waf.inputs.WebAclRuleArgs;
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 byName = WafFunctions.getSubscribedRuleGroup(GetSubscribedRuleGroupArgs.builder()
.name("F5 Bot Detection Signatures For AWS WAF")
.build());
final var byMetricName = WafFunctions.getSubscribedRuleGroup(GetSubscribedRuleGroupArgs.builder()
.metricName("F5BotDetectionSignatures")
.build());
var acl = new WebAcl("acl", WebAclArgs.builder()
.rules(
WebAclRuleArgs.builder()
.priority(1)
.ruleId(byName.applyValue(getSubscribedRuleGroupResult -> getSubscribedRuleGroupResult.id()))
.type("GROUP")
.build(),
WebAclRuleArgs.builder()
.priority(2)
.ruleId(byMetricName.applyValue(getSubscribedRuleGroupResult -> getSubscribedRuleGroupResult.id()))
.type("GROUP")
.build())
.build());
}
}

Return

A collection of values returned by getSubscribedRuleGroup.

Parameters

argument

A collection of arguments for invoking getSubscribedRuleGroup.


suspend fun getSubscribedRuleGroup(metricName: String? = null, name: String? = null): GetSubscribedRuleGroupResult

Return

A collection of values returned by getSubscribedRuleGroup.

Parameters

metricName

Name of the WAF rule group.

name

Name of the WAF rule group.

See also


Return

A collection of values returned by getSubscribedRuleGroup.

Parameters

argument

Builder for com.pulumi.aws.waf.kotlin.inputs.GetSubscribedRuleGroupPlainArgs.

See also