UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

131 lines 5.65 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Configuration = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Manages an Amazon MQ configuration. Use this resource to create and manage broker configurations for ActiveMQ and RabbitMQ brokers. * * ## 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: `<?xml version="1.0" encoding="UTF-8" standalone="yes"?> * <broker xmlns="http://activemq.apache.org/schema/core"> * <plugins> * <forcePersistencyModeBrokerPlugin persistenceFlag="true"/> * <statisticsBrokerPlugin/> * <timeStampingBrokerPlugin ttlCeiling="86400000" zeroExpirationOverride="86400000"/> * </plugins> * </broker> * `, * }); * ``` * * ### 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 * `, * }); * ``` * * ## 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 * ``` */ class Configuration extends pulumi.CustomResource { /** * Get an existing Configuration resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Configuration(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Configuration. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Configuration.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["authenticationStrategy"] = state ? state.authenticationStrategy : undefined; resourceInputs["data"] = state ? state.data : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["engineType"] = state ? state.engineType : undefined; resourceInputs["engineVersion"] = state ? state.engineVersion : undefined; resourceInputs["latestRevision"] = state ? state.latestRevision : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; } else { const args = argsOrState; if ((!args || args.data === undefined) && !opts.urn) { throw new Error("Missing required property 'data'"); } if ((!args || args.engineType === undefined) && !opts.urn) { throw new Error("Missing required property 'engineType'"); } if ((!args || args.engineVersion === undefined) && !opts.urn) { throw new Error("Missing required property 'engineVersion'"); } resourceInputs["authenticationStrategy"] = args ? args.authenticationStrategy : undefined; resourceInputs["data"] = args ? args.data : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["engineType"] = args ? args.engineType : undefined; resourceInputs["engineVersion"] = args ? args.engineVersion : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["latestRevision"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Configuration.__pulumiType, name, resourceInputs, opts); } } exports.Configuration = Configuration; /** @internal */ Configuration.__pulumiType = 'aws:mq/configuration:Configuration'; //# sourceMappingURL=configuration.js.map