ParameterGroupArgs

data class ParameterGroupArgs(val description: Output<String>? = null, val family: Output<String>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null, val parameters: Output<List<ParameterGroupParameterArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ParameterGroupArgs>

Provides a MemoryDB Parameter Group. More information about parameter groups can be found in the MemoryDB User Guide.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.memorydb.ParameterGroup("example", {
name: "my-parameter-group",
family: "memorydb_redis6",
parameters: [{
name: "activedefrag",
value: "yes",
}],
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.ParameterGroup("example",
name="my-parameter-group",
family="memorydb_redis6",
parameters=[{
"name": "activedefrag",
"value": "yes",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.MemoryDb.ParameterGroup("example", new()
{
Name = "my-parameter-group",
Family = "memorydb_redis6",
Parameters = new[]
{
new Aws.MemoryDb.Inputs.ParameterGroupParameterArgs
{
Name = "activedefrag",
Value = "yes",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorydb.NewParameterGroup(ctx, "example", &memorydb.ParameterGroupArgs{
Name: pulumi.String("my-parameter-group"),
Family: pulumi.String("memorydb_redis6"),
Parameters: memorydb.ParameterGroupParameterArray{
&memorydb.ParameterGroupParameterArgs{
Name: pulumi.String("activedefrag"),
Value: pulumi.String("yes"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.ParameterGroup;
import com.pulumi.aws.memorydb.ParameterGroupArgs;
import com.pulumi.aws.memorydb.inputs.ParameterGroupParameterArgs;
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) {
var example = new ParameterGroup("example", ParameterGroupArgs.builder()
.name("my-parameter-group")
.family("memorydb_redis6")
.parameters(ParameterGroupParameterArgs.builder()
.name("activedefrag")
.value("yes")
.build())
.build());
}
}
resources:
example:
type: aws:memorydb:ParameterGroup
properties:
name: my-parameter-group
family: memorydb_redis6
parameters:
- name: activedefrag
value: yes

Import

Using pulumi import, import a parameter group using the name. For example:

$ pulumi import aws:memorydb/parameterGroup:ParameterGroup example my-parameter-group

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, family: Output<String>? = null, name: Output<String>? = null, namePrefix: Output<String>? = null, parameters: Output<List<ParameterGroupParameterArgs>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

Description for the parameter group. Defaults to "Managed by Pulumi".

Link copied to clipboard
val family: Output<String>? = null

The engine version that the parameter group can be used with. The following arguments are optional:

Link copied to clipboard
val name: Output<String>? = null

Name of the parameter group. If omitted, the provider will assign a random, unique name. Conflicts with name_prefix.

Link copied to clipboard
val namePrefix: Output<String>? = null

Creates a unique name beginning with the specified prefix. Conflicts with name.

Link copied to clipboard

Set of MemoryDB parameters to apply. Any parameters not specified will fall back to their family defaults. Detailed below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ParameterGroupArgs