UNPKG

@pulumi/aws

Version:

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

131 lines 5.26 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, { ...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?.arn; resourceInputs["authenticationStrategy"] = state?.authenticationStrategy; resourceInputs["data"] = state?.data; resourceInputs["description"] = state?.description; resourceInputs["engineType"] = state?.engineType; resourceInputs["engineVersion"] = state?.engineVersion; resourceInputs["latestRevision"] = state?.latestRevision; resourceInputs["name"] = state?.name; resourceInputs["region"] = state?.region; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; } else { const args = argsOrState; if (args?.data === undefined && !opts.urn) { throw new Error("Missing required property 'data'"); } if (args?.engineType === undefined && !opts.urn) { throw new Error("Missing required property 'engineType'"); } if (args?.engineVersion === undefined && !opts.urn) { throw new Error("Missing required property 'engineVersion'"); } resourceInputs["authenticationStrategy"] = args?.authenticationStrategy; resourceInputs["data"] = args?.data; resourceInputs["description"] = args?.description; resourceInputs["engineType"] = args?.engineType; resourceInputs["engineVersion"] = args?.engineVersion; resourceInputs["name"] = args?.name; resourceInputs["region"] = args?.region; resourceInputs["tags"] = args?.tags; 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