Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
rediscloud.getDatabaseModules
Explore with Pulumi AI
The database modules data source allows access to a list of supported Redis Enterprise Cloud modules.
Each module represents an enrichment that can be applied to a Redis database.
Example Usage
The following example returns a list of all modules available within your Redis Enterprise Cloud account.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rediscloud = Pulumi.Rediscloud;
return await Deployment.RunAsync(() =>
{
var example = Rediscloud.GetDatabaseModules.Invoke();
return new Dictionary<string, object?>
{
["rediscloudDatabaseModules"] = example.Apply(getDatabaseModulesResult => getDatabaseModulesResult.Modules),
};
});
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 {
example, err := rediscloud.GetDatabaseModules(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("rediscloudDatabaseModules", example.Modules)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rediscloud.RediscloudFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = RediscloudFunctions.getDatabaseModules();
ctx.export("rediscloudDatabaseModules", example.applyValue(getDatabaseModulesResult -> getDatabaseModulesResult.modules()));
}
}
import pulumi
import pulumi_rediscloud as rediscloud
example = rediscloud.get_database_modules()
pulumi.export("rediscloudDatabaseModules", example.modules)
import * as pulumi from "@pulumi/pulumi";
import * as rediscloud from "@pulumi/rediscloud";
const example = rediscloud.getDatabaseModules({});
export const rediscloudDatabaseModules = example.then(example => example.modules);
variables:
example:
fn::invoke:
Function: rediscloud:getDatabaseModules
Arguments: {}
outputs:
rediscloudDatabaseModules: ${example.modules}
Using getDatabaseModules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabaseModules(opts?: InvokeOptions): Promise<GetDatabaseModulesResult>
function getDatabaseModulesOutput(opts?: InvokeOptions): Output<GetDatabaseModulesResult>
def get_database_modules(opts: Optional[InvokeOptions] = None) -> GetDatabaseModulesResult
def get_database_modules_output(opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseModulesResult]
func GetDatabaseModules(ctx *Context, opts ...InvokeOption) (*GetDatabaseModulesResult, error)
func GetDatabaseModulesOutput(ctx *Context, opts ...InvokeOption) GetDatabaseModulesResultOutput
> Note: This function is named GetDatabaseModules
in the Go SDK.
public static class GetDatabaseModules
{
public static Task<GetDatabaseModulesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetDatabaseModulesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseModulesResult> getDatabaseModules(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rediscloud:index/getDatabaseModules:getDatabaseModules
arguments:
# arguments dictionary
getDatabaseModules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Modules
List<Redis
Labs. Rediscloud. Outputs. Get Database Modules Module> - A list of database modules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modules
[]Get
Database Modules Module - A list of database modules.
- id String
- The provider-assigned unique ID for this managed resource.
- modules
List<Get
Database Modules Module> - A list of database modules.
- id string
- The provider-assigned unique ID for this managed resource.
- modules
Get
Database Modules Module[] - A list of database modules.
- id str
- The provider-assigned unique ID for this managed resource.
- modules
Sequence[Get
Database Modules Module] - A list of database modules.
- id String
- The provider-assigned unique ID for this managed resource.
- modules List<Property Map>
- A list of database modules.
Supporting Types
GetDatabaseModulesModule
- Description string
- A meaningful description of the database module
- Name string
- The identifier assigned by the database module
- Description string
- A meaningful description of the database module
- Name string
- The identifier assigned by the database module
- description String
- A meaningful description of the database module
- name String
- The identifier assigned by the database module
- description string
- A meaningful description of the database module
- name string
- The identifier assigned by the database module
- description str
- A meaningful description of the database module
- name str
- The identifier assigned by the database module
- description String
- A meaningful description of the database module
- name String
- The identifier assigned by the database module
Package Details
- Repository
- rediscloud RedisLabs/pulumi-rediscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rediscloud
Terraform Provider.