1. Packages
  2. AWS Classic
  3. API Docs
  4. servicecatalog
  5. BudgetResourceAssociation

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.30.0 published on Thursday, Apr 11, 2024 by Pulumi

aws.servicecatalog.BudgetResourceAssociation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.30.0 published on Thursday, Apr 11, 2024 by Pulumi

    Manages a Service Catalog Budget Resource Association.

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

    Example Usage

    Basic Usage

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

    Create BudgetResourceAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BudgetResourceAssociation(name: string, args: BudgetResourceAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def BudgetResourceAssociation(resource_name: str,
                                  args: BudgetResourceAssociationArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def BudgetResourceAssociation(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  budget_name: Optional[str] = None,
                                  resource_id: Optional[str] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var budgetResourceAssociationResource = new Aws.ServiceCatalog.BudgetResourceAssociation("budgetResourceAssociationResource", new()
    {
        BudgetName = "string",
        ResourceId = "string",
    });
    
    example, err := servicecatalog.NewBudgetResourceAssociation(ctx, "budgetResourceAssociationResource", &servicecatalog.BudgetResourceAssociationArgs{
    	BudgetName: pulumi.String("string"),
    	ResourceId: pulumi.String("string"),
    })
    
    var budgetResourceAssociationResource = new BudgetResourceAssociation("budgetResourceAssociationResource", BudgetResourceAssociationArgs.builder()        
        .budgetName("string")
        .resourceId("string")
        .build());
    
    budget_resource_association_resource = aws.servicecatalog.BudgetResourceAssociation("budgetResourceAssociationResource",
        budget_name="string",
        resource_id="string")
    
    const budgetResourceAssociationResource = new aws.servicecatalog.BudgetResourceAssociation("budgetResourceAssociationResource", {
        budgetName: "string",
        resourceId: "string",
    });
    
    type: aws:servicecatalog:BudgetResourceAssociation
    properties:
        budgetName: string
        resourceId: string
    

    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

    Using pulumi import, import aws_servicecatalog_budget_resource_association using the budget name and resource ID. For example:

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.30.0 published on Thursday, Apr 11, 2024 by Pulumi