com.pulumi.aws.servicequotas.kotlin.TemplateAssociationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.servicequotas.kotlin
import com.pulumi.aws.servicequotas.TemplateAssociationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS Service Quotas Template Association.
* > Only the management account of an organization can associate Service Quota templates, and this must be done from the `us-east-1` region.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.servicequotas.TemplateAssociation("example", {});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.servicequotas.TemplateAssociation("example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.ServiceQuotas.TemplateAssociation("example");
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicequotas"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := servicequotas.NewTemplateAssociation(ctx, "example", 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.aws.servicequotas.TemplateAssociation;
* 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 example = new TemplateAssociation("example");
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:servicequotas:TemplateAssociation
* ```
*
* ## Import
* Using `pulumi import`, import Service Quotas Template Association using the `id`. For example:
* ```sh
* $ pulumi import aws:servicequotas/templateAssociation:TemplateAssociation example 123456789012
* ```
* @property skipDestroy
*/
public data class TemplateAssociationArgs(
public val skipDestroy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.servicequotas.TemplateAssociationArgs =
com.pulumi.aws.servicequotas.TemplateAssociationArgs.builder()
.skipDestroy(skipDestroy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TemplateAssociationArgs].
*/
@PulumiTagMarker
public class TemplateAssociationArgsBuilder internal constructor() {
private var skipDestroy: Output? = null
/**
* @param value
*/
@JvmName("rbdcmptwvjcakmwe")
public suspend fun skipDestroy(`value`: Output) {
this.skipDestroy = value
}
/**
* @param value
*/
@JvmName("umsmdkwisejbpbyp")
public suspend fun skipDestroy(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipDestroy = mapped
}
internal fun build(): TemplateAssociationArgs = TemplateAssociationArgs(
skipDestroy = skipDestroy,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy