Documentation
¶
Index ¶
- type SwitchDasPro
- type SwitchDasProArgs
- type SwitchDasProArray
- func (SwitchDasProArray) ElementType() reflect.Type
- func (i SwitchDasProArray) ToOutput(ctx context.Context) pulumix.Output[[]*SwitchDasPro]
- func (i SwitchDasProArray) ToSwitchDasProArrayOutput() SwitchDasProArrayOutput
- func (i SwitchDasProArray) ToSwitchDasProArrayOutputWithContext(ctx context.Context) SwitchDasProArrayOutput
- type SwitchDasProArrayInput
- type SwitchDasProArrayOutput
- func (SwitchDasProArrayOutput) ElementType() reflect.Type
- func (o SwitchDasProArrayOutput) Index(i pulumi.IntInput) SwitchDasProOutput
- func (o SwitchDasProArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SwitchDasPro]
- func (o SwitchDasProArrayOutput) ToSwitchDasProArrayOutput() SwitchDasProArrayOutput
- func (o SwitchDasProArrayOutput) ToSwitchDasProArrayOutputWithContext(ctx context.Context) SwitchDasProArrayOutput
- type SwitchDasProInput
- type SwitchDasProMap
- func (SwitchDasProMap) ElementType() reflect.Type
- func (i SwitchDasProMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SwitchDasPro]
- func (i SwitchDasProMap) ToSwitchDasProMapOutput() SwitchDasProMapOutput
- func (i SwitchDasProMap) ToSwitchDasProMapOutputWithContext(ctx context.Context) SwitchDasProMapOutput
- type SwitchDasProMapInput
- type SwitchDasProMapOutput
- func (SwitchDasProMapOutput) ElementType() reflect.Type
- func (o SwitchDasProMapOutput) MapIndex(k pulumi.StringInput) SwitchDasProOutput
- func (o SwitchDasProMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SwitchDasPro]
- func (o SwitchDasProMapOutput) ToSwitchDasProMapOutput() SwitchDasProMapOutput
- func (o SwitchDasProMapOutput) ToSwitchDasProMapOutputWithContext(ctx context.Context) SwitchDasProMapOutput
- type SwitchDasProOutput
- func (SwitchDasProOutput) ElementType() reflect.Type
- func (o SwitchDasProOutput) InstanceId() pulumi.StringOutput
- func (o SwitchDasProOutput) SqlRetention() pulumi.IntOutput
- func (o SwitchDasProOutput) Status() pulumi.BoolOutput
- func (o SwitchDasProOutput) ToOutput(ctx context.Context) pulumix.Output[*SwitchDasPro]
- func (o SwitchDasProOutput) ToSwitchDasProOutput() SwitchDasProOutput
- func (o SwitchDasProOutput) ToSwitchDasProOutputWithContext(ctx context.Context) SwitchDasProOutput
- func (o SwitchDasProOutput) UserId() pulumi.StringOutput
- type SwitchDasProState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwitchDasPro ¶
type SwitchDasPro struct { pulumi.CustomResourceState // The ID of the database instance. InstanceId pulumi.StringOutput `pulumi:"instanceId"` // The storage duration of SQL Explorer data. Valid values: `30`, `180`, `365`, `1095`, `1825`. Unit: days. Default value: `30`. SqlRetention pulumi.IntOutput `pulumi:"sqlRetention"` // Whether the database instance has DAS professional. Status pulumi.BoolOutput `pulumi:"status"` // The ID of the Alibaba Cloud account that is used to create the database instance. UserId pulumi.StringOutput `pulumi:"userId"` }
Provides a DAS Switch Das Pro resource.
For information about DAS Switch Das Pro and how to use it, see [What is Switch Das Pro](https://www.alibabacloud.com/help/en/database-autonomy-service/latest/enabledaspro).
> **NOTE:** Available in v1.193.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/das" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := das.NewSwitchDasPro(ctx, "default", &das.SwitchDasProArgs{ InstanceId: pulumi.String("your_sql_id"), SqlRetention: pulumi.Int(30), UserId: pulumi.String("your_account_id"), }) if err != nil { return err } return nil }) }
```
## Import
DAS Switch Das Pro can be imported using the id, e.g.
```sh
$ pulumi import alicloud:das/switchDasPro:SwitchDasPro example <id>
```
func GetSwitchDasPro ¶
func GetSwitchDasPro(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SwitchDasProState, opts ...pulumi.ResourceOption) (*SwitchDasPro, error)
GetSwitchDasPro gets an existing SwitchDasPro 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 NewSwitchDasPro ¶
func NewSwitchDasPro(ctx *pulumi.Context, name string, args *SwitchDasProArgs, opts ...pulumi.ResourceOption) (*SwitchDasPro, error)
NewSwitchDasPro registers a new resource with the given unique name, arguments, and options.
func (*SwitchDasPro) ElementType ¶
func (*SwitchDasPro) ElementType() reflect.Type
func (*SwitchDasPro) ToOutput ¶ added in v3.43.1
func (i *SwitchDasPro) ToOutput(ctx context.Context) pulumix.Output[*SwitchDasPro]
func (*SwitchDasPro) ToSwitchDasProOutput ¶
func (i *SwitchDasPro) ToSwitchDasProOutput() SwitchDasProOutput
func (*SwitchDasPro) ToSwitchDasProOutputWithContext ¶
func (i *SwitchDasPro) ToSwitchDasProOutputWithContext(ctx context.Context) SwitchDasProOutput
type SwitchDasProArgs ¶
type SwitchDasProArgs struct { // The ID of the database instance. InstanceId pulumi.StringInput // The storage duration of SQL Explorer data. Valid values: `30`, `180`, `365`, `1095`, `1825`. Unit: days. Default value: `30`. SqlRetention pulumi.IntPtrInput // The ID of the Alibaba Cloud account that is used to create the database instance. UserId pulumi.StringPtrInput }
The set of arguments for constructing a SwitchDasPro resource.
func (SwitchDasProArgs) ElementType ¶
func (SwitchDasProArgs) ElementType() reflect.Type
type SwitchDasProArray ¶
type SwitchDasProArray []SwitchDasProInput
func (SwitchDasProArray) ElementType ¶
func (SwitchDasProArray) ElementType() reflect.Type
func (SwitchDasProArray) ToOutput ¶ added in v3.43.1
func (i SwitchDasProArray) ToOutput(ctx context.Context) pulumix.Output[[]*SwitchDasPro]
func (SwitchDasProArray) ToSwitchDasProArrayOutput ¶
func (i SwitchDasProArray) ToSwitchDasProArrayOutput() SwitchDasProArrayOutput
func (SwitchDasProArray) ToSwitchDasProArrayOutputWithContext ¶
func (i SwitchDasProArray) ToSwitchDasProArrayOutputWithContext(ctx context.Context) SwitchDasProArrayOutput
type SwitchDasProArrayInput ¶
type SwitchDasProArrayInput interface { pulumi.Input ToSwitchDasProArrayOutput() SwitchDasProArrayOutput ToSwitchDasProArrayOutputWithContext(context.Context) SwitchDasProArrayOutput }
SwitchDasProArrayInput is an input type that accepts SwitchDasProArray and SwitchDasProArrayOutput values. You can construct a concrete instance of `SwitchDasProArrayInput` via:
SwitchDasProArray{ SwitchDasProArgs{...} }
type SwitchDasProArrayOutput ¶
type SwitchDasProArrayOutput struct{ *pulumi.OutputState }
func (SwitchDasProArrayOutput) ElementType ¶
func (SwitchDasProArrayOutput) ElementType() reflect.Type
func (SwitchDasProArrayOutput) Index ¶
func (o SwitchDasProArrayOutput) Index(i pulumi.IntInput) SwitchDasProOutput
func (SwitchDasProArrayOutput) ToOutput ¶ added in v3.43.1
func (o SwitchDasProArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*SwitchDasPro]
func (SwitchDasProArrayOutput) ToSwitchDasProArrayOutput ¶
func (o SwitchDasProArrayOutput) ToSwitchDasProArrayOutput() SwitchDasProArrayOutput
func (SwitchDasProArrayOutput) ToSwitchDasProArrayOutputWithContext ¶
func (o SwitchDasProArrayOutput) ToSwitchDasProArrayOutputWithContext(ctx context.Context) SwitchDasProArrayOutput
type SwitchDasProInput ¶
type SwitchDasProInput interface { pulumi.Input ToSwitchDasProOutput() SwitchDasProOutput ToSwitchDasProOutputWithContext(ctx context.Context) SwitchDasProOutput }
type SwitchDasProMap ¶
type SwitchDasProMap map[string]SwitchDasProInput
func (SwitchDasProMap) ElementType ¶
func (SwitchDasProMap) ElementType() reflect.Type
func (SwitchDasProMap) ToOutput ¶ added in v3.43.1
func (i SwitchDasProMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*SwitchDasPro]
func (SwitchDasProMap) ToSwitchDasProMapOutput ¶
func (i SwitchDasProMap) ToSwitchDasProMapOutput() SwitchDasProMapOutput
func (SwitchDasProMap) ToSwitchDasProMapOutputWithContext ¶
func (i SwitchDasProMap) ToSwitchDasProMapOutputWithContext(ctx context.Context) SwitchDasProMapOutput
type SwitchDasProMapInput ¶
type SwitchDasProMapInput interface { pulumi.Input ToSwitchDasProMapOutput() SwitchDasProMapOutput ToSwitchDasProMapOutputWithContext(context.Context) SwitchDasProMapOutput }
SwitchDasProMapInput is an input type that accepts SwitchDasProMap and SwitchDasProMapOutput values. You can construct a concrete instance of `SwitchDasProMapInput` via:
SwitchDasProMap{ "key": SwitchDasProArgs{...} }
type SwitchDasProMapOutput ¶
type SwitchDasProMapOutput struct{ *pulumi.OutputState }
func (SwitchDasProMapOutput) ElementType ¶
func (SwitchDasProMapOutput) ElementType() reflect.Type
func (SwitchDasProMapOutput) MapIndex ¶
func (o SwitchDasProMapOutput) MapIndex(k pulumi.StringInput) SwitchDasProOutput
func (SwitchDasProMapOutput) ToOutput ¶ added in v3.43.1
func (o SwitchDasProMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*SwitchDasPro]
func (SwitchDasProMapOutput) ToSwitchDasProMapOutput ¶
func (o SwitchDasProMapOutput) ToSwitchDasProMapOutput() SwitchDasProMapOutput
func (SwitchDasProMapOutput) ToSwitchDasProMapOutputWithContext ¶
func (o SwitchDasProMapOutput) ToSwitchDasProMapOutputWithContext(ctx context.Context) SwitchDasProMapOutput
type SwitchDasProOutput ¶
type SwitchDasProOutput struct{ *pulumi.OutputState }
func (SwitchDasProOutput) ElementType ¶
func (SwitchDasProOutput) ElementType() reflect.Type
func (SwitchDasProOutput) InstanceId ¶
func (o SwitchDasProOutput) InstanceId() pulumi.StringOutput
The ID of the database instance.
func (SwitchDasProOutput) SqlRetention ¶
func (o SwitchDasProOutput) SqlRetention() pulumi.IntOutput
The storage duration of SQL Explorer data. Valid values: `30`, `180`, `365`, `1095`, `1825`. Unit: days. Default value: `30`.
func (SwitchDasProOutput) Status ¶
func (o SwitchDasProOutput) Status() pulumi.BoolOutput
Whether the database instance has DAS professional.
func (SwitchDasProOutput) ToOutput ¶ added in v3.43.1
func (o SwitchDasProOutput) ToOutput(ctx context.Context) pulumix.Output[*SwitchDasPro]
func (SwitchDasProOutput) ToSwitchDasProOutput ¶
func (o SwitchDasProOutput) ToSwitchDasProOutput() SwitchDasProOutput
func (SwitchDasProOutput) ToSwitchDasProOutputWithContext ¶
func (o SwitchDasProOutput) ToSwitchDasProOutputWithContext(ctx context.Context) SwitchDasProOutput
func (SwitchDasProOutput) UserId ¶
func (o SwitchDasProOutput) UserId() pulumi.StringOutput
The ID of the Alibaba Cloud account that is used to create the database instance.
type SwitchDasProState ¶
type SwitchDasProState struct { // The ID of the database instance. InstanceId pulumi.StringPtrInput // The storage duration of SQL Explorer data. Valid values: `30`, `180`, `365`, `1095`, `1825`. Unit: days. Default value: `30`. SqlRetention pulumi.IntPtrInput // Whether the database instance has DAS professional. Status pulumi.BoolPtrInput // The ID of the Alibaba Cloud account that is used to create the database instance. UserId pulumi.StringPtrInput }
func (SwitchDasProState) ElementType ¶
func (SwitchDasProState) ElementType() reflect.Type