Configuration
The Configuration resource lets you manage AWS AmazonMQ Configurations for creating and managing message brokers in the cloud.
Minimal Example
Section titled “Minimal Example”Create a basic AmazonMQ configuration with required properties and one optional property.
import AWS from "alchemy/aws/control";
const amazonMqConfig = await AWS.AmazonMQ.Configuration("basic-config", { name: "MyBasicConfig", engineType: "ActiveMQ", engineVersion: "5.15.14", description: "A basic configuration for ActiveMQ"});
Advanced Configuration
Section titled “Advanced Configuration”Configure an AmazonMQ resource with advanced settings such as a custom authentication strategy.
const advancedMqConfig = await AWS.AmazonMQ.Configuration("advanced-config", { name: "MyAdvancedConfig", engineType: "RabbitMQ", engineVersion: "3.8.9", description: "An advanced configuration for RabbitMQ with authentication strategy", authenticationStrategy: "SIMPLE", tags: [ { key: "Environment", value: "Production" }, { key: "Team", value: "DevOps" } ]});
Configuration with Custom Data
Section titled “Configuration with Custom Data”Demonstrate creating a configuration with specific data settings.
const customDataConfig = await AWS.AmazonMQ.Configuration("custom-data-config", { name: "MyCustomDataConfig", engineType: "ActiveMQ", engineVersion: "5.15.14", data: JSON.stringify({ "broker": { "type": "persistent", "maxConnections": 500 } }), description: "Configuration with custom data settings"});
Configuration with Tags
Section titled “Configuration with Tags”Create a configuration that includes tagging for resource management.
const taggedConfig = await AWS.AmazonMQ.Configuration("tagged-config", { name: "MyTaggedConfig", engineType: "RabbitMQ", engineVersion: "3.8.9", description: "Configuration tagged for easy identification", tags: [ { key: "Project", value: "MessagingService" }, { key: "Owner", value: "TeamAlpha" } ]});