UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

86 lines 3.09 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getSubscribedRuleGroupOutput = exports.getSubscribedRuleGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * `aws.wafregional.getSubscribedRuleGroup` retrieves information about a Managed WAF Rule Group from AWS Marketplace for use in WAF Regional (needs to be subscribed to first). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const byName = aws.wafregional.getSubscribedRuleGroup({ * name: "F5 Bot Detection Signatures For AWS WAF", * }); * const byMetricName = aws.wafregional.getSubscribedRuleGroup({ * metricName: "F5BotDetectionSignatures", * }); * const acl = new aws.wafregional.WebAcl("acl", {rules: [ * { * priority: 1, * ruleId: byName.then(byName => byName.id), * type: "GROUP", * }, * { * priority: 2, * ruleId: byMetricName.then(byMetricName => byMetricName.id), * type: "GROUP", * }, * ]}); * ``` */ function getSubscribedRuleGroup(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:wafregional/getSubscribedRuleGroup:getSubscribedRuleGroup", { "metricName": args.metricName, "name": args.name, "region": args.region, }, opts); } exports.getSubscribedRuleGroup = getSubscribedRuleGroup; /** * `aws.wafregional.getSubscribedRuleGroup` retrieves information about a Managed WAF Rule Group from AWS Marketplace for use in WAF Regional (needs to be subscribed to first). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const byName = aws.wafregional.getSubscribedRuleGroup({ * name: "F5 Bot Detection Signatures For AWS WAF", * }); * const byMetricName = aws.wafregional.getSubscribedRuleGroup({ * metricName: "F5BotDetectionSignatures", * }); * const acl = new aws.wafregional.WebAcl("acl", {rules: [ * { * priority: 1, * ruleId: byName.then(byName => byName.id), * type: "GROUP", * }, * { * priority: 2, * ruleId: byMetricName.then(byMetricName => byMetricName.id), * type: "GROUP", * }, * ]}); * ``` */ function getSubscribedRuleGroupOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:wafregional/getSubscribedRuleGroup:getSubscribedRuleGroup", { "metricName": args.metricName, "name": args.name, "region": args.region, }, opts); } exports.getSubscribedRuleGroupOutput = getSubscribedRuleGroupOutput; //# sourceMappingURL=getSubscribedRuleGroup.js.map