![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.quota.kotlin.GroupQuotaSubscriptionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.quota.kotlin
import com.pulumi.azurenative.quota.GroupQuotaSubscriptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* This represents a Azure subscriptionId that is associated with a GroupQuotasEntity.
* Azure REST API version: 2023-06-01-preview.
* ## Example Usage
* ### GroupQuotaSubscriptions_Put_Subscriptions
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var groupQuotaSubscription = new AzureNative.Quota.GroupQuotaSubscription("groupQuotaSubscription", new()
* {
* GroupQuotaName = "groupquota1",
* ManagementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09",
* });
* });
* ```
* ```go
* package main
* import (
* quota "github.com/pulumi/pulumi-azure-native-sdk/quota/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quota.NewGroupQuotaSubscription(ctx, "groupQuotaSubscription", "a.GroupQuotaSubscriptionArgs{
* GroupQuotaName: pulumi.String("groupquota1"),
* ManagementGroupId: pulumi.String("E7EC67B3-7657-4966-BFFC-41EFD36BAA09"),
* })
* 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.quota.GroupQuotaSubscription;
* import com.pulumi.azurenative.quota.GroupQuotaSubscriptionArgs;
* 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 groupQuotaSubscription = new GroupQuotaSubscription("groupQuotaSubscription", GroupQuotaSubscriptionArgs.builder()
* .groupQuotaName("groupquota1")
* .managementGroupId("E7EC67B3-7657-4966-BFFC-41EFD36BAA09")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:quota:GroupQuotaSubscription 00000000-0000-0000-0000-000000000000 /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}
* ```
* @property groupQuotaName The GroupQuota name. The name should be unique for the provided context tenantId/MgId.
* @property managementGroupId Management Group Id.
*/
public data class GroupQuotaSubscriptionArgs(
public val groupQuotaName: Output? = null,
public val managementGroupId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.quota.GroupQuotaSubscriptionArgs =
com.pulumi.azurenative.quota.GroupQuotaSubscriptionArgs.builder()
.groupQuotaName(groupQuotaName?.applyValue({ args0 -> args0 }))
.managementGroupId(managementGroupId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GroupQuotaSubscriptionArgs].
*/
@PulumiTagMarker
public class GroupQuotaSubscriptionArgsBuilder internal constructor() {
private var groupQuotaName: Output? = null
private var managementGroupId: Output? = null
/**
* @param value The GroupQuota name. The name should be unique for the provided context tenantId/MgId.
*/
@JvmName("tascnqtcjecjdeku")
public suspend fun groupQuotaName(`value`: Output) {
this.groupQuotaName = value
}
/**
* @param value Management Group Id.
*/
@JvmName("fifqamxkkonbwcax")
public suspend fun managementGroupId(`value`: Output) {
this.managementGroupId = value
}
/**
* @param value The GroupQuota name. The name should be unique for the provided context tenantId/MgId.
*/
@JvmName("aiiysbhmoiyufaha")
public suspend fun groupQuotaName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupQuotaName = mapped
}
/**
* @param value Management Group Id.
*/
@JvmName("lohlibgwspmjwftn")
public suspend fun managementGroupId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managementGroupId = mapped
}
internal fun build(): GroupQuotaSubscriptionArgs = GroupQuotaSubscriptionArgs(
groupQuotaName = groupQuotaName,
managementGroupId = managementGroupId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy