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

com.pulumi.azure.cdn.kotlin.CdnFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin

import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorCustomDomainPlain
import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorEndpointPlain
import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorFirewallPolicyPlain
import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorOriginGroupPlain
import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorProfilePlain
import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorRuleSetPlain
import com.pulumi.azure.cdn.CdnFunctions.getFrontdoorSecretPlain
import com.pulumi.azure.cdn.CdnFunctions.getProfilePlain
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorCustomDomainPlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorCustomDomainPlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorEndpointPlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorEndpointPlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorFirewallPolicyPlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorFirewallPolicyPlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorOriginGroupPlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorOriginGroupPlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorProfilePlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorProfilePlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorRuleSetPlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorRuleSetPlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorSecretPlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorSecretPlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.inputs.GetProfilePlainArgs
import com.pulumi.azure.cdn.kotlin.inputs.GetProfilePlainArgsBuilder
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorCustomDomainResult
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorEndpointResult
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorFirewallPolicyResult
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorOriginGroupResult
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorProfileResult
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorRuleSetResult
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorSecretResult
import com.pulumi.azure.cdn.kotlin.outputs.GetProfileResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorCustomDomainResult.Companion.toKotlin as getFrontdoorCustomDomainResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorEndpointResult.Companion.toKotlin as getFrontdoorEndpointResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorFirewallPolicyResult.Companion.toKotlin as getFrontdoorFirewallPolicyResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorOriginGroupResult.Companion.toKotlin as getFrontdoorOriginGroupResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorProfileResult.Companion.toKotlin as getFrontdoorProfileResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorRuleSetResult.Companion.toKotlin as getFrontdoorRuleSetResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetFrontdoorSecretResult.Companion.toKotlin as getFrontdoorSecretResultToKotlin
import com.pulumi.azure.cdn.kotlin.outputs.GetProfileResult.Companion.toKotlin as getProfileResultToKotlin

public object CdnFunctions {
    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Custom Domain.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorCustomDomain({
     *     name: exampleAzurermCdnFrontdoorCustomDomain.name,
     *     profileName: exampleAzurermCdnFrontdoorProfile.name,
     *     resourceGroupName: exampleAzurermCdnFrontdoorProfile.resourceGroupName,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_custom_domain(name=example_azurerm_cdn_frontdoor_custom_domain["name"],
     *     profile_name=example_azurerm_cdn_frontdoor_profile["name"],
     *     resource_group_name=example_azurerm_cdn_frontdoor_profile["resourceGroupName"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorCustomDomain.Invoke(new()
     *     {
     *         Name = exampleAzurermCdnFrontdoorCustomDomain.Name,
     *         ProfileName = exampleAzurermCdnFrontdoorProfile.Name,
     *         ResourceGroupName = exampleAzurermCdnFrontdoorProfile.ResourceGroupName,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorCustomDomain(ctx, &cdn.LookupFrontdoorCustomDomainArgs{
     * 			Name:              exampleAzurermCdnFrontdoorCustomDomain.Name,
     * 			ProfileName:       exampleAzurermCdnFrontdoorProfile.Name,
     * 			ResourceGroupName: exampleAzurermCdnFrontdoorProfile.ResourceGroupName,
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorCustomDomainArgs;
     * 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 example = CdnFunctions.getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs.builder()
     *             .name(exampleAzurermCdnFrontdoorCustomDomain.name())
     *             .profileName(exampleAzurermCdnFrontdoorProfile.name())
     *             .resourceGroupName(exampleAzurermCdnFrontdoorProfile.resourceGroupName())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorCustomDomain
     *       Arguments:
     *         name: ${exampleAzurermCdnFrontdoorCustomDomain.name}
     *         profileName: ${exampleAzurermCdnFrontdoorProfile.name}
     *         resourceGroupName: ${exampleAzurermCdnFrontdoorProfile.resourceGroupName}
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorCustomDomain.
     * @return A collection of values returned by getFrontdoorCustomDomain.
     */
    public suspend fun getFrontdoorCustomDomain(argument: GetFrontdoorCustomDomainPlainArgs):
        GetFrontdoorCustomDomainResult =
        getFrontdoorCustomDomainResultToKotlin(getFrontdoorCustomDomainPlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorCustomDomain].
     * @param name The name of the Front Door Custom Domain.
     * @param profileName The name of the Front Door Profile which the Front Door Custom Domain is bound to.
     * @param resourceGroupName The name of the Resource Group where the Front Door Profile exists.
     * @return A collection of values returned by getFrontdoorCustomDomain.
     */
    public suspend fun getFrontdoorCustomDomain(
        name: String,
        profileName: String,
        resourceGroupName: String,
    ): GetFrontdoorCustomDomainResult {
        val argument = GetFrontdoorCustomDomainPlainArgs(
            name = name,
            profileName = profileName,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorCustomDomainResultToKotlin(getFrontdoorCustomDomainPlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorCustomDomain].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorCustomDomainPlainArgs].
     * @return A collection of values returned by getFrontdoorCustomDomain.
     */
    public suspend
    fun getFrontdoorCustomDomain(argument: suspend GetFrontdoorCustomDomainPlainArgsBuilder.() -> Unit):
        GetFrontdoorCustomDomainResult {
        val builder = GetFrontdoorCustomDomainPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorCustomDomainResultToKotlin(getFrontdoorCustomDomainPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Endpoint.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorEndpoint({
     *     name: "existing-endpoint",
     *     profileName: "existing-cdn-profile",
     *     resourceGroupName: "existing-resources",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_endpoint(name="existing-endpoint",
     *     profile_name="existing-cdn-profile",
     *     resource_group_name="existing-resources")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorEndpoint.Invoke(new()
     *     {
     *         Name = "existing-endpoint",
     *         ProfileName = "existing-cdn-profile",
     *         ResourceGroupName = "existing-resources",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorEndpoint(ctx, &cdn.LookupFrontdoorEndpointArgs{
     * 			Name:              "existing-endpoint",
     * 			ProfileName:       "existing-cdn-profile",
     * 			ResourceGroupName: "existing-resources",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorEndpointArgs;
     * 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 example = CdnFunctions.getFrontdoorEndpoint(GetFrontdoorEndpointArgs.builder()
     *             .name("existing-endpoint")
     *             .profileName("existing-cdn-profile")
     *             .resourceGroupName("existing-resources")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorEndpoint
     *       Arguments:
     *         name: existing-endpoint
     *         profileName: existing-cdn-profile
     *         resourceGroupName: existing-resources
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorEndpoint.
     * @return A collection of values returned by getFrontdoorEndpoint.
     */
    public suspend fun getFrontdoorEndpoint(argument: GetFrontdoorEndpointPlainArgs):
        GetFrontdoorEndpointResult =
        getFrontdoorEndpointResultToKotlin(getFrontdoorEndpointPlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorEndpoint].
     * @param name Specifies the name of the Front Door Endpoint.
     * @param profileName The name of the Front Door Profile within which Front Door Endpoint exists.
     * @param resourceGroupName The name of the Resource Group where the Front Door Profile exists.
     * @return A collection of values returned by getFrontdoorEndpoint.
     */
    public suspend fun getFrontdoorEndpoint(
        name: String,
        profileName: String,
        resourceGroupName: String,
    ): GetFrontdoorEndpointResult {
        val argument = GetFrontdoorEndpointPlainArgs(
            name = name,
            profileName = profileName,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorEndpointResultToKotlin(getFrontdoorEndpointPlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorEndpoint].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorEndpointPlainArgs].
     * @return A collection of values returned by getFrontdoorEndpoint.
     */
    public suspend
    fun getFrontdoorEndpoint(argument: suspend GetFrontdoorEndpointPlainArgsBuilder.() -> Unit):
        GetFrontdoorEndpointResult {
        val builder = GetFrontdoorEndpointPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorEndpointResultToKotlin(getFrontdoorEndpointPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Firewall Policy.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorFirewallPolicy({
     *     name: "examplecdnfdwafpolicy",
     *     resourceGroupName: exampleAzurermResourceGroup.name,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_firewall_policy(name="examplecdnfdwafpolicy",
     *     resource_group_name=example_azurerm_resource_group["name"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorFirewallPolicy.Invoke(new()
     *     {
     *         Name = "examplecdnfdwafpolicy",
     *         ResourceGroupName = exampleAzurermResourceGroup.Name,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorFirewallPolicy(ctx, &cdn.LookupFrontdoorFirewallPolicyArgs{
     * 			Name:              "examplecdnfdwafpolicy",
     * 			ResourceGroupName: exampleAzurermResourceGroup.Name,
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorFirewallPolicyArgs;
     * 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 example = CdnFunctions.getFrontdoorFirewallPolicy(GetFrontdoorFirewallPolicyArgs.builder()
     *             .name("examplecdnfdwafpolicy")
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorFirewallPolicy
     *       Arguments:
     *         name: examplecdnfdwafpolicy
     *         resourceGroupName: ${exampleAzurermResourceGroup.name}
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorFirewallPolicy.
     * @return A collection of values returned by getFrontdoorFirewallPolicy.
     */
    public suspend fun getFrontdoorFirewallPolicy(argument: GetFrontdoorFirewallPolicyPlainArgs):
        GetFrontdoorFirewallPolicyResult =
        getFrontdoorFirewallPolicyResultToKotlin(getFrontdoorFirewallPolicyPlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorFirewallPolicy].
     * @param name The name of the Front Door Firewall Policy.
     * @param resourceGroupName The name of the resource group.
     * @return A collection of values returned by getFrontdoorFirewallPolicy.
     */
    public suspend fun getFrontdoorFirewallPolicy(name: String, resourceGroupName: String):
        GetFrontdoorFirewallPolicyResult {
        val argument = GetFrontdoorFirewallPolicyPlainArgs(
            name = name,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorFirewallPolicyResultToKotlin(getFrontdoorFirewallPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorFirewallPolicy].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorFirewallPolicyPlainArgs].
     * @return A collection of values returned by getFrontdoorFirewallPolicy.
     */
    public suspend
    fun getFrontdoorFirewallPolicy(argument: suspend GetFrontdoorFirewallPolicyPlainArgsBuilder.() -> Unit):
        GetFrontdoorFirewallPolicyResult {
        val builder = GetFrontdoorFirewallPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorFirewallPolicyResultToKotlin(getFrontdoorFirewallPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Origin Group.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorOriginGroup({
     *     name: "example-origin-group",
     *     profileName: "example-profile",
     *     resourceGroupName: "example-resources",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_origin_group(name="example-origin-group",
     *     profile_name="example-profile",
     *     resource_group_name="example-resources")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorOriginGroup.Invoke(new()
     *     {
     *         Name = "example-origin-group",
     *         ProfileName = "example-profile",
     *         ResourceGroupName = "example-resources",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorOriginGroup(ctx, &cdn.LookupFrontdoorOriginGroupArgs{
     * 			Name:              "example-origin-group",
     * 			ProfileName:       "example-profile",
     * 			ResourceGroupName: "example-resources",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorOriginGroupArgs;
     * 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 example = CdnFunctions.getFrontdoorOriginGroup(GetFrontdoorOriginGroupArgs.builder()
     *             .name("example-origin-group")
     *             .profileName("example-profile")
     *             .resourceGroupName("example-resources")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorOriginGroup
     *       Arguments:
     *         name: example-origin-group
     *         profileName: example-profile
     *         resourceGroupName: example-resources
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorOriginGroup.
     * @return A collection of values returned by getFrontdoorOriginGroup.
     */
    public suspend fun getFrontdoorOriginGroup(argument: GetFrontdoorOriginGroupPlainArgs):
        GetFrontdoorOriginGroupResult =
        getFrontdoorOriginGroupResultToKotlin(getFrontdoorOriginGroupPlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorOriginGroup].
     * @param name Specifies the name of the Front Door Origin Group.
     * @param profileName The name of the Front Door Profile within which Front Door Origin Group exists.
     * @param resourceGroupName The name of the Resource Group where the Front Door Profile exists.
     * @return A collection of values returned by getFrontdoorOriginGroup.
     */
    public suspend fun getFrontdoorOriginGroup(
        name: String,
        profileName: String,
        resourceGroupName: String,
    ): GetFrontdoorOriginGroupResult {
        val argument = GetFrontdoorOriginGroupPlainArgs(
            name = name,
            profileName = profileName,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorOriginGroupResultToKotlin(getFrontdoorOriginGroupPlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorOriginGroup].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorOriginGroupPlainArgs].
     * @return A collection of values returned by getFrontdoorOriginGroup.
     */
    public suspend
    fun getFrontdoorOriginGroup(argument: suspend GetFrontdoorOriginGroupPlainArgsBuilder.() -> Unit):
        GetFrontdoorOriginGroupResult {
        val builder = GetFrontdoorOriginGroupPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorOriginGroupResultToKotlin(getFrontdoorOriginGroupPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Profile.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorProfile({
     *     name: "existing-cdn-profile",
     *     resourceGroupName: "existing-resources",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_profile(name="existing-cdn-profile",
     *     resource_group_name="existing-resources")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorProfile.Invoke(new()
     *     {
     *         Name = "existing-cdn-profile",
     *         ResourceGroupName = "existing-resources",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorProfile(ctx, &cdn.LookupFrontdoorProfileArgs{
     * 			Name:              "existing-cdn-profile",
     * 			ResourceGroupName: "existing-resources",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorProfileArgs;
     * 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 example = CdnFunctions.getFrontdoorProfile(GetFrontdoorProfileArgs.builder()
     *             .name("existing-cdn-profile")
     *             .resourceGroupName("existing-resources")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorProfile
     *       Arguments:
     *         name: existing-cdn-profile
     *         resourceGroupName: existing-resources
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorProfile.
     * @return A collection of values returned by getFrontdoorProfile.
     */
    public suspend fun getFrontdoorProfile(argument: GetFrontdoorProfilePlainArgs):
        GetFrontdoorProfileResult =
        getFrontdoorProfileResultToKotlin(getFrontdoorProfilePlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorProfile].
     * @param name Specifies the name of the Front Door Profile.
     * @param resourceGroupName The name of the Resource Group where this Front Door Profile exists.
     * @return A collection of values returned by getFrontdoorProfile.
     */
    public suspend fun getFrontdoorProfile(name: String, resourceGroupName: String):
        GetFrontdoorProfileResult {
        val argument = GetFrontdoorProfilePlainArgs(
            name = name,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorProfileResultToKotlin(getFrontdoorProfilePlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorProfile].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorProfilePlainArgs].
     * @return A collection of values returned by getFrontdoorProfile.
     */
    public suspend
    fun getFrontdoorProfile(argument: suspend GetFrontdoorProfilePlainArgsBuilder.() -> Unit):
        GetFrontdoorProfileResult {
        val builder = GetFrontdoorProfilePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorProfileResultToKotlin(getFrontdoorProfilePlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Rule Set.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorRuleSet({
     *     name: "existing-rule-set",
     *     profileName: "existing-profile",
     *     resourceGroupName: "existing-resources",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_rule_set(name="existing-rule-set",
     *     profile_name="existing-profile",
     *     resource_group_name="existing-resources")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorRuleSet.Invoke(new()
     *     {
     *         Name = "existing-rule-set",
     *         ProfileName = "existing-profile",
     *         ResourceGroupName = "existing-resources",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorRuleSet(ctx, &cdn.LookupFrontdoorRuleSetArgs{
     * 			Name:              "existing-rule-set",
     * 			ProfileName:       "existing-profile",
     * 			ResourceGroupName: "existing-resources",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorRuleSetArgs;
     * 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 example = CdnFunctions.getFrontdoorRuleSet(GetFrontdoorRuleSetArgs.builder()
     *             .name("existing-rule-set")
     *             .profileName("existing-profile")
     *             .resourceGroupName("existing-resources")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorRuleSet
     *       Arguments:
     *         name: existing-rule-set
     *         profileName: existing-profile
     *         resourceGroupName: existing-resources
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorRuleSet.
     * @return A collection of values returned by getFrontdoorRuleSet.
     */
    public suspend fun getFrontdoorRuleSet(argument: GetFrontdoorRuleSetPlainArgs):
        GetFrontdoorRuleSetResult =
        getFrontdoorRuleSetResultToKotlin(getFrontdoorRuleSetPlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorRuleSet].
     * @param name Specifies the name of the Front Door Rule Set to retrieve.
     * @param profileName Specifies the name of the Front Door Profile where this Front Door Rule Set exists.
     * @param resourceGroupName Specifies the name of the Resource Group where the Front Door Profile exists.
     * @return A collection of values returned by getFrontdoorRuleSet.
     */
    public suspend fun getFrontdoorRuleSet(
        name: String,
        profileName: String,
        resourceGroupName: String,
    ): GetFrontdoorRuleSetResult {
        val argument = GetFrontdoorRuleSetPlainArgs(
            name = name,
            profileName = profileName,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorRuleSetResultToKotlin(getFrontdoorRuleSetPlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorRuleSet].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorRuleSetPlainArgs].
     * @return A collection of values returned by getFrontdoorRuleSet.
     */
    public suspend
    fun getFrontdoorRuleSet(argument: suspend GetFrontdoorRuleSetPlainArgsBuilder.() -> Unit):
        GetFrontdoorRuleSetResult {
        val builder = GetFrontdoorRuleSetPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorRuleSetResultToKotlin(getFrontdoorRuleSetPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing Front Door (standard/premium) Secret.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getFrontdoorSecret({
     *     name: "example-secret",
     *     profileName: "example-profile",
     *     resourceGroupName: "example-resources",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_frontdoor_secret(name="example-secret",
     *     profile_name="example-profile",
     *     resource_group_name="example-resources")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetFrontdoorSecret.Invoke(new()
     *     {
     *         Name = "example-secret",
     *         ProfileName = "example-profile",
     *         ResourceGroupName = "example-resources",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := cdn.LookupFrontdoorSecret(ctx, &cdn.LookupFrontdoorSecretArgs{
     * 			Name:              "example-secret",
     * 			ProfileName:       "example-profile",
     * 			ResourceGroupName: "example-resources",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetFrontdoorSecretArgs;
     * 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 example = CdnFunctions.getFrontdoorSecret(GetFrontdoorSecretArgs.builder()
     *             .name("example-secret")
     *             .profileName("example-profile")
     *             .resourceGroupName("example-resources")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getFrontdoorSecret
     *       Arguments:
     *         name: example-secret
     *         profileName: example-profile
     *         resourceGroupName: example-resources
     * ```
     * 
     * @param argument A collection of arguments for invoking getFrontdoorSecret.
     * @return A collection of values returned by getFrontdoorSecret.
     */
    public suspend fun getFrontdoorSecret(argument: GetFrontdoorSecretPlainArgs):
        GetFrontdoorSecretResult =
        getFrontdoorSecretResultToKotlin(getFrontdoorSecretPlain(argument.toJava()).await())

    /**
     * @see [getFrontdoorSecret].
     * @param name Specifies the name of the Front Door Secret.
     * @param profileName The name of the Front Door Profile within which the Front Door Secret exists.
     * @param resourceGroupName The name of the Resource Group where the Front Door Profile exists.
     * @return A collection of values returned by getFrontdoorSecret.
     */
    public suspend fun getFrontdoorSecret(
        name: String,
        profileName: String,
        resourceGroupName: String,
    ): GetFrontdoorSecretResult {
        val argument = GetFrontdoorSecretPlainArgs(
            name = name,
            profileName = profileName,
            resourceGroupName = resourceGroupName,
        )
        return getFrontdoorSecretResultToKotlin(getFrontdoorSecretPlain(argument.toJava()).await())
    }

    /**
     * @see [getFrontdoorSecret].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorSecretPlainArgs].
     * @return A collection of values returned by getFrontdoorSecret.
     */
    public suspend
    fun getFrontdoorSecret(argument: suspend GetFrontdoorSecretPlainArgsBuilder.() -> Unit):
        GetFrontdoorSecretResult {
        val builder = GetFrontdoorSecretPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFrontdoorSecretResultToKotlin(getFrontdoorSecretPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to access information about an existing CDN Profile.
     * ## Example Usage
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as azure from "@pulumi/azure";
     * const example = azure.cdn.getProfile({
     *     name: "myfirstcdnprofile",
     *     resourceGroupName: "example-resources",
     * });
     * export const cdnProfileId = example.then(example => example.id);
     * ```
     * ```python
     * import pulumi
     * import pulumi_azure as azure
     * example = azure.cdn.get_profile(name="myfirstcdnprofile",
     *     resource_group_name="example-resources")
     * pulumi.export("cdnProfileId", example.id)
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Azure = Pulumi.Azure;
     * return await Deployment.RunAsync(() =>
     * {
     *     var example = Azure.Cdn.GetProfile.Invoke(new()
     *     {
     *         Name = "myfirstcdnprofile",
     *         ResourceGroupName = "example-resources",
     *     });
     *     return new Dictionary
     *     {
     *         ["cdnProfileId"] = example.Apply(getProfileResult => getProfileResult.Id),
     *     };
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		example, err := cdn.LookupProfile(ctx, &cdn.LookupProfileArgs{
     * 			Name:              "myfirstcdnprofile",
     * 			ResourceGroupName: "example-resources",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		ctx.Export("cdnProfileId", example.Id)
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.azure.cdn.CdnFunctions;
     * import com.pulumi.azure.cdn.inputs.GetProfileArgs;
     * 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 example = CdnFunctions.getProfile(GetProfileArgs.builder()
     *             .name("myfirstcdnprofile")
     *             .resourceGroupName("example-resources")
     *             .build());
     *         ctx.export("cdnProfileId", example.applyValue(getProfileResult -> getProfileResult.id()));
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   example:
     *     fn::invoke:
     *       Function: azure:cdn:getProfile
     *       Arguments:
     *         name: myfirstcdnprofile
     *         resourceGroupName: example-resources
     * outputs:
     *   cdnProfileId: ${example.id}
     * ```
     * 
     * @param argument A collection of arguments for invoking getProfile.
     * @return A collection of values returned by getProfile.
     */
    public suspend fun getProfile(argument: GetProfilePlainArgs): GetProfileResult =
        getProfileResultToKotlin(getProfilePlain(argument.toJava()).await())

    /**
     * @see [getProfile].
     * @param name The name of the CDN Profile.
     * @param resourceGroupName The name of the resource group in which the CDN Profile exists.
     * @return A collection of values returned by getProfile.
     */
    public suspend fun getProfile(name: String, resourceGroupName: String): GetProfileResult {
        val argument = GetProfilePlainArgs(
            name = name,
            resourceGroupName = resourceGroupName,
        )
        return getProfileResultToKotlin(getProfilePlain(argument.toJava()).await())
    }

    /**
     * @see [getProfile].
     * @param argument Builder for [com.pulumi.azure.cdn.kotlin.inputs.GetProfilePlainArgs].
     * @return A collection of values returned by getProfile.
     */
    public suspend fun getProfile(argument: suspend GetProfilePlainArgsBuilder.() -> Unit):
        GetProfileResult {
        val builder = GetProfilePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getProfileResultToKotlin(getProfilePlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy