"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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFrontdoorSecurityPolicyOutput = exports.getFrontdoorSecurityPolicy = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Gets information about an existing Front Door (standard/premium) Security Policy.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-cdn-frontdoor",
 *     location: "West Europe",
 * });
 * const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("example", {
 *     name: "example-frontdoor-profile",
 *     resourceGroupName: exampleResourceGroup.name,
 *     skuName: "Standard_AzureFrontDoor",
 * });
 * const exampleFrontdoorFirewallPolicy = new azure.cdn.FrontdoorFirewallPolicy("example", {
 *     name: "examplecdnfrontdoorfirewallpolicy",
 *     resourceGroupName: exampleResourceGroup.name,
 *     skuName: exampleFrontdoorProfile.skuName,
 *     enabled: true,
 *     mode: "Prevention",
 *     redirectUrl: "https://www.example.com",
 *     customRules: [{
 *         name: "Rule1",
 *         enabled: true,
 *         priority: 1,
 *         rateLimitDurationInMinutes: 1,
 *         rateLimitThreshold: 10,
 *         type: "MatchRule",
 *         action: "Block",
 *         matchConditions: [{
 *             matchVariable: "RemoteAddr",
 *             operator: "IPMatch",
 *             negationCondition: false,
 *             matchValues: ["192.168.1.0/24"],
 *         }],
 *     }],
 * });
 * const exampleZone = new azure.dns.Zone("example", {
 *     name: "example-frontdoor.com",
 *     resourceGroupName: exampleResourceGroup.name,
 * });
 * const exampleFrontdoorCustomDomain = new azure.cdn.FrontdoorCustomDomain("example", {
 *     name: "example-custom-domain",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     dnsZoneId: exampleZone.id,
 *     hostName: "www.example-frontdoor.com",
 *     tls: {
 *         certificateType: "ManagedCertificate",
 *         minimumTlsVersion: "TLS12",
 *     },
 * });
 * const exampleFrontdoorSecurityPolicy = new azure.cdn.FrontdoorSecurityPolicy("example", {
 *     name: "example-security-policy",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     securityPolicies: {
 *         firewall: {
 *             cdnFrontdoorFirewallPolicyId: exampleFrontdoorFirewallPolicy.id,
 *             association: {
 *                 domains: [{
 *                     cdnFrontdoorDomainId: exampleFrontdoorCustomDomain.id,
 *                 }],
 *                 patternsToMatch: "/*",
 *             },
 *         },
 *     },
 * });
 * const example = azure.cdn.getFrontdoorSecurityPolicyOutput({
 *     name: exampleFrontdoorSecurityPolicy.name,
 *     profileName: exampleFrontdoorProfile.name,
 *     resourceGroupName: exampleResourceGroup.name,
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This data source uses the following Azure API Providers:
 *
 * * `Microsoft.Cdn` - 2024-02-01
 */
function getFrontdoorSecurityPolicy(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("azure:cdn/getFrontdoorSecurityPolicy:getFrontdoorSecurityPolicy", {
        "name": args.name,
        "profileName": args.profileName,
        "resourceGroupName": args.resourceGroupName,
    }, opts);
}
exports.getFrontdoorSecurityPolicy = getFrontdoorSecurityPolicy;
/**
 * Gets information about an existing Front Door (standard/premium) Security Policy.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-cdn-frontdoor",
 *     location: "West Europe",
 * });
 * const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("example", {
 *     name: "example-frontdoor-profile",
 *     resourceGroupName: exampleResourceGroup.name,
 *     skuName: "Standard_AzureFrontDoor",
 * });
 * const exampleFrontdoorFirewallPolicy = new azure.cdn.FrontdoorFirewallPolicy("example", {
 *     name: "examplecdnfrontdoorfirewallpolicy",
 *     resourceGroupName: exampleResourceGroup.name,
 *     skuName: exampleFrontdoorProfile.skuName,
 *     enabled: true,
 *     mode: "Prevention",
 *     redirectUrl: "https://www.example.com",
 *     customRules: [{
 *         name: "Rule1",
 *         enabled: true,
 *         priority: 1,
 *         rateLimitDurationInMinutes: 1,
 *         rateLimitThreshold: 10,
 *         type: "MatchRule",
 *         action: "Block",
 *         matchConditions: [{
 *             matchVariable: "RemoteAddr",
 *             operator: "IPMatch",
 *             negationCondition: false,
 *             matchValues: ["192.168.1.0/24"],
 *         }],
 *     }],
 * });
 * const exampleZone = new azure.dns.Zone("example", {
 *     name: "example-frontdoor.com",
 *     resourceGroupName: exampleResourceGroup.name,
 * });
 * const exampleFrontdoorCustomDomain = new azure.cdn.FrontdoorCustomDomain("example", {
 *     name: "example-custom-domain",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     dnsZoneId: exampleZone.id,
 *     hostName: "www.example-frontdoor.com",
 *     tls: {
 *         certificateType: "ManagedCertificate",
 *         minimumTlsVersion: "TLS12",
 *     },
 * });
 * const exampleFrontdoorSecurityPolicy = new azure.cdn.FrontdoorSecurityPolicy("example", {
 *     name: "example-security-policy",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     securityPolicies: {
 *         firewall: {
 *             cdnFrontdoorFirewallPolicyId: exampleFrontdoorFirewallPolicy.id,
 *             association: {
 *                 domains: [{
 *                     cdnFrontdoorDomainId: exampleFrontdoorCustomDomain.id,
 *                 }],
 *                 patternsToMatch: "/*",
 *             },
 *         },
 *     },
 * });
 * const example = azure.cdn.getFrontdoorSecurityPolicyOutput({
 *     name: exampleFrontdoorSecurityPolicy.name,
 *     profileName: exampleFrontdoorProfile.name,
 *     resourceGroupName: exampleResourceGroup.name,
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This data source uses the following Azure API Providers:
 *
 * * `Microsoft.Cdn` - 2024-02-01
 */
function getFrontdoorSecurityPolicyOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("azure:cdn/getFrontdoorSecurityPolicy:getFrontdoorSecurityPolicy", {
        "name": args.name,
        "profileName": args.profileName,
        "resourceGroupName": args.resourceGroupName,
    }, opts);
}
exports.getFrontdoorSecurityPolicyOutput = getFrontdoorSecurityPolicyOutput;
//# sourceMappingURL=getFrontdoorSecurityPolicy.js.map