cloudconnect

package
v2.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetNetworksArgs

type GetNetworksArgs struct {
	// A list of CCN instances IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter CCN instances by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getNetworks.

type GetNetworksNetwork

type GetNetworksNetwork struct {
	// CidrBlock of the CCN instance.
	CidrBlock   string `pulumi:"cidrBlock"`
	Description string `pulumi:"description"`
	// ID of the CCN instance.
	Id string `pulumi:"id"`
	// IsDefault of the CCN instance.
	IsDefault bool `pulumi:"isDefault"`
	// Name of the CCN instance.
	Name string `pulumi:"name"`
}

type GetNetworksNetworkArgs

type GetNetworksNetworkArgs struct {
	// CidrBlock of the CCN instance.
	CidrBlock   pulumi.StringInput `pulumi:"cidrBlock"`
	Description pulumi.StringInput `pulumi:"description"`
	// ID of the CCN instance.
	Id pulumi.StringInput `pulumi:"id"`
	// IsDefault of the CCN instance.
	IsDefault pulumi.BoolInput `pulumi:"isDefault"`
	// Name of the CCN instance.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetNetworksNetworkArgs) ElementType

func (GetNetworksNetworkArgs) ElementType() reflect.Type

func (GetNetworksNetworkArgs) ToGetNetworksNetworkOutput

func (i GetNetworksNetworkArgs) ToGetNetworksNetworkOutput() GetNetworksNetworkOutput

func (GetNetworksNetworkArgs) ToGetNetworksNetworkOutputWithContext

func (i GetNetworksNetworkArgs) ToGetNetworksNetworkOutputWithContext(ctx context.Context) GetNetworksNetworkOutput

type GetNetworksNetworkArray

type GetNetworksNetworkArray []GetNetworksNetworkInput

func (GetNetworksNetworkArray) ElementType

func (GetNetworksNetworkArray) ElementType() reflect.Type

func (GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutput

func (i GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutput() GetNetworksNetworkArrayOutput

func (GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutputWithContext

func (i GetNetworksNetworkArray) ToGetNetworksNetworkArrayOutputWithContext(ctx context.Context) GetNetworksNetworkArrayOutput

type GetNetworksNetworkArrayInput

type GetNetworksNetworkArrayInput interface {
	pulumi.Input

	ToGetNetworksNetworkArrayOutput() GetNetworksNetworkArrayOutput
	ToGetNetworksNetworkArrayOutputWithContext(context.Context) GetNetworksNetworkArrayOutput
}

GetNetworksNetworkArrayInput is an input type that accepts GetNetworksNetworkArray and GetNetworksNetworkArrayOutput values. You can construct a concrete instance of `GetNetworksNetworkArrayInput` via:

GetNetworksNetworkArray{ GetNetworksNetworkArgs{...} }

type GetNetworksNetworkArrayOutput

type GetNetworksNetworkArrayOutput struct{ *pulumi.OutputState }

func (GetNetworksNetworkArrayOutput) ElementType

func (GetNetworksNetworkArrayOutput) Index

func (GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutput

func (o GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutput() GetNetworksNetworkArrayOutput

func (GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutputWithContext

func (o GetNetworksNetworkArrayOutput) ToGetNetworksNetworkArrayOutputWithContext(ctx context.Context) GetNetworksNetworkArrayOutput

type GetNetworksNetworkInput

type GetNetworksNetworkInput interface {
	pulumi.Input

	ToGetNetworksNetworkOutput() GetNetworksNetworkOutput
	ToGetNetworksNetworkOutputWithContext(context.Context) GetNetworksNetworkOutput
}

GetNetworksNetworkInput is an input type that accepts GetNetworksNetworkArgs and GetNetworksNetworkOutput values. You can construct a concrete instance of `GetNetworksNetworkInput` via:

GetNetworksNetworkArgs{...}

type GetNetworksNetworkOutput

type GetNetworksNetworkOutput struct{ *pulumi.OutputState }

func (GetNetworksNetworkOutput) CidrBlock

CidrBlock of the CCN instance.

func (GetNetworksNetworkOutput) Description

func (GetNetworksNetworkOutput) ElementType

func (GetNetworksNetworkOutput) ElementType() reflect.Type

func (GetNetworksNetworkOutput) Id

ID of the CCN instance.

func (GetNetworksNetworkOutput) IsDefault

IsDefault of the CCN instance.

func (GetNetworksNetworkOutput) Name

Name of the CCN instance.

func (GetNetworksNetworkOutput) ToGetNetworksNetworkOutput

func (o GetNetworksNetworkOutput) ToGetNetworksNetworkOutput() GetNetworksNetworkOutput

func (GetNetworksNetworkOutput) ToGetNetworksNetworkOutputWithContext

func (o GetNetworksNetworkOutput) ToGetNetworksNetworkOutputWithContext(ctx context.Context) GetNetworksNetworkOutput

type GetNetworksResult

type GetNetworksResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CCN instances IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of CCN instances names.
	Names []string `pulumi:"names"`
	// A list of CCN instances. Each element contains the following attributes:
	Networks   []GetNetworksNetwork `pulumi:"networks"`
	OutputFile *string              `pulumi:"outputFile"`
}

A collection of values returned by getNetworks.

func GetNetworks

func GetNetworks(ctx *pulumi.Context, args *GetNetworksArgs, opts ...pulumi.InvokeOption) (*GetNetworksResult, error)

This data source provides Cloud Connect Networks available to the user.

> **NOTE:** Available in 1.59.0+

> **NOTE:** Only the following regions support create Cloud Connect Network. [`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`]

type Network

type Network struct {
	pulumi.CustomResourceState

	// The CidrBlock of the CCN instance. Defaults to null.
	CidrBlock pulumi.StringPtrOutput `pulumi:"cidrBlock"`
	// The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
	IsDefault pulumi.BoolOutput `pulumi:"isDefault"`
	// The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
	Name pulumi.StringOutput `pulumi:"name"`
}

Provides a cloud connect network resource. Cloud Connect Network (CCN) is another important component of Smart Access Gateway. It is a device access matrix composed of Alibaba Cloud distributed access gateways. You can add multiple Smart Access Gateway (SAG) devices to a CCN instance and then attach the CCN instance to a Cloud Enterprise Network (CEN) instance to connect the local branches to the Alibaba Cloud.

For information about cloud connect network and how to use it, see [What is Cloud Connect Network](https://www.alibabacloud.com/help/doc-detail/93667.htm).

> **NOTE:** Available in 1.59.0+

> **NOTE:** Only the following regions support create Cloud Connect Network. [`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

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cloudconnect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudconnect.NewNetwork(ctx, "_default", &cloudconnect.NetworkArgs{
			CidrBlock:   pulumi.String("192.168.0.0/24"),
			Description: pulumi.String("tf-testAccCloudConnectNetworkDescription"),
			IsDefault:   pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetNetwork

func GetNetwork(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkState, opts ...pulumi.ResourceOption) (*Network, error)

GetNetwork gets an existing Network resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetwork

func NewNetwork(ctx *pulumi.Context,
	name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error)

NewNetwork registers a new resource with the given unique name, arguments, and options.

type NetworkArgs

type NetworkArgs struct {
	// The CidrBlock of the CCN instance. Defaults to null.
	CidrBlock pulumi.StringPtrInput
	// The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
	Description pulumi.StringPtrInput
	// Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
	IsDefault pulumi.BoolInput
	// The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Network resource.

func (NetworkArgs) ElementType

func (NetworkArgs) ElementType() reflect.Type

type NetworkAttachment

type NetworkAttachment struct {
	pulumi.CustomResourceState

	// The ID of the CCN instance.
	CcnId pulumi.StringOutput `pulumi:"ccnId"`
	// The ID of the Smart Access Gateway instance.
	SagId pulumi.StringOutput `pulumi:"sagId"`
}

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](https://www.alibabacloud.com/help/doc-detail/124230.htm).

> **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

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cloudconnect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ccn, err := cloudconnect.NewNetwork(ctx, "ccn", &cloudconnect.NetworkArgs{
			IsDefault: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = cloudconnect.NewNetworkAttachment(ctx, "_default", &cloudconnect.NetworkAttachmentArgs{
			CcnId: ccn.ID(),
			SagId: pulumi.String("sag-xxxxx"),
		}, pulumi.DependsOn([]pulumi.Resource{
			ccn,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetNetworkAttachment

func GetNetworkAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkAttachmentState, opts ...pulumi.ResourceOption) (*NetworkAttachment, error)

GetNetworkAttachment gets an existing NetworkAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkAttachment

func NewNetworkAttachment(ctx *pulumi.Context,
	name string, args *NetworkAttachmentArgs, opts ...pulumi.ResourceOption) (*NetworkAttachment, error)

NewNetworkAttachment registers a new resource with the given unique name, arguments, and options.

type NetworkAttachmentArgs

type NetworkAttachmentArgs struct {
	// The ID of the CCN instance.
	CcnId pulumi.StringInput
	// The ID of the Smart Access Gateway instance.
	SagId pulumi.StringInput
}

The set of arguments for constructing a NetworkAttachment resource.

func (NetworkAttachmentArgs) ElementType

func (NetworkAttachmentArgs) ElementType() reflect.Type

type NetworkAttachmentState

type NetworkAttachmentState struct {
	// The ID of the CCN instance.
	CcnId pulumi.StringPtrInput
	// The ID of the Smart Access Gateway instance.
	SagId pulumi.StringPtrInput
}

func (NetworkAttachmentState) ElementType

func (NetworkAttachmentState) ElementType() reflect.Type

type NetworkGrant

type NetworkGrant struct {
	pulumi.CustomResourceState

	// The ID of the CCN instance.
	CcnId pulumi.StringOutput `pulumi:"ccnId"`
	// The ID of the CEN instance.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The ID of the account to which the CEN instance belongs.
	CenUid pulumi.StringOutput `pulumi:"cenUid"`
}

Provides a Cloud Connect Network Grant resource. If the CEN instance to be attached belongs to another account, authorization by the CEN instance is required.

For information about Cloud Connect Network Grant and how to use it, see [What is Cloud Connect Network Grant](https://www.alibabacloud.com/help/doc-detail/94543.htm).

> **NOTE:** Available in 1.63.0+

> **NOTE:** Only the following regions support create Cloud Connect Network Grant. [`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

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cloudconnect"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/providers"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := providers.Newalicloud(ctx, "ccnAccount", nil)
		if err != nil {
			return err
		}
		_, err = providers.Newalicloud(ctx, "cenAccount", &providers.alicloudArgs{
			Region:    pulumi.String("cn-hangzhou"),
			AccessKey: pulumi.String("xxxxxx"),
			SecretKey: pulumi.String("xxxxxx"),
		})
		if err != nil {
			return err
		}
		cen, err := cen.NewInstance(ctx, "cen", nil, pulumi.Provider(alicloud.Cen_account))
		if err != nil {
			return err
		}
		ccn, err := cloudconnect.NewNetwork(ctx, "ccn", &cloudconnect.NetworkArgs{
			IsDefault: pulumi.Bool(true),
		}, pulumi.Provider(alicloud.Ccn_account))
		if err != nil {
			return err
		}
		_, err = cloudconnect.NewNetworkGrant(ctx, "_default", &cloudconnect.NetworkGrantArgs{
			CcnId:  ccn.ID(),
			CenId:  cen.ID(),
			CenUid: pulumi.String("xxxxxx"),
		}, pulumi.DependsOn([]pulumi.Resource{
			ccn,
			cen,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetNetworkGrant

func GetNetworkGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NetworkGrantState, opts ...pulumi.ResourceOption) (*NetworkGrant, error)

GetNetworkGrant gets an existing NetworkGrant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNetworkGrant

func NewNetworkGrant(ctx *pulumi.Context,
	name string, args *NetworkGrantArgs, opts ...pulumi.ResourceOption) (*NetworkGrant, error)

NewNetworkGrant registers a new resource with the given unique name, arguments, and options.

type NetworkGrantArgs

type NetworkGrantArgs struct {
	// The ID of the CCN instance.
	CcnId pulumi.StringInput
	// The ID of the CEN instance.
	CenId pulumi.StringInput
	// The ID of the account to which the CEN instance belongs.
	CenUid pulumi.StringInput
}

The set of arguments for constructing a NetworkGrant resource.

func (NetworkGrantArgs) ElementType

func (NetworkGrantArgs) ElementType() reflect.Type

type NetworkGrantState

type NetworkGrantState struct {
	// The ID of the CCN instance.
	CcnId pulumi.StringPtrInput
	// The ID of the CEN instance.
	CenId pulumi.StringPtrInput
	// The ID of the account to which the CEN instance belongs.
	CenUid pulumi.StringPtrInput
}

func (NetworkGrantState) ElementType

func (NetworkGrantState) ElementType() reflect.Type

type NetworkState

type NetworkState struct {
	// The CidrBlock of the CCN instance. Defaults to null.
	CidrBlock pulumi.StringPtrInput
	// The description of the CCN instance. The description can contain 2 to 256 characters. The description must start with English letters, but cannot start with http:// or https://.
	Description pulumi.StringPtrInput
	// Created by default. If the client does not have ccn in the binding, it will create a ccn for the user to replace.
	IsDefault pulumi.BoolPtrInput
	// The name of the CCN instance. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
	Name pulumi.StringPtrInput
}

func (NetworkState) ElementType

func (NetworkState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL