1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dataworks
  5. Network
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.dataworks.Network

Explore with Pulumi AI

Provides a Data Works Network resource.

Resource Group Network.

For information about Data Works Network and how to use it, see What is Network.

NOTE: Available since v1.241.0.

Create Network Resource

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

Constructor syntax

new Network(name: string, args: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
            args: NetworkArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Network(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            dw_resource_group_id: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: alicloud:dataworks:Network
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NetworkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

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

var alicloudNetworkResource = new AliCloud.DataWorks.Network("alicloudNetworkResource", new()
{
    DwResourceGroupId = "string",
    VpcId = "string",
    VswitchId = "string",
});
Copy
example, err := dataworks.NewNetwork(ctx, "alicloudNetworkResource", &dataworks.NetworkArgs{
	DwResourceGroupId: pulumi.String("string"),
	VpcId:             pulumi.String("string"),
	VswitchId:         pulumi.String("string"),
})
Copy
var alicloudNetworkResource = new Network("alicloudNetworkResource", NetworkArgs.builder()
    .dwResourceGroupId("string")
    .vpcId("string")
    .vswitchId("string")
    .build());
Copy
alicloud_network_resource = alicloud.dataworks.Network("alicloudNetworkResource",
    dw_resource_group_id="string",
    vpc_id="string",
    vswitch_id="string")
Copy
const alicloudNetworkResource = new alicloud.dataworks.Network("alicloudNetworkResource", {
    dwResourceGroupId: "string",
    vpcId: "string",
    vswitchId: "string",
});
Copy
type: alicloud:dataworks:Network
properties:
    dwResourceGroupId: string
    vpcId: string
    vswitchId: string
Copy

Network Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Network resource accepts the following input properties:

DwResourceGroupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the resource group.
VpcId
This property is required.
Changes to this property will trigger replacement.
string
Virtual Private Cloud ID of network resources
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
The vSwitch ID of the network resource.
DwResourceGroupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the resource group.
VpcId
This property is required.
Changes to this property will trigger replacement.
string
Virtual Private Cloud ID of network resources
VswitchId
This property is required.
Changes to this property will trigger replacement.
string
The vSwitch ID of the network resource.
dwResourceGroupId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the resource group.
vpcId
This property is required.
Changes to this property will trigger replacement.
String
Virtual Private Cloud ID of network resources
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
The vSwitch ID of the network resource.
dwResourceGroupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the resource group.
vpcId
This property is required.
Changes to this property will trigger replacement.
string
Virtual Private Cloud ID of network resources
vswitchId
This property is required.
Changes to this property will trigger replacement.
string
The vSwitch ID of the network resource.
dw_resource_group_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the resource group.
vpc_id
This property is required.
Changes to this property will trigger replacement.
str
Virtual Private Cloud ID of network resources
vswitch_id
This property is required.
Changes to this property will trigger replacement.
str
The vSwitch ID of the network resource.
dwResourceGroupId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the resource group.
vpcId
This property is required.
Changes to this property will trigger replacement.
String
Virtual Private Cloud ID of network resources
vswitchId
This property is required.
Changes to this property will trigger replacement.
String
The vSwitch ID of the network resource.

Outputs

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

CreateTime int
Time when the network resource was created
Id string
The provider-assigned unique ID for this managed resource.
Status string
Network Resource Status
CreateTime int
Time when the network resource was created
Id string
The provider-assigned unique ID for this managed resource.
Status string
Network Resource Status
createTime Integer
Time when the network resource was created
id String
The provider-assigned unique ID for this managed resource.
status String
Network Resource Status
createTime number
Time when the network resource was created
id string
The provider-assigned unique ID for this managed resource.
status string
Network Resource Status
create_time int
Time when the network resource was created
id str
The provider-assigned unique ID for this managed resource.
status str
Network Resource Status
createTime Number
Time when the network resource was created
id String
The provider-assigned unique ID for this managed resource.
status String
Network Resource Status

Look up Existing Network Resource

Get an existing Network 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?: NetworkState, opts?: CustomResourceOptions): Network
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[int] = None,
        dw_resource_group_id: Optional[str] = None,
        status: Optional[str] = None,
        vpc_id: Optional[str] = None,
        vswitch_id: Optional[str] = None) -> Network
func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
resources:  _:    type: alicloud:dataworks:Network    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreateTime int
Time when the network resource was created
DwResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
Status string
Network Resource Status
VpcId Changes to this property will trigger replacement. string
Virtual Private Cloud ID of network resources
VswitchId Changes to this property will trigger replacement. string
The vSwitch ID of the network resource.
CreateTime int
Time when the network resource was created
DwResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
Status string
Network Resource Status
VpcId Changes to this property will trigger replacement. string
Virtual Private Cloud ID of network resources
VswitchId Changes to this property will trigger replacement. string
The vSwitch ID of the network resource.
createTime Integer
Time when the network resource was created
dwResourceGroupId Changes to this property will trigger replacement. String
The ID of the resource group.
status String
Network Resource Status
vpcId Changes to this property will trigger replacement. String
Virtual Private Cloud ID of network resources
vswitchId Changes to this property will trigger replacement. String
The vSwitch ID of the network resource.
createTime number
Time when the network resource was created
dwResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
status string
Network Resource Status
vpcId Changes to this property will trigger replacement. string
Virtual Private Cloud ID of network resources
vswitchId Changes to this property will trigger replacement. string
The vSwitch ID of the network resource.
create_time int
Time when the network resource was created
dw_resource_group_id Changes to this property will trigger replacement. str
The ID of the resource group.
status str
Network Resource Status
vpc_id Changes to this property will trigger replacement. str
Virtual Private Cloud ID of network resources
vswitch_id Changes to this property will trigger replacement. str
The vSwitch ID of the network resource.
createTime Number
Time when the network resource was created
dwResourceGroupId Changes to this property will trigger replacement. String
The ID of the resource group.
status String
Network Resource Status
vpcId Changes to this property will trigger replacement. String
Virtual Private Cloud ID of network resources
vswitchId Changes to this property will trigger replacement. String
The vSwitch ID of the network resource.

Import

Data Works Network can be imported using the id, e.g.

$ pulumi import alicloud:dataworks/network:Network example <id>
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.