Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

NetworkPackage

Provides a ECD Network Package resource.

For information about ECD Network Package and how to use it, see What is Network Package.

NOTE: Available in v1.142.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new AliCloud.Eds.SimpleOfficeSite("default", new AliCloud.Eds.SimpleOfficeSiteArgs
        {
            CidrBlock = "172.16.0.0/12",
            DesktopAccessType = "Internet",
            OfficeSiteName = "your_office_site_name",
        });
        var example = new AliCloud.Eds.NetworkPackage("example", new AliCloud.Eds.NetworkPackageArgs
        {
            Bandwidth = 10,
            OfficeSiteId = @default.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eds.NewSimpleOfficeSite(ctx, "default", &eds.SimpleOfficeSiteArgs{
			CidrBlock:         pulumi.String("172.16.0.0/12"),
			DesktopAccessType: pulumi.String("Internet"),
			OfficeSiteName:    pulumi.String("your_office_site_name"),
		})
		if err != nil {
			return err
		}
		_, err = eds.NewNetworkPackage(ctx, "example", &eds.NetworkPackageArgs{
			Bandwidth:    pulumi.Int(10),
			OfficeSiteId: _default.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.eds.SimpleOfficeSite("default",
    cidr_block="172.16.0.0/12",
    desktop_access_type="Internet",
    office_site_name="your_office_site_name")
example = alicloud.eds.NetworkPackage("example",
    bandwidth=10,
    office_site_id=default.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.eds.SimpleOfficeSite("default", {
    cidrBlock: "172.16.0.0/12",
    desktopAccessType: "Internet",
    officeSiteName: "your_office_site_name",
});
const example = new alicloud.eds.NetworkPackage("example", {
    bandwidth: 10,
    officeSiteId: _default.id,
});

Coming soon!

Create a NetworkPackage Resource

new NetworkPackage(name: string, args: NetworkPackageArgs, opts?: CustomResourceOptions);
@overload
def NetworkPackage(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   bandwidth: Optional[int] = None,
                   office_site_id: Optional[str] = None)
@overload
def NetworkPackage(resource_name: str,
                   args: NetworkPackageArgs,
                   opts: Optional[ResourceOptions] = None)
func NewNetworkPackage(ctx *Context, name string, args NetworkPackageArgs, opts ...ResourceOption) (*NetworkPackage, error)
public NetworkPackage(string name, NetworkPackageArgs args, CustomResourceOptions? opts = null)
public NetworkPackage(String name, NetworkPackageArgs args)
public NetworkPackage(String name, NetworkPackageArgs args, CustomResourceOptions options)
type: alicloud:eds:NetworkPackage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NetworkPackageArgs
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 NetworkPackageArgs
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 NetworkPackageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkPackageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NetworkPackageArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Bandwidth int

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

OfficeSiteId string

The ID of office site.

Bandwidth int

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

OfficeSiteId string

The ID of office site.

bandwidth Integer

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

officeSiteId String

The ID of office site.

bandwidth number

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

officeSiteId string

The ID of office site.

bandwidth int

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

office_site_id str

The ID of office site.

bandwidth Number

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

officeSiteId String

The ID of office site.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

InternetChargeType string

The internet charge type of package.

Status string

The status of network package. Valid values: Creating, InUse, Releasing,Released.

Id string

The provider-assigned unique ID for this managed resource.

InternetChargeType string

The internet charge type of package.

Status string

The status of network package. Valid values: Creating, InUse, Releasing,Released.

id String

The provider-assigned unique ID for this managed resource.

internetChargeType String

The internet charge type of package.

status String

The status of network package. Valid values: Creating, InUse, Releasing,Released.

id string

The provider-assigned unique ID for this managed resource.

internetChargeType string

The internet charge type of package.

status string

The status of network package. Valid values: Creating, InUse, Releasing,Released.

id str

The provider-assigned unique ID for this managed resource.

internet_charge_type str

The internet charge type of package.

status str

The status of network package. Valid values: Creating, InUse, Releasing,Released.

id String

The provider-assigned unique ID for this managed resource.

internetChargeType String

The internet charge type of package.

status String

The status of network package. Valid values: Creating, InUse, Releasing,Released.

Look up an Existing NetworkPackage Resource

Get an existing NetworkPackage 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?: NetworkPackageState, opts?: CustomResourceOptions): NetworkPackage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bandwidth: Optional[int] = None,
        internet_charge_type: Optional[str] = None,
        office_site_id: Optional[str] = None,
        status: Optional[str] = None) -> NetworkPackage
func GetNetworkPackage(ctx *Context, name string, id IDInput, state *NetworkPackageState, opts ...ResourceOption) (*NetworkPackage, error)
public static NetworkPackage Get(string name, Input<string> id, NetworkPackageState? state, CustomResourceOptions? opts = null)
public static NetworkPackage get(String name, Output<String> id, NetworkPackageState 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:
Bandwidth int

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

InternetChargeType string

The internet charge type of package.

OfficeSiteId string

The ID of office site.

Status string

The status of network package. Valid values: Creating, InUse, Releasing,Released.

Bandwidth int

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

InternetChargeType string

The internet charge type of package.

OfficeSiteId string

The ID of office site.

Status string

The status of network package. Valid values: Creating, InUse, Releasing,Released.

bandwidth Integer

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

internetChargeType String

The internet charge type of package.

officeSiteId String

The ID of office site.

status String

The status of network package. Valid values: Creating, InUse, Releasing,Released.

bandwidth number

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

internetChargeType string

The internet charge type of package.

officeSiteId string

The ID of office site.

status string

The status of network package. Valid values: Creating, InUse, Releasing,Released.

bandwidth int

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

internet_charge_type str

The internet charge type of package.

office_site_id str

The ID of office site.

status str

The status of network package. Valid values: Creating, InUse, Releasing,Released.

bandwidth Number

The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.

internetChargeType String

The internet charge type of package.

officeSiteId String

The ID of office site.

status String

The status of network package. Valid values: Creating, InUse, Releasing,Released.

Import

ECD Network Package can be imported using the id, e.g.

 $ pulumi import alicloud:eds/networkPackage:NetworkPackage example <id>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.