rediscloud

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing rediscloud cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AclRole added in v1.1.3

type AclRole struct {
	pulumi.CustomResourceState

	// A meaningful name for the role. Must be unique.
	Name pulumi.StringOutput `pulumi:"name"`
	// A set of rule association objects, documented below.
	Rules AclRoleRuleArrayOutput `pulumi:"rules"`
}

Creates a Role in your Redis Enterprise Cloud Account.

## Example Usage

```go package main

import (

"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rediscloud.NewAclRule(ctx, "rule-resource", &rediscloud.AclRuleArgs{
			Rule: pulumi.String("+@read ~cache:*"),
		})
		if err != nil {
			return err
		}
		_, err = rediscloud.NewAclRole(ctx, "role-resource", &rediscloud.AclRoleArgs{
			Rules: rediscloud.AclRoleRuleArray{
				&rediscloud.AclRoleRuleArgs{
					Name: rule_resource.Name,
					Databases: rediscloud.AclRoleRuleDatabaseArray{
						&rediscloud.AclRoleRuleDatabaseArgs{
							Subscription: pulumi.Any(rediscloud_subscription.SubscriptionResource.Id),
							Database:     pulumi.Any(rediscloud_subscription_database.DatabaseResource.Db_id),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`rediscloud_acl_role` can be imported using the Identifier of the Role, e.g.

```sh

$ pulumi import rediscloud:index/aclRole:AclRole role-resource 123456

```

func GetAclRole added in v1.1.3

func GetAclRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclRoleState, opts ...pulumi.ResourceOption) (*AclRole, error)

GetAclRole gets an existing AclRole 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 NewAclRole added in v1.1.3

func NewAclRole(ctx *pulumi.Context,
	name string, args *AclRoleArgs, opts ...pulumi.ResourceOption) (*AclRole, error)

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

func (*AclRole) ElementType added in v1.1.3

func (*AclRole) ElementType() reflect.Type

func (*AclRole) ToAclRoleOutput added in v1.1.3

func (i *AclRole) ToAclRoleOutput() AclRoleOutput

func (*AclRole) ToAclRoleOutputWithContext added in v1.1.3

func (i *AclRole) ToAclRoleOutputWithContext(ctx context.Context) AclRoleOutput

func (*AclRole) ToOutput added in v1.1.3

func (i *AclRole) ToOutput(ctx context.Context) pulumix.Output[*AclRole]

type AclRoleArgs added in v1.1.3

type AclRoleArgs struct {
	// A meaningful name for the role. Must be unique.
	Name pulumi.StringPtrInput
	// A set of rule association objects, documented below.
	Rules AclRoleRuleArrayInput
}

The set of arguments for constructing a AclRole resource.

func (AclRoleArgs) ElementType added in v1.1.3

func (AclRoleArgs) ElementType() reflect.Type

type AclRoleArray added in v1.1.3

type AclRoleArray []AclRoleInput

func (AclRoleArray) ElementType added in v1.1.3

func (AclRoleArray) ElementType() reflect.Type

func (AclRoleArray) ToAclRoleArrayOutput added in v1.1.3

func (i AclRoleArray) ToAclRoleArrayOutput() AclRoleArrayOutput

func (AclRoleArray) ToAclRoleArrayOutputWithContext added in v1.1.3

func (i AclRoleArray) ToAclRoleArrayOutputWithContext(ctx context.Context) AclRoleArrayOutput

func (AclRoleArray) ToOutput added in v1.1.3

func (i AclRoleArray) ToOutput(ctx context.Context) pulumix.Output[[]*AclRole]

type AclRoleArrayInput added in v1.1.3

type AclRoleArrayInput interface {
	pulumi.Input

	ToAclRoleArrayOutput() AclRoleArrayOutput
	ToAclRoleArrayOutputWithContext(context.Context) AclRoleArrayOutput
}

AclRoleArrayInput is an input type that accepts AclRoleArray and AclRoleArrayOutput values. You can construct a concrete instance of `AclRoleArrayInput` via:

AclRoleArray{ AclRoleArgs{...} }

type AclRoleArrayOutput added in v1.1.3

type AclRoleArrayOutput struct{ *pulumi.OutputState }

func (AclRoleArrayOutput) ElementType added in v1.1.3

func (AclRoleArrayOutput) ElementType() reflect.Type

func (AclRoleArrayOutput) Index added in v1.1.3

func (AclRoleArrayOutput) ToAclRoleArrayOutput added in v1.1.3

func (o AclRoleArrayOutput) ToAclRoleArrayOutput() AclRoleArrayOutput

func (AclRoleArrayOutput) ToAclRoleArrayOutputWithContext added in v1.1.3

func (o AclRoleArrayOutput) ToAclRoleArrayOutputWithContext(ctx context.Context) AclRoleArrayOutput

func (AclRoleArrayOutput) ToOutput added in v1.1.3

type AclRoleInput added in v1.1.3

type AclRoleInput interface {
	pulumi.Input

	ToAclRoleOutput() AclRoleOutput
	ToAclRoleOutputWithContext(ctx context.Context) AclRoleOutput
}

type AclRoleMap added in v1.1.3

type AclRoleMap map[string]AclRoleInput

func (AclRoleMap) ElementType added in v1.1.3

func (AclRoleMap) ElementType() reflect.Type

func (AclRoleMap) ToAclRoleMapOutput added in v1.1.3

func (i AclRoleMap) ToAclRoleMapOutput() AclRoleMapOutput

func (AclRoleMap) ToAclRoleMapOutputWithContext added in v1.1.3

func (i AclRoleMap) ToAclRoleMapOutputWithContext(ctx context.Context) AclRoleMapOutput

func (AclRoleMap) ToOutput added in v1.1.3

func (i AclRoleMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*AclRole]

type AclRoleMapInput added in v1.1.3

type AclRoleMapInput interface {
	pulumi.Input

	ToAclRoleMapOutput() AclRoleMapOutput
	ToAclRoleMapOutputWithContext(context.Context) AclRoleMapOutput
}

AclRoleMapInput is an input type that accepts AclRoleMap and AclRoleMapOutput values. You can construct a concrete instance of `AclRoleMapInput` via:

AclRoleMap{ "key": AclRoleArgs{...} }

type AclRoleMapOutput added in v1.1.3

type AclRoleMapOutput struct{ *pulumi.OutputState }

func (AclRoleMapOutput) ElementType added in v1.1.3

func (AclRoleMapOutput) ElementType() reflect.Type

func (AclRoleMapOutput) MapIndex added in v1.1.3

func (AclRoleMapOutput) ToAclRoleMapOutput added in v1.1.3

func (o AclRoleMapOutput) ToAclRoleMapOutput() AclRoleMapOutput

func (AclRoleMapOutput) ToAclRoleMapOutputWithContext added in v1.1.3

func (o AclRoleMapOutput) ToAclRoleMapOutputWithContext(ctx context.Context) AclRoleMapOutput

func (AclRoleMapOutput) ToOutput added in v1.1.3

type AclRoleOutput added in v1.1.3

type AclRoleOutput struct{ *pulumi.OutputState }

func (AclRoleOutput) ElementType added in v1.1.3

func (AclRoleOutput) ElementType() reflect.Type

func (AclRoleOutput) Name added in v1.1.3

A meaningful name for the role. Must be unique.

func (AclRoleOutput) Rules added in v1.1.3

A set of rule association objects, documented below.

func (AclRoleOutput) ToAclRoleOutput added in v1.1.3

func (o AclRoleOutput) ToAclRoleOutput() AclRoleOutput

func (AclRoleOutput) ToAclRoleOutputWithContext added in v1.1.3

func (o AclRoleOutput) ToAclRoleOutputWithContext(ctx context.Context) AclRoleOutput

func (AclRoleOutput) ToOutput added in v1.1.3

func (o AclRoleOutput) ToOutput(ctx context.Context) pulumix.Output[*AclRole]

type AclRoleRule added in v1.1.3

type AclRoleRule struct {
	// a set of database association objects, documented below.
	Databases []AclRoleRuleDatabase `pulumi:"databases"`
	// Name of the Rule.
	Name string `pulumi:"name"`
}

type AclRoleRuleArgs added in v1.1.3

type AclRoleRuleArgs struct {
	// a set of database association objects, documented below.
	Databases AclRoleRuleDatabaseArrayInput `pulumi:"databases"`
	// Name of the Rule.
	Name pulumi.StringInput `pulumi:"name"`
}

func (AclRoleRuleArgs) ElementType added in v1.1.3

func (AclRoleRuleArgs) ElementType() reflect.Type

func (AclRoleRuleArgs) ToAclRoleRuleOutput added in v1.1.3

func (i AclRoleRuleArgs) ToAclRoleRuleOutput() AclRoleRuleOutput

func (AclRoleRuleArgs) ToAclRoleRuleOutputWithContext added in v1.1.3

func (i AclRoleRuleArgs) ToAclRoleRuleOutputWithContext(ctx context.Context) AclRoleRuleOutput

func (AclRoleRuleArgs) ToOutput added in v1.1.3

type AclRoleRuleArray added in v1.1.3

type AclRoleRuleArray []AclRoleRuleInput

func (AclRoleRuleArray) ElementType added in v1.1.3

func (AclRoleRuleArray) ElementType() reflect.Type

func (AclRoleRuleArray) ToAclRoleRuleArrayOutput added in v1.1.3

func (i AclRoleRuleArray) ToAclRoleRuleArrayOutput() AclRoleRuleArrayOutput

func (AclRoleRuleArray) ToAclRoleRuleArrayOutputWithContext added in v1.1.3

func (i AclRoleRuleArray) ToAclRoleRuleArrayOutputWithContext(ctx context.Context) AclRoleRuleArrayOutput

func (AclRoleRuleArray) ToOutput added in v1.1.3

type AclRoleRuleArrayInput added in v1.1.3

type AclRoleRuleArrayInput interface {
	pulumi.Input

	ToAclRoleRuleArrayOutput() AclRoleRuleArrayOutput
	ToAclRoleRuleArrayOutputWithContext(context.Context) AclRoleRuleArrayOutput
}

AclRoleRuleArrayInput is an input type that accepts AclRoleRuleArray and AclRoleRuleArrayOutput values. You can construct a concrete instance of `AclRoleRuleArrayInput` via:

AclRoleRuleArray{ AclRoleRuleArgs{...} }

type AclRoleRuleArrayOutput added in v1.1.3

type AclRoleRuleArrayOutput struct{ *pulumi.OutputState }

func (AclRoleRuleArrayOutput) ElementType added in v1.1.3

func (AclRoleRuleArrayOutput) ElementType() reflect.Type

func (AclRoleRuleArrayOutput) Index added in v1.1.3

func (AclRoleRuleArrayOutput) ToAclRoleRuleArrayOutput added in v1.1.3

func (o AclRoleRuleArrayOutput) ToAclRoleRuleArrayOutput() AclRoleRuleArrayOutput

func (AclRoleRuleArrayOutput) ToAclRoleRuleArrayOutputWithContext added in v1.1.3

func (o AclRoleRuleArrayOutput) ToAclRoleRuleArrayOutputWithContext(ctx context.Context) AclRoleRuleArrayOutput

func (AclRoleRuleArrayOutput) ToOutput added in v1.1.3

type AclRoleRuleDatabase added in v1.1.3

type AclRoleRuleDatabase struct {
	// ID of the database to which the Rule should apply.
	Database int `pulumi:"database"`
	// For databases in Active/Active subscriptions only, the regions to which the Rule should apply.
	Regions []string `pulumi:"regions"`
	// ID of the subscription containing the database.
	Subscription int `pulumi:"subscription"`
}

type AclRoleRuleDatabaseArgs added in v1.1.3

type AclRoleRuleDatabaseArgs struct {
	// ID of the database to which the Rule should apply.
	Database pulumi.IntInput `pulumi:"database"`
	// For databases in Active/Active subscriptions only, the regions to which the Rule should apply.
	Regions pulumi.StringArrayInput `pulumi:"regions"`
	// ID of the subscription containing the database.
	Subscription pulumi.IntInput `pulumi:"subscription"`
}

func (AclRoleRuleDatabaseArgs) ElementType added in v1.1.3

func (AclRoleRuleDatabaseArgs) ElementType() reflect.Type

func (AclRoleRuleDatabaseArgs) ToAclRoleRuleDatabaseOutput added in v1.1.3

func (i AclRoleRuleDatabaseArgs) ToAclRoleRuleDatabaseOutput() AclRoleRuleDatabaseOutput

func (AclRoleRuleDatabaseArgs) ToAclRoleRuleDatabaseOutputWithContext added in v1.1.3

func (i AclRoleRuleDatabaseArgs) ToAclRoleRuleDatabaseOutputWithContext(ctx context.Context) AclRoleRuleDatabaseOutput

func (AclRoleRuleDatabaseArgs) ToOutput added in v1.1.3

type AclRoleRuleDatabaseArray added in v1.1.3

type AclRoleRuleDatabaseArray []AclRoleRuleDatabaseInput

func (AclRoleRuleDatabaseArray) ElementType added in v1.1.3

func (AclRoleRuleDatabaseArray) ElementType() reflect.Type

func (AclRoleRuleDatabaseArray) ToAclRoleRuleDatabaseArrayOutput added in v1.1.3

func (i AclRoleRuleDatabaseArray) ToAclRoleRuleDatabaseArrayOutput() AclRoleRuleDatabaseArrayOutput

func (AclRoleRuleDatabaseArray) ToAclRoleRuleDatabaseArrayOutputWithContext added in v1.1.3

func (i AclRoleRuleDatabaseArray) ToAclRoleRuleDatabaseArrayOutputWithContext(ctx context.Context) AclRoleRuleDatabaseArrayOutput

func (AclRoleRuleDatabaseArray) ToOutput added in v1.1.3

type AclRoleRuleDatabaseArrayInput added in v1.1.3

type AclRoleRuleDatabaseArrayInput interface {
	pulumi.Input

	ToAclRoleRuleDatabaseArrayOutput() AclRoleRuleDatabaseArrayOutput
	ToAclRoleRuleDatabaseArrayOutputWithContext(context.Context) AclRoleRuleDatabaseArrayOutput
}

AclRoleRuleDatabaseArrayInput is an input type that accepts AclRoleRuleDatabaseArray and AclRoleRuleDatabaseArrayOutput values. You can construct a concrete instance of `AclRoleRuleDatabaseArrayInput` via:

AclRoleRuleDatabaseArray{ AclRoleRuleDatabaseArgs{...} }

type AclRoleRuleDatabaseArrayOutput added in v1.1.3

type AclRoleRuleDatabaseArrayOutput struct{ *pulumi.OutputState }

func (AclRoleRuleDatabaseArrayOutput) ElementType added in v1.1.3

func (AclRoleRuleDatabaseArrayOutput) Index added in v1.1.3

func (AclRoleRuleDatabaseArrayOutput) ToAclRoleRuleDatabaseArrayOutput added in v1.1.3

func (o AclRoleRuleDatabaseArrayOutput) ToAclRoleRuleDatabaseArrayOutput() AclRoleRuleDatabaseArrayOutput

func (AclRoleRuleDatabaseArrayOutput) ToAclRoleRuleDatabaseArrayOutputWithContext added in v1.1.3

func (o AclRoleRuleDatabaseArrayOutput) ToAclRoleRuleDatabaseArrayOutputWithContext(ctx context.Context) AclRoleRuleDatabaseArrayOutput

func (AclRoleRuleDatabaseArrayOutput) ToOutput added in v1.1.3

type AclRoleRuleDatabaseInput added in v1.1.3

type AclRoleRuleDatabaseInput interface {
	pulumi.Input

	ToAclRoleRuleDatabaseOutput() AclRoleRuleDatabaseOutput
	ToAclRoleRuleDatabaseOutputWithContext(context.Context) AclRoleRuleDatabaseOutput
}

AclRoleRuleDatabaseInput is an input type that accepts AclRoleRuleDatabaseArgs and AclRoleRuleDatabaseOutput values. You can construct a concrete instance of `AclRoleRuleDatabaseInput` via:

AclRoleRuleDatabaseArgs{...}

type AclRoleRuleDatabaseOutput added in v1.1.3

type AclRoleRuleDatabaseOutput struct{ *pulumi.OutputState }

func (AclRoleRuleDatabaseOutput) Database added in v1.1.3

ID of the database to which the Rule should apply.

func (AclRoleRuleDatabaseOutput) ElementType added in v1.1.3

func (AclRoleRuleDatabaseOutput) ElementType() reflect.Type

func (AclRoleRuleDatabaseOutput) Regions added in v1.1.3

For databases in Active/Active subscriptions only, the regions to which the Rule should apply.

func (AclRoleRuleDatabaseOutput) Subscription added in v1.1.3

func (o AclRoleRuleDatabaseOutput) Subscription() pulumi.IntOutput

ID of the subscription containing the database.

func (AclRoleRuleDatabaseOutput) ToAclRoleRuleDatabaseOutput added in v1.1.3

func (o AclRoleRuleDatabaseOutput) ToAclRoleRuleDatabaseOutput() AclRoleRuleDatabaseOutput

func (AclRoleRuleDatabaseOutput) ToAclRoleRuleDatabaseOutputWithContext added in v1.1.3

func (o AclRoleRuleDatabaseOutput) ToAclRoleRuleDatabaseOutputWithContext(ctx context.Context) AclRoleRuleDatabaseOutput

func (AclRoleRuleDatabaseOutput) ToOutput added in v1.1.3

type AclRoleRuleInput added in v1.1.3

type AclRoleRuleInput interface {
	pulumi.Input

	ToAclRoleRuleOutput() AclRoleRuleOutput
	ToAclRoleRuleOutputWithContext(context.Context) AclRoleRuleOutput
}

AclRoleRuleInput is an input type that accepts AclRoleRuleArgs and AclRoleRuleOutput values. You can construct a concrete instance of `AclRoleRuleInput` via:

AclRoleRuleArgs{...}

type AclRoleRuleOutput added in v1.1.3

type AclRoleRuleOutput struct{ *pulumi.OutputState }

func (AclRoleRuleOutput) Databases added in v1.1.3

a set of database association objects, documented below.

func (AclRoleRuleOutput) ElementType added in v1.1.3

func (AclRoleRuleOutput) ElementType() reflect.Type

func (AclRoleRuleOutput) Name added in v1.1.3

Name of the Rule.

func (AclRoleRuleOutput) ToAclRoleRuleOutput added in v1.1.3

func (o AclRoleRuleOutput) ToAclRoleRuleOutput() AclRoleRuleOutput

func (AclRoleRuleOutput) ToAclRoleRuleOutputWithContext added in v1.1.3

func (o AclRoleRuleOutput) ToAclRoleRuleOutputWithContext(ctx context.Context) AclRoleRuleOutput

func (AclRoleRuleOutput) ToOutput added in v1.1.3

type AclRoleState added in v1.1.3

type AclRoleState struct {
	// A meaningful name for the role. Must be unique.
	Name pulumi.StringPtrInput
	// A set of rule association objects, documented below.
	Rules AclRoleRuleArrayInput
}

func (AclRoleState) ElementType added in v1.1.3

func (AclRoleState) ElementType() reflect.Type

type AclRule added in v1.1.3

type AclRule struct {
	pulumi.CustomResourceState

	// A meaningful name for the rule. Must be unique.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ACL rule itself, built up as permissions/restrictions written in
	// the [ACL Syntax](https://docs.redis.com/latest/rc/security/access-control/data-access-control/configure-acls/#define-permissions-with-acl-syntax).
	Rule pulumi.StringOutput `pulumi:"rule"`
}

Creates a Rule (a.k.a Redis Rule, Redis ACL) in your Redis Enterprise Cloud Account.

## Example Usage

```go package main

import (

"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rediscloud.NewAclRule(ctx, "rule-resource", &rediscloud.AclRuleArgs{
			Rule: pulumi.String("+@read ~cache:*"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`rediscloud_acl_rule` can be imported using the Identifier of the Rule, e.g.

```sh

$ pulumi import rediscloud:index/aclRule:AclRule rule-resource 123456

```

func GetAclRule added in v1.1.3

func GetAclRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclRuleState, opts ...pulumi.ResourceOption) (*AclRule, error)

GetAclRule gets an existing AclRule 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 NewAclRule added in v1.1.3

func NewAclRule(ctx *pulumi.Context,
	name string, args *AclRuleArgs, opts ...pulumi.ResourceOption) (*AclRule, error)

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

func (*AclRule) ElementType added in v1.1.3

func (*AclRule) ElementType() reflect.Type

func (*AclRule) ToAclRuleOutput added in v1.1.3

func (i *AclRule) ToAclRuleOutput() AclRuleOutput

func (*AclRule) ToAclRuleOutputWithContext added in v1.1.3

func (i *AclRule) ToAclRuleOutputWithContext(ctx context.Context) AclRuleOutput

func (*AclRule) ToOutput added in v1.1.3

func (i *AclRule) ToOutput(ctx context.Context) pulumix.Output[*AclRule]

type AclRuleArgs added in v1.1.3

type AclRuleArgs struct {
	// A meaningful name for the rule. Must be unique.
	Name pulumi.StringPtrInput
	// The ACL rule itself, built up as permissions/restrictions written in
	// the [ACL Syntax](https://docs.redis.com/latest/rc/security/access-control/data-access-control/configure-acls/#define-permissions-with-acl-syntax).
	Rule pulumi.StringInput
}

The set of arguments for constructing a AclRule resource.

func (AclRuleArgs) ElementType added in v1.1.3

func (AclRuleArgs) ElementType() reflect.Type

type AclRuleArray added in v1.1.3

type AclRuleArray []AclRuleInput

func (AclRuleArray) ElementType added in v1.1.3

func (AclRuleArray) ElementType() reflect.Type

func (AclRuleArray) ToAclRuleArrayOutput added in v1.1.3

func (i AclRuleArray) ToAclRuleArrayOutput() AclRuleArrayOutput

func (AclRuleArray) ToAclRuleArrayOutputWithContext added in v1.1.3

func (i AclRuleArray) ToAclRuleArrayOutputWithContext(ctx context.Context) AclRuleArrayOutput

func (AclRuleArray) ToOutput added in v1.1.3

func (i AclRuleArray) ToOutput(ctx context.Context) pulumix.Output[[]*AclRule]

type AclRuleArrayInput added in v1.1.3

type AclRuleArrayInput interface {
	pulumi.Input

	ToAclRuleArrayOutput() AclRuleArrayOutput
	ToAclRuleArrayOutputWithContext(context.Context) AclRuleArrayOutput
}

AclRuleArrayInput is an input type that accepts AclRuleArray and AclRuleArrayOutput values. You can construct a concrete instance of `AclRuleArrayInput` via:

AclRuleArray{ AclRuleArgs{...} }

type AclRuleArrayOutput added in v1.1.3

type AclRuleArrayOutput struct{ *pulumi.OutputState }

func (AclRuleArrayOutput) ElementType added in v1.1.3

func (AclRuleArrayOutput) ElementType() reflect.Type

func (AclRuleArrayOutput) Index added in v1.1.3

func (AclRuleArrayOutput) ToAclRuleArrayOutput added in v1.1.3

func (o AclRuleArrayOutput) ToAclRuleArrayOutput() AclRuleArrayOutput

func (AclRuleArrayOutput) ToAclRuleArrayOutputWithContext added in v1.1.3

func (o AclRuleArrayOutput) ToAclRuleArrayOutputWithContext(ctx context.Context) AclRuleArrayOutput

func (AclRuleArrayOutput) ToOutput added in v1.1.3

type AclRuleInput added in v1.1.3

type AclRuleInput interface {
	pulumi.Input

	ToAclRuleOutput() AclRuleOutput
	ToAclRuleOutputWithContext(ctx context.Context) AclRuleOutput
}

type AclRuleMap added in v1.1.3

type AclRuleMap map[string]AclRuleInput

func (AclRuleMap) ElementType added in v1.1.3

func (AclRuleMap) ElementType() reflect.Type

func (AclRuleMap) ToAclRuleMapOutput added in v1.1.3

func (i AclRuleMap) ToAclRuleMapOutput() AclRuleMapOutput

func (AclRuleMap) ToAclRuleMapOutputWithContext added in v1.1.3

func (i AclRuleMap) ToAclRuleMapOutputWithContext(ctx context.Context) AclRuleMapOutput

func (AclRuleMap) ToOutput added in v1.1.3

func (i AclRuleMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*AclRule]

type AclRuleMapInput added in v1.1.3

type AclRuleMapInput interface {
	pulumi.Input

	ToAclRuleMapOutput() AclRuleMapOutput
	ToAclRuleMapOutputWithContext(context.Context) AclRuleMapOutput
}

AclRuleMapInput is an input type that accepts AclRuleMap and AclRuleMapOutput values. You can construct a concrete instance of `AclRuleMapInput` via:

AclRuleMap{ "key": AclRuleArgs{...} }

type AclRuleMapOutput added in v1.1.3

type AclRuleMapOutput struct{ *pulumi.OutputState }

func (AclRuleMapOutput) ElementType added in v1.1.3

func (AclRuleMapOutput) ElementType() reflect.Type

func (AclRuleMapOutput) MapIndex added in v1.1.3

func (AclRuleMapOutput) ToAclRuleMapOutput added in v1.1.3

func (o AclRuleMapOutput) ToAclRuleMapOutput() AclRuleMapOutput

func (AclRuleMapOutput) ToAclRuleMapOutputWithContext added in v1.1.3

func (o AclRuleMapOutput) ToAclRuleMapOutputWithContext(ctx context.Context) AclRuleMapOutput

func (AclRuleMapOutput) ToOutput added in v1.1.3

type AclRuleOutput added in v1.1.3

type AclRuleOutput struct{ *pulumi.OutputState }

func (AclRuleOutput) ElementType added in v1.1.3

func (AclRuleOutput) ElementType() reflect.Type

func (AclRuleOutput) Name added in v1.1.3

A meaningful name for the rule. Must be unique.

func (AclRuleOutput) Rule added in v1.1.3

The ACL rule itself, built up as permissions/restrictions written in the [ACL Syntax](https://docs.redis.com/latest/rc/security/access-control/data-access-control/configure-acls/#define-permissions-with-acl-syntax).

func (AclRuleOutput) ToAclRuleOutput added in v1.1.3

func (o AclRuleOutput) ToAclRuleOutput() AclRuleOutput

func (AclRuleOutput) ToAclRuleOutputWithContext added in v1.1.3

func (o AclRuleOutput) ToAclRuleOutputWithContext(ctx context.Context) AclRuleOutput

func (AclRuleOutput) ToOutput added in v1.1.3

func (o AclRuleOutput) ToOutput(ctx context.Context) pulumix.Output[*AclRule]

type AclRuleState added in v1.1.3

type AclRuleState struct {
	// A meaningful name for the rule. Must be unique.
	Name pulumi.StringPtrInput
	// The ACL rule itself, built up as permissions/restrictions written in
	// the [ACL Syntax](https://docs.redis.com/latest/rc/security/access-control/data-access-control/configure-acls/#define-permissions-with-acl-syntax).
	Rule pulumi.StringPtrInput
}

func (AclRuleState) ElementType added in v1.1.3

func (AclRuleState) ElementType() reflect.Type

type AclUser added in v1.1.3

type AclUser struct {
	pulumi.CustomResourceState

	// A meaningful name for the User. Must be unique.
	Name pulumi.StringOutput `pulumi:"name"`
	// The password for this ACL User. Must contain a lower-case letter, a
	// upper-case letter, a
	// number and a special character.
	Password pulumi.StringOutput `pulumi:"password"`
	// The name of the Role held by the User.
	Role pulumi.StringOutput `pulumi:"role"`
}

Creates a User in your Redis Enterprise Cloud Account.

## Example Usage

```go package main

import (

"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rediscloud.NewAclUser(ctx, "user-resource", &rediscloud.AclUserArgs{
			Role:     pulumi.Any(rediscloud_acl_role.RoleResource.Name),
			Password: pulumi.String("mY.passw0rd"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`rediscloud_acl_user` can be imported using the Identifier of the User, e.g.

```sh

$ pulumi import rediscloud:index/aclUser:AclUser user-resource 123456

```

func GetAclUser added in v1.1.3

func GetAclUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AclUserState, opts ...pulumi.ResourceOption) (*AclUser, error)

GetAclUser gets an existing AclUser 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 NewAclUser added in v1.1.3

func NewAclUser(ctx *pulumi.Context,
	name string, args *AclUserArgs, opts ...pulumi.ResourceOption) (*AclUser, error)

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

func (*AclUser) ElementType added in v1.1.3

func (*AclUser) ElementType() reflect.Type

func (*AclUser) ToAclUserOutput added in v1.1.3

func (i *AclUser) ToAclUserOutput() AclUserOutput

func (*AclUser) ToAclUserOutputWithContext added in v1.1.3

func (i *AclUser) ToAclUserOutputWithContext(ctx context.Context) AclUserOutput

func (*AclUser) ToOutput added in v1.1.3

func (i *AclUser) ToOutput(ctx context.Context) pulumix.Output[*AclUser]

type AclUserArgs added in v1.1.3

type AclUserArgs struct {
	// A meaningful name for the User. Must be unique.
	Name pulumi.StringPtrInput
	// The password for this ACL User. Must contain a lower-case letter, a
	// upper-case letter, a
	// number and a special character.
	Password pulumi.StringInput
	// The name of the Role held by the User.
	Role pulumi.StringInput
}

The set of arguments for constructing a AclUser resource.

func (AclUserArgs) ElementType added in v1.1.3

func (AclUserArgs) ElementType() reflect.Type

type AclUserArray added in v1.1.3

type AclUserArray []AclUserInput

func (AclUserArray) ElementType added in v1.1.3

func (AclUserArray) ElementType() reflect.Type

func (AclUserArray) ToAclUserArrayOutput added in v1.1.3

func (i AclUserArray) ToAclUserArrayOutput() AclUserArrayOutput

func (AclUserArray) ToAclUserArrayOutputWithContext added in v1.1.3

func (i AclUserArray) ToAclUserArrayOutputWithContext(ctx context.Context) AclUserArrayOutput

func (AclUserArray) ToOutput added in v1.1.3

func (i AclUserArray) ToOutput(ctx context.Context) pulumix.Output[[]*AclUser]

type AclUserArrayInput added in v1.1.3

type AclUserArrayInput interface {
	pulumi.Input

	ToAclUserArrayOutput() AclUserArrayOutput
	ToAclUserArrayOutputWithContext(context.Context) AclUserArrayOutput
}

AclUserArrayInput is an input type that accepts AclUserArray and AclUserArrayOutput values. You can construct a concrete instance of `AclUserArrayInput` via:

AclUserArray{ AclUserArgs{...} }

type AclUserArrayOutput added in v1.1.3

type AclUserArrayOutput struct{ *pulumi.OutputState }

func (AclUserArrayOutput) ElementType added in v1.1.3

func (AclUserArrayOutput) ElementType() reflect.Type

func (AclUserArrayOutput) Index added in v1.1.3

func (AclUserArrayOutput) ToAclUserArrayOutput added in v1.1.3

func (o AclUserArrayOutput) ToAclUserArrayOutput() AclUserArrayOutput

func (AclUserArrayOutput) ToAclUserArrayOutputWithContext added in v1.1.3

func (o AclUserArrayOutput) ToAclUserArrayOutputWithContext(ctx context.Context) AclUserArrayOutput

func (AclUserArrayOutput) ToOutput added in v1.1.3

type AclUserInput added in v1.1.3

type AclUserInput interface {
	pulumi.Input

	ToAclUserOutput() AclUserOutput
	ToAclUserOutputWithContext(ctx context.Context) AclUserOutput
}

type AclUserMap added in v1.1.3

type AclUserMap map[string]AclUserInput

func (AclUserMap) ElementType added in v1.1.3

func (AclUserMap) ElementType() reflect.Type

func (AclUserMap) ToAclUserMapOutput added in v1.1.3

func (i AclUserMap) ToAclUserMapOutput() AclUserMapOutput

func (AclUserMap) ToAclUserMapOutputWithContext added in v1.1.3

func (i AclUserMap) ToAclUserMapOutputWithContext(ctx context.Context) AclUserMapOutput

func (AclUserMap) ToOutput added in v1.1.3

func (i AclUserMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*AclUser]

type AclUserMapInput added in v1.1.3

type AclUserMapInput interface {
	pulumi.Input

	ToAclUserMapOutput() AclUserMapOutput
	ToAclUserMapOutputWithContext(context.Context) AclUserMapOutput
}

AclUserMapInput is an input type that accepts AclUserMap and AclUserMapOutput values. You can construct a concrete instance of `AclUserMapInput` via:

AclUserMap{ "key": AclUserArgs{...} }

type AclUserMapOutput added in v1.1.3

type AclUserMapOutput struct{ *pulumi.OutputState }

func (AclUserMapOutput) ElementType added in v1.1.3

func (AclUserMapOutput) ElementType() reflect.Type

func (AclUserMapOutput) MapIndex added in v1.1.3

func (AclUserMapOutput) ToAclUserMapOutput added in v1.1.3

func (o AclUserMapOutput) ToAclUserMapOutput() AclUserMapOutput

func (AclUserMapOutput) ToAclUserMapOutputWithContext added in v1.1.3

func (o AclUserMapOutput) ToAclUserMapOutputWithContext(ctx context.Context) AclUserMapOutput

func (AclUserMapOutput) ToOutput added in v1.1.3

type AclUserOutput added in v1.1.3

type AclUserOutput struct{ *pulumi.OutputState }

func (AclUserOutput) ElementType added in v1.1.3

func (AclUserOutput) ElementType() reflect.Type

func (AclUserOutput) Name added in v1.1.3

A meaningful name for the User. Must be unique.

func (AclUserOutput) Password added in v1.1.3

func (o AclUserOutput) Password() pulumi.StringOutput

The password for this ACL User. Must contain a lower-case letter, a upper-case letter, a number and a special character.

func (AclUserOutput) Role added in v1.1.3

The name of the Role held by the User.

func (AclUserOutput) ToAclUserOutput added in v1.1.3

func (o AclUserOutput) ToAclUserOutput() AclUserOutput

func (AclUserOutput) ToAclUserOutputWithContext added in v1.1.3

func (o AclUserOutput) ToAclUserOutputWithContext(ctx context.Context) AclUserOutput

func (AclUserOutput) ToOutput added in v1.1.3

func (o AclUserOutput) ToOutput(ctx context.Context) pulumix.Output[*AclUser]

type AclUserState added in v1.1.3

type AclUserState struct {
	// A meaningful name for the User. Must be unique.
	Name pulumi.StringPtrInput
	// The password for this ACL User. Must contain a lower-case letter, a
	// upper-case letter, a
	// number and a special character.
	Password pulumi.StringPtrInput
	// The name of the Role held by the User.
	Role pulumi.StringPtrInput
}

func (AclUserState) ElementType added in v1.1.3

func (AclUserState) ElementType() reflect.Type

type ActiveActiveSubscription

type ActiveActiveSubscription struct {
	pulumi.CustomResourceState

	// The cloud provider to use with the subscription, (either `AWS` or `GCP`). Default: ‘AWS’. **Modifying this attribute will force creation of a new resource.**
	CloudProvider pulumi.StringPtrOutput `pulumi:"cloudProvider"`
	// A creation plan object, documented below
	CreationPlan ActiveActiveSubscriptionCreationPlanPtrOutput `pulumi:"creationPlan"`
	// A meaningful name to identify the subscription
	Name pulumi.StringOutput `pulumi:"name"`
	// The payment method for the requested subscription, (either `credit-card` or `marketplace`). If `credit-card` is specified, `paymentMethodId` must be defined. Default: 'credit-card'. **Modifying this attribute will force creation of a new resource.**
	PaymentMethod pulumi.StringPtrOutput `pulumi:"paymentMethod"`
	// A valid payment method pre-defined in the current account. This value is __Optional__ for AWS/GCP Marketplace accounts, but __Required__ for all other account types
	PaymentMethodId pulumi.StringOutput `pulumi:"paymentMethodId"`
}

## Example Usage

```go package main

import (

"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		card, err := rediscloud.GetPaymentMethod(ctx, &rediscloud.GetPaymentMethodArgs{
			CardType: pulumi.StringRef("Visa"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = rediscloud.NewActiveActiveSubscription(ctx, "subscription-resource", &rediscloud.ActiveActiveSubscriptionArgs{
			PaymentMethodId: *pulumi.String(card.Id),
			CloudProvider:   pulumi.String("AWS"),
			CreationPlan: &rediscloud.ActiveActiveSubscriptionCreationPlanArgs{
				MemoryLimitInGb: pulumi.Float64(1),
				Quantity:        pulumi.Int(1),
				Regions: rediscloud.ActiveActiveSubscriptionCreationPlanRegionArray{
					&rediscloud.ActiveActiveSubscriptionCreationPlanRegionArgs{
						Region:                   pulumi.String("us-east-1"),
						NetworkingDeploymentCidr: pulumi.String("192.168.0.0/24"),
						WriteOperationsPerSecond: pulumi.Int(1000),
						ReadOperationsPerSecond:  pulumi.Int(1000),
					},
					&rediscloud.ActiveActiveSubscriptionCreationPlanRegionArgs{
						Region:                   pulumi.String("us-east-2"),
						NetworkingDeploymentCidr: pulumi.String("10.0.1.0/24"),
						WriteOperationsPerSecond: pulumi.Int(1000),
						ReadOperationsPerSecond:  pulumi.Int(1000),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

`rediscloud_active_active_subscription` can be imported using the ID of the subscription, e.g.

```sh

$ pulumi import rediscloud:index/activeActiveSubscription:ActiveActiveSubscription subscription-resource 12345678

```

~> __Note:__ the creation_plan block will be ignored during imports.

func GetActiveActiveSubscription

func GetActiveActiveSubscription(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ActiveActiveSubscriptionState, opts ...pulumi.ResourceOption) (*ActiveActiveSubscription, error)

GetActiveActiveSubscription gets an existing ActiveActiveSubscription 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 NewActiveActiveSubscription

func NewActiveActiveSubscription(ctx *pulumi.Context,
	name string, args *ActiveActiveSubscriptionArgs, opts ...pulumi.ResourceOption) (*ActiveActiveSubscription, error)

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

func (*ActiveActiveSubscription) ElementType

func (*ActiveActiveSubscription) ElementType() reflect.Type

func (*ActiveActiveSubscription) ToActiveActiveSubscriptionOutput

func (i *ActiveActiveSubscription) ToActiveActiveSubscriptionOutput() ActiveActiveSubscriptionOutput

func (*ActiveActiveSubscription) ToActiveActiveSubscriptionOutputWithContext

func (i *ActiveActiveSubscription) ToActiveActiveSubscriptionOutputWithContext(ctx context.Context) ActiveActiveSubscriptionOutput

func (*ActiveActiveSubscription) ToOutput added in v1.1.3

type ActiveActiveSubscriptionArgs

type ActiveActiveSubscriptionArgs struct {
	// The cloud provider to use with the subscription, (either `AWS` or `GCP`). Default: ‘AWS’. **Modifying this attribute will force creation of a new resource.**
	CloudProvider pulumi.StringPtrInput
	// A creation plan object, documented below
	CreationPlan ActiveActiveSubscriptionCreationPlanPtrInput
	// A meaningful name to identify the subscription
	Name pulumi.StringPtrInput
	// The payment method for the requested subscription, (either `credit-card` or `marketplace`). If `credit-card` is specified, `paymentMethodId` must be defined. Default: 'credit-card'. **Modifying this attribute will force creation of a new resource.**
	PaymentMethod pulumi.StringPtrInput
	// A valid payment method pre-defined in the current account. This value is __Optional__ for AWS/GCP Marketplace accounts, but __Required__ for all other account types
	PaymentMethodId pulumi.StringPtrInput
}

The set of arguments for constructing a ActiveActiveSubscription resource.

func (ActiveActiveSubscriptionArgs) ElementType

type ActiveActiveSubscriptionArray

type ActiveActiveSubscriptionArray []ActiveActiveSubscriptionInput

func (ActiveActiveSubscriptionArray) ElementType

func (ActiveActiveSubscriptionArray) ToActiveActiveSubscriptionArrayOutput

func (i ActiveActiveSubscriptionArray) ToActiveActiveSubscriptionArrayOutput() ActiveActiveSubscriptionArrayOutput

func (ActiveActiveSubscriptionArray) ToActiveActiveSubscriptionArrayOutputWithContext

func (i ActiveActiveSubscriptionArray) ToActiveActiveSubscriptionArrayOutputWithContext(ctx context.Context) ActiveActiveSubscriptionArrayOutput

func (ActiveActiveSubscriptionArray) ToOutput added in v1.1.3

type ActiveActiveSubscriptionArrayInput

type ActiveActiveSubscriptionArrayInput interface {
	pulumi.Input

	ToActiveActiveSubscriptionArrayOutput() ActiveActiveSubscriptionArrayOutput
	ToActiveActiveSubscriptionArrayOutputWithContext(context.Context) ActiveActiveSubscriptionArrayOutput
}

ActiveActiveSubscriptionArrayInput is an input type that accepts ActiveActiveSubscriptionArray and ActiveActiveSubscriptionArrayOutput values. You can construct a concrete instance of `ActiveActiveSubscriptionArrayInput` via:

ActiveActiveSubscriptionArray{ ActiveActiveSubscriptionArgs{...} }

type ActiveActiveSubscriptionArrayOutput

type ActiveActiveSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (ActiveActiveSubscriptionArrayOutput) ElementType

func (ActiveActiveSubscriptionArrayOutput) Index

func (ActiveActiveSubscriptionArrayOutput) ToActiveActiveSubscriptionArrayOutput

func (o ActiveActiveSubscriptionArrayOutput) ToActiveActiveSubscriptionArrayOutput() ActiveActiveSubscriptionArrayOutput

func (ActiveActiveSubscriptionArrayOutput) ToActiveActiveSubscriptionArrayOutputWithContext

func (o ActiveActiveSubscriptionArrayOutput) ToActiveActiveSubscriptionArrayOutputWithContext(ctx context.