umem

package
v0.0.0-...-4e6c764 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemcachedInstance

type MemcachedInstance struct {
	pulumi.CustomResourceState

	// Availability zone where Memcache instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The charge type of Memcache instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType pulumi.StringOutput `pulumi:"chargeType"`
	// The creation time of Memcache instance, formatted by RFC3339 time string.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The duration that you will buy the Memcache instance (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration pulumi.IntPtrOutput `pulumi:"duration"`
	// The expiration time of Memcache instance, formatted by RFC3339 time string.
	ExpireTime   pulumi.StringOutput `pulumi:"expireTime"`
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// ip_set is a nested type. ipSet documented below.
	IpSets MemcachedInstanceIpSetArrayOutput `pulumi:"ipSets"`
	Name   pulumi.StringOutput               `pulumi:"name"`
	// The status of KV Memcache instance.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of subnet linked to the Memcache instance.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// A tag assigned to Memcache instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringOutput `pulumi:"tag"`
	// The ID of VPC linked to the Memcache instance.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

The UCloud Memcache instance is a key-value online storage service compatible with the Memcached protocol.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uaccount"
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/umem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := uaccount.GetZone(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = umem.NewMemcachedInstance(ctx, "master", &umem.MemcachedInstanceArgs{
			AvailabilityZone: pulumi.String(_default.Zones[0].Id),
			InstanceType:     pulumi.String("memcache-master-2"),
			Tag:              pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetMemcachedInstance

func GetMemcachedInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MemcachedInstanceState, opts ...pulumi.ResourceOption) (*MemcachedInstance, error)

GetMemcachedInstance gets an existing MemcachedInstance 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 NewMemcachedInstance

func NewMemcachedInstance(ctx *pulumi.Context,
	name string, args *MemcachedInstanceArgs, opts ...pulumi.ResourceOption) (*MemcachedInstance, error)

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

func (*MemcachedInstance) ElementType

func (*MemcachedInstance) ElementType() reflect.Type

func (*MemcachedInstance) ToMemcachedInstanceOutput

func (i *MemcachedInstance) ToMemcachedInstanceOutput() MemcachedInstanceOutput

func (*MemcachedInstance) ToMemcachedInstanceOutputWithContext

func (i *MemcachedInstance) ToMemcachedInstanceOutputWithContext(ctx context.Context) MemcachedInstanceOutput

func (*MemcachedInstance) ToMemcachedInstancePtrOutput

func (i *MemcachedInstance) ToMemcachedInstancePtrOutput() MemcachedInstancePtrOutput

func (*MemcachedInstance) ToMemcachedInstancePtrOutputWithContext

func (i *MemcachedInstance) ToMemcachedInstancePtrOutputWithContext(ctx context.Context) MemcachedInstancePtrOutput

type MemcachedInstanceArgs

type MemcachedInstanceArgs struct {
	// Availability zone where Memcache instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone pulumi.StringInput
	// The charge type of Memcache instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType pulumi.StringPtrInput
	// The duration that you will buy the Memcache instance (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration     pulumi.IntPtrInput
	InstanceType pulumi.StringInput
	Name         pulumi.StringPtrInput
	// The ID of subnet linked to the Memcache instance.
	SubnetId pulumi.StringPtrInput
	// A tag assigned to Memcache instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrInput
	// The ID of VPC linked to the Memcache instance.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a MemcachedInstance resource.

func (MemcachedInstanceArgs) ElementType

func (MemcachedInstanceArgs) ElementType() reflect.Type

type MemcachedInstanceArray

type MemcachedInstanceArray []MemcachedInstanceInput

func (MemcachedInstanceArray) ElementType

func (MemcachedInstanceArray) ElementType() reflect.Type

func (MemcachedInstanceArray) ToMemcachedInstanceArrayOutput

func (i MemcachedInstanceArray) ToMemcachedInstanceArrayOutput() MemcachedInstanceArrayOutput

func (MemcachedInstanceArray) ToMemcachedInstanceArrayOutputWithContext

func (i MemcachedInstanceArray) ToMemcachedInstanceArrayOutputWithContext(ctx context.Context) MemcachedInstanceArrayOutput

type MemcachedInstanceArrayInput

type MemcachedInstanceArrayInput interface {
	pulumi.Input

	ToMemcachedInstanceArrayOutput() MemcachedInstanceArrayOutput
	ToMemcachedInstanceArrayOutputWithContext(context.Context) MemcachedInstanceArrayOutput
}

MemcachedInstanceArrayInput is an input type that accepts MemcachedInstanceArray and MemcachedInstanceArrayOutput values. You can construct a concrete instance of `MemcachedInstanceArrayInput` via:

MemcachedInstanceArray{ MemcachedInstanceArgs{...} }

type MemcachedInstanceArrayOutput

type MemcachedInstanceArrayOutput struct{ *pulumi.OutputState }

func (MemcachedInstanceArrayOutput) ElementType

func (MemcachedInstanceArrayOutput) Index

func (MemcachedInstanceArrayOutput) ToMemcachedInstanceArrayOutput

func (o MemcachedInstanceArrayOutput) ToMemcachedInstanceArrayOutput() MemcachedInstanceArrayOutput

func (MemcachedInstanceArrayOutput) ToMemcachedInstanceArrayOutputWithContext

func (o MemcachedInstanceArrayOutput) ToMemcachedInstanceArrayOutputWithContext(ctx context.Context) MemcachedInstanceArrayOutput

type MemcachedInstanceInput

type MemcachedInstanceInput interface {
	pulumi.Input

	ToMemcachedInstanceOutput() MemcachedInstanceOutput
	ToMemcachedInstanceOutputWithContext(ctx context.Context) MemcachedInstanceOutput
}

type MemcachedInstanceIpSet

type MemcachedInstanceIpSet struct {
	// The virtual ip of Memcache instance.
	Ip *string `pulumi:"ip"`
	// The port on which Memcache instance accepts connections, it is 6379 by default.
	Port *int `pulumi:"port"`
}

type MemcachedInstanceIpSetArgs

type MemcachedInstanceIpSetArgs struct {
	// The virtual ip of Memcache instance.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// The port on which Memcache instance accepts connections, it is 6379 by default.
	Port pulumi.IntPtrInput `pulumi:"port"`
}

func (MemcachedInstanceIpSetArgs) ElementType

func (MemcachedInstanceIpSetArgs) ElementType() reflect.Type

func (MemcachedInstanceIpSetArgs) ToMemcachedInstanceIpSetOutput

func (i MemcachedInstanceIpSetArgs) ToMemcachedInstanceIpSetOutput() MemcachedInstanceIpSetOutput

func (MemcachedInstanceIpSetArgs) ToMemcachedInstanceIpSetOutputWithContext

func (i MemcachedInstanceIpSetArgs) ToMemcachedInstanceIpSetOutputWithContext(ctx context.Context) MemcachedInstanceIpSetOutput

type MemcachedInstanceIpSetArray

type MemcachedInstanceIpSetArray []MemcachedInstanceIpSetInput

func (MemcachedInstanceIpSetArray) ElementType

func (MemcachedInstanceIpSetArray) ToMemcachedInstanceIpSetArrayOutput

func (i MemcachedInstanceIpSetArray) ToMemcachedInstanceIpSetArrayOutput() MemcachedInstanceIpSetArrayOutput

func (MemcachedInstanceIpSetArray) ToMemcachedInstanceIpSetArrayOutputWithContext

func (i MemcachedInstanceIpSetArray) ToMemcachedInstanceIpSetArrayOutputWithContext(ctx context.Context) MemcachedInstanceIpSetArrayOutput

type MemcachedInstanceIpSetArrayInput

type MemcachedInstanceIpSetArrayInput interface {
	pulumi.Input

	ToMemcachedInstanceIpSetArrayOutput() MemcachedInstanceIpSetArrayOutput
	ToMemcachedInstanceIpSetArrayOutputWithContext(context.Context) MemcachedInstanceIpSetArrayOutput
}

MemcachedInstanceIpSetArrayInput is an input type that accepts MemcachedInstanceIpSetArray and MemcachedInstanceIpSetArrayOutput values. You can construct a concrete instance of `MemcachedInstanceIpSetArrayInput` via:

MemcachedInstanceIpSetArray{ MemcachedInstanceIpSetArgs{...} }

type MemcachedInstanceIpSetArrayOutput

type MemcachedInstanceIpSetArrayOutput struct{ *pulumi.OutputState }

func (MemcachedInstanceIpSetArrayOutput) ElementType

func (MemcachedInstanceIpSetArrayOutput) Index

func (MemcachedInstanceIpSetArrayOutput) ToMemcachedInstanceIpSetArrayOutput

func (o MemcachedInstanceIpSetArrayOutput) ToMemcachedInstanceIpSetArrayOutput() MemcachedInstanceIpSetArrayOutput

func (MemcachedInstanceIpSetArrayOutput) ToMemcachedInstanceIpSetArrayOutputWithContext

func (o MemcachedInstanceIpSetArrayOutput) ToMemcachedInstanceIpSetArrayOutputWithContext(ctx context.Context) MemcachedInstanceIpSetArrayOutput

type MemcachedInstanceIpSetInput

type MemcachedInstanceIpSetInput interface {
	pulumi.Input

	ToMemcachedInstanceIpSetOutput() MemcachedInstanceIpSetOutput
	ToMemcachedInstanceIpSetOutputWithContext(context.Context) MemcachedInstanceIpSetOutput
}

MemcachedInstanceIpSetInput is an input type that accepts MemcachedInstanceIpSetArgs and MemcachedInstanceIpSetOutput values. You can construct a concrete instance of `MemcachedInstanceIpSetInput` via:

MemcachedInstanceIpSetArgs{...}

type MemcachedInstanceIpSetOutput

type MemcachedInstanceIpSetOutput struct{ *pulumi.OutputState }

func (MemcachedInstanceIpSetOutput) ElementType

func (MemcachedInstanceIpSetOutput) Ip

The virtual ip of Memcache instance.

func (MemcachedInstanceIpSetOutput) Port

The port on which Memcache instance accepts connections, it is 6379 by default.

func (MemcachedInstanceIpSetOutput) ToMemcachedInstanceIpSetOutput

func (o MemcachedInstanceIpSetOutput) ToMemcachedInstanceIpSetOutput() MemcachedInstanceIpSetOutput

func (MemcachedInstanceIpSetOutput) ToMemcachedInstanceIpSetOutputWithContext

func (o MemcachedInstanceIpSetOutput) ToMemcachedInstanceIpSetOutputWithContext(ctx context.Context) MemcachedInstanceIpSetOutput

type MemcachedInstanceMap

type MemcachedInstanceMap map[string]MemcachedInstanceInput

func (MemcachedInstanceMap) ElementType

func (MemcachedInstanceMap) ElementType() reflect.Type

func (MemcachedInstanceMap) ToMemcachedInstanceMapOutput

func (i MemcachedInstanceMap) ToMemcachedInstanceMapOutput() MemcachedInstanceMapOutput

func (MemcachedInstanceMap) ToMemcachedInstanceMapOutputWithContext

func (i MemcachedInstanceMap) ToMemcachedInstanceMapOutputWithContext(ctx context.Context) MemcachedInstanceMapOutput

type MemcachedInstanceMapInput

type MemcachedInstanceMapInput interface {
	pulumi.Input

	ToMemcachedInstanceMapOutput() MemcachedInstanceMapOutput
	ToMemcachedInstanceMapOutputWithContext(context.Context) MemcachedInstanceMapOutput
}

MemcachedInstanceMapInput is an input type that accepts MemcachedInstanceMap and MemcachedInstanceMapOutput values. You can construct a concrete instance of `MemcachedInstanceMapInput` via:

MemcachedInstanceMap{ "key": MemcachedInstanceArgs{...} }

type MemcachedInstanceMapOutput

type MemcachedInstanceMapOutput struct{ *pulumi.OutputState }

func (MemcachedInstanceMapOutput) ElementType

func (MemcachedInstanceMapOutput) ElementType() reflect.Type

func (MemcachedInstanceMapOutput) MapIndex

func (MemcachedInstanceMapOutput) ToMemcachedInstanceMapOutput

func (o MemcachedInstanceMapOutput) ToMemcachedInstanceMapOutput() MemcachedInstanceMapOutput

func (MemcachedInstanceMapOutput) ToMemcachedInstanceMapOutputWithContext

func (o MemcachedInstanceMapOutput) ToMemcachedInstanceMapOutputWithContext(ctx context.Context) MemcachedInstanceMapOutput

type MemcachedInstanceOutput

type MemcachedInstanceOutput struct {
	*pulumi.OutputState
}

func (MemcachedInstanceOutput) ElementType

func (MemcachedInstanceOutput) ElementType() reflect.Type

func (MemcachedInstanceOutput) ToMemcachedInstanceOutput

func (o MemcachedInstanceOutput) ToMemcachedInstanceOutput() MemcachedInstanceOutput

func (MemcachedInstanceOutput) ToMemcachedInstanceOutputWithContext

func (o MemcachedInstanceOutput) ToMemcachedInstanceOutputWithContext(ctx context.Context) MemcachedInstanceOutput

func (MemcachedInstanceOutput) ToMemcachedInstancePtrOutput

func (o MemcachedInstanceOutput) ToMemcachedInstancePtrOutput() MemcachedInstancePtrOutput

func (MemcachedInstanceOutput) ToMemcachedInstancePtrOutputWithContext

func (o MemcachedInstanceOutput) ToMemcachedInstancePtrOutputWithContext(ctx context.Context) MemcachedInstancePtrOutput

type MemcachedInstancePtrInput

type MemcachedInstancePtrInput interface {
	pulumi.Input

	ToMemcachedInstancePtrOutput() MemcachedInstancePtrOutput
	ToMemcachedInstancePtrOutputWithContext(ctx context.Context) MemcachedInstancePtrOutput
}

type MemcachedInstancePtrOutput

type MemcachedInstancePtrOutput struct {
	*pulumi.OutputState
}

func (MemcachedInstancePtrOutput) ElementType

func (MemcachedInstancePtrOutput) ElementType() reflect.Type

func (MemcachedInstancePtrOutput) ToMemcachedInstancePtrOutput

func (o MemcachedInstancePtrOutput) ToMemcachedInstancePtrOutput() MemcachedInstancePtrOutput

func (MemcachedInstancePtrOutput) ToMemcachedInstancePtrOutputWithContext

func (o MemcachedInstancePtrOutput) ToMemcachedInstancePtrOutputWithContext(ctx context.Context) MemcachedInstancePtrOutput

type MemcachedInstanceState

type MemcachedInstanceState struct {
	// Availability zone where Memcache instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone pulumi.StringPtrInput
	// The charge type of Memcache instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType pulumi.StringPtrInput
	// The creation time of Memcache instance, formatted by RFC3339 time string.
	CreateTime pulumi.StringPtrInput
	// The duration that you will buy the Memcache instance (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration pulumi.IntPtrInput
	// The expiration time of Memcache instance, formatted by RFC3339 time string.
	ExpireTime   pulumi.StringPtrInput
	InstanceType pulumi.StringPtrInput
	// ip_set is a nested type. ipSet documented below.
	IpSets MemcachedInstanceIpSetArrayInput
	Name   pulumi.StringPtrInput
	// The status of KV Memcache instance.
	Status pulumi.StringPtrInput
	// The ID of subnet linked to the Memcache instance.
	SubnetId pulumi.StringPtrInput
	// A tag assigned to Memcache instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrInput
	// The ID of VPC linked to the Memcache instance.
	VpcId pulumi.StringPtrInput
}

func (MemcachedInstanceState) ElementType

func (MemcachedInstanceState) ElementType() reflect.Type

type RedisInstance

type RedisInstance struct {
	pulumi.CustomResourceState

	// Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The charge type of Redis instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType pulumi.StringOutput `pulumi:"chargeType"`
	// The creation time of Redis instance, formatted by RFC3339 time string.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The duration that you will buy the Redis instance (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration pulumi.IntPtrOutput `pulumi:"duration"`
	// The version of engine of active-standby Redis. Possible values are: 3.0, 3.2, 4.0 and 5.0.
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// The expiration time of Redis instance, formatted by RFC3339 time string.
	ExpireTime   pulumi.StringOutput `pulumi:"expireTime"`
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// ip_set is a nested type. ipSet documented below.
	IpSets RedisInstanceIpSetArrayOutput `pulumi:"ipSets"`
	Name   pulumi.StringOutput           `pulumi:"name"`
	// The password for  active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include `-_`.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The status of KV Redis instance.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of subnet linked to the Redis instance.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringOutput `pulumi:"tag"`
	// The ID of VPC linked to the Redis instance.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

The UCloud Redis instance is a key-value online storage service compatible with the Redis protocol.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uaccount"
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/umem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := uaccount.GetZone(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = umem.NewRedisInstance(ctx, "master", &umem.RedisInstanceArgs{
			AvailabilityZone: pulumi.String(_default.Zones[0].Id),
			InstanceType:     pulumi.String("redis-master-2"),
			Password:         pulumi.String("2018_Tfacc"),
			EngineVersion:    pulumi.String("4.0"),
			Tag:              pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		_, err = umem.NewRedisInstance(ctx, "distributed", &umem.RedisInstanceArgs{
			AvailabilityZone: pulumi.String(_default.Zones[0].Id),
			InstanceType:     pulumi.String("redis-distributed-16"),
			Tag:              pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetRedisInstance

func GetRedisInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RedisInstanceState, opts ...pulumi.ResourceOption) (*RedisInstance, error)

GetRedisInstance gets an existing RedisInstance 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 NewRedisInstance

func NewRedisInstance(ctx *pulumi.Context,
	name string, args *RedisInstanceArgs, opts ...pulumi.ResourceOption) (*RedisInstance, error)

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

func (*RedisInstance) ElementType

func (*RedisInstance) ElementType() reflect.Type

func (*RedisInstance) ToRedisInstanceOutput

func (i *RedisInstance) ToRedisInstanceOutput() RedisInstanceOutput

func (*RedisInstance) ToRedisInstanceOutputWithContext

func (i *RedisInstance) ToRedisInstanceOutputWithContext(ctx context.Context) RedisInstanceOutput

func (*RedisInstance) ToRedisInstancePtrOutput

func (i *RedisInstance) ToRedisInstancePtrOutput() RedisInstancePtrOutput

func (*RedisInstance) ToRedisInstancePtrOutputWithContext

func (i *RedisInstance) ToRedisInstancePtrOutputWithContext(ctx context.Context) RedisInstancePtrOutput

type RedisInstanceArgs

type RedisInstanceArgs struct {
	// Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone pulumi.StringInput
	// The charge type of Redis instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType pulumi.StringPtrInput
	// The duration that you will buy the Redis instance (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration pulumi.IntPtrInput
	// The version of engine of active-standby Redis. Possible values are: 3.0, 3.2, 4.0 and 5.0.
	EngineVersion pulumi.StringPtrInput
	InstanceType  pulumi.StringInput
	Name          pulumi.StringPtrInput
	// The password for  active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include `-_`.
	Password pulumi.StringPtrInput
	// The ID of subnet linked to the Redis instance.
	SubnetId pulumi.StringPtrInput
	// A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrInput
	// The ID of VPC linked to the Redis instance.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a RedisInstance resource.

func (RedisInstanceArgs) ElementType

func (RedisInstanceArgs) ElementType() reflect.Type

type RedisInstanceArray

type RedisInstanceArray []RedisInstanceInput

func (RedisInstanceArray) ElementType

func (RedisInstanceArray) ElementType() reflect.Type

func (RedisInstanceArray) ToRedisInstanceArrayOutput

func (i RedisInstanceArray) ToRedisInstanceArrayOutput() RedisInstanceArrayOutput

func (RedisInstanceArray) ToRedisInstanceArrayOutputWithContext

func (i RedisInstanceArray) ToRedisInstanceArrayOutputWithContext(ctx context.Context) RedisInstanceArrayOutput

type RedisInstanceArrayInput

type RedisInstanceArrayInput interface {
	pulumi.Input

	ToRedisInstanceArrayOutput() RedisInstanceArrayOutput
	ToRedisInstanceArrayOutputWithContext(context.Context) RedisInstanceArrayOutput
}

RedisInstanceArrayInput is an input type that accepts RedisInstanceArray and RedisInstanceArrayOutput values. You can construct a concrete instance of `RedisInstanceArrayInput` via:

RedisInstanceArray{ RedisInstanceArgs{...} }

type RedisInstanceArrayOutput

type RedisInstanceArrayOutput struct{ *pulumi.OutputState }

func (RedisInstanceArrayOutput) ElementType

func (RedisInstanceArrayOutput) ElementType() reflect.Type

func (RedisInstanceArrayOutput) Index

func (RedisInstanceArrayOutput) ToRedisInstanceArrayOutput

func (o RedisInstanceArrayOutput) ToRedisInstanceArrayOutput() RedisInstanceArrayOutput

func (RedisInstanceArrayOutput) ToRedisInstanceArrayOutputWithContext

func (o RedisInstanceArrayOutput) ToRedisInstanceArrayOutputWithContext(ctx context.Context) RedisInstanceArrayOutput

type RedisInstanceInput

type RedisInstanceInput interface {
	pulumi.Input

	ToRedisInstanceOutput() RedisInstanceOutput
	ToRedisInstanceOutputWithContext(ctx context.Context) RedisInstanceOutput
}

type RedisInstanceIpSet

type RedisInstanceIpSet struct {
	// The virtual ip of Redis instance.
	Ip *string `pulumi:"ip"`
	// The port on which Redis instance accepts connections, it is 6379 by default.
	Port *int `pulumi:"port"`
}

type RedisInstanceIpSetArgs

type RedisInstanceIpSetArgs struct {
	// The virtual ip of Redis instance.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// The port on which Redis instance accepts connections, it is 6379 by default.
	Port pulumi.IntPtrInput `pulumi:"port"`
}

func (RedisInstanceIpSetArgs) ElementType

func (RedisInstanceIpSetArgs) ElementType() reflect.Type

func (RedisInstanceIpSetArgs) ToRedisInstanceIpSetOutput

func (i RedisInstanceIpSetArgs) ToRedisInstanceIpSetOutput() RedisInstanceIpSetOutput

func (RedisInstanceIpSetArgs) ToRedisInstanceIpSetOutputWithContext

func (i RedisInstanceIpSetArgs) ToRedisInstanceIpSetOutputWithContext(ctx context.Context) RedisInstanceIpSetOutput

type RedisInstanceIpSetArray

type RedisInstanceIpSetArray []RedisInstanceIpSetInput

func (RedisInstanceIpSetArray) ElementType

func (RedisInstanceIpSetArray) ElementType() reflect.Type

func (RedisInstanceIpSetArray) ToRedisInstanceIpSetArrayOutput

func (i RedisInstanceIpSetArray) ToRedisInstanceIpSetArrayOutput() RedisInstanceIpSetArrayOutput

func (RedisInstanceIpSetArray) ToRedisInstanceIpSetArrayOutputWithContext

func (i RedisInstanceIpSetArray) ToRedisInstanceIpSetArrayOutputWithContext(ctx context.Context) RedisInstanceIpSetArrayOutput

type RedisInstanceIpSetArrayInput

type RedisInstanceIpSetArrayInput interface {
	pulumi.Input

	ToRedisInstanceIpSetArrayOutput() RedisInstanceIpSetArrayOutput
	ToRedisInstanceIpSetArrayOutputWithContext(context.Context) RedisInstanceIpSetArrayOutput
}

RedisInstanceIpSetArrayInput is an input type that accepts RedisInstanceIpSetArray and RedisInstanceIpSetArrayOutput values. You can construct a concrete instance of `RedisInstanceIpSetArrayInput` via:

RedisInstanceIpSetArray{ RedisInstanceIpSetArgs{...} }

type RedisInstanceIpSetArrayOutput

type RedisInstanceIpSetArrayOutput struct{ *pulumi.OutputState }

func (RedisInstanceIpSetArrayOutput) ElementType

func (RedisInstanceIpSetArrayOutput) Index

func (RedisInstanceIpSetArrayOutput) ToRedisInstanceIpSetArrayOutput

func (o RedisInstanceIpSetArrayOutput) ToRedisInstanceIpSetArrayOutput() RedisInstanceIpSetArrayOutput

func (RedisInstanceIpSetArrayOutput) ToRedisInstanceIpSetArrayOutputWithContext

func (o RedisInstanceIpSetArrayOutput) ToRedisInstanceIpSetArrayOutputWithContext(ctx context.Context) RedisInstanceIpSetArrayOutput

type RedisInstanceIpSetInput

type RedisInstanceIpSetInput interface {
	pulumi.Input

	ToRedisInstanceIpSetOutput() RedisInstanceIpSetOutput
	ToRedisInstanceIpSetOutputWithContext(context.Context) RedisInstanceIpSetOutput
}

RedisInstanceIpSetInput is an input type that accepts RedisInstanceIpSetArgs and RedisInstanceIpSetOutput values. You can construct a concrete instance of `RedisInstanceIpSetInput` via:

RedisInstanceIpSetArgs{...}

type RedisInstanceIpSetOutput

type RedisInstanceIpSetOutput struct{ *pulumi.OutputState }

func (RedisInstanceIpSetOutput) ElementType

func (RedisInstanceIpSetOutput) ElementType() reflect.Type

func (RedisInstanceIpSetOutput) Ip

The virtual ip of Redis instance.

func (RedisInstanceIpSetOutput) Port

The port on which Redis instance accepts connections, it is 6379 by default.

func (RedisInstanceIpSetOutput) ToRedisInstanceIpSetOutput

func (o RedisInstanceIpSetOutput) ToRedisInstanceIpSetOutput() RedisInstanceIpSetOutput

func (RedisInstanceIpSetOutput) ToRedisInstanceIpSetOutputWithContext

func (o RedisInstanceIpSetOutput) ToRedisInstanceIpSetOutputWithContext(ctx context.Context) RedisInstanceIpSetOutput

type RedisInstanceMap

type RedisInstanceMap map[string]RedisInstanceInput

func (RedisInstanceMap) ElementType

func (RedisInstanceMap) ElementType() reflect.Type

func (RedisInstanceMap) ToRedisInstanceMapOutput

func (i RedisInstanceMap) ToRedisInstanceMapOutput() RedisInstanceMapOutput

func (RedisInstanceMap) ToRedisInstanceMapOutputWithContext

func (i RedisInstanceMap) ToRedisInstanceMapOutputWithContext(ctx context.Context) RedisInstanceMapOutput

type RedisInstanceMapInput

type RedisInstanceMapInput interface {
	pulumi.Input

	ToRedisInstanceMapOutput() RedisInstanceMapOutput
	ToRedisInstanceMapOutputWithContext(context.Context) RedisInstanceMapOutput
}

RedisInstanceMapInput is an input type that accepts RedisInstanceMap and RedisInstanceMapOutput values. You can construct a concrete instance of `RedisInstanceMapInput` via:

RedisInstanceMap{ "key": RedisInstanceArgs{...} }

type RedisInstanceMapOutput

type RedisInstanceMapOutput struct{ *pulumi.OutputState }

func (RedisInstanceMapOutput) ElementType

func (RedisInstanceMapOutput) ElementType() reflect.Type

func (RedisInstanceMapOutput) MapIndex

func (RedisInstanceMapOutput) ToRedisInstanceMapOutput

func (o RedisInstanceMapOutput) ToRedisInstanceMapOutput() RedisInstanceMapOutput

func (RedisInstanceMapOutput) ToRedisInstanceMapOutputWithContext

func (o RedisInstanceMapOutput) ToRedisInstanceMapOutputWithContext(ctx context.Context) RedisInstanceMapOutput

type RedisInstanceOutput

type RedisInstanceOutput struct {
	*pulumi.OutputState
}

func (RedisInstanceOutput) ElementType

func (RedisInstanceOutput) ElementType() reflect.Type

func (RedisInstanceOutput) ToRedisInstanceOutput

func (o RedisInstanceOutput) ToRedisInstanceOutput() RedisInstanceOutput

func (RedisInstanceOutput) ToRedisInstanceOutputWithContext

func (o RedisInstanceOutput) ToRedisInstanceOutputWithContext(ctx context.Context) RedisInstanceOutput

func (RedisInstanceOutput) ToRedisInstancePtrOutput

func (o RedisInstanceOutput) ToRedisInstancePtrOutput() RedisInstancePtrOutput

func (RedisInstanceOutput) ToRedisInstancePtrOutputWithContext

func (o RedisInstanceOutput) ToRedisInstancePtrOutputWithContext(ctx context.Context) RedisInstancePtrOutput

type RedisInstancePtrInput

type RedisInstancePtrInput interface {
	pulumi.Input

	ToRedisInstancePtrOutput() RedisInstancePtrOutput
	ToRedisInstancePtrOutputWithContext(ctx context.Context) RedisInstancePtrOutput
}

type RedisInstancePtrOutput

type RedisInstancePtrOutput struct {
	*pulumi.OutputState
}

func (RedisInstancePtrOutput) ElementType

func (RedisInstancePtrOutput) ElementType() reflect.Type

func (RedisInstancePtrOutput) ToRedisInstancePtrOutput

func (o RedisInstancePtrOutput) ToRedisInstancePtrOutput() RedisInstancePtrOutput

func (RedisInstancePtrOutput) ToRedisInstancePtrOutputWithContext

func (o RedisInstancePtrOutput) ToRedisInstancePtrOutputWithContext(ctx context.Context) RedisInstancePtrOutput

type RedisInstanceState

type RedisInstanceState struct {
	// Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to [list of availability zone](https://docs.ucloud.cn/api/summary/regionlist)
	AvailabilityZone pulumi.StringPtrInput
	// The charge type of Redis instance, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`).
	ChargeType pulumi.StringPtrInput
	// The creation time of Redis instance, formatted by RFC3339 time string.
	CreateTime pulumi.StringPtrInput
	// The duration that you will buy the Redis instance (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour).
	Duration pulumi.IntPtrInput
	// The version of engine of active-standby Redis. Possible values are: 3.0, 3.2, 4.0 and 5.0.
	EngineVersion pulumi.StringPtrInput
	// The expiration time of Redis instance, formatted by RFC3339 time string.
	ExpireTime   pulumi.StringPtrInput
	InstanceType pulumi.StringPtrInput
	// ip_set is a nested type. ipSet documented below.
	IpSets RedisInstanceIpSetArrayInput
	Name   pulumi.StringPtrInput
	// The password for  active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include `-_`.
	Password pulumi.StringPtrInput
	// The status of KV Redis instance.
	Status pulumi.StringPtrInput
	// The ID of subnet linked to the Redis instance.
	SubnetId pulumi.StringPtrInput
	// A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrInput
	// The ID of VPC linked to the Redis instance.
	VpcId pulumi.StringPtrInput
}

func (RedisInstanceState) ElementType

func (RedisInstanceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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