com.pulumi.aws.mq.kotlin.ConfigurationArgs.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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy