aws logo
AWS Classic v5.41.0, May 15 23

aws.servicecatalog.BudgetResourceAssociation

Explore with Pulumi AI

Manages a Service Catalog Budget Resource Association.

Tip: A “resource” is either a Service Catalog portfolio or product.

Example Usage

Basic Usage

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",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.servicecatalog.BudgetResourceAssociation("example",
    budget_name="budget-pjtvyakdlyo3m",
    resource_id="prod-dnigbtea24ste")
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",
});
resources:
  example:
    type: aws:servicecatalog:BudgetResourceAssociation
    properties:
      budgetName: budget-pjtvyakdlyo3m
      resourceId: prod-dnigbtea24ste

Create BudgetResourceAssociation Resource

new BudgetResourceAssociation(name: string, args: BudgetResourceAssociationArgs, opts?: CustomResourceOptions);
@overload
def BudgetResourceAssociation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              budget_name: Optional[str] = None,
                              resource_id: Optional[str] = None)
@overload
def BudgetResourceAssociation(resource_name: str,
                              args: BudgetResourceAssociationArgs,
                              opts: Optional[ResourceOptions] = None)
func NewBudgetResourceAssociation(ctx *Context, name string, args BudgetResourceAssociationArgs, opts ...ResourceOption) (*BudgetResourceAssociation, error)
public BudgetResourceAssociation(string name, BudgetResourceAssociationArgs args, CustomResourceOptions? opts = null)
public BudgetResourceAssociation(String name, BudgetResourceAssociationArgs args)
public BudgetResourceAssociation(String name, BudgetResourceAssociationArgs args, CustomResourceOptions options)
type: aws:servicecatalog:BudgetResourceAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BudgetResourceAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BudgetResourceAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BudgetResourceAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BudgetResourceAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BudgetResourceAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BudgetResourceAssociation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BudgetResourceAssociation resource accepts the following input properties:

BudgetName string

Budget name.

ResourceId string

Resource identifier.

BudgetName string

Budget name.

ResourceId string

Resource identifier.

budgetName String

Budget name.

resourceId String

Resource identifier.

budgetName string

Budget name.

resourceId string

Resource identifier.

budget_name str

Budget name.

resource_id str

Resource identifier.

budgetName String

Budget name.

resourceId String

Resource identifier.

Outputs

All input properties are implicitly available as output properties. Additionally, the BudgetResourceAssociation resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing BudgetResourceAssociation Resource

Get an existing BudgetResourceAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BudgetResourceAssociationState, opts?: CustomResourceOptions): BudgetResourceAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        budget_name: Optional[str] = None,
        resource_id: Optional[str] = None) -> BudgetResourceAssociation
func GetBudgetResourceAssociation(ctx *Context, name string, id IDInput, state *BudgetResourceAssociationState, opts ...ResourceOption) (*BudgetResourceAssociation, error)
public static BudgetResourceAssociation Get(string name, Input<string> id, BudgetResourceAssociationState? state, CustomResourceOptions? opts = null)
public static BudgetResourceAssociation get(String name, Output<String> id, BudgetResourceAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BudgetName string

Budget name.

ResourceId string

Resource identifier.

BudgetName string

Budget name.

ResourceId string

Resource identifier.

budgetName String

Budget name.

resourceId String

Resource identifier.

budgetName string

Budget name.

resourceId string

Resource identifier.

budget_name str

Budget name.

resource_id str

Resource identifier.

budgetName String

Budget name.

resourceId String

Resource identifier.

Import

aws_servicecatalog_budget_resource_association can be imported using the budget name and resource ID, e.g.,

 $ pulumi import aws:servicecatalog/budgetResourceAssociation:BudgetResourceAssociation example budget-pjtvyakdlyo3m:prod-dnigbtea24ste

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.