1. Packages
  2. AWS
  3. API Docs
  4. sesv2
  5. EmailIdentityFeedbackAttributes
AWS v6.62.2 published on Tuesday, Dec 3, 2024 by Pulumi

aws.sesv2.EmailIdentityFeedbackAttributes

Explore with Pulumi AI

aws logo
AWS v6.62.2 published on Tuesday, Dec 3, 2024 by Pulumi

    Resource for managing an AWS SESv2 (Simple Email V2) Email Identity Feedback Attributes.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.sesv2.EmailIdentity("example", {emailIdentity: "example.com"});
    const exampleEmailIdentityFeedbackAttributes = new aws.sesv2.EmailIdentityFeedbackAttributes("example", {
        emailIdentity: example.emailIdentity,
        emailForwardingEnabled: true,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.sesv2.EmailIdentity("example", email_identity="example.com")
    example_email_identity_feedback_attributes = aws.sesv2.EmailIdentityFeedbackAttributes("example",
        email_identity=example.email_identity,
        email_forwarding_enabled=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sesv2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := sesv2.NewEmailIdentity(ctx, "example", &sesv2.EmailIdentityArgs{
    			EmailIdentity: pulumi.String("example.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sesv2.NewEmailIdentityFeedbackAttributes(ctx, "example", &sesv2.EmailIdentityFeedbackAttributesArgs{
    			EmailIdentity:          example.EmailIdentity,
    			EmailForwardingEnabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SesV2.EmailIdentity("example", new()
        {
            EmailIdentityDetails = "example.com",
        });
    
        var exampleEmailIdentityFeedbackAttributes = new Aws.SesV2.EmailIdentityFeedbackAttributes("example", new()
        {
            EmailIdentity = example.EmailIdentityDetails,
            EmailForwardingEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.sesv2.EmailIdentity;
    import com.pulumi.aws.sesv2.EmailIdentityArgs;
    import com.pulumi.aws.sesv2.EmailIdentityFeedbackAttributes;
    import com.pulumi.aws.sesv2.EmailIdentityFeedbackAttributesArgs;
    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 EmailIdentity("example", EmailIdentityArgs.builder()
                .emailIdentity("example.com")
                .build());
    
            var exampleEmailIdentityFeedbackAttributes = new EmailIdentityFeedbackAttributes("exampleEmailIdentityFeedbackAttributes", EmailIdentityFeedbackAttributesArgs.builder()
                .emailIdentity(example.emailIdentity())
                .emailForwardingEnabled(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:sesv2:EmailIdentity
        properties:
          emailIdentity: example.com
      exampleEmailIdentityFeedbackAttributes:
        type: aws:sesv2:EmailIdentityFeedbackAttributes
        name: example
        properties:
          emailIdentity: ${example.emailIdentity}
          emailForwardingEnabled: true
    

    Create EmailIdentityFeedbackAttributes Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EmailIdentityFeedbackAttributes(name: string, args: EmailIdentityFeedbackAttributesArgs, opts?: CustomResourceOptions);
    @overload
    def EmailIdentityFeedbackAttributes(resource_name: str,
                                        args: EmailIdentityFeedbackAttributesArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmailIdentityFeedbackAttributes(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        email_identity: Optional[str] = None,
                                        email_forwarding_enabled: Optional[bool] = None)
    func NewEmailIdentityFeedbackAttributes(ctx *Context, name string, args EmailIdentityFeedbackAttributesArgs, opts ...ResourceOption) (*EmailIdentityFeedbackAttributes, error)
    public EmailIdentityFeedbackAttributes(string name, EmailIdentityFeedbackAttributesArgs args, CustomResourceOptions? opts = null)
    public EmailIdentityFeedbackAttributes(String name, EmailIdentityFeedbackAttributesArgs args)
    public EmailIdentityFeedbackAttributes(String name, EmailIdentityFeedbackAttributesArgs args, CustomResourceOptions options)
    
    type: aws:sesv2:EmailIdentityFeedbackAttributes
    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 EmailIdentityFeedbackAttributesArgs
    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 EmailIdentityFeedbackAttributesArgs
    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 EmailIdentityFeedbackAttributesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailIdentityFeedbackAttributesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailIdentityFeedbackAttributesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var emailIdentityFeedbackAttributesResource = new Aws.SesV2.EmailIdentityFeedbackAttributes("emailIdentityFeedbackAttributesResource", new()
    {
        EmailIdentity = "string",
        EmailForwardingEnabled = false,
    });
    
    example, err := sesv2.NewEmailIdentityFeedbackAttributes(ctx, "emailIdentityFeedbackAttributesResource", &sesv2.EmailIdentityFeedbackAttributesArgs{
    	EmailIdentity:          pulumi.String("string"),
    	EmailForwardingEnabled: pulumi.Bool(false),
    })
    
    var emailIdentityFeedbackAttributesResource = new EmailIdentityFeedbackAttributes("emailIdentityFeedbackAttributesResource", EmailIdentityFeedbackAttributesArgs.builder()
        .emailIdentity("string")
        .emailForwardingEnabled(false)
        .build());
    
    email_identity_feedback_attributes_resource = aws.sesv2.EmailIdentityFeedbackAttributes("emailIdentityFeedbackAttributesResource",
        email_identity="string",
        email_forwarding_enabled=False)
    
    const emailIdentityFeedbackAttributesResource = new aws.sesv2.EmailIdentityFeedbackAttributes("emailIdentityFeedbackAttributesResource", {
        emailIdentity: "string",
        emailForwardingEnabled: false,
    });
    
    type: aws:sesv2:EmailIdentityFeedbackAttributes
    properties:
        emailForwardingEnabled: false
        emailIdentity: string
    

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

    EmailIdentity string
    The email identity.
    EmailForwardingEnabled bool
    Sets the feedback forwarding configuration for the identity.
    EmailIdentity string
    The email identity.
    EmailForwardingEnabled bool
    Sets the feedback forwarding configuration for the identity.
    emailIdentity String
    The email identity.
    emailForwardingEnabled Boolean
    Sets the feedback forwarding configuration for the identity.
    emailIdentity string
    The email identity.
    emailForwardingEnabled boolean
    Sets the feedback forwarding configuration for the identity.
    email_identity str
    The email identity.
    email_forwarding_enabled bool
    Sets the feedback forwarding configuration for the identity.
    emailIdentity String
    The email identity.
    emailForwardingEnabled Boolean
    Sets the feedback forwarding configuration for the identity.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EmailIdentityFeedbackAttributes 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.

    Look up Existing EmailIdentityFeedbackAttributes Resource

    Get an existing EmailIdentityFeedbackAttributes 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?: EmailIdentityFeedbackAttributesState, opts?: CustomResourceOptions): EmailIdentityFeedbackAttributes
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email_forwarding_enabled: Optional[bool] = None,
            email_identity: Optional[str] = None) -> EmailIdentityFeedbackAttributes
    func GetEmailIdentityFeedbackAttributes(ctx *Context, name string, id IDInput, state *EmailIdentityFeedbackAttributesState, opts ...ResourceOption) (*EmailIdentityFeedbackAttributes, error)
    public static EmailIdentityFeedbackAttributes Get(string name, Input<string> id, EmailIdentityFeedbackAttributesState? state, CustomResourceOptions? opts = null)
    public static EmailIdentityFeedbackAttributes get(String name, Output<String> id, EmailIdentityFeedbackAttributesState 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.
    The following state arguments are supported:
    EmailForwardingEnabled bool
    Sets the feedback forwarding configuration for the identity.
    EmailIdentity string
    The email identity.
    EmailForwardingEnabled bool
    Sets the feedback forwarding configuration for the identity.
    EmailIdentity string
    The email identity.
    emailForwardingEnabled Boolean
    Sets the feedback forwarding configuration for the identity.
    emailIdentity String
    The email identity.
    emailForwardingEnabled boolean
    Sets the feedback forwarding configuration for the identity.
    emailIdentity string
    The email identity.
    email_forwarding_enabled bool
    Sets the feedback forwarding configuration for the identity.
    email_identity str
    The email identity.
    emailForwardingEnabled Boolean
    Sets the feedback forwarding configuration for the identity.
    emailIdentity String
    The email identity.

    Import

    Using pulumi import, import SESv2 (Simple Email V2) Email Identity Feedback Attributes using the email_identity. For example:

    $ pulumi import aws:sesv2/emailIdentityFeedbackAttributes:EmailIdentityFeedbackAttributes example example.com
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.62.2 published on Tuesday, Dec 3, 2024 by Pulumi