ackone

package
v3.55.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// Cluster name.
	ClusterName pulumi.StringOutput `pulumi:"clusterName"`
	// Cluster creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Cluster network information. See `network` below.
	Network ClusterNetworkOutput `pulumi:"network"`
	// Cluster attributes. Valid values: 'Default', 'XFlow'.
	Profile pulumi.StringOutput `pulumi:"profile"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Ack One Cluster resource. Fleet Manager Cluster.

For information about Ack One Cluster and how to use it, see [What is Cluster](https://www.alibabacloud.com/help/en/ack/distributed-cloud-container-platform-for-kubernetes/developer-reference/api-adcp-2022-01-01-createhubcluster).

> **NOTE:** Available since v1.212.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ackone"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultVpc, err := vpc.NewNetwork(ctx, "defaultVpc", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/12"),
			VpcName:   pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultyVSwitch, err := vpc.NewSwitch(ctx, "defaultyVSwitch", &vpc.SwitchArgs{
			VpcId:       defaultVpc.ID(),
			CidrBlock:   pulumi.String("172.16.2.0/24"),
			ZoneId:      pulumi.String(_default.Zones[0].Id),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = ackone.NewCluster(ctx, "default", &ackone.ClusterArgs{
			Network: &ackone.ClusterNetworkArgs{
				VpcId: defaultVpc.ID(),
				Vswitches: pulumi.StringArray{
					defaultyVSwitch.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Ack One Cluster can be imported using the id, e.g.

```sh $ pulumi import alicloud:ackone/cluster:Cluster example <id> ```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster 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 NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

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

func (*Cluster) ElementType

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterArgs

type ClusterArgs struct {
	// Cluster name.
	ClusterName pulumi.StringPtrInput
	// Cluster network information. See `network` below.
	Network ClusterNetworkInput
	// Cluster attributes. Valid values: 'Default', 'XFlow'.
	Profile pulumi.StringPtrInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterInput

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterNetwork

type ClusterNetwork struct {
	// Security group to which the cluster belongs.
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	// VpcId to which the cluster belongs.
	VpcId string `pulumi:"vpcId"`
	// Switch to which the cluster belongs.
	Vswitches []string `pulumi:"vswitches"`
}

type ClusterNetworkArgs

type ClusterNetworkArgs struct {
	// Security group to which the cluster belongs.
	SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
	// VpcId to which the cluster belongs.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// Switch to which the cluster belongs.
	Vswitches pulumi.StringArrayInput `pulumi:"vswitches"`
}

func (ClusterNetworkArgs) ElementType

func (ClusterNetworkArgs) ElementType() reflect.Type

func (ClusterNetworkArgs) ToClusterNetworkOutput

func (i ClusterNetworkArgs) ToClusterNetworkOutput() ClusterNetworkOutput

func (ClusterNetworkArgs) ToClusterNetworkOutputWithContext

func (i ClusterNetworkArgs) ToClusterNetworkOutputWithContext(ctx context.Context) ClusterNetworkOutput

func (ClusterNetworkArgs) ToClusterNetworkPtrOutput

func (i ClusterNetworkArgs) ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput

func (ClusterNetworkArgs) ToClusterNetworkPtrOutputWithContext

func (i ClusterNetworkArgs) ToClusterNetworkPtrOutputWithContext(ctx context.Context) ClusterNetworkPtrOutput

type ClusterNetworkInput

type ClusterNetworkInput interface {
	pulumi.Input

	ToClusterNetworkOutput() ClusterNetworkOutput
	ToClusterNetworkOutputWithContext(context.Context) ClusterNetworkOutput
}

ClusterNetworkInput is an input type that accepts ClusterNetworkArgs and ClusterNetworkOutput values. You can construct a concrete instance of `ClusterNetworkInput` via:

ClusterNetworkArgs{...}

type ClusterNetworkOutput

type ClusterNetworkOutput struct{ *pulumi.OutputState }

func (ClusterNetworkOutput) ElementType

func (ClusterNetworkOutput) ElementType() reflect.Type

func (ClusterNetworkOutput) SecurityGroupIds

func (o ClusterNetworkOutput) SecurityGroupIds() pulumi.StringArrayOutput

Security group to which the cluster belongs.

func (ClusterNetworkOutput) ToClusterNetworkOutput

func (o ClusterNetworkOutput) ToClusterNetworkOutput() ClusterNetworkOutput

func (ClusterNetworkOutput) ToClusterNetworkOutputWithContext

func (o ClusterNetworkOutput) ToClusterNetworkOutputWithContext(ctx context.Context) ClusterNetworkOutput

func (ClusterNetworkOutput) ToClusterNetworkPtrOutput

func (o ClusterNetworkOutput) ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput

func (ClusterNetworkOutput) ToClusterNetworkPtrOutputWithContext

func (o ClusterNetworkOutput) ToClusterNetworkPtrOutputWithContext(ctx context.Context) ClusterNetworkPtrOutput

func (ClusterNetworkOutput) VpcId

VpcId to which the cluster belongs.

func (ClusterNetworkOutput) Vswitches

Switch to which the cluster belongs.

type ClusterNetworkPtrInput

type ClusterNetworkPtrInput interface {
	pulumi.Input

	ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput
	ToClusterNetworkPtrOutputWithContext(context.Context) ClusterNetworkPtrOutput
}

ClusterNetworkPtrInput is an input type that accepts ClusterNetworkArgs, ClusterNetworkPtr and ClusterNetworkPtrOutput values. You can construct a concrete instance of `ClusterNetworkPtrInput` via:

        ClusterNetworkArgs{...}

or:

        nil

type ClusterNetworkPtrOutput

type ClusterNetworkPtrOutput struct{ *pulumi.OutputState }

func (ClusterNetworkPtrOutput) Elem

func (ClusterNetworkPtrOutput) ElementType

func (ClusterNetworkPtrOutput) ElementType() reflect.Type

func (ClusterNetworkPtrOutput) SecurityGroupIds

func (o ClusterNetworkPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput

Security group to which the cluster belongs.

func (ClusterNetworkPtrOutput) ToClusterNetworkPtrOutput

func (o ClusterNetworkPtrOutput) ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput

func (ClusterNetworkPtrOutput) ToClusterNetworkPtrOutputWithContext

func (o ClusterNetworkPtrOutput) ToClusterNetworkPtrOutputWithContext(ctx context.Context) ClusterNetworkPtrOutput

func (ClusterNetworkPtrOutput) VpcId

VpcId to which the cluster belongs.

func (ClusterNetworkPtrOutput) Vswitches

Switch to which the cluster belongs.

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) ClusterName

func (o ClusterOutput) ClusterName() pulumi.StringOutput

Cluster name.

func (ClusterOutput) CreateTime

func (o ClusterOutput) CreateTime() pulumi.StringOutput

Cluster creation time.

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) Network

func (o ClusterOutput) Network() ClusterNetworkOutput

Cluster network information. See `network` below.

func (ClusterOutput) Profile

func (o ClusterOutput) Profile() pulumi.StringOutput

Cluster attributes. Valid values: 'Default', 'XFlow'.

func (ClusterOutput) Status

func (o ClusterOutput) Status() pulumi.StringOutput

The status of the resource.

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterState

type ClusterState struct {
	// Cluster name.
	ClusterName pulumi.StringPtrInput
	// Cluster creation time.
	CreateTime pulumi.StringPtrInput
	// Cluster network information. See `network` below.
	Network ClusterNetworkPtrInput
	// Cluster attributes. Valid values: 'Default', 'XFlow'.
	Profile pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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