Configuration

Provides an MQ Configuration Resource.

For more information on Amazon MQ, see Amazon MQ documentation.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Mq.Configuration("example", new Aws.Mq.ConfigurationArgs
        {
            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>

",
            Description = "Example Configuration",
            EngineType = "ActiveMQ",
            EngineVersion = "5.15.0",
        });
    }

}
package main

import (
    "fmt"

    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/mq"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := mq.NewConfiguration(ctx, "example", &mq.ConfigurationArgs{
            Data:          pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n", "<broker xmlns=\"http://activemq.apache.org/schema/core\">\n", "  <plugins>\n", "    <forcePersistencyModeBrokerPlugin persistenceFlag=\"true\"/>\n", "    <statisticsBrokerPlugin/>\n", "    <timeStampingBrokerPlugin ttlCeiling=\"86400000\" zeroExpirationOverride=\"86400000\"/>\n", "  </plugins>\n", "</broker>\n", "\n")),
            Description:   pulumi.String("Example Configuration"),
            EngineType:    pulumi.String("ActiveMQ"),
            EngineVersion: pulumi.String("5.15.0"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.mq.Configuration("example",
    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>

""",
    description="Example Configuration",
    engine_type="ActiveMQ",
    engine_version="5.15.0")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.mq.Configuration("example", {
    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>
`,
    description: "Example Configuration",
    engineType: "ActiveMQ",
    engineVersion: "5.15.0",
});

Create a Configuration Resource

def Configuration(resource_name, opts=None, data=None, description=None, engine_type=None, engine_version=None, name=None, tags=None, __props__=None);
name string
The unique name of the resource.
args ConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Configuration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Configuration resource accepts the following input properties:

Data string

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

EngineType string

The type of broker engine.

EngineVersion string

The version of the broker engine.

Description string

The description of the configuration.

Name string

The name of the configuration

Tags Dictionary<string, string>

A map of tags to assign to the resource.

Data string

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

EngineType string

The type of broker engine.

EngineVersion string

The version of the broker engine.

Description string

The description of the configuration.

Name string

The name of the configuration

Tags map[string]string

A map of tags to assign to the resource.

data string

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

engineType string

The type of broker engine.

engineVersion string

The version of the broker engine.

description string

The description of the configuration.

name string

The name of the configuration

tags {[key: string]: string}

A map of tags to assign to the resource.

data str

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

engine_type str

The type of broker engine.

engine_version str

The version of the broker engine.

description str

The description of the configuration.

name str

The name of the configuration

tags Dict[str, str]

A map of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:

Arn string

The ARN of the configuration.

Id string
The provider-assigned unique ID for this managed resource.
LatestRevision int

The latest revision of the configuration.

Arn string

The ARN of the configuration.

Id string
The provider-assigned unique ID for this managed resource.
LatestRevision int

The latest revision of the configuration.

arn string

The ARN of the configuration.

id string
The provider-assigned unique ID for this managed resource.
latestRevision number

The latest revision of the configuration.

arn str

The ARN of the configuration.

id str
The provider-assigned unique ID for this managed resource.
latest_revision float

The latest revision of the configuration.

Look up an Existing Configuration Resource

Get an existing Configuration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ConfigurationState, opts?: CustomResourceOptions): Configuration
static get(resource_name, id, opts=None, arn=None, data=None, description=None, engine_type=None, engine_version=None, latest_revision=None, name=None, tags=None, __props__=None);
func GetConfiguration(ctx *Context, name string, id IDInput, state *ConfigurationState, opts ...ResourceOption) (*Configuration, error)
public static Configuration Get(string name, Input<string> id, ConfigurationState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

The ARN of the configuration.

Data string

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

Description string

The description of the configuration.

EngineType string

The type of broker engine.

EngineVersion string

The version of the broker engine.

LatestRevision int

The latest revision of the configuration.

Name string

The name of the configuration

Tags Dictionary<string, string>

A map of tags to assign to the resource.

Arn string

The ARN of the configuration.

Data string

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

Description string

The description of the configuration.

EngineType string

The type of broker engine.

EngineVersion string

The version of the broker engine.

LatestRevision int

The latest revision of the configuration.

Name string

The name of the configuration

Tags map[string]string

A map of tags to assign to the resource.

arn string

The ARN of the configuration.

data string

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

description string

The description of the configuration.

engineType string

The type of broker engine.

engineVersion string

The version of the broker engine.

latestRevision number

The latest revision of the configuration.

name string

The name of the configuration

tags {[key: string]: string}

A map of tags to assign to the resource.

arn str

The ARN of the configuration.

data str

The broker configuration in XML format. See official docs for supported parameters and format of the XML.

description str

The description of the configuration.

engine_type str

The type of broker engine.

engine_version str

The version of the broker engine.

latest_revision float

The latest revision of the configuration.

name str

The name of the configuration

tags Dict[str, str]

A map of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.