Class ConfigurationSet


  • public class ConfigurationSet
    extends com.pulumi.resources.CustomResource
    Resource for managing an AWS SESv2 (Simple Email V2) Configuration Set. ## Example Usage ### Basic Usage
     
     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.inputs.ConfigurationSetDeliveryOptionsArgs;
     import com.pulumi.aws.sesv2.inputs.ConfigurationSetReputationOptionsArgs;
     import com.pulumi.aws.sesv2.inputs.ConfigurationSetSendingOptionsArgs;
     import com.pulumi.aws.sesv2.inputs.ConfigurationSetSuppressionOptionsArgs;
     import com.pulumi.aws.sesv2.inputs.ConfigurationSetTrackingOptionsArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     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()
                 .deliveryOptions(ConfigurationSetDeliveryOptionsArgs.builder()
                     .maxDeliverySeconds(300)
                     .tlsPolicy("REQUIRE")
                     .build())
                 .reputationOptions(ConfigurationSetReputationOptionsArgs.builder()
                     .reputationMetricsEnabled(false)
                     .build())
                 .sendingOptions(ConfigurationSetSendingOptionsArgs.builder()
                     .sendingEnabled(true)
                     .build())
                 .suppressionOptions(ConfigurationSetSuppressionOptionsArgs.builder()
                     .suppressedReasons(                
                         "BOUNCE",
                         "COMPLAINT")
                     .build())
                 .trackingOptions(ConfigurationSetTrackingOptionsArgs.builder()
                     .customRedirectDomain("example.com")
                     .httpsPolicy("REQUIRE")
                     .build())
                 .configurationSetName("example")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import SESv2 (Simple Email V2) Configuration Set using the `configurationSetName`. For example: ```sh $ pulumi import aws:sesv2/configurationSet:ConfigurationSet example example ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Detail

      • ConfigurationSet

        public ConfigurationSet​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • ConfigurationSet

        public ConfigurationSet​(java.lang.String name,
                                ConfigurationSetArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • ConfigurationSet

        public ConfigurationSet​(java.lang.String name,
                                ConfigurationSetArgs args,
                                @Nullable
                                com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the Configuration Set.
      • configurationSetName

        public com.pulumi.core.Output<java.lang.String> configurationSetName()
        Returns:
        Name of the configuration set.
      • deliveryOptions

        public com.pulumi.core.Output<java.util.Optional<ConfigurationSetDeliveryOptions>> deliveryOptions()
        Returns:
        Object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. See `deliveryOptions` Block for details.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • reputationOptions

        public com.pulumi.core.Output<ConfigurationSetReputationOptions> reputationOptions()
        Returns:
        Object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. See `reputationOptions` Block for details.
      • sendingOptions

        public com.pulumi.core.Output<ConfigurationSetSendingOptions> sendingOptions()
        Returns:
        Object that defines whether or not Amazon SES can send email that you send using the configuration set. See `sendingOptions` Block for details.
      • suppressionOptions

        public com.pulumi.core.Output<java.util.Optional<ConfigurationSetSuppressionOptions>> suppressionOptions()
        Returns:
        Object that contains information about the suppression list preferences for your account. See `suppressionOptions` Block for details.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags to assign to the service. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
      • trackingOptions

        public com.pulumi.core.Output<java.util.Optional<ConfigurationSetTrackingOptions>> trackingOptions()
        Returns:
        Object that defines the open and click tracking options for emails that you send using the configuration set. See `trackingOptions` Block for details.
      • vdmOptions

        public com.pulumi.core.Output<java.util.Optional<ConfigurationSetVdmOptions>> vdmOptions()
        Returns:
        Object that defines the VDM settings that apply to emails that you send using the configuration set. See `vdmOptions` Block for details.
      • get

        public static ConfigurationSet get​(java.lang.String name,
                                           com.pulumi.core.Output<java.lang.String> id,
                                           @Nullable
                                           ConfigurationSetState state,
                                           @Nullable
                                           com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.