dataartsstudio

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type StudioInstance

type StudioInstance struct {
	pulumi.CustomResourceState

	// Specifies whether auto renew is enabled.
	// Valid values are `true` and `false`, defaults to `false`. Changing this parameter will create a new resource.
	AutoRenew pulumi.StringPtrOutput `pulumi:"autoRenew"`
	// Specifies the AZ name. Changing this creates a new instance.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The charging mode. The value is `prePaid` indicates the yearly/monthly billing mode.
	ChargingMode pulumi.StringOutput `pulumi:"chargingMode"`
	// Specifies the enterprise project id of the instance.
	// Changing this creates a new instance.
	EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"`
	// The expire days to renew.
	ExpireDays pulumi.StringOutput `pulumi:"expireDays"`
	// Specifies the DataArts Studio instance name. Changing this creates a new instance.
	Name pulumi.StringOutput `pulumi:"name"`
	// The order ID of this DataArts Studio instance.
	OrderId pulumi.StringOutput `pulumi:"orderId"`
	// Specifies the charging period of the DataArts Studio instance.
	// If `periodUnit` is set to *month*, the value ranges from 1 to 9.
	// If `periodUnit` is set to *year*, the value ranges from 1 to 3.
	// Changing this creates a new instance.
	Period pulumi.IntOutput `pulumi:"period"`
	// Specifies the charging period unit of the instance.
	// Valid values are *month* and *year*.
	// Changing this creates a new instance.
	PeriodUnit pulumi.StringOutput `pulumi:"periodUnit"`
	// Specifies the region in which to manage the DataArts Studio instance.
	// Changing this creates a new instance.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the security group ID. Changing this creates a new instance.
	SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
	// The status of this DataArts Studio instance.
	Status pulumi.IntOutput `pulumi:"status"`
	// Specifies the VPC subnet ID. Changing this creates a new instance.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// The key/value pairs to associate with the DataArts Studio instance.
	// Changing this creates a new instance.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the DataArts Studio version version.
	// The valid values are **dayu.starter**, **dayu.nb.professional** and **dayu.nb.enterprise**.
	// Changing this creates a new instance.
	Version pulumi.StringOutput `pulumi:"version"`
	// Specifies the VPC ID. Changing this creates a new instance.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

Manages DataArts Studio instance resource within HuaweiCloud.

> Only **prePaid** charging mode is supported.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/DataArtsStudio"
"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, "")
		availabilityZone := cfg.RequireObject("availabilityZone")
		vpcId := cfg.RequireObject("vpcId")
		subnetId := cfg.RequireObject("subnetId")
		secgroupId := cfg.RequireObject("secgroupId")
		_, err := DataArtsStudio.NewStudioInstance(ctx, "myDemo", &DataArtsStudio.StudioInstanceArgs{
			Version:             pulumi.String("dayu.starter"),
			VpcId:               pulumi.Any(vpcId),
			SubnetId:            pulumi.Any(subnetId),
			SecurityGroupId:     pulumi.Any(secgroupId),
			AvailabilityZone:    pulumi.Any(availabilityZone),
			PeriodUnit:          pulumi.String("month"),
			Period:              pulumi.Int(1),
			EnterpriseProjectId: pulumi.String("0"),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

<!--markdownlint-disable MD033-->

## Import

DataArts Studio instances can be imported using their `id`, e.g.

```sh

$ pulumi import huaweicloud:DataArtsStudio/studioInstance:StudioInstance instance e60361de2cfd42d7a6b673f0ae58db82

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`tags`, `period_unit`, `period`, `auto_renew`. It is generally recommended running `terraform plan` after importing an instance. You can then decide if changes should be applied to the instance, or the resource definition should be updated to align with the instance. Also you can ignore changes as below. resource "huaweicloud_dataarts_studio_instance" "instance" {

...

lifecycle {

ignore_changes = [

tags, period_unit, period, auto_renew,

]

} }

func GetStudioInstance

func GetStudioInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StudioInstanceState, opts ...pulumi.ResourceOption) (*StudioInstance, error)

GetStudioInstance gets an existing StudioInstance 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 NewStudioInstance

func NewStudioInstance(ctx *pulumi.Context,
	name string, args *StudioInstanceArgs, opts ...pulumi.ResourceOption) (*StudioInstance, error)

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

func (*StudioInstance) ElementType

func (*StudioInstance) ElementType() reflect.Type

func (*StudioInstance) ToStudioInstanceOutput

func (i *StudioInstance) ToStudioInstanceOutput() StudioInstanceOutput

func (*StudioInstance) ToStudioInstanceOutputWithContext

func (i *StudioInstance) ToStudioInstanceOutputWithContext(ctx context.Context) StudioInstanceOutput

type StudioInstanceArgs

type StudioInstanceArgs struct {
	// Specifies whether auto renew is enabled.
	// Valid values are `true` and `false`, defaults to `false`. Changing this parameter will create a new resource.
	AutoRenew pulumi.StringPtrInput
	// Specifies the AZ name. Changing this creates a new instance.
	AvailabilityZone pulumi.StringInput
	// Specifies the enterprise project id of the instance.
	// Changing this creates a new instance.
	EnterpriseProjectId pulumi.StringPtrInput
	// Specifies the DataArts Studio instance name. Changing this creates a new instance.
	Name pulumi.StringPtrInput
	// Specifies the charging period of the DataArts Studio instance.
	// If `periodUnit` is set to *month*, the value ranges from 1 to 9.
	// If `periodUnit` is set to *year*, the value ranges from 1 to 3.
	// Changing this creates a new instance.
	Period pulumi.IntInput
	// Specifies the charging period unit of the instance.
	// Valid values are *month* and *year*.
	// Changing this creates a new instance.
	PeriodUnit pulumi.StringInput
	// Specifies the region in which to manage the DataArts Studio instance.
	// Changing this creates a new instance.
	Region pulumi.StringPtrInput
	// Specifies the security group ID. Changing this creates a new instance.
	SecurityGroupId pulumi.StringInput
	// Specifies the VPC subnet ID. Changing this creates a new instance.
	SubnetId pulumi.StringInput
	// The key/value pairs to associate with the DataArts Studio instance.
	// Changing this creates a new instance.
	Tags pulumi.StringMapInput
	// Specifies the DataArts Studio version version.
	// The valid values are **dayu.starter**, **dayu.nb.professional** and **dayu.nb.enterprise**.
	// Changing this creates a new instance.
	Version pulumi.StringInput
	// Specifies the VPC ID. Changing this creates a new instance.
	VpcId pulumi.StringInput
}

The set of arguments for constructing a StudioInstance resource.

func (StudioInstanceArgs) ElementType

func (StudioInstanceArgs) ElementType() reflect.Type

type StudioInstanceArray

type StudioInstanceArray []StudioInstanceInput

func (StudioInstanceArray) ElementType

func (StudioInstanceArray) ElementType() reflect.Type

func (StudioInstanceArray) ToStudioInstanceArrayOutput

func (i StudioInstanceArray) ToStudioInstanceArrayOutput() StudioInstanceArrayOutput

func (StudioInstanceArray) ToStudioInstanceArrayOutputWithContext

func (i StudioInstanceArray) ToStudioInstanceArrayOutputWithContext(ctx context.Context) StudioInstanceArrayOutput

type StudioInstanceArrayInput

type StudioInstanceArrayInput interface {
	pulumi.Input

	ToStudioInstanceArrayOutput() StudioInstanceArrayOutput
	ToStudioInstanceArrayOutputWithContext(context.Context) StudioInstanceArrayOutput
}

StudioInstanceArrayInput is an input type that accepts StudioInstanceArray and StudioInstanceArrayOutput values. You can construct a concrete instance of `StudioInstanceArrayInput` via:

StudioInstanceArray{ StudioInstanceArgs{...} }

type StudioInstanceArrayOutput

type StudioInstanceArrayOutput struct{ *pulumi.OutputState }

func (StudioInstanceArrayOutput) ElementType

func (StudioInstanceArrayOutput) ElementType() reflect.Type

func (StudioInstanceArrayOutput) Index

func (StudioInstanceArrayOutput) ToStudioInstanceArrayOutput

func (o StudioInstanceArrayOutput) ToStudioInstanceArrayOutput() StudioInstanceArrayOutput

func (StudioInstanceArrayOutput) ToStudioInstanceArrayOutputWithContext

func (o StudioInstanceArrayOutput) ToStudioInstanceArrayOutputWithContext(ctx context.Context) StudioInstanceArrayOutput

type StudioInstanceInput

type StudioInstanceInput interface {
	pulumi.Input

	ToStudioInstanceOutput() StudioInstanceOutput
	ToStudioInstanceOutputWithContext(ctx context.Context) StudioInstanceOutput
}

type StudioInstanceMap

type StudioInstanceMap map[string]StudioInstanceInput

func (StudioInstanceMap) ElementType

func (StudioInstanceMap) ElementType() reflect.Type

func (StudioInstanceMap) ToStudioInstanceMapOutput

func (i StudioInstanceMap) ToStudioInstanceMapOutput() StudioInstanceMapOutput

func (StudioInstanceMap) ToStudioInstanceMapOutputWithContext

func (i StudioInstanceMap) ToStudioInstanceMapOutputWithContext(ctx context.Context) StudioInstanceMapOutput

type StudioInstanceMapInput

type StudioInstanceMapInput interface {
	pulumi.Input

	ToStudioInstanceMapOutput() StudioInstanceMapOutput
	ToStudioInstanceMapOutputWithContext(context.Context) StudioInstanceMapOutput
}

StudioInstanceMapInput is an input type that accepts StudioInstanceMap and StudioInstanceMapOutput values. You can construct a concrete instance of `StudioInstanceMapInput` via:

StudioInstanceMap{ "key": StudioInstanceArgs{...} }

type StudioInstanceMapOutput

type StudioInstanceMapOutput struct{ *pulumi.OutputState }

func (StudioInstanceMapOutput) ElementType

func (StudioInstanceMapOutput) ElementType() reflect.Type

func (StudioInstanceMapOutput) MapIndex

func (StudioInstanceMapOutput) ToStudioInstanceMapOutput

func (o StudioInstanceMapOutput) ToStudioInstanceMapOutput() StudioInstanceMapOutput

func (StudioInstanceMapOutput) ToStudioInstanceMapOutputWithContext

func (o StudioInstanceMapOutput) ToStudioInstanceMapOutputWithContext(ctx context.Context) StudioInstanceMapOutput

type StudioInstanceOutput

type StudioInstanceOutput struct{ *pulumi.OutputState }

func (StudioInstanceOutput) AutoRenew

Specifies whether auto renew is enabled. Valid values are `true` and `false`, defaults to `false`. Changing this parameter will create a new resource.

func (StudioInstanceOutput) AvailabilityZone

func (o StudioInstanceOutput) AvailabilityZone() pulumi.StringOutput

Specifies the AZ name. Changing this creates a new instance.

func (StudioInstanceOutput) ChargingMode

func (o StudioInstanceOutput) ChargingMode() pulumi.StringOutput

The charging mode. The value is `prePaid` indicates the yearly/monthly billing mode.

func (StudioInstanceOutput) ElementType

func (StudioInstanceOutput) ElementType() reflect.Type

func (StudioInstanceOutput) EnterpriseProjectId

func (o StudioInstanceOutput) EnterpriseProjectId() pulumi.StringOutput

Specifies the enterprise project id of the instance. Changing this creates a new instance.

func (StudioInstanceOutput) ExpireDays

func (o StudioInstanceOutput) ExpireDays() pulumi.StringOutput

The expire days to renew.

func (StudioInstanceOutput) Name

Specifies the DataArts Studio instance name. Changing this creates a new instance.

func (StudioInstanceOutput) OrderId

The order ID of this DataArts Studio instance.

func (StudioInstanceOutput) Period

Specifies the charging period of the DataArts Studio instance. If `periodUnit` is set to *month*, the value ranges from 1 to 9. If `periodUnit` is set to *year*, the value ranges from 1 to 3. Changing this creates a new instance.

func (StudioInstanceOutput) PeriodUnit

func (o StudioInstanceOutput) PeriodUnit() pulumi.StringOutput

Specifies the charging period unit of the instance. Valid values are *month* and *year*. Changing this creates a new instance.

func (StudioInstanceOutput) Region

Specifies the region in which to manage the DataArts Studio instance. Changing this creates a new instance.

func (StudioInstanceOutput) SecurityGroupId

func (o StudioInstanceOutput) SecurityGroupId() pulumi.StringOutput

Specifies the security group ID. Changing this creates a new instance.

func (StudioInstanceOutput) Status

The status of this DataArts Studio instance.

func (StudioInstanceOutput) SubnetId

Specifies the VPC subnet ID. Changing this creates a new instance.

func (StudioInstanceOutput) Tags

The key/value pairs to associate with the DataArts Studio instance. Changing this creates a new instance.

func (StudioInstanceOutput) ToStudioInstanceOutput

func (o StudioInstanceOutput) ToStudioInstanceOutput() StudioInstanceOutput

func (StudioInstanceOutput) ToStudioInstanceOutputWithContext

func (o StudioInstanceOutput) ToStudioInstanceOutputWithContext(ctx context.Context) StudioInstanceOutput

func (StudioInstanceOutput) Version

Specifies the DataArts Studio version version. The valid values are **dayu.starter**, **dayu.nb.professional** and **dayu.nb.enterprise**. Changing this creates a new instance.

func (StudioInstanceOutput) VpcId

Specifies the VPC ID. Changing this creates a new instance.

type StudioInstanceState

type StudioInstanceState struct {
	// Specifies whether auto renew is enabled.
	// Valid values are `true` and `false`, defaults to `false`. Changing this parameter will create a new resource.
	AutoRenew pulumi.StringPtrInput
	// Specifies the AZ name. Changing this creates a new instance.
	AvailabilityZone pulumi.StringPtrInput
	// The charging mode. The value is `prePaid` indicates the yearly/monthly billing mode.
	ChargingMode pulumi.StringPtrInput
	// Specifies the enterprise project id of the instance.
	// Changing this creates a new instance.
	EnterpriseProjectId pulumi.StringPtrInput
	// The expire days to renew.
	ExpireDays pulumi.StringPtrInput
	// Specifies the DataArts Studio instance name. Changing this creates a new instance.
	Name pulumi.StringPtrInput
	// The order ID of this DataArts Studio instance.
	OrderId pulumi.StringPtrInput
	// Specifies the charging period of the DataArts Studio instance.
	// If `periodUnit` is set to *month*, the value ranges from 1 to 9.
	// If `periodUnit` is set to *year*, the value ranges from 1 to 3.
	// Changing this creates a new instance.
	Period pulumi.IntPtrInput
	// Specifies the charging period unit of the instance.
	// Valid values are *month* and *year*.
	// Changing this creates a new instance.
	PeriodUnit pulumi.StringPtrInput
	// Specifies the region in which to manage the DataArts Studio instance.
	// Changing this creates a new instance.
	Region pulumi.StringPtrInput
	// Specifies the security group ID. Changing this creates a new instance.
	SecurityGroupId pulumi.StringPtrInput
	// The status of this DataArts Studio instance.
	Status pulumi.IntPtrInput
	// Specifies the VPC subnet ID. Changing this creates a new instance.
	SubnetId pulumi.StringPtrInput
	// The key/value pairs to associate with the DataArts Studio instance.
	// Changing this creates a new instance.
	Tags pulumi.StringMapInput
	// Specifies the DataArts Studio version version.
	// The valid values are **dayu.starter**, **dayu.nb.professional** and **dayu.nb.enterprise**.
	// Changing this creates a new instance.
	Version pulumi.StringPtrInput
	// Specifies the VPC ID. Changing this creates a new instance.
	VpcId pulumi.StringPtrInput
}

func (StudioInstanceState) ElementType

func (StudioInstanceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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