We recommend new projects start with resources from the AWS provider.
aws-native.amazonmq.Configuration
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::AmazonMQ::Configuration
Example Usage
Example
using System;
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var configuration = new AwsNative.AmazonMq.Configuration("configuration", new()
{
Data = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(@"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>
<broker xmlns=""http://activemq.apache.org/schema/core"" start=""false"">
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic="">"">
<pendingMessageLimitStrategy>
<constantPendingMessageLimitStrategy limit=""3000""/>
</pendingMessageLimitStrategy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<plugins>
</plugins>
</broker>
")),
EngineType = "ACTIVEMQ",
EngineVersion = "5.15.0",
Name = "my-configuration-1",
});
});
package main
import (
"encoding/base64"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/amazonmq"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := amazonmq.NewConfiguration(ctx, "configuration", &amazonmq.ConfigurationArgs{
Data: pulumi.String(base64.StdEncoding.EncodeToString([]byte(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<broker xmlns="http://activemq.apache.org/schema/core" start="false">
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic=">">
<pendingMessageLimitStrategy>
<constantPendingMessageLimitStrategy limit="3000"/>
</pendingMessageLimitStrategy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<plugins>
</plugins>
</broker>
`))),
EngineType: pulumi.String("ACTIVEMQ"),
EngineVersion: pulumi.String("5.15.0"),
Name: pulumi.String("my-configuration-1"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import base64
import pulumi_aws_native as aws_native
configuration = aws_native.amazonmq.Configuration("configuration",
data=base64.b64encode("""<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<broker xmlns="http://activemq.apache.org/schema/core" start="false">
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic=">">
<pendingMessageLimitStrategy>
<constantPendingMessageLimitStrategy limit="3000"/>
</pendingMessageLimitStrategy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<plugins>
</plugins>
</broker>
""".encode()).decode(),
engine_type="ACTIVEMQ",
engine_version="5.15.0",
name="my-configuration-1")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const configuration = new aws_native.amazonmq.Configuration("configuration", {
data: Buffer.from(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<broker xmlns="http://activemq.apache.org/schema/core" start="false">
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry topic=">">
<pendingMessageLimitStrategy>
<constantPendingMessageLimitStrategy limit="3000"/>
</pendingMessageLimitStrategy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<plugins>
</plugins>
</broker>
`).toString("base64"),
engineType: "ACTIVEMQ",
engineVersion: "5.15.0",
name: "my-configuration-1",
});
Coming soon!
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
data: Optional[str] = None,
engine_type: Optional[str] = None,
authentication_strategy: Optional[str] = None,
description: Optional[str] = None,
engine_version: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: aws-native:amazonmq:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Configuration resource accepts the following input properties:
- Data string
- The base64-encoded XML configuration.
- Engine
Type string - The type of broker engine. Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
- Authentication
Strategy string - The authentication strategy associated with the configuration. The default is SIMPLE.
- Description string
- The description of the configuration.
- Engine
Version string - The version of the broker engine.
- Name string
- The name of the configuration.
- List<Pulumi.
Aws Native. Inputs. Tag> - Create tags when creating the configuration.
- Data string
- The base64-encoded XML configuration.
- Engine
Type string - The type of broker engine. Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
- Authentication
Strategy string - The authentication strategy associated with the configuration. The default is SIMPLE.
- Description string
- The description of the configuration.
- Engine
Version string - The version of the broker engine.
- Name string
- The name of the configuration.
- Tag
Args - Create tags when creating the configuration.
- data String
- The base64-encoded XML configuration.
- engine
Type String - The type of broker engine. Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
- authentication
Strategy String - The authentication strategy associated with the configuration. The default is SIMPLE.
- description String
- The description of the configuration.
- engine
Version String - The version of the broker engine.
- name String
- The name of the configuration.
- List<Tag>
- Create tags when creating the configuration.
- data string
- The base64-encoded XML configuration.
- engine
Type string - The type of broker engine. Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
- authentication
Strategy string - The authentication strategy associated with the configuration. The default is SIMPLE.
- description string
- The description of the configuration.
- engine
Version string - The version of the broker engine.
- name string
- The name of the configuration.
- Tag[]
- Create tags when creating the configuration.
- data str
- The base64-encoded XML configuration.
- engine_
type str - The type of broker engine. Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
- authentication_
strategy str - The authentication strategy associated with the configuration. The default is SIMPLE.
- description str
- The description of the configuration.
- engine_
version str - The version of the broker engine.
- name str
- The name of the configuration.
- Sequence[Tag
Args] - Create tags when creating the configuration.
- data String
- The base64-encoded XML configuration.
- engine
Type String - The type of broker engine. Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
- authentication
Strategy String - The authentication strategy associated with the configuration. The default is SIMPLE.
- description String
- The description of the configuration.
- engine
Version String - The version of the broker engine.
- name String
- The name of the configuration.
- List<Property Map>
- Create tags when creating the configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.