All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.mq.kotlin.ConfigurationArgs.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.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.mq.kotlin

import com.pulumi.aws.mq.ConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides an MQ Configuration Resource.
 * For more information on Amazon MQ, see [Amazon MQ documentation](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/welcome.html).
 * ## Example Usage
 * ### ActiveMQ
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.mq.Configuration("example", {
 *     description: "Example Configuration",
 *     name: "example",
 *     engineType: "ActiveMQ",
 *     engineVersion: "5.17.6",
 *     data: `
 * 
 *   
 *     
 *     
 *     
 *   
 * 
 * `,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.mq.Configuration("example",
 *     description="Example Configuration",
 *     name="example",
 *     engine_type="ActiveMQ",
 *     engine_version="5.17.6",
 *     data="""
 * 
 *   
 *     
 *     
 *     
 *   
 * 
 * """)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Mq.Configuration("example", new()
 *     {
 *         Description = "Example Configuration",
 *         Name = "example",
 *         EngineType = "ActiveMQ",
 *         EngineVersion = "5.17.6",
 *         Data = @"
 * 
 *   
 *     
 *     
 *     
 *   
 * 
 * ",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/mq"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := mq.NewConfiguration(ctx, "example", &mq.ConfigurationArgs{
 * 			Description:   pulumi.String("Example Configuration"),
 * 			Name:          pulumi.String("example"),
 * 			EngineType:    pulumi.String("ActiveMQ"),
 * 			EngineVersion: pulumi.String("5.17.6"),
 * 			Data: pulumi.String(`
 * 
 *   
 *     
 *     
 *     
 *   
 * 
 * `),
 * 		})
 * 		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.mq.Configuration;
 * import com.pulumi.aws.mq.ConfigurationArgs;
 * 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 Configuration("example", ConfigurationArgs.builder()
 *             .description("Example Configuration")
 *             .name("example")
 *             .engineType("ActiveMQ")
 *             .engineVersion("5.17.6")
 *             .data("""
 * 
 * 
 *   
 *     
 *     
 *     
 *   
 * 
 *             """)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:mq:Configuration
 *     properties:
 *       description: Example Configuration
 *       name: example
 *       engineType: ActiveMQ
 *       engineVersion: 5.17.6
 *       data: |
 *         
 *         
 *           
 *             
 *             
 *             
 *           
 *         
 * ```
 * 
 * ### RabbitMQ
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.mq.Configuration("example", {
 *     description: "Example Configuration",
 *     name: "example",
 *     engineType: "RabbitMQ",
 *     engineVersion: "3.11.20",
 *     data: `# Default RabbitMQ delivery acknowledgement timeout is 30 minutes in milliseconds
 * consumer_timeout = 1800000
 * `,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.mq.Configuration("example",
 *     description="Example Configuration",
 *     name="example",
 *     engine_type="RabbitMQ",
 *     engine_version="3.11.20",
 *     data="""# Default RabbitMQ delivery acknowledgement timeout is 30 minutes in milliseconds
 * consumer_timeout = 1800000
 * """)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Mq.Configuration("example", new()
 *     {
 *         Description = "Example Configuration",
 *         Name = "example",
 *         EngineType = "RabbitMQ",
 *         EngineVersion = "3.11.20",
 *         Data = @"# Default RabbitMQ delivery acknowledgement timeout is 30 minutes in milliseconds
 * consumer_timeout = 1800000
 * ",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/mq"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := mq.NewConfiguration(ctx, "example", &mq.ConfigurationArgs{
 * 			Description:   pulumi.String("Example Configuration"),
 * 			Name:          pulumi.String("example"),
 * 			EngineType:    pulumi.String("RabbitMQ"),
 * 			EngineVersion: pulumi.String("3.11.20"),
 * 			Data:          pulumi.String("# Default RabbitMQ delivery acknowledgement timeout is 30 minutes in milliseconds\nconsumer_timeout = 1800000\n"),
 * 		})
 * 		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.mq.Configuration;
 * import com.pulumi.aws.mq.ConfigurationArgs;
 * 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 Configuration("example", ConfigurationArgs.builder()
 *             .description("Example Configuration")
 *             .name("example")
 *             .engineType("RabbitMQ")
 *             .engineVersion("3.11.20")
 *             .data("""
 * # Default RabbitMQ delivery acknowledgement timeout is 30 minutes in milliseconds
 * consumer_timeout = 1800000
 *             """)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:mq:Configuration
 *     properties:
 *       description: Example Configuration
 *       name: example
 *       engineType: RabbitMQ
 *       engineVersion: 3.11.20
 *       data: |
 *         # Default RabbitMQ delivery acknowledgement timeout is 30 minutes in milliseconds
 *         consumer_timeout = 1800000
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import MQ Configurations using the configuration ID. For example:
 * ```sh
 * $ pulumi import aws:mq/configuration:Configuration example c-0187d1eb-88c8-475a-9b79-16ef5a10c94f
 * ```
 * @property authenticationStrategy Authentication strategy associated with the configuration. Valid values are `simple` and `ldap`. `ldap` is not supported for `engine_type` `RabbitMQ`.
 * @property data Broker configuration in XML format for `ActiveMQ` or [Cuttlefish](https://github.com/Kyorai/cuttlefish) format for `RabbitMQ`. See [official docs](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/amazon-mq-broker-configuration-parameters.html) for supported parameters and format of the XML.
 * @property description Description of the configuration.
 * @property engineType Type of broker engine. Valid values are `ActiveMQ` and `RabbitMQ`.
 * @property engineVersion Version of the broker engine.
 * @property name Name of the configuration.
 * The following arguments are optional:
 * @property tags 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 ConfigurationArgs(
    public val authenticationStrategy: Output? = null,
    public val `data`: Output? = null,
    public val description: Output? = null,
    public val engineType: Output? = null,
    public val engineVersion: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.mq.ConfigurationArgs =
        com.pulumi.aws.mq.ConfigurationArgs.builder()
            .authenticationStrategy(authenticationStrategy?.applyValue({ args0 -> args0 }))
            .`data`(`data`?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .engineType(engineType?.applyValue({ args0 -> args0 }))
            .engineVersion(engineVersion?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ConfigurationArgs].
 */
@PulumiTagMarker
public class ConfigurationArgsBuilder internal constructor() {
    private var authenticationStrategy: Output? = null

    private var `data`: Output? = null

    private var description: Output? = null

    private var engineType: Output? = null

    private var engineVersion: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Authentication strategy associated with the configuration. Valid values are `simple` and `ldap`. `ldap` is not supported for `engine_type` `RabbitMQ`.
     */
    @JvmName("linvdoojgxkdhhec")
    public suspend fun authenticationStrategy(`value`: Output) {
        this.authenticationStrategy = value
    }

    /**
     * @param value Broker configuration in XML format for `ActiveMQ` or [Cuttlefish](https://github.com/Kyorai/cuttlefish) format for `RabbitMQ`. See [official docs](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/amazon-mq-broker-configuration-parameters.html) for supported parameters and format of the XML.
     */
    @JvmName("cnvrpiaxdywulivo")
    public suspend fun `data`(`value`: Output) {
        this.`data` = value
    }

    /**
     * @param value Description of the configuration.
     */
    @JvmName("fpuurgnsgmmbwdqn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Type of broker engine. Valid values are `ActiveMQ` and `RabbitMQ`.
     */
    @JvmName("roeybdbfwniueubo")
    public suspend fun engineType(`value`: Output) {
        this.engineType = value
    }

    /**
     * @param value Version of the broker engine.
     */
    @JvmName("gfjfrpabonififsk")
    public suspend fun engineVersion(`value`: Output) {
        this.engineVersion = value
    }

    /**
     * @param value Name of the configuration.
     * The following arguments are optional:
     */
    @JvmName("bflpcuuyycqvemmk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value 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("mwcrjrpokutreche")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Authentication strategy associated with the configuration. Valid values are `simple` and `ldap`. `ldap` is not supported for `engine_type` `RabbitMQ`.
     */
    @JvmName("hxpkttkkjgqsaguv")
    public suspend fun authenticationStrategy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationStrategy = mapped
    }

    /**
     * @param value Broker configuration in XML format for `ActiveMQ` or [Cuttlefish](https://github.com/Kyorai/cuttlefish) format for `RabbitMQ`. See [official docs](https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/amazon-mq-broker-configuration-parameters.html) for supported parameters and format of the XML.
     */
    @JvmName("ilcchhxbyuxjryav")
    public suspend fun `data`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value Description of the configuration.
     */
    @JvmName("wcvwbxgvjmvhaplv")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Type of broker engine. Valid values are `ActiveMQ` and `RabbitMQ`.
     */
    @JvmName("ghvibndjyjjkkccx")
    public suspend fun engineType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engineType = mapped
    }

    /**
     * @param value Version of the broker engine.
     */
    @JvmName("xbuqkwjpunwmanqx")
    public suspend fun engineVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engineVersion = mapped
    }

    /**
     * @param value Name of the configuration.
     * The following arguments are optional:
     */
    @JvmName("tidprnnlgogtrjol")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value 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("frbakjvcymhpuhye")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values 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("vaqrxxwvqsebljya")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConfigurationArgs = ConfigurationArgs(
        authenticationStrategy = authenticationStrategy,
        `data` = `data`,
        description = description,
        engineType = engineType,
        engineVersion = engineVersion,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy