Show / Hide Table of Contents

Class BandwidthPackageAttachment

Provides a CEN bandwidth package attachment resource. The resource can be used to bind a bandwidth package to a specified CEN instance.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    // Create a new bandwidth package attachment and use it to attach a bandwidth package to a new CEN
    var cen = new AliCloud.Cen.Instance("cen", new AliCloud.Cen.InstanceArgs
    {
        Description = "tf-testAccCenBandwidthPackageAttachmentDescription",
    });
    var bwp = new AliCloud.Cen.BandwidthPackage("bwp", new AliCloud.Cen.BandwidthPackageArgs
    {
        Bandwidth = 20,
        GeographicRegionIds = 
        {
            "China",
            "Asia-Pacific",
        },
    });
    var foo = new AliCloud.Cen.BandwidthPackageAttachment("foo", new AliCloud.Cen.BandwidthPackageAttachmentArgs
    {
        BandwidthPackageId = bwp.Id,
        InstanceId = cen.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
BandwidthPackageAttachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Cen
Assembly: Pulumi.AliCloud.dll
Syntax
public class BandwidthPackageAttachment : CustomResource

Constructors

View Source

BandwidthPackageAttachment(String, BandwidthPackageAttachmentArgs, CustomResourceOptions)

Create a BandwidthPackageAttachment resource with the given unique name, arguments, and options.

Declaration
public BandwidthPackageAttachment(string name, BandwidthPackageAttachmentArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

BandwidthPackageAttachmentArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

BandwidthPackageId

The ID of the bandwidth package.

Declaration
public Output<string> BandwidthPackageId { get; }
Property Value
Type Description
Output<System.String>
View Source

InstanceId

The ID of the CEN.

Declaration
public Output<string> InstanceId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, BandwidthPackageAttachmentState, CustomResourceOptions)

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

Declaration
public static BandwidthPackageAttachment Get(string name, Input<string> id, BandwidthPackageAttachmentState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

BandwidthPackageAttachmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
BandwidthPackageAttachment
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.