aws logo
AWS Classic v5.28.0, Jan 23 23

aws.sesv2.EmailIdentityFeedbackAttributes

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

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var exampleEmailIdentity = new Aws.SesV2.EmailIdentity("exampleEmailIdentity", new()
    {
        EmailIdentityDetails = "example.com",
    });

    var exampleEmailIdentityFeedbackAttributes = new Aws.SesV2.EmailIdentityFeedbackAttributes("exampleEmailIdentityFeedbackAttributes", new()
    {
        EmailIdentity = exampleEmailIdentity.EmailIdentityDetails,
        EmailForwardingEnabled = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleEmailIdentity, err := sesv2.NewEmailIdentity(ctx, "exampleEmailIdentity", &sesv2.EmailIdentityArgs{
			EmailIdentity: pulumi.String("example.com"),
		})
		if err != nil {
			return err
		}
		_, err = sesv2.NewEmailIdentityFeedbackAttributes(ctx, "exampleEmailIdentityFeedbackAttributes", &sesv2.EmailIdentityFeedbackAttributesArgs{
			EmailIdentity:          exampleEmailIdentity.EmailIdentity,
			EmailForwardingEnabled: pulumi.Bool(true),
		})
		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.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 exampleEmailIdentity = new EmailIdentity("exampleEmailIdentity", EmailIdentityArgs.builder()        
            .emailIdentity("example.com")
            .build());

        var exampleEmailIdentityFeedbackAttributes = new EmailIdentityFeedbackAttributes("exampleEmailIdentityFeedbackAttributes", EmailIdentityFeedbackAttributesArgs.builder()        
            .emailIdentity(exampleEmailIdentity.emailIdentity())
            .emailForwardingEnabled(true)
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_email_identity = aws.sesv2.EmailIdentity("exampleEmailIdentity", email_identity="example.com")
example_email_identity_feedback_attributes = aws.sesv2.EmailIdentityFeedbackAttributes("exampleEmailIdentityFeedbackAttributes",
    email_identity=example_email_identity.email_identity,
    email_forwarding_enabled=True)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleEmailIdentity = new aws.sesv2.EmailIdentity("exampleEmailIdentity", {emailIdentity: "example.com"});
const exampleEmailIdentityFeedbackAttributes = new aws.sesv2.EmailIdentityFeedbackAttributes("exampleEmailIdentityFeedbackAttributes", {
    emailIdentity: exampleEmailIdentity.emailIdentity,
    emailForwardingEnabled: true,
});
resources:
  exampleEmailIdentity:
    type: aws:sesv2:EmailIdentity
    properties:
      emailIdentity: example.com
  exampleEmailIdentityFeedbackAttributes:
    type: aws:sesv2:EmailIdentityFeedbackAttributes
    properties:
      emailIdentity: ${exampleEmailIdentity.emailIdentity}
      emailForwardingEnabled: true

Create EmailIdentityFeedbackAttributes Resource

new EmailIdentityFeedbackAttributes(name: string, args: EmailIdentityFeedbackAttributesArgs, opts?: CustomResourceOptions);
@overload
def EmailIdentityFeedbackAttributes(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    email_forwarding_enabled: Optional[bool] = None,
                                    email_identity: Optional[str] = None)
@overload
def EmailIdentityFeedbackAttributes(resource_name: str,
                                    args: EmailIdentityFeedbackAttributesArgs,
                                    opts: Optional[ResourceOptions] = 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.

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.

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

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

SESv2 (Simple Email V2) Email Identity Feedback Attributes can be imported using the email_identity, e.g.,

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

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.