Documentation
¶
Index ¶
- type Cluster
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterNetwork
- type ClusterNetworkArgs
- func (ClusterNetworkArgs) ElementType() reflect.Type
- func (i ClusterNetworkArgs) ToClusterNetworkOutput() ClusterNetworkOutput
- func (i ClusterNetworkArgs) ToClusterNetworkOutputWithContext(ctx context.Context) ClusterNetworkOutput
- func (i ClusterNetworkArgs) ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput
- func (i ClusterNetworkArgs) ToClusterNetworkPtrOutputWithContext(ctx context.Context) ClusterNetworkPtrOutput
- type ClusterNetworkInput
- type ClusterNetworkOutput
- func (ClusterNetworkOutput) ElementType() reflect.Type
- func (o ClusterNetworkOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o ClusterNetworkOutput) ToClusterNetworkOutput() ClusterNetworkOutput
- func (o ClusterNetworkOutput) ToClusterNetworkOutputWithContext(ctx context.Context) ClusterNetworkOutput
- func (o ClusterNetworkOutput) ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput
- func (o ClusterNetworkOutput) ToClusterNetworkPtrOutputWithContext(ctx context.Context) ClusterNetworkPtrOutput
- func (o ClusterNetworkOutput) VpcId() pulumi.StringOutput
- func (o ClusterNetworkOutput) Vswitches() pulumi.StringArrayOutput
- type ClusterNetworkPtrInput
- type ClusterNetworkPtrOutput
- func (o ClusterNetworkPtrOutput) Elem() ClusterNetworkOutput
- func (ClusterNetworkPtrOutput) ElementType() reflect.Type
- func (o ClusterNetworkPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o ClusterNetworkPtrOutput) ToClusterNetworkPtrOutput() ClusterNetworkPtrOutput
- func (o ClusterNetworkPtrOutput) ToClusterNetworkPtrOutputWithContext(ctx context.Context) ClusterNetworkPtrOutput
- func (o ClusterNetworkPtrOutput) VpcId() pulumi.StringPtrOutput
- func (o ClusterNetworkPtrOutput) Vswitches() pulumi.StringArrayOutput
- type ClusterOutput
- func (o ClusterOutput) ClusterName() pulumi.StringOutput
- func (o ClusterOutput) CreateTime() pulumi.StringOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) Network() ClusterNetworkOutput
- func (o ClusterOutput) Profile() pulumi.StringOutput
- func (o ClusterOutput) Status() pulumi.StringOutput
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- type ClusterState
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) 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 (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput
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 (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput
func (ClusterMapOutput) ToClusterMapOutput ¶
func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput
func (ClusterMapOutput) ToClusterMapOutputWithContext ¶
func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput
type ClusterNetwork ¶
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 ¶
func (o ClusterNetworkOutput) VpcId() pulumi.StringOutput
VpcId to which the cluster belongs.
func (ClusterNetworkOutput) Vswitches ¶
func (o ClusterNetworkOutput) Vswitches() pulumi.StringArrayOutput
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
func ClusterNetworkPtr ¶
func ClusterNetworkPtr(v *ClusterNetworkArgs) ClusterNetworkPtrInput
type ClusterNetworkPtrOutput ¶
type ClusterNetworkPtrOutput struct{ *pulumi.OutputState }
func (ClusterNetworkPtrOutput) Elem ¶
func (o ClusterNetworkPtrOutput) Elem() ClusterNetworkOutput
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 ¶
func (o ClusterNetworkPtrOutput) VpcId() pulumi.StringPtrOutput
VpcId to which the cluster belongs.
func (ClusterNetworkPtrOutput) Vswitches ¶
func (o ClusterNetworkPtrOutput) Vswitches() pulumi.StringArrayOutput
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