
com.pulumi.aws.mq.Configuration Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.mq;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.mq.ConfigurationArgs;
import com.pulumi.aws.mq.inputs.ConfigurationState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* 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
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### RabbitMQ
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## 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
* ```
*
*/
@ResourceType(type="aws:mq/configuration:Configuration")
public class Configuration extends com.pulumi.resources.CustomResource {
/**
* ARN of the configuration.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the configuration.
*
*/
public Output arn() {
return this.arn;
}
/**
* Authentication strategy associated with the configuration. Valid values are `simple` and `ldap`. `ldap` is not supported for `engine_type` `RabbitMQ`.
*
*/
@Export(name="authenticationStrategy", refs={String.class}, tree="[0]")
private Output authenticationStrategy;
/**
* @return Authentication strategy associated with the configuration. Valid values are `simple` and `ldap`. `ldap` is not supported for `engine_type` `RabbitMQ`.
*
*/
public Output authenticationStrategy() {
return this.authenticationStrategy;
}
/**
* 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.
*
*/
@Export(name="data", refs={String.class}, tree="[0]")
private Output data;
/**
* @return 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.
*
*/
public Output data() {
return this.data;
}
/**
* Description of the configuration.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of the configuration.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Type of broker engine. Valid values are `ActiveMQ` and `RabbitMQ`.
*
*/
@Export(name="engineType", refs={String.class}, tree="[0]")
private Output engineType;
/**
* @return Type of broker engine. Valid values are `ActiveMQ` and `RabbitMQ`.
*
*/
public Output engineType() {
return this.engineType;
}
/**
* Version of the broker engine.
*
*/
@Export(name="engineVersion", refs={String.class}, tree="[0]")
private Output engineVersion;
/**
* @return Version of the broker engine.
*
*/
public Output engineVersion() {
return this.engineVersion;
}
/**
* Latest revision of the configuration.
*
*/
@Export(name="latestRevision", refs={Integer.class}, tree="[0]")
private Output latestRevision;
/**
* @return Latest revision of the configuration.
*
*/
public Output latestRevision() {
return this.latestRevision;
}
/**
* Name of the configuration.
*
* The following arguments are optional:
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the configuration.
*
* The following arguments are optional:
*
*/
public Output name() {
return this.name;
}
/**
* 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.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return 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 Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy