com.pulumi.aws.docdb.kotlin.ClusterParameterGroup.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
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.kotlin.outputs.ClusterParameterGroupParameter
import com.pulumi.aws.docdb.kotlin.outputs.ClusterParameterGroupParameter.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
/**
* Builder for [ClusterParameterGroup].
*/
@PulumiTagMarker
public class ClusterParameterGroupResourceBuilder internal constructor() {
public var name: String? = null
public var args: ClusterParameterGroupArgs = ClusterParameterGroupArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend ClusterParameterGroupArgsBuilder.() -> Unit) {
val builder = ClusterParameterGroupArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): ClusterParameterGroup {
val builtJavaResource = com.pulumi.aws.docdb.ClusterParameterGroup(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ClusterParameterGroup(builtJavaResource)
}
}
/**
* 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
* ```
*/
public class ClusterParameterGroup internal constructor(
override val javaResource: com.pulumi.aws.docdb.ClusterParameterGroup,
) : KotlinCustomResource(javaResource, ClusterParameterGroupMapper) {
/**
* The ARN of the DocumentDB cluster parameter group.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The description of the DocumentDB cluster parameter group. Defaults to "Managed by Pulumi".
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The family of the DocumentDB cluster parameter group.
*/
public val family: Output
get() = javaResource.family().applyValue({ args0 -> args0 })
/**
* The name of the DocumentDB parameter.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Creates a unique name beginning with the specified prefix. Conflicts with `name`.
*/
public val namePrefix: Output
get() = javaResource.namePrefix().applyValue({ args0 -> args0 })
/**
* A list of DocumentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.
*/
public val parameters: Output>?
get() = javaResource.parameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(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.
*/
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy