aws.mq.Configuration
Provides an MQ Configuration Resource.
For more information on Amazon MQ, see Amazon MQ documentation.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Mq.Configuration("example", new()
{
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/v5/go/aws/mq"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mq.NewConfiguration(ctx, "example", &mq.ConfigurationArgs{
Data: pulumi.String(fmt.Sprintf(`<?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: pulumi.String("Example Configuration"),
EngineType: pulumi.String("ActiveMQ"),
EngineVersion: pulumi.String("5.15.0"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mq.Configuration;
import com.pulumi.aws.mq.ConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Configuration("example", ConfigurationArgs.builder()
.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")
.build());
}
}
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",
});
resources:
example:
type: aws:mq:Configuration
properties:
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 Configuration Resource
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
authentication_strategy: Optional[str] = None,
data: Optional[str] = None,
description: Optional[str] = None,
engine_type: Optional[str] = None,
engine_version: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = 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:mq:Configuration
properties: # The arguments to resource properties.
options: # 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.
- 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
The Configuration resource accepts the following input properties:
- Data string
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- Engine
Type string Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- Engine
Version string Version of the broker engine.
- Authentication
Strategy string Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- Description string
Description of the configuration.
- Name string
Name of the configuration.
- Dictionary<string, string>
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Data string
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- Engine
Type string Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- Engine
Version string Version of the broker engine.
- Authentication
Strategy string Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- Description string
Description of the configuration.
- Name string
Name of the configuration.
- map[string]string
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- data String
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- engine
Type String Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine
Version String Version of the broker engine.
- authentication
Strategy String Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- description String
Description of the configuration.
- name String
Name of the configuration.
- Map<String,String>
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- data string
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- engine
Type string Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine
Version string Version of the broker engine.
- authentication
Strategy string Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- description string
Description of the configuration.
- name string
Name of the configuration.
- {[key: string]: string}
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- data str
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- engine_
type str Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine_
version str Version of the broker engine.
- authentication_
strategy str Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- description str
Description of the configuration.
- name str
Name of the configuration.
- Mapping[str, str]
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- data String
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- engine
Type String Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine
Version String Version of the broker engine.
- authentication
Strategy String Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- description String
Description of the configuration.
- name String
Name of the configuration.
- Map<String>
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
- Arn string
ARN of the configuration.
- Id string
The provider-assigned unique ID for this managed resource.
- Latest
Revision int Latest revision of the configuration.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
ARN of the configuration.
- Id string
The provider-assigned unique ID for this managed resource.
- Latest
Revision int Latest revision of the configuration.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
ARN of the configuration.
- id String
The provider-assigned unique ID for this managed resource.
- latest
Revision Integer Latest revision of the configuration.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
ARN of the configuration.
- id string
The provider-assigned unique ID for this managed resource.
- latest
Revision number Latest revision of the configuration.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
ARN of the configuration.
- id str
The provider-assigned unique ID for this managed resource.
- latest_
revision int Latest revision of the configuration.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
ARN of the configuration.
- id String
The provider-assigned unique ID for this managed resource.
- latest
Revision Number Latest revision of the configuration.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up 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
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
authentication_strategy: Optional[str] = None,
data: Optional[str] = None,
description: Optional[str] = None,
engine_type: Optional[str] = None,
engine_version: Optional[str] = None,
latest_revision: Optional[int] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Configuration
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)
public static Configuration get(String name, Output<String> id, ConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Arn string
ARN of the configuration.
- Authentication
Strategy string Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- Data string
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- Description string
Description of the configuration.
- Engine
Type string Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- Engine
Version string Version of the broker engine.
- Latest
Revision int Latest revision of the configuration.
- Name string
Name of the configuration.
- Dictionary<string, string>
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
ARN of the configuration.
- Authentication
Strategy string Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- Data string
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- Description string
Description of the configuration.
- Engine
Type string Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- Engine
Version string Version of the broker engine.
- Latest
Revision int Latest revision of the configuration.
- Name string
Name of the configuration.
- map[string]string
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
ARN of the configuration.
- authentication
Strategy String Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- data String
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- description String
Description of the configuration.
- engine
Type String Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine
Version String Version of the broker engine.
- latest
Revision Integer Latest revision of the configuration.
- name String
Name of the configuration.
- Map<String,String>
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
ARN of the configuration.
- authentication
Strategy string Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- data string
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- description string
Description of the configuration.
- engine
Type string Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine
Version string Version of the broker engine.
- latest
Revision number Latest revision of the configuration.
- name string
Name of the configuration.
- {[key: string]: string}
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
ARN of the configuration.
- authentication_
strategy str Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- data str
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- description str
Description of the configuration.
- engine_
type str Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine_
version str Version of the broker engine.
- latest_
revision int Latest revision of the configuration.
- name str
Name of the configuration.
- Mapping[str, str]
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
ARN of the configuration.
- authentication
Strategy String Authentication strategy associated with the configuration. Valid values are
simple
andldap
.ldap
is not supported forengine_type
RabbitMQ
.- data String
Broker configuration in XML format. See official docs for supported parameters and format of the XML.
- description String
Description of the configuration.
- engine
Type String Type of broker engine. Valid values are
ActiveMQ
andRabbitMQ
.- engine
Version String Version of the broker engine.
- latest
Revision Number Latest revision of the configuration.
- name String
Name of the configuration.
- Map<String>
Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
MQ Configurations can be imported using the configuration ID, e.g.,
$ pulumi import aws:mq/configuration:Configuration example c-0187d1eb-88c8-475a-9b79-16ef5a10c94f
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.