Show / Hide Table of Contents

Class GetBandwidthPackages

Inheritance
System.Object
GetBandwidthPackages
Inherited Members
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 static class GetBandwidthPackages

Methods

View Source

InvokeAsync(GetBandwidthPackagesArgs, InvokeOptions)

This data source provides CEN Bandwidth Packages available to the user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var bwp = Output.Create(AliCloud.Cen.GetBandwidthPackages.InvokeAsync(new AliCloud.Cen.GetBandwidthPackagesArgs
    {
        InstanceId = "cen-id1",
        NameRegex = "^foo",
    }));
    this.FirstCenBandwidthPackageId = bwp.Apply(bwp => bwp.Packages[0].Id);
}

[Output("firstCenBandwidthPackageId")]
public Output<string> FirstCenBandwidthPackageId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetBandwidthPackagesResult> InvokeAsync(GetBandwidthPackagesArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetBandwidthPackagesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetBandwidthPackagesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.