AWS Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Wednesday, Jun 8, 2022 by Pulumi

ConfigurationSet

Resource schema for AWS::SES::ConfigurationSet.

Example Usage

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var configSetName = config.Require("configSetName");
        var configSet = new AwsNative.SES.ConfigurationSet("configSet", new AwsNative.SES.ConfigurationSetArgs
        {
            Name = configSetName,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		configSetName := cfg.Require("configSetName")
		_, err := ses.NewConfigurationSet(ctx, "configSet", &ses.ConfigurationSetArgs{
			Name: pulumi.String(configSetName),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

config = pulumi.Config()
config_set_name = config.require("configSetName")
config_set = aws_native.ses.ConfigurationSet("configSet", name=config_set_name)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const config = new pulumi.Config();
const configSetName = config.require("configSetName");
const configSet = new aws_native.ses.ConfigurationSet("configSet", {name: configSetName});

Coming soon!

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var configSetName = config.Require("configSetName");
        var configSet = new AwsNative.SES.ConfigurationSet("configSet", new AwsNative.SES.ConfigurationSetArgs
        {
            Name = configSetName,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		configSetName := cfg.Require("configSetName")
		_, err := ses.NewConfigurationSet(ctx, "configSet", &ses.ConfigurationSetArgs{
			Name: pulumi.String(configSetName),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

config = pulumi.Config()
config_set_name = config.require("configSetName")
config_set = aws_native.ses.ConfigurationSet("configSet", name=config_set_name)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const config = new pulumi.Config();
const configSetName = config.require("configSetName");
const configSet = new aws_native.ses.ConfigurationSet("configSet", {name: configSetName});

Coming soon!

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var configSetName = config.Require("configSetName");
        var eventDestinationName = config.Require("eventDestinationName");
        var eventType1 = config.Require("eventType1");
        var eventType2 = config.Require("eventType2");
        var eventType3 = config.Require("eventType3");
        var dimensionName1 = config.Require("dimensionName1");
        var dimensionValueSource1 = config.Require("dimensionValueSource1");
        var defaultDimensionValue1 = config.Require("defaultDimensionValue1");
        var dimensionName2 = config.Require("dimensionName2");
        var dimensionValueSource2 = config.Require("dimensionValueSource2");
        var defaultDimensionValue2 = config.Require("defaultDimensionValue2");
        var configSet = new AwsNative.SES.ConfigurationSet("configSet", new AwsNative.SES.ConfigurationSetArgs
        {
            Name = configSetName,
        });
        var cwEventDestination = new AwsNative.SES.ConfigurationSetEventDestination("cwEventDestination", new AwsNative.SES.ConfigurationSetEventDestinationArgs
        {
            ConfigurationSetName = configSet.Id,
            EventDestination = new AwsNative.SES.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
            {
                Name = eventDestinationName,
                Enabled = true,
                MatchingEventTypes = 
                {
                    eventType1,
                    eventType2,
                    eventType3,
                },
                CloudWatchDestination = new AwsNative.SES.Inputs.ConfigurationSetEventDestinationCloudWatchDestinationArgs
                {
                    DimensionConfigurations = 
                    {
                        new AwsNative.SES.Inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs
                        {
                            DimensionName = dimensionName1,
                            DimensionValueSource = dimensionValueSource1,
                            DefaultDimensionValue = defaultDimensionValue1,
                        },
                        new AwsNative.SES.Inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs
                        {
                            DimensionName = dimensionName2,
                            DimensionValueSource = dimensionValueSource2,
                            DefaultDimensionValue = defaultDimensionValue2,
                        },
                    },
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		configSetName := cfg.Require("configSetName")
		eventDestinationName := cfg.Require("eventDestinationName")
		eventType1 := cfg.Require("eventType1")
		eventType2 := cfg.Require("eventType2")
		eventType3 := cfg.Require("eventType3")
		dimensionName1 := cfg.Require("dimensionName1")
		dimensionValueSource1 := cfg.Require("dimensionValueSource1")
		defaultDimensionValue1 := cfg.Require("defaultDimensionValue1")
		dimensionName2 := cfg.Require("dimensionName2")
		dimensionValueSource2 := cfg.Require("dimensionValueSource2")
		defaultDimensionValue2 := cfg.Require("defaultDimensionValue2")
		configSet, err := ses.NewConfigurationSet(ctx, "configSet", &ses.ConfigurationSetArgs{
			Name: pulumi.String(configSetName),
		})
		if err != nil {
			return err
		}
		_, err = ses.NewConfigurationSetEventDestination(ctx, "cwEventDestination", &ses.ConfigurationSetEventDestinationArgs{
			ConfigurationSetName: configSet.ID(),
			EventDestination: &ses.ConfigurationSetEventDestinationEventDestinationArgs{
				Name:    pulumi.String(eventDestinationName),
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String(eventType1),
					pulumi.String(eventType2),
					pulumi.String(eventType3),
				},
				CloudWatchDestination: &ses.ConfigurationSetEventDestinationCloudWatchDestinationArgs{
					DimensionConfigurations: ses.ConfigurationSetEventDestinationDimensionConfigurationArray{
						&ses.ConfigurationSetEventDestinationDimensionConfigurationArgs{
							DimensionName:         pulumi.String(dimensionName1),
							DimensionValueSource:  pulumi.String(dimensionValueSource1),
							DefaultDimensionValue: pulumi.String(defaultDimensionValue1),
						},
						&ses.ConfigurationSetEventDestinationDimensionConfigurationArgs{
							DimensionName:         pulumi.String(dimensionName2),
							DimensionValueSource:  pulumi.String(dimensionValueSource2),
							DefaultDimensionValue: pulumi.String(defaultDimensionValue2),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

config = pulumi.Config()
config_set_name = config.require("configSetName")
event_destination_name = config.require("eventDestinationName")
event_type1 = config.require("eventType1")
event_type2 = config.require("eventType2")
event_type3 = config.require("eventType3")
dimension_name1 = config.require("dimensionName1")
dimension_value_source1 = config.require("dimensionValueSource1")
default_dimension_value1 = config.require("defaultDimensionValue1")
dimension_name2 = config.require("dimensionName2")
dimension_value_source2 = config.require("dimensionValueSource2")
default_dimension_value2 = config.require("defaultDimensionValue2")
config_set = aws_native.ses.ConfigurationSet("configSet", name=config_set_name)
cw_event_destination = aws_native.ses.ConfigurationSetEventDestination("cwEventDestination",
    configuration_set_name=config_set.id,
    event_destination=aws_native.ses.ConfigurationSetEventDestinationEventDestinationArgs(
        name=event_destination_name,
        enabled=True,
        matching_event_types=[
            event_type1,
            event_type2,
            event_type3,
        ],
        cloud_watch_destination=aws_native.ses.ConfigurationSetEventDestinationCloudWatchDestinationArgs(
            dimension_configurations=[
                aws_native.ses.ConfigurationSetEventDestinationDimensionConfigurationArgs(
                    dimension_name=dimension_name1,
                    dimension_value_source=dimension_value_source1,
                    default_dimension_value=default_dimension_value1,
                ),
                aws_native.ses.ConfigurationSetEventDestinationDimensionConfigurationArgs(
                    dimension_name=dimension_name2,
                    dimension_value_source=dimension_value_source2,
                    default_dimension_value=default_dimension_value2,
                ),
            ],
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const config = new pulumi.Config();
const configSetName = config.require("configSetName");
const eventDestinationName = config.require("eventDestinationName");
const eventType1 = config.require("eventType1");
const eventType2 = config.require("eventType2");
const eventType3 = config.require("eventType3");
const dimensionName1 = config.require("dimensionName1");
const dimensionValueSource1 = config.require("dimensionValueSource1");
const defaultDimensionValue1 = config.require("defaultDimensionValue1");
const dimensionName2 = config.require("dimensionName2");
const dimensionValueSource2 = config.require("dimensionValueSource2");
const defaultDimensionValue2 = config.require("defaultDimensionValue2");
const configSet = new aws_native.ses.ConfigurationSet("configSet", {name: configSetName});
const cwEventDestination = new aws_native.ses.ConfigurationSetEventDestination("cwEventDestination", {
    configurationSetName: configSet.id,
    eventDestination: {
        name: eventDestinationName,
        enabled: true,
        matchingEventTypes: [
            eventType1,
            eventType2,
            eventType3,
        ],
        cloudWatchDestination: {
            dimensionConfigurations: [
                {
                    dimensionName: dimensionName1,
                    dimensionValueSource: dimensionValueSource1,
                    defaultDimensionValue: defaultDimensionValue1,
                },
                {
                    dimensionName: dimensionName2,
                    dimensionValueSource: dimensionValueSource2,
                    defaultDimensionValue: defaultDimensionValue2,
                },
            ],
        },
    },
});

Coming soon!

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var configSetName = config.Require("configSetName");
        var eventDestinationName = config.Require("eventDestinationName");
        var eventType1 = config.Require("eventType1");
        var eventType2 = config.Require("eventType2");
        var eventType3 = config.Require("eventType3");
        var dimensionName1 = config.Require("dimensionName1");
        var dimensionValueSource1 = config.Require("dimensionValueSource1");
        var defaultDimensionValue1 = config.Require("defaultDimensionValue1");
        var dimensionName2 = config.Require("dimensionName2");
        var dimensionValueSource2 = config.Require("dimensionValueSource2");
        var defaultDimensionValue2 = config.Require("defaultDimensionValue2");
        var configSet = new AwsNative.SES.ConfigurationSet("configSet", new AwsNative.SES.ConfigurationSetArgs
        {
            Name = configSetName,
        });
        var cwEventDestination = new AwsNative.SES.ConfigurationSetEventDestination("cwEventDestination", new AwsNative.SES.ConfigurationSetEventDestinationArgs
        {
            ConfigurationSetName = configSet.Id,
            EventDestination = new AwsNative.SES.Inputs.ConfigurationSetEventDestinationEventDestinationArgs
            {
                Name = eventDestinationName,
                Enabled = true,
                MatchingEventTypes = 
                {
                    eventType1,
                    eventType2,
                    eventType3,
                },
                CloudWatchDestination = new AwsNative.SES.Inputs.ConfigurationSetEventDestinationCloudWatchDestinationArgs
                {
                    DimensionConfigurations = 
                    {
                        new AwsNative.SES.Inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs
                        {
                            DimensionName = dimensionName1,
                            DimensionValueSource = dimensionValueSource1,
                            DefaultDimensionValue = defaultDimensionValue1,
                        },
                        new AwsNative.SES.Inputs.ConfigurationSetEventDestinationDimensionConfigurationArgs
                        {
                            DimensionName = dimensionName2,
                            DimensionValueSource = dimensionValueSource2,
                            DefaultDimensionValue = defaultDimensionValue2,
                        },
                    },
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		configSetName := cfg.Require("configSetName")
		eventDestinationName := cfg.Require("eventDestinationName")
		eventType1 := cfg.Require("eventType1")
		eventType2 := cfg.Require("eventType2")
		eventType3 := cfg.Require("eventType3")
		dimensionName1 := cfg.Require("dimensionName1")
		dimensionValueSource1 := cfg.Require("dimensionValueSource1")
		defaultDimensionValue1 := cfg.Require("defaultDimensionValue1")
		dimensionName2 := cfg.Require("dimensionName2")
		dimensionValueSource2 := cfg.Require("dimensionValueSource2")
		defaultDimensionValue2 := cfg.Require("defaultDimensionValue2")
		configSet, err := ses.NewConfigurationSet(ctx, "configSet", &ses.ConfigurationSetArgs{
			Name: pulumi.String(configSetName),
		})
		if err != nil {
			return err
		}
		_, err = ses.NewConfigurationSetEventDestination(ctx, "cwEventDestination", &ses.ConfigurationSetEventDestinationArgs{
			ConfigurationSetName: configSet.ID(),
			EventDestination: &ses.ConfigurationSetEventDestinationEventDestinationArgs{
				Name:    pulumi.String(eventDestinationName),
				Enabled: pulumi.Bool(true),
				MatchingEventTypes: pulumi.StringArray{
					pulumi.String(eventType1),
					pulumi.String(eventType2),
					pulumi.String(eventType3),
				},
				CloudWatchDestination: &ses.ConfigurationSetEventDestinationCloudWatchDestinationArgs{
					DimensionConfigurations: ses.ConfigurationSetEventDestinationDimensionConfigurationArray{
						&ses.ConfigurationSetEventDestinationDimensionConfigurationArgs{
							DimensionName:         pulumi.String(dimensionName1),
							DimensionValueSource:  pulumi.String(dimensionValueSource1),
							DefaultDimensionValue: pulumi.String(defaultDimensionValue1),
						},
						&ses.ConfigurationSetEventDestinationDimensionConfigurationArgs{
							DimensionName:         pulumi.String(dimensionName2),
							DimensionValueSource:  pulumi.String(dimensionValueSource2),
							DefaultDimensionValue: pulumi.String(defaultDimensionValue2),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

config = pulumi.Config()
config_set_name = config.require("configSetName")
event_destination_name = config.require("eventDestinationName")
event_type1 = config.require("eventType1")
event_type2 = config.require("eventType2")
event_type3 = config.require("eventType3")
dimension_name1 = config.require("dimensionName1")
dimension_value_source1 = config.require("dimensionValueSource1")
default_dimension_value1 = config.require("defaultDimensionValue1")
dimension_name2 = config.require("dimensionName2")
dimension_value_source2 = config.require("dimensionValueSource2")
default_dimension_value2 = config.require("defaultDimensionValue2")
config_set = aws_native.ses.ConfigurationSet("configSet", name=config_set_name)
cw_event_destination = aws_native.ses.ConfigurationSetEventDestination("cwEventDestination",
    configuration_set_name=config_set.id,
    event_destination=aws_native.ses.ConfigurationSetEventDestinationEventDestinationArgs(
        name=event_destination_name,
        enabled=True,
        matching_event_types=[
            event_type1,
            event_type2,
            event_type3,
        ],
        cloud_watch_destination=aws_native.ses.ConfigurationSetEventDestinationCloudWatchDestinationArgs(
            dimension_configurations=[
                aws_native.ses.ConfigurationSetEventDestinationDimensionConfigurationArgs(
                    dimension_name=dimension_name1,
                    dimension_value_source=dimension_value_source1,
                    default_dimension_value=default_dimension_value1,
                ),
                aws_native.ses.ConfigurationSetEventDestinationDimensionConfigurationArgs(
                    dimension_name=dimension_name2,
                    dimension_value_source=dimension_value_source2,
                    default_dimension_value=default_dimension_value2,
                ),
            ],
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const config = new pulumi.Config();
const configSetName = config.require("configSetName");
const eventDestinationName = config.require("eventDestinationName");
const eventType1 = config.require("eventType1");
const eventType2 = config.require("eventType2");
const eventType3 = config.require("eventType3");
const dimensionName1 = config.require("dimensionName1");
const dimensionValueSource1 = config.require("dimensionValueSource1");
const defaultDimensionValue1 = config.require("defaultDimensionValue1");
const dimensionName2 = config.require("dimensionName2");
const dimensionValueSource2 = config.require("dimensionValueSource2");
const defaultDimensionValue2 = config.require("defaultDimensionValue2");
const configSet = new aws_native.ses.ConfigurationSet("configSet", {name: configSetName});
const cwEventDestination = new aws_native.ses.ConfigurationSetEventDestination("cwEventDestination", {
    configurationSetName: configSet.id,
    eventDestination: {
        name: eventDestinationName,
        enabled: true,
        matchingEventTypes: [
            eventType1,
            eventType2,
            eventType3,
        ],
        cloudWatchDestination: {
            dimensionConfigurations: [
                {
                    dimensionName: dimensionName1,
                    dimensionValueSource: dimensionValueSource1,
                    defaultDimensionValue: defaultDimensionValue1,
                },
                {
                    dimensionName: dimensionName2,
                    dimensionValueSource: dimensionValueSource2,
                    defaultDimensionValue: defaultDimensionValue2,
                },
            ],
        },
    },
});

Coming soon!

Create a ConfigurationSet Resource

new ConfigurationSet(name: string, args?: ConfigurationSetArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationSet(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None)
@overload
def ConfigurationSet(resource_name: str,
                     args: Optional[ConfigurationSetArgs] = None,
                     opts: Optional[ResourceOptions] = None)
func NewConfigurationSet(ctx *Context, name string, args *ConfigurationSetArgs, opts ...ResourceOption) (*ConfigurationSet, error)
public ConfigurationSet(string name, ConfigurationSetArgs? args = null, CustomResourceOptions? opts = null)
public ConfigurationSet(String name, ConfigurationSetArgs args)
public ConfigurationSet(String name, ConfigurationSetArgs args, CustomResourceOptions options)
type: aws-native:ses:ConfigurationSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConfigurationSetArgs
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 ConfigurationSetArgs
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 ConfigurationSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigurationSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConfigurationSetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ConfigurationSet 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 ConfigurationSet resource accepts the following input properties:

Name string

The name of the configuration set.

Name string

The name of the configuration set.

name String

The name of the configuration set.

name string

The name of the configuration set.

name str

The name of the configuration set.

name String

The name of the configuration set.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0