All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.sesv2.ConfigurationSetEventDestination Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sesv2;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationState;
import com.pulumi.aws.sesv2.outputs.ConfigurationSetEventDestinationEventDestination;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * Resource for managing an AWS SESv2 (Simple Email V2) Configuration Set Event Destination.
 * 
 * ## Example Usage
 * 
 * ### CloudWatch Destination
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.sesv2.ConfigurationSet;
 * import com.pulumi.aws.sesv2.ConfigurationSetArgs;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs;
 * 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 ConfigurationSet("example", ConfigurationSetArgs.builder()
 *             .configurationSetName("example")
 *             .build());
 * 
 *         var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
 *             .configurationSetName(example.configurationSetName())
 *             .eventDestinationName("example")
 *             .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
 *                 .cloudWatchDestination(ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationArgs.builder()
 *                     .dimensionConfigurations(ConfigurationSetEventDestinationEventDestinationCloudWatchDestinationDimensionConfigurationArgs.builder()
 *                         .defaultDimensionValue("example")
 *                         .dimensionName("example")
 *                         .dimensionValueSource("MESSAGE_TAG")
 *                         .build())
 *                     .build())
 *                 .enabled(true)
 *                 .matchingEventTypes("SEND")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### EventBridge Destination * * <!--Start PulumiCodeChooser --> *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.cloudwatch.CloudwatchFunctions;
 * import com.pulumi.aws.cloudwatch.inputs.GetEventBusArgs;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationEventBridgeDestinationArgs;
 * 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) {
 *         final var default = CloudwatchFunctions.getEventBus(GetEventBusArgs.builder()
 *             .name("default")
 *             .build());
 * 
 *         var example = new ConfigurationSetEventDestination("example", ConfigurationSetEventDestinationArgs.builder()
 *             .configurationSetName(exampleAwsSesv2ConfigurationSet.configurationSetName())
 *             .eventDestinationName("example")
 *             .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
 *                 .eventBridgeDestination(ConfigurationSetEventDestinationEventDestinationEventBridgeDestinationArgs.builder()
 *                     .eventBusArn(default_.arn())
 *                     .build())
 *                 .enabled(true)
 *                 .matchingEventTypes("SEND")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### Kinesis Firehose Destination * * <!--Start PulumiCodeChooser --> *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.sesv2.ConfigurationSet;
 * import com.pulumi.aws.sesv2.ConfigurationSetArgs;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs;
 * 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 ConfigurationSet("example", ConfigurationSetArgs.builder()
 *             .configurationSetName("example")
 *             .build());
 * 
 *         var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
 *             .configurationSetName(example.configurationSetName())
 *             .eventDestinationName("example")
 *             .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
 *                 .kinesisFirehoseDestination(ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestinationArgs.builder()
 *                     .deliveryStreamArn(exampleAwsKinesisFirehoseDeliveryStream.arn())
 *                     .iamRoleArn(exampleAwsIamRole.arn())
 *                     .build())
 *                 .enabled(true)
 *                 .matchingEventTypes("SEND")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### Pinpoint Destination * * <!--Start PulumiCodeChooser --> *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.sesv2.ConfigurationSet;
 * import com.pulumi.aws.sesv2.ConfigurationSetArgs;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs;
 * 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 ConfigurationSet("example", ConfigurationSetArgs.builder()
 *             .configurationSetName("example")
 *             .build());
 * 
 *         var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
 *             .configurationSetName(example.configurationSetName())
 *             .eventDestinationName("example")
 *             .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
 *                 .pinpointDestination(ConfigurationSetEventDestinationEventDestinationPinpointDestinationArgs.builder()
 *                     .applicationArn(exampleAwsPinpointApp.arn())
 *                     .build())
 *                 .enabled(true)
 *                 .matchingEventTypes("SEND")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ### SNS Destination * * <!--Start PulumiCodeChooser --> *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.sesv2.ConfigurationSet;
 * import com.pulumi.aws.sesv2.ConfigurationSetArgs;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestination;
 * import com.pulumi.aws.sesv2.ConfigurationSetEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationArgs;
 * import com.pulumi.aws.sesv2.inputs.ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs;
 * 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 ConfigurationSet("example", ConfigurationSetArgs.builder()
 *             .configurationSetName("example")
 *             .build());
 * 
 *         var exampleConfigurationSetEventDestination = new ConfigurationSetEventDestination("exampleConfigurationSetEventDestination", ConfigurationSetEventDestinationArgs.builder()
 *             .configurationSetName(example.configurationSetName())
 *             .eventDestinationName("example")
 *             .eventDestination(ConfigurationSetEventDestinationEventDestinationArgs.builder()
 *                 .snsDestination(ConfigurationSetEventDestinationEventDestinationSnsDestinationArgs.builder()
 *                     .topicArn(exampleAwsSnsTopic.arn())
 *                     .build())
 *                 .enabled(true)
 *                 .matchingEventTypes("SEND")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import SESv2 (Simple Email V2) Configuration Set Event Destination using the `id` (`configuration_set_name|event_destination_name`). For example: * * ```sh * $ pulumi import aws:sesv2/configurationSetEventDestination:ConfigurationSetEventDestination example example_configuration_set|example_event_destination * ``` * */ @ResourceType(type="aws:sesv2/configurationSetEventDestination:ConfigurationSetEventDestination") public class ConfigurationSetEventDestination extends com.pulumi.resources.CustomResource { /** * The name of the configuration set. * */ @Export(name="configurationSetName", refs={String.class}, tree="[0]") private Output configurationSetName; /** * @return The name of the configuration set. * */ public Output configurationSetName() { return this.configurationSetName; } /** * A name that identifies the event destination within the configuration set. * */ @Export(name="eventDestination", refs={ConfigurationSetEventDestinationEventDestination.class}, tree="[0]") private Output eventDestination; /** * @return A name that identifies the event destination within the configuration set. * */ public Output eventDestination() { return this.eventDestination; } /** * An object that defines the event destination. See `event_destination` Block for details. * */ @Export(name="eventDestinationName", refs={String.class}, tree="[0]") private Output eventDestinationName; /** * @return An object that defines the event destination. See `event_destination` Block for details. * */ public Output eventDestinationName() { return this.eventDestinationName; } /** * * @param name The _unique_ name of the resulting resource. */ public ConfigurationSetEventDestination(java.lang.String name) { this(name, ConfigurationSetEventDestinationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ConfigurationSetEventDestination(java.lang.String name, ConfigurationSetEventDestinationArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public ConfigurationSetEventDestination(java.lang.String name, ConfigurationSetEventDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:sesv2/configurationSetEventDestination:ConfigurationSetEventDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ConfigurationSetEventDestination(java.lang.String name, Output id, @Nullable ConfigurationSetEventDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:sesv2/configurationSetEventDestination:ConfigurationSetEventDestination", name, state, makeResourceOptions(options, id), false); } private static ConfigurationSetEventDestinationArgs makeArgs(ConfigurationSetEventDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ConfigurationSetEventDestinationArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 * @param options Optional settings to control the behavior of the CustomResource. */ public static ConfigurationSetEventDestination get(java.lang.String name, Output id, @Nullable ConfigurationSetEventDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ConfigurationSetEventDestination(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy