NetworkAttachment
Provides a Cloud Connect Network Attachment resource. This topic describes how to associate a Smart Access Gateway (SAG) instance with a network instance. You must associate an SAG instance with a network instance if you want to connect the SAG to Alibaba Cloud. You can connect an SAG to Alibaba Cloud through a leased line, the Internet, or the active and standby links.
For information about Cloud Connect Network Attachment and how to use it, see What is Cloud Connect Network Attachment.
NOTE: Available in 1.64.0+
NOTE: Only the following regions support. [
cn-shanghai,cn-shanghai-finance-1,cn-hongkong,ap-southeast-1,ap-southeast-2,ap-southeast-3,ap-southeast-5,ap-northeast-1,eu-central-1]
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var ccn = new AliCloud.CloudConnect.Network("ccn", new AliCloud.CloudConnect.NetworkArgs
{
IsDefault = true,
});
var @default = new AliCloud.CloudConnect.NetworkAttachment("default", new AliCloud.CloudConnect.NetworkAttachmentArgs
{
CcnId = ccn.Id,
SagId = "sag-xxxxx",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
ccn = alicloud.cloudconnect.Network("ccn", is_default="true")
default = alicloud.cloudconnect.NetworkAttachment("default",
ccn_id=ccn.id,
sag_id="sag-xxxxx")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ccn = new alicloud.cloudconnect.Network("ccn", {
isDefault: true,
});
const defaultNetworkAttachment = new alicloud.cloudconnect.NetworkAttachment("default", {
ccnId: ccn.id,
sagId: "sag-xxxxx",
}, { dependsOn: [ccn] });Create a NetworkAttachment Resource
new NetworkAttachment(name: string, args: NetworkAttachmentArgs, opts?: CustomResourceOptions);def NetworkAttachment(resource_name, opts=None, ccn_id=None, sag_id=None, __props__=None);func NewNetworkAttachment(ctx *Context, name string, args NetworkAttachmentArgs, opts ...ResourceOption) (*NetworkAttachment, error)public NetworkAttachment(string name, NetworkAttachmentArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NetworkAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NetworkAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NetworkAttachment resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkAttachment resource produces the following output properties:
Look up an Existing NetworkAttachment Resource
Get an existing NetworkAttachment 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?: NetworkAttachmentState, opts?: CustomResourceOptions): NetworkAttachmentstatic get(resource_name, id, opts=None, ccn_id=None, sag_id=None, __props__=None);func GetNetworkAttachment(ctx *Context, name string, id IDInput, state *NetworkAttachmentState, opts ...ResourceOption) (*NetworkAttachment, error)public static NetworkAttachment Get(string name, Input<string> id, NetworkAttachmentState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.