Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.docdb.kotlin.ClusterParameterGroupArgs.kt Maven / Gradle / Ivy
Go to download
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.docdb.kotlin
import com.pulumi.aws.docdb.ClusterParameterGroupArgs.builder
import com.pulumi.aws.docdb.kotlin.inputs.ClusterParameterGroupParameterArgs
import com.pulumi.aws.docdb.kotlin.inputs.ClusterParameterGroupParameterArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a DocumentDB Cluster Parameter Group
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.docdb.ClusterParameterGroup("example", {
* family: "docdb3.6",
* name: "example",
* description: "docdb cluster parameter group",
* parameters: [{
* name: "tls",
* value: "enabled",
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.docdb.ClusterParameterGroup("example",
* family="docdb3.6",
* name="example",
* description="docdb cluster parameter group",
* parameters=[{
* "name": "tls",
* "value": "enabled",
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.DocDB.ClusterParameterGroup("example", new()
* {
* Family = "docdb3.6",
* Name = "example",
* Description = "docdb cluster parameter group",
* Parameters = new[]
* {
* new Aws.DocDB.Inputs.ClusterParameterGroupParameterArgs
* {
* Name = "tls",
* Value = "enabled",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/docdb"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := docdb.NewClusterParameterGroup(ctx, "example", &docdb.ClusterParameterGroupArgs{
* Family: pulumi.String("docdb3.6"),
* Name: pulumi.String("example"),
* Description: pulumi.String("docdb cluster parameter group"),
* Parameters: docdb.ClusterParameterGroupParameterArray{
* &docdb.ClusterParameterGroupParameterArgs{
* Name: pulumi.String("tls"),
* Value: pulumi.String("enabled"),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.docdb.ClusterParameterGroup;
* import com.pulumi.aws.docdb.ClusterParameterGroupArgs;
* import com.pulumi.aws.docdb.inputs.ClusterParameterGroupParameterArgs;
* 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 ClusterParameterGroup("example", ClusterParameterGroupArgs.builder()
* .family("docdb3.6")
* .name("example")
* .description("docdb cluster parameter group")
* .parameters(ClusterParameterGroupParameterArgs.builder()
* .name("tls")
* .value("enabled")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:docdb:ClusterParameterGroup
* properties:
* family: docdb3.6
* name: example
* description: docdb cluster parameter group
* parameters:
* - name: tls
* value: enabled
* ```
*
* ## Import
* Using `pulumi import`, import DocumentDB Cluster Parameter Groups using the `name`. For example:
* ```sh
* $ pulumi import aws:docdb/clusterParameterGroup:ClusterParameterGroup cluster_pg production-pg-1
* ```
* @property description The description of the DocumentDB cluster parameter group. Defaults to "Managed by Pulumi".
* @property family The family of the DocumentDB cluster parameter group.
* @property name The name of the DocumentDB parameter.
* @property namePrefix Creates a unique name beginning with the specified prefix. Conflicts with `name`.
* @property parameters A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
* @property tags 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.
*/
public data class ClusterParameterGroupArgs(
public val description: Output? = null,
public val family: Output? = null,
public val name: Output? = null,
public val namePrefix: Output? = null,
public val parameters: Output>? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.docdb.ClusterParameterGroupArgs =
com.pulumi.aws.docdb.ClusterParameterGroupArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.family(family?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.namePrefix(namePrefix?.applyValue({ args0 -> args0 }))
.parameters(
parameters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ClusterParameterGroupArgs].
*/
@PulumiTagMarker
public class ClusterParameterGroupArgsBuilder internal constructor() {
private var description: Output? = null
private var family: Output? = null
private var name: Output? = null
private var namePrefix: Output? = null
private var parameters: Output>? = null
private var tags: Output>? = null
/**
* @param value The description of the DocumentDB cluster parameter group. Defaults to "Managed by Pulumi".
*/
@JvmName("rnvcrtsaqgflxxhq")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The family of the DocumentDB cluster parameter group.
*/
@JvmName("ywhpuuwbnfqclotp")
public suspend fun family(`value`: Output) {
this.family = value
}
/**
* @param value The name of the DocumentDB parameter.
*/
@JvmName("jwlnokawjxxuglst")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Creates a unique name beginning with the specified prefix. Conflicts with `name`.
*/
@JvmName("ycrfnudywyeitmmo")
public suspend fun namePrefix(`value`: Output) {
this.namePrefix = value
}
/**
* @param value A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("pdwacodtinmnqytl")
public suspend fun parameters(`value`: Output>) {
this.parameters = value
}
@JvmName("usnicrrnijakpxni")
public suspend fun parameters(vararg values: Output) {
this.parameters = Output.all(values.asList())
}
/**
* @param values A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("ocoryowkyvhsuybb")
public suspend fun parameters(values: List>) {
this.parameters = Output.all(values)
}
/**
* @param value 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.
*/
@JvmName("pgixuryocevwtlbs")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The description of the DocumentDB cluster parameter group. Defaults to "Managed by Pulumi".
*/
@JvmName("hgpbhxsdrbbgjpbd")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The family of the DocumentDB cluster parameter group.
*/
@JvmName("aaymvhkcoptkktvk")
public suspend fun family(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.family = mapped
}
/**
* @param value The name of the DocumentDB parameter.
*/
@JvmName("jkffrqxfqsbuxmmx")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Creates a unique name beginning with the specified prefix. Conflicts with `name`.
*/
@JvmName("qsectcxmbycmnioa")
public suspend fun namePrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namePrefix = mapped
}
/**
* @param value A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("qkfnskygtvaosokd")
public suspend fun parameters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param argument A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("lgkjiunblamersxs")
public suspend fun parameters(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ClusterParameterGroupParameterArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.parameters = mapped
}
/**
* @param argument A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("gwpdsnexiwhditbv")
public suspend fun parameters(vararg argument: suspend ClusterParameterGroupParameterArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ClusterParameterGroupParameterArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.parameters = mapped
}
/**
* @param argument A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("twyjnxsrgqucqjak")
public suspend fun parameters(argument: suspend ClusterParameterGroupParameterArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ClusterParameterGroupParameterArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.parameters = mapped
}
/**
* @param values A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
@JvmName("wqyxgiqfundvqefs")
public suspend fun parameters(vararg values: ClusterParameterGroupParameterArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param value 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.
*/
@JvmName("gqgpxxxvgjxrymqt")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values 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.
*/
@JvmName("ndcjlyyfyuopdmvv")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ClusterParameterGroupArgs = ClusterParameterGroupArgs(
description = description,
family = family,
name = name,
namePrefix = namePrefix,
parameters = parameters,
tags = tags,
)
}