Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type StudioInstance
- type StudioInstanceArgs
- type StudioInstanceArray
- type StudioInstanceArrayInput
- type StudioInstanceArrayOutput
- func (StudioInstanceArrayOutput) ElementType() reflect.Type
- func (o StudioInstanceArrayOutput) Index(i pulumi.IntInput) StudioInstanceOutput
- func (o StudioInstanceArrayOutput) ToStudioInstanceArrayOutput() StudioInstanceArrayOutput
- func (o StudioInstanceArrayOutput) ToStudioInstanceArrayOutputWithContext(ctx context.Context) StudioInstanceArrayOutput
- type StudioInstanceInput
- type StudioInstanceMap
- type StudioInstanceMapInput
- type StudioInstanceMapOutput
- func (StudioInstanceMapOutput) ElementType() reflect.Type
- func (o StudioInstanceMapOutput) MapIndex(k pulumi.StringInput) StudioInstanceOutput
- func (o StudioInstanceMapOutput) ToStudioInstanceMapOutput() StudioInstanceMapOutput
- func (o StudioInstanceMapOutput) ToStudioInstanceMapOutputWithContext(ctx context.Context) StudioInstanceMapOutput
- type StudioInstanceOutput
- func (o StudioInstanceOutput) AutoRenew() pulumi.StringPtrOutput
- func (o StudioInstanceOutput) AvailabilityZone() pulumi.StringOutput
- func (o StudioInstanceOutput) ChargingMode() pulumi.StringOutput
- func (StudioInstanceOutput) ElementType() reflect.Type
- func (o StudioInstanceOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o StudioInstanceOutput) ExpireDays() pulumi.StringOutput
- func (o StudioInstanceOutput) Name() pulumi.StringOutput
- func (o StudioInstanceOutput) OrderId() pulumi.StringOutput
- func (o StudioInstanceOutput) Period() pulumi.IntOutput
- func (o StudioInstanceOutput) PeriodUnit() pulumi.StringOutput
- func (o StudioInstanceOutput) Region() pulumi.StringOutput
- func (o StudioInstanceOutput) SecurityGroupId() pulumi.StringOutput
- func (o StudioInstanceOutput) Status() pulumi.IntOutput
- func (o StudioInstanceOutput) SubnetId() pulumi.StringOutput
- func (o StudioInstanceOutput) Tags() pulumi.StringMapOutput
- func (o StudioInstanceOutput) ToStudioInstanceOutput() StudioInstanceOutput
- func (o StudioInstanceOutput) ToStudioInstanceOutputWithContext(ctx context.Context) StudioInstanceOutput
- func (o StudioInstanceOutput) Version() pulumi.StringOutput
- func (o StudioInstanceOutput) VpcId() pulumi.StringOutput
- type StudioInstanceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
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 (o StudioInstanceArrayOutput) Index(i pulumi.IntInput) StudioInstanceOutput
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 (o StudioInstanceMapOutput) MapIndex(k pulumi.StringInput) StudioInstanceOutput
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 ¶
func (o StudioInstanceOutput) AutoRenew() pulumi.StringPtrOutput
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 ¶
func (o StudioInstanceOutput) Name() pulumi.StringOutput
Specifies the DataArts Studio instance name. Changing this creates a new instance.
func (StudioInstanceOutput) OrderId ¶
func (o StudioInstanceOutput) OrderId() pulumi.StringOutput
The order ID of this DataArts Studio instance.
func (StudioInstanceOutput) Period ¶
func (o StudioInstanceOutput) Period() pulumi.IntOutput
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 ¶
func (o StudioInstanceOutput) Region() pulumi.StringOutput
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 ¶
func (o StudioInstanceOutput) Status() pulumi.IntOutput
The status of this DataArts Studio instance.
func (StudioInstanceOutput) SubnetId ¶
func (o StudioInstanceOutput) SubnetId() pulumi.StringOutput
Specifies the VPC subnet ID. Changing this creates a new instance.
func (StudioInstanceOutput) Tags ¶
func (o StudioInstanceOutput) Tags() pulumi.StringMapOutput
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 ¶
func (o StudioInstanceOutput) Version() pulumi.StringOutput
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 ¶
func (o StudioInstanceOutput) VpcId() pulumi.StringOutput
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