Documentation
¶
Index ¶
- type Instance
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceEndpoint
- type InstanceEndpointArgs
- type InstanceEndpointArray
- type InstanceEndpointArrayInput
- type InstanceEndpointArrayOutput
- func (InstanceEndpointArrayOutput) ElementType() reflect.Type
- func (o InstanceEndpointArrayOutput) Index(i pulumi.IntInput) InstanceEndpointOutput
- func (o InstanceEndpointArrayOutput) ToInstanceEndpointArrayOutput() InstanceEndpointArrayOutput
- func (o InstanceEndpointArrayOutput) ToInstanceEndpointArrayOutputWithContext(ctx context.Context) InstanceEndpointArrayOutput
- type InstanceEndpointInput
- type InstanceEndpointOutput
- func (o InstanceEndpointOutput) AlternativeEndpoints() pulumi.StringPtrOutput
- func (InstanceEndpointOutput) ElementType() reflect.Type
- func (o InstanceEndpointOutput) Enabled() pulumi.BoolPtrOutput
- func (o InstanceEndpointOutput) Endpoint() pulumi.StringPtrOutput
- func (o InstanceEndpointOutput) ToInstanceEndpointOutput() InstanceEndpointOutput
- func (o InstanceEndpointOutput) ToInstanceEndpointOutputWithContext(ctx context.Context) InstanceEndpointOutput
- func (o InstanceEndpointOutput) Type() pulumi.StringPtrOutput
- func (o InstanceEndpointOutput) VpcId() pulumi.StringPtrOutput
- func (o InstanceEndpointOutput) VpcInstanceId() pulumi.StringPtrOutput
- func (o InstanceEndpointOutput) VswitchId() pulumi.StringPtrOutput
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (o InstanceOutput) AutoPay() pulumi.BoolPtrOutput
- func (o InstanceOutput) ColdStorageSize() pulumi.IntPtrOutput
- func (o InstanceOutput) Cpu() pulumi.IntOutput
- func (o InstanceOutput) CreateTime() pulumi.StringOutput
- func (o InstanceOutput) Duration() pulumi.IntPtrOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) Endpoints() InstanceEndpointArrayOutput
- func (o InstanceOutput) GatewayCount() pulumi.IntPtrOutput
- func (o InstanceOutput) InitialDatabases() pulumi.StringPtrOutput
- func (o InstanceOutput) InstanceName() pulumi.StringOutput
- func (o InstanceOutput) InstanceType() pulumi.StringOutput
- func (o InstanceOutput) LeaderInstanceId() pulumi.StringPtrOutput
- func (o InstanceOutput) PaymentType() pulumi.StringOutput
- func (o InstanceOutput) PricingCycle() pulumi.StringPtrOutput
- func (o InstanceOutput) ResourceGroupId() pulumi.StringOutput
- func (o InstanceOutput) ScaleType() pulumi.StringPtrOutput
- func (o InstanceOutput) Status() pulumi.StringOutput
- func (o InstanceOutput) StorageSize() pulumi.IntPtrOutput
- func (o InstanceOutput) Tags() pulumi.MapOutput
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- func (o InstanceOutput) ZoneId() pulumi.StringOutput
- type InstanceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { pulumi.CustomResourceState // Whether to pay automatically. The default value is true. Value: // - true: automatic payment // - false: only generate orders, not pay // > **NOTE:** The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself. AutoPay pulumi.BoolPtrOutput `pulumi:"autoPay"` // Instance low-frequency storage space. Unit: GB. // > **NOTE:** PayAsYouGo (PostPaid) instances ignore this parameter. ColdStorageSize pulumi.IntPtrOutput `pulumi:"coldStorageSize"` // Instance specifications. Value: // - 8 cores 32 GB (number of compute nodes: 1) // - 16 cores 64 GB (number of compute nodes: 1) // - 32 core 128 GB (number of compute nodes: 2) // - 64 core 256 GB (number of compute nodes: 4) // - 96 core 384 GB (number of computing nodes: 6) // - 128 core 512 GB (number of compute nodes: 8) // > **NOTE:** Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production. Cpu pulumi.IntOutput `pulumi:"cpu"` // The creation time of the resource. CreateTime pulumi.StringOutput `pulumi:"createTime"` // The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it. Duration pulumi.IntPtrOutput `pulumi:"duration"` // List of domain names. See `endpoints` below. Endpoints InstanceEndpointArrayOutput `pulumi:"endpoints"` // Number of gateway nodes. GatewayCount pulumi.IntPtrOutput `pulumi:"gatewayCount"` // Initialize the database and split multiple database names ",". InitialDatabases pulumi.StringPtrOutput `pulumi:"initialDatabases"` // The name of the resource. InstanceName pulumi.StringOutput `pulumi:"instanceName"` // The instance type. Value: // - Standard: Universal. // - Follower: Read-only slave instance. // - Warehouse: calculation group type. // - Shared: Shared. InstanceType pulumi.StringOutput `pulumi:"instanceType"` // The ID of the primary instance. LeaderInstanceId pulumi.StringPtrOutput `pulumi:"leaderInstanceId"` // The payment type of the resource. PaymentType pulumi.StringOutput `pulumi:"paymentType"` // Billing cycle. Value: // - Month: monthly billing // - Hour: hourly billing // > **NOTE:** Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it. PricingCycle pulumi.StringPtrOutput `pulumi:"pricingCycle"` // The ID of the resource group. ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"` // Change matching type. Value: // - UPGRADE: UPGRADE // - DOWNGRADE: Downgrading // > **NOTE:** The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification. ScaleType pulumi.StringPtrOutput `pulumi:"scaleType"` // The status of the resource. Status pulumi.StringOutput `pulumi:"status"` // The standard storage space of the instance. Unit: GB. // > **NOTE:** PayAsYouGo instances (PostPaid) ignore this parameter. StorageSize pulumi.IntPtrOutput `pulumi:"storageSize"` // Instance tag. Tags pulumi.MapOutput `pulumi:"tags"` // The zone Id. Refer to "Instructions for Use". ZoneId pulumi.StringOutput `pulumi:"zoneId"` }
## Import
Hologram Instance can be imported using the id, e.g.
```sh
$ pulumi import alicloud:hologram/instance:Instance example <id>
```
func GetInstance ¶
func GetInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)
GetInstance gets an existing Instance 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 NewInstance ¶
func NewInstance(ctx *pulumi.Context, name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)
NewInstance registers a new resource with the given unique name, arguments, and options.
func (*Instance) ElementType ¶
func (*Instance) ToInstanceOutput ¶
func (i *Instance) ToInstanceOutput() InstanceOutput
func (*Instance) ToInstanceOutputWithContext ¶
func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceArgs ¶
type InstanceArgs struct { // Whether to pay automatically. The default value is true. Value: // - true: automatic payment // - false: only generate orders, not pay // > **NOTE:** The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself. AutoPay pulumi.BoolPtrInput // Instance low-frequency storage space. Unit: GB. // > **NOTE:** PayAsYouGo (PostPaid) instances ignore this parameter. ColdStorageSize pulumi.IntPtrInput // Instance specifications. Value: // - 8 cores 32 GB (number of compute nodes: 1) // - 16 cores 64 GB (number of compute nodes: 1) // - 32 core 128 GB (number of compute nodes: 2) // - 64 core 256 GB (number of compute nodes: 4) // - 96 core 384 GB (number of computing nodes: 6) // - 128 core 512 GB (number of compute nodes: 8) // > **NOTE:** Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production. Cpu pulumi.IntPtrInput // The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it. Duration pulumi.IntPtrInput // List of domain names. See `endpoints` below. Endpoints InstanceEndpointArrayInput // Number of gateway nodes. GatewayCount pulumi.IntPtrInput // Initialize the database and split multiple database names ",". InitialDatabases pulumi.StringPtrInput // The name of the resource. InstanceName pulumi.StringInput // The instance type. Value: // - Standard: Universal. // - Follower: Read-only slave instance. // - Warehouse: calculation group type. // - Shared: Shared. InstanceType pulumi.StringInput // The ID of the primary instance. LeaderInstanceId pulumi.StringPtrInput // The payment type of the resource. PaymentType pulumi.StringInput // Billing cycle. Value: // - Month: monthly billing // - Hour: hourly billing // > **NOTE:** Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it. PricingCycle pulumi.StringPtrInput // The ID of the resource group. ResourceGroupId pulumi.StringPtrInput // Change matching type. Value: // - UPGRADE: UPGRADE // - DOWNGRADE: Downgrading // > **NOTE:** The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification. ScaleType pulumi.StringPtrInput // The status of the resource. Status pulumi.StringPtrInput // The standard storage space of the instance. Unit: GB. // > **NOTE:** PayAsYouGo instances (PostPaid) ignore this parameter. StorageSize pulumi.IntPtrInput // Instance tag. Tags pulumi.MapInput // The zone Id. Refer to "Instructions for Use". ZoneId pulumi.StringInput }
The set of arguments for constructing a Instance resource.
func (InstanceArgs) ElementType ¶
func (InstanceArgs) ElementType() reflect.Type
type InstanceArray ¶
type InstanceArray []InstanceInput
func (InstanceArray) ElementType ¶
func (InstanceArray) ElementType() reflect.Type
func (InstanceArray) ToInstanceArrayOutput ¶
func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArray) ToInstanceArrayOutputWithContext ¶
func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceArrayInput ¶
type InstanceArrayInput interface { pulumi.Input ToInstanceArrayOutput() InstanceArrayOutput ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput }
InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:
InstanceArray{ InstanceArgs{...} }
type InstanceArrayOutput ¶
type InstanceArrayOutput struct{ *pulumi.OutputState }
func (InstanceArrayOutput) ElementType ¶
func (InstanceArrayOutput) ElementType() reflect.Type
func (InstanceArrayOutput) Index ¶
func (o InstanceArrayOutput) Index(i pulumi.IntInput) InstanceOutput
func (InstanceArrayOutput) ToInstanceArrayOutput ¶
func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArrayOutput) ToInstanceArrayOutputWithContext ¶
func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceEndpoint ¶
type InstanceEndpoint struct { // Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint. AlternativeEndpoints *string `pulumi:"alternativeEndpoints"` // Whether to turn on the network. Enabled *bool `pulumi:"enabled"` // Domain name. Endpoint *string `pulumi:"endpoint"` // The network type. Type *string `pulumi:"type"` // VPC primary key. VpcId *string `pulumi:"vpcId"` // The vpc instance ID. VpcInstanceId *string `pulumi:"vpcInstanceId"` // The ID of the virtual switch. VswitchId *string `pulumi:"vswitchId"` }
type InstanceEndpointArgs ¶
type InstanceEndpointArgs struct { // Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint. AlternativeEndpoints pulumi.StringPtrInput `pulumi:"alternativeEndpoints"` // Whether to turn on the network. Enabled pulumi.BoolPtrInput `pulumi:"enabled"` // Domain name. Endpoint pulumi.StringPtrInput `pulumi:"endpoint"` // The network type. Type pulumi.StringPtrInput `pulumi:"type"` // VPC primary key. VpcId pulumi.StringPtrInput `pulumi:"vpcId"` // The vpc instance ID. VpcInstanceId pulumi.StringPtrInput `pulumi:"vpcInstanceId"` // The ID of the virtual switch. VswitchId pulumi.StringPtrInput `pulumi:"vswitchId"` }
func (InstanceEndpointArgs) ElementType ¶
func (InstanceEndpointArgs) ElementType() reflect.Type
func (InstanceEndpointArgs) ToInstanceEndpointOutput ¶
func (i InstanceEndpointArgs) ToInstanceEndpointOutput() InstanceEndpointOutput
func (InstanceEndpointArgs) ToInstanceEndpointOutputWithContext ¶
func (i InstanceEndpointArgs) ToInstanceEndpointOutputWithContext(ctx context.Context) InstanceEndpointOutput
type InstanceEndpointArray ¶
type InstanceEndpointArray []InstanceEndpointInput
func (InstanceEndpointArray) ElementType ¶
func (InstanceEndpointArray) ElementType() reflect.Type
func (InstanceEndpointArray) ToInstanceEndpointArrayOutput ¶
func (i InstanceEndpointArray) ToInstanceEndpointArrayOutput() InstanceEndpointArrayOutput
func (InstanceEndpointArray) ToInstanceEndpointArrayOutputWithContext ¶
func (i InstanceEndpointArray) ToInstanceEndpointArrayOutputWithContext(ctx context.Context) InstanceEndpointArrayOutput
type InstanceEndpointArrayInput ¶
type InstanceEndpointArrayInput interface { pulumi.Input ToInstanceEndpointArrayOutput() InstanceEndpointArrayOutput ToInstanceEndpointArrayOutputWithContext(context.Context) InstanceEndpointArrayOutput }
InstanceEndpointArrayInput is an input type that accepts InstanceEndpointArray and InstanceEndpointArrayOutput values. You can construct a concrete instance of `InstanceEndpointArrayInput` via:
InstanceEndpointArray{ InstanceEndpointArgs{...} }
type InstanceEndpointArrayOutput ¶
type InstanceEndpointArrayOutput struct{ *pulumi.OutputState }
func (InstanceEndpointArrayOutput) ElementType ¶
func (InstanceEndpointArrayOutput) ElementType() reflect.Type
func (InstanceEndpointArrayOutput) Index ¶
func (o InstanceEndpointArrayOutput) Index(i pulumi.IntInput) InstanceEndpointOutput
func (InstanceEndpointArrayOutput) ToInstanceEndpointArrayOutput ¶
func (o InstanceEndpointArrayOutput) ToInstanceEndpointArrayOutput() InstanceEndpointArrayOutput
func (InstanceEndpointArrayOutput) ToInstanceEndpointArrayOutputWithContext ¶
func (o InstanceEndpointArrayOutput) ToInstanceEndpointArrayOutputWithContext(ctx context.Context) InstanceEndpointArrayOutput
type InstanceEndpointInput ¶
type InstanceEndpointInput interface { pulumi.Input ToInstanceEndpointOutput() InstanceEndpointOutput ToInstanceEndpointOutputWithContext(context.Context) InstanceEndpointOutput }
InstanceEndpointInput is an input type that accepts InstanceEndpointArgs and InstanceEndpointOutput values. You can construct a concrete instance of `InstanceEndpointInput` via:
InstanceEndpointArgs{...}
type InstanceEndpointOutput ¶
type InstanceEndpointOutput struct{ *pulumi.OutputState }
func (InstanceEndpointOutput) AlternativeEndpoints ¶
func (o InstanceEndpointOutput) AlternativeEndpoints() pulumi.StringPtrOutput
Some old instances have both AnyTunnel and SingleTunnel enabled. When switching from AnyTunnel to SingleTunnel, the endpoints of both are retained. Therefore, one more field is required to store the Endpoint.
func (InstanceEndpointOutput) ElementType ¶
func (InstanceEndpointOutput) ElementType() reflect.Type
func (InstanceEndpointOutput) Enabled ¶
func (o InstanceEndpointOutput) Enabled() pulumi.BoolPtrOutput
Whether to turn on the network.
func (InstanceEndpointOutput) Endpoint ¶
func (o InstanceEndpointOutput) Endpoint() pulumi.StringPtrOutput
Domain name.
func (InstanceEndpointOutput) ToInstanceEndpointOutput ¶
func (o InstanceEndpointOutput) ToInstanceEndpointOutput() InstanceEndpointOutput
func (InstanceEndpointOutput) ToInstanceEndpointOutputWithContext ¶
func (o InstanceEndpointOutput) ToInstanceEndpointOutputWithContext(ctx context.Context) InstanceEndpointOutput
func (InstanceEndpointOutput) Type ¶
func (o InstanceEndpointOutput) Type() pulumi.StringPtrOutput
The network type.
func (InstanceEndpointOutput) VpcId ¶
func (o InstanceEndpointOutput) VpcId() pulumi.StringPtrOutput
VPC primary key.
func (InstanceEndpointOutput) VpcInstanceId ¶
func (o InstanceEndpointOutput) VpcInstanceId() pulumi.StringPtrOutput
The vpc instance ID.
func (InstanceEndpointOutput) VswitchId ¶
func (o InstanceEndpointOutput) VswitchId() pulumi.StringPtrOutput
The ID of the virtual switch.
type InstanceInput ¶
type InstanceInput interface { pulumi.Input ToInstanceOutput() InstanceOutput ToInstanceOutputWithContext(ctx context.Context) InstanceOutput }
type InstanceMap ¶
type InstanceMap map[string]InstanceInput
func (InstanceMap) ElementType ¶
func (InstanceMap) ElementType() reflect.Type
func (InstanceMap) ToInstanceMapOutput ¶
func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMap) ToInstanceMapOutputWithContext ¶
func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceMapInput ¶
type InstanceMapInput interface { pulumi.Input ToInstanceMapOutput() InstanceMapOutput ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput }
InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:
InstanceMap{ "key": InstanceArgs{...} }
type InstanceMapOutput ¶
type InstanceMapOutput struct{ *pulumi.OutputState }
func (InstanceMapOutput) ElementType ¶
func (InstanceMapOutput) ElementType() reflect.Type
func (InstanceMapOutput) MapIndex ¶
func (o InstanceMapOutput) MapIndex(k pulumi.StringInput) InstanceOutput
func (InstanceMapOutput) ToInstanceMapOutput ¶
func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMapOutput) ToInstanceMapOutputWithContext ¶
func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceOutput ¶
type InstanceOutput struct{ *pulumi.OutputState }
func (InstanceOutput) AutoPay ¶
func (o InstanceOutput) AutoPay() pulumi.BoolPtrOutput
Whether to pay automatically. The default value is true. Value: - true: automatic payment - false: only generate orders, not pay > **NOTE:** The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
func (InstanceOutput) ColdStorageSize ¶
func (o InstanceOutput) ColdStorageSize() pulumi.IntPtrOutput
Instance low-frequency storage space. Unit: GB. > **NOTE:** PayAsYouGo (PostPaid) instances ignore this parameter.
func (InstanceOutput) Cpu ¶
func (o InstanceOutput) Cpu() pulumi.IntOutput
Instance specifications. Value: - 8 cores 32 GB (number of compute nodes: 1) - 16 cores 64 GB (number of compute nodes: 1) - 32 core 128 GB (number of compute nodes: 2) - 64 core 256 GB (number of compute nodes: 4) - 96 core 384 GB (number of computing nodes: 6) - 128 core 512 GB (number of compute nodes: 8) > **NOTE:** Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
func (InstanceOutput) CreateTime ¶
func (o InstanceOutput) CreateTime() pulumi.StringOutput
The creation time of the resource.
func (InstanceOutput) Duration ¶
func (o InstanceOutput) Duration() pulumi.IntPtrOutput
The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it.
func (InstanceOutput) ElementType ¶
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) Endpoints ¶
func (o InstanceOutput) Endpoints() InstanceEndpointArrayOutput
List of domain names. See `endpoints` below.
func (InstanceOutput) GatewayCount ¶
func (o InstanceOutput) GatewayCount() pulumi.IntPtrOutput
Number of gateway nodes.
func (InstanceOutput) InitialDatabases ¶
func (o InstanceOutput) InitialDatabases() pulumi.StringPtrOutput
Initialize the database and split multiple database names ",".
func (InstanceOutput) InstanceName ¶
func (o InstanceOutput) InstanceName() pulumi.StringOutput
The name of the resource.
func (InstanceOutput) InstanceType ¶
func (o InstanceOutput) InstanceType() pulumi.StringOutput
The instance type. Value: - Standard: Universal. - Follower: Read-only slave instance. - Warehouse: calculation group type. - Shared: Shared.
func (InstanceOutput) LeaderInstanceId ¶
func (o InstanceOutput) LeaderInstanceId() pulumi.StringPtrOutput
The ID of the primary instance.
func (InstanceOutput) PaymentType ¶
func (o InstanceOutput) PaymentType() pulumi.StringOutput
The payment type of the resource.
func (InstanceOutput) PricingCycle ¶
func (o InstanceOutput) PricingCycle() pulumi.StringPtrOutput
Billing cycle. Value: - Month: monthly billing - Hour: hourly billing > **NOTE:** Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it.
func (InstanceOutput) ResourceGroupId ¶
func (o InstanceOutput) ResourceGroupId() pulumi.StringOutput
The ID of the resource group.
func (InstanceOutput) ScaleType ¶
func (o InstanceOutput) ScaleType() pulumi.StringPtrOutput
Change matching type. Value: - UPGRADE: UPGRADE - DOWNGRADE: Downgrading > **NOTE:** The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
func (InstanceOutput) Status ¶
func (o InstanceOutput) Status() pulumi.StringOutput
The status of the resource.
func (InstanceOutput) StorageSize ¶
func (o InstanceOutput) StorageSize() pulumi.IntPtrOutput
The standard storage space of the instance. Unit: GB. > **NOTE:** PayAsYouGo instances (PostPaid) ignore this parameter.
func (InstanceOutput) ToInstanceOutput ¶
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
func (InstanceOutput) ZoneId ¶
func (o InstanceOutput) ZoneId() pulumi.StringOutput
The zone Id. Refer to "Instructions for Use".
type InstanceState ¶
type InstanceState struct { // Whether to pay automatically. The default value is true. Value: // - true: automatic payment // - false: only generate orders, not pay // > **NOTE:** The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself. AutoPay pulumi.BoolPtrInput // Instance low-frequency storage space. Unit: GB. // > **NOTE:** PayAsYouGo (PostPaid) instances ignore this parameter. ColdStorageSize pulumi.IntPtrInput // Instance specifications. Value: // - 8 cores 32 GB (number of compute nodes: 1) // - 16 cores 64 GB (number of compute nodes: 1) // - 32 core 128 GB (number of compute nodes: 2) // - 64 core 256 GB (number of compute nodes: 4) // - 96 core 384 GB (number of computing nodes: 6) // - 128 core 512 GB (number of compute nodes: 8) // > **NOTE:** Just fill in the audit number. Please submit a work order application for purchasing 1024 or above specifications. Shared instance types do not need to specify specifications. The specification of - 8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production. Cpu pulumi.IntPtrInput // The creation time of the resource. CreateTime pulumi.StringPtrInput // The buying cycle. Buy for 2 months. If the Payment type is PayAsYouGo (PostPaid), you do not need to specify it. Duration pulumi.IntPtrInput // List of domain names. See `endpoints` below. Endpoints InstanceEndpointArrayInput // Number of gateway nodes. GatewayCount pulumi.IntPtrInput // Initialize the database and split multiple database names ",". InitialDatabases pulumi.StringPtrInput // The name of the resource. InstanceName pulumi.StringPtrInput // The instance type. Value: // - Standard: Universal. // - Follower: Read-only slave instance. // - Warehouse: calculation group type. // - Shared: Shared. InstanceType pulumi.StringPtrInput // The ID of the primary instance. LeaderInstanceId pulumi.StringPtrInput // The payment type of the resource. PaymentType pulumi.StringPtrInput // Billing cycle. Value: // - Month: monthly billing // - Hour: hourly billing // > **NOTE:** Subscription instances (PrePaid) only supports Month. PayAsYouGo instances (PostPaid) only supports Hour. The Shared type is automatically set to Hour without specifying it. PricingCycle pulumi.StringPtrInput // The ID of the resource group. ResourceGroupId pulumi.StringPtrInput // Change matching type. Value: // - UPGRADE: UPGRADE // - DOWNGRADE: Downgrading // > **NOTE:** The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification. The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification. ScaleType pulumi.StringPtrInput // The status of the resource. Status pulumi.StringPtrInput // The standard storage space of the instance. Unit: GB. // > **NOTE:** PayAsYouGo instances (PostPaid) ignore this parameter. StorageSize pulumi.IntPtrInput // Instance tag. Tags pulumi.MapInput // The zone Id. Refer to "Instructions for Use". ZoneId pulumi.StringPtrInput }
func (InstanceState) ElementType ¶
func (InstanceState) ElementType() reflect.Type