com.pulumi.aws.servicecatalog.kotlin.BudgetResourceAssociationArgs.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.servicecatalog.kotlin
import com.pulumi.aws.servicecatalog.BudgetResourceAssociationArgs.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
/**
* Manages a Service Catalog Budget Resource Association.
* > **Tip:** A "resource" is either a Service Catalog portfolio or product.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.servicecatalog.BudgetResourceAssociation("example", {
* budgetName: "budget-pjtvyakdlyo3m",
* resourceId: "prod-dnigbtea24ste",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.servicecatalog.BudgetResourceAssociation("example",
* budget_name="budget-pjtvyakdlyo3m",
* resource_id="prod-dnigbtea24ste")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.ServiceCatalog.BudgetResourceAssociation("example", new()
* {
* BudgetName = "budget-pjtvyakdlyo3m",
* ResourceId = "prod-dnigbtea24ste",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicecatalog"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := servicecatalog.NewBudgetResourceAssociation(ctx, "example", &servicecatalog.BudgetResourceAssociationArgs{
* BudgetName: pulumi.String("budget-pjtvyakdlyo3m"),
* ResourceId: pulumi.String("prod-dnigbtea24ste"),
* })
* 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.servicecatalog.BudgetResourceAssociation;
* import com.pulumi.aws.servicecatalog.BudgetResourceAssociationArgs;
* 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 BudgetResourceAssociation("example", BudgetResourceAssociationArgs.builder()
* .budgetName("budget-pjtvyakdlyo3m")
* .resourceId("prod-dnigbtea24ste")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:servicecatalog:BudgetResourceAssociation
* properties:
* budgetName: budget-pjtvyakdlyo3m
* resourceId: prod-dnigbtea24ste
* ```
*
* ## Import
* Using `pulumi import`, import `aws_servicecatalog_budget_resource_association` using the budget name and resource ID. For example:
* ```sh
* $ pulumi import aws:servicecatalog/budgetResourceAssociation:BudgetResourceAssociation example budget-pjtvyakdlyo3m:prod-dnigbtea24ste
* ```
* @property budgetName Budget name.
* @property resourceId Resource identifier.
*/
public data class BudgetResourceAssociationArgs(
public val budgetName: Output? = null,
public val resourceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.servicecatalog.BudgetResourceAssociationArgs =
com.pulumi.aws.servicecatalog.BudgetResourceAssociationArgs.builder()
.budgetName(budgetName?.applyValue({ args0 -> args0 }))
.resourceId(resourceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BudgetResourceAssociationArgs].
*/
@PulumiTagMarker
public class BudgetResourceAssociationArgsBuilder internal constructor() {
private var budgetName: Output? = null
private var resourceId: Output? = null
/**
* @param value Budget name.
*/
@JvmName("qngvoxntittbraer")
public suspend fun budgetName(`value`: Output) {
this.budgetName = value
}
/**
* @param value Resource identifier.
*/
@JvmName("keetwdprpoojfowy")
public suspend fun resourceId(`value`: Output) {
this.resourceId = value
}
/**
* @param value Budget name.
*/
@JvmName("jfslcocsysqxnvdn")
public suspend fun budgetName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.budgetName = mapped
}
/**
* @param value Resource identifier.
*/
@JvmName("nnanqmgususmclgq")
public suspend fun resourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceId = mapped
}
internal fun build(): BudgetResourceAssociationArgs = BudgetResourceAssociationArgs(
budgetName = budgetName,
resourceId = resourceId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy