1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. BandwidthPackageAssociate
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.cen.BandwidthPackageAssociate

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage cen bandwidth package associate

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cen.BandwidthPackageAssociate("foo", new()
        {
            CenBandwidthPackageId = "cbp-2bzeew3s8p79c2dx0eeohej4x",
            CenId = "cen-2bzrl3srxsv0g2dx0efyoojn3",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cen.NewBandwidthPackageAssociate(ctx, "foo", &cen.BandwidthPackageAssociateArgs{
    			CenBandwidthPackageId: pulumi.String("cbp-2bzeew3s8p79c2dx0eeohej4x"),
    			CenId:                 pulumi.String("cen-2bzrl3srxsv0g2dx0efyoojn3"),
    		})
    		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.volcengine.cen.BandwidthPackageAssociate;
    import com.pulumi.volcengine.cen.BandwidthPackageAssociateArgs;
    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 foo = new BandwidthPackageAssociate("foo", BandwidthPackageAssociateArgs.builder()        
                .cenBandwidthPackageId("cbp-2bzeew3s8p79c2dx0eeohej4x")
                .cenId("cen-2bzrl3srxsv0g2dx0efyoojn3")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cen.BandwidthPackageAssociate("foo",
        cen_bandwidth_package_id="cbp-2bzeew3s8p79c2dx0eeohej4x",
        cen_id="cen-2bzrl3srxsv0g2dx0efyoojn3")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cen.BandwidthPackageAssociate("foo", {
        cenBandwidthPackageId: "cbp-2bzeew3s8p79c2dx0eeohej4x",
        cenId: "cen-2bzrl3srxsv0g2dx0efyoojn3",
    });
    
    resources:
      foo:
        type: volcengine:cen:BandwidthPackageAssociate
        properties:
          cenBandwidthPackageId: cbp-2bzeew3s8p79c2dx0eeohej4x
          cenId: cen-2bzrl3srxsv0g2dx0efyoojn3
    

    Create BandwidthPackageAssociate Resource

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

    Constructor syntax

    new BandwidthPackageAssociate(name: string, args: BandwidthPackageAssociateArgs, opts?: CustomResourceOptions);
    @overload
    def BandwidthPackageAssociate(resource_name: str,
                                  args: BandwidthPackageAssociateArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def BandwidthPackageAssociate(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  cen_bandwidth_package_id: Optional[str] = None,
                                  cen_id: Optional[str] = None)
    func NewBandwidthPackageAssociate(ctx *Context, name string, args BandwidthPackageAssociateArgs, opts ...ResourceOption) (*BandwidthPackageAssociate, error)
    public BandwidthPackageAssociate(string name, BandwidthPackageAssociateArgs args, CustomResourceOptions? opts = null)
    public BandwidthPackageAssociate(String name, BandwidthPackageAssociateArgs args)
    public BandwidthPackageAssociate(String name, BandwidthPackageAssociateArgs args, CustomResourceOptions options)
    
    type: volcengine:cen:BandwidthPackageAssociate
    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 BandwidthPackageAssociateArgs
    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 BandwidthPackageAssociateArgs
    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 BandwidthPackageAssociateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BandwidthPackageAssociateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BandwidthPackageAssociateArgs
    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 bandwidthPackageAssociateResource = new Volcengine.Cen.BandwidthPackageAssociate("bandwidthPackageAssociateResource", new()
    {
        CenBandwidthPackageId = "string",
        CenId = "string",
    });
    
    example, err := cen.NewBandwidthPackageAssociate(ctx, "bandwidthPackageAssociateResource", &cen.BandwidthPackageAssociateArgs{
    	CenBandwidthPackageId: pulumi.String("string"),
    	CenId:                 pulumi.String("string"),
    })
    
    var bandwidthPackageAssociateResource = new BandwidthPackageAssociate("bandwidthPackageAssociateResource", BandwidthPackageAssociateArgs.builder()        
        .cenBandwidthPackageId("string")
        .cenId("string")
        .build());
    
    bandwidth_package_associate_resource = volcengine.cen.BandwidthPackageAssociate("bandwidthPackageAssociateResource",
        cen_bandwidth_package_id="string",
        cen_id="string")
    
    const bandwidthPackageAssociateResource = new volcengine.cen.BandwidthPackageAssociate("bandwidthPackageAssociateResource", {
        cenBandwidthPackageId: "string",
        cenId: "string",
    });
    
    type: volcengine:cen:BandwidthPackageAssociate
    properties:
        cenBandwidthPackageId: string
        cenId: string
    

    BandwidthPackageAssociate 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 BandwidthPackageAssociate resource accepts the following input properties:

    CenBandwidthPackageId string
    The ID of the cen bandwidth package.
    CenId string
    The ID of the cen.
    CenBandwidthPackageId string
    The ID of the cen bandwidth package.
    CenId string
    The ID of the cen.
    cenBandwidthPackageId String
    The ID of the cen bandwidth package.
    cenId String
    The ID of the cen.
    cenBandwidthPackageId string
    The ID of the cen bandwidth package.
    cenId string
    The ID of the cen.
    cen_bandwidth_package_id str
    The ID of the cen bandwidth package.
    cen_id str
    The ID of the cen.
    cenBandwidthPackageId String
    The ID of the cen bandwidth package.
    cenId String
    The ID of the cen.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BandwidthPackageAssociate 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 BandwidthPackageAssociate Resource

    Get an existing BandwidthPackageAssociate 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?: BandwidthPackageAssociateState, opts?: CustomResourceOptions): BandwidthPackageAssociate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cen_bandwidth_package_id: Optional[str] = None,
            cen_id: Optional[str] = None) -> BandwidthPackageAssociate
    func GetBandwidthPackageAssociate(ctx *Context, name string, id IDInput, state *BandwidthPackageAssociateState, opts ...ResourceOption) (*BandwidthPackageAssociate, error)
    public static BandwidthPackageAssociate Get(string name, Input<string> id, BandwidthPackageAssociateState? state, CustomResourceOptions? opts = null)
    public static BandwidthPackageAssociate get(String name, Output<String> id, BandwidthPackageAssociateState 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:
    CenBandwidthPackageId string
    The ID of the cen bandwidth package.
    CenId string
    The ID of the cen.
    CenBandwidthPackageId string
    The ID of the cen bandwidth package.
    CenId string
    The ID of the cen.
    cenBandwidthPackageId String
    The ID of the cen bandwidth package.
    cenId String
    The ID of the cen.
    cenBandwidthPackageId string
    The ID of the cen bandwidth package.
    cenId string
    The ID of the cen.
    cen_bandwidth_package_id str
    The ID of the cen bandwidth package.
    cen_id str
    The ID of the cen.
    cenBandwidthPackageId String
    The ID of the cen bandwidth package.
    cenId String
    The ID of the cen.

    Import

    Cen bandwidth package associate can be imported using the CenBandwidthPackageId:CenId, e.g.

     $ pulumi import volcengine:cen/bandwidthPackageAssociate:BandwidthPackageAssociate default cbp-4c2zaavbvh5fx****:cen-7qthudw0ll6jmc****
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine