All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.cdn.kotlin.KeyGroupArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cdn.kotlin
import com.pulumi.azurenative.cdn.KeyGroupArgs.builder
import com.pulumi.azurenative.cdn.kotlin.inputs.ResourceReferenceArgs
import com.pulumi.azurenative.cdn.kotlin.inputs.ResourceReferenceArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Contains a list of references of UrlSigningKey type secret objects.
* Azure REST API version: 2023-07-01-preview.
* Other available API versions: 2024-05-01-preview, 2024-06-01-preview.
* ## Example Usage
* ### KeyGroups_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var keyGroup = new AzureNative.Cdn.KeyGroup("keyGroup", new()
* {
* KeyGroupName = "kg1",
* KeyReferences = new[]
* {
* new AzureNative.Cdn.Inputs.ResourceReferenceArgs
* {
* Id = "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret1",
* },
* new AzureNative.Cdn.Inputs.ResourceReferenceArgs
* {
* Id = "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret2",
* },
* new AzureNative.Cdn.Inputs.ResourceReferenceArgs
* {
* Id = "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret3",
* },
* },
* ProfileName = "profile1",
* ResourceGroupName = "RG",
* });
* });
* ```
* ```go
* package main
* import (
* cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := cdn.NewKeyGroup(ctx, "keyGroup", &cdn.KeyGroupArgs{
* KeyGroupName: pulumi.String("kg1"),
* KeyReferences: cdn.ResourceReferenceArray{
* &cdn.ResourceReferenceArgs{
* Id: pulumi.String("/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret1"),
* },
* &cdn.ResourceReferenceArgs{
* Id: pulumi.String("/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret2"),
* },
* &cdn.ResourceReferenceArgs{
* Id: pulumi.String("/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret3"),
* },
* },
* ProfileName: pulumi.String("profile1"),
* ResourceGroupName: pulumi.String("RG"),
* })
* 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.azurenative.cdn.KeyGroup;
* import com.pulumi.azurenative.cdn.KeyGroupArgs;
* import com.pulumi.azurenative.cdn.inputs.ResourceReferenceArgs;
* 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) {
* var keyGroup = new KeyGroup("keyGroup", KeyGroupArgs.builder()
* .keyGroupName("kg1")
* .keyReferences(
* ResourceReferenceArgs.builder()
* .id("/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret1")
* .build(),
* ResourceReferenceArgs.builder()
* .id("/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret2")
* .build(),
* ResourceReferenceArgs.builder()
* .id("/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret3")
* .build())
* .profileName("profile1")
* .resourceGroupName("RG")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:cdn:KeyGroup kg1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}
* ```
* @property keyGroupName Name of the KeyGroup under the profile.
* @property keyReferences Names of UrlSigningKey type secret objects
* @property profileName Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
* @property resourceGroupName Name of the Resource group within the Azure subscription.
*/
public data class KeyGroupArgs(
public val keyGroupName: Output? = null,
public val keyReferences: Output>? = null,
public val profileName: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cdn.KeyGroupArgs =
com.pulumi.azurenative.cdn.KeyGroupArgs.builder()
.keyGroupName(keyGroupName?.applyValue({ args0 -> args0 }))
.keyReferences(
keyReferences?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.profileName(profileName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KeyGroupArgs].
*/
@PulumiTagMarker
public class KeyGroupArgsBuilder internal constructor() {
private var keyGroupName: Output? = null
private var keyReferences: Output>? = null
private var profileName: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value Name of the KeyGroup under the profile.
*/
@JvmName("ajkihbmdeoahmkjc")
public suspend fun keyGroupName(`value`: Output) {
this.keyGroupName = value
}
/**
* @param value Names of UrlSigningKey type secret objects
*/
@JvmName("pcankroypelqcjwu")
public suspend fun keyReferences(`value`: Output>) {
this.keyReferences = value
}
@JvmName("gxixugvtrxowwbol")
public suspend fun keyReferences(vararg values: Output) {
this.keyReferences = Output.all(values.asList())
}
/**
* @param values Names of UrlSigningKey type secret objects
*/
@JvmName("xvoxtmkhngtekocm")
public suspend fun keyReferences(values: List>) {
this.keyReferences = Output.all(values)
}
/**
* @param value Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
*/
@JvmName("fxktgxvifbyucsnm")
public suspend fun profileName(`value`: Output) {
this.profileName = value
}
/**
* @param value Name of the Resource group within the Azure subscription.
*/
@JvmName("hkqebbkqkwfqxkas")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Name of the KeyGroup under the profile.
*/
@JvmName("uwbptyqgyffjgfom")
public suspend fun keyGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyGroupName = mapped
}
/**
* @param value Names of UrlSigningKey type secret objects
*/
@JvmName("clfwbiejbowwucmo")
public suspend fun keyReferences(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyReferences = mapped
}
/**
* @param argument Names of UrlSigningKey type secret objects
*/
@JvmName("dikfuipbsttnkwxf")
public suspend fun keyReferences(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ResourceReferenceArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.keyReferences = mapped
}
/**
* @param argument Names of UrlSigningKey type secret objects
*/
@JvmName("llnmugjmtwlvqcqn")
public suspend fun keyReferences(vararg argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ResourceReferenceArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.keyReferences = mapped
}
/**
* @param argument Names of UrlSigningKey type secret objects
*/
@JvmName("khowtxkovmuiudil")
public suspend fun keyReferences(argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ResourceReferenceArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.keyReferences = mapped
}
/**
* @param values Names of UrlSigningKey type secret objects
*/
@JvmName("hlalhxxocbxlgfde")
public suspend fun keyReferences(vararg values: ResourceReferenceArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keyReferences = mapped
}
/**
* @param value Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
*/
@JvmName("fdrdqdglowvraolr")
public suspend fun profileName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.profileName = mapped
}
/**
* @param value Name of the Resource group within the Azure subscription.
*/
@JvmName("gyqhamoydgxlasbt")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): KeyGroupArgs = KeyGroupArgs(
keyGroupName = keyGroupName,
keyReferences = keyReferences,
profileName = profileName,
resourceGroupName = resourceGroupName,
)
}