import * as pulumi from "@pulumi/pulumi"; /** * > **NOTE:** This resource is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES using `aws.ses.DomainIdentity`, `aws.sesv2.EmailIdentity`, and related SES/SESv2 resources. See the [AWS End User Messaging migration guide](https://docs.aws.amazon.com/pinpoint/latest/userguide/migrate.html) for details. * * Provides an End User Messaging Email Channel resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const app = new aws.pinpoint.App("app", {}); * const assumeRole = aws.iam.getPolicyDocument({ * statements: [{ * principals: [{ * type: "Service", * identifiers: ["pinpoint.amazonaws.com"], * }], * effect: "Allow", * actions: ["sts:AssumeRole"], * }], * }); * const role = new aws.iam.Role("role", {assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json)}); * const email = new aws.pinpoint.EmailChannel("email", { * applicationId: app.applicationId, * fromAddress: "user@example.com", * roleArn: role.arn, * }); * const identity = new aws.ses.DomainIdentity("identity", {domain: "example.com"}); * const rolePolicy = aws.iam.getPolicyDocument({ * statements: [{ * effect: "Allow", * actions: [ * "mobileanalytics:PutEvents", * "mobileanalytics:PutItems", * ], * resources: ["*"], * }], * }); * const rolePolicyRolePolicy = new aws.iam.RolePolicy("role_policy", { * name: "role_policy", * role: role.id, * policy: rolePolicy.then(rolePolicy => rolePolicy.json), * }); * ``` * * ## Import * * Using `pulumi import`, import End User Messaging Email Channel using the `application-id`. For example: * * ```sh * $ pulumi import aws:pinpoint/emailChannel:EmailChannel email application-id * ``` */ export declare class EmailChannel extends pulumi.CustomResource { /** * Get an existing EmailChannel 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: EmailChannelState, opts?: pulumi.CustomResourceOptions): EmailChannel; /** * Returns true if the given object is an instance of EmailChannel. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is EmailChannel; /** * Application ID. * * @deprecated application_id is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly applicationId: pulumi.Output; /** * ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel. * * @deprecated configuration_set is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly configurationSet: pulumi.Output; /** * Whether the channel is enabled or disabled. Defaults to `true`. * * @deprecated enabled is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly enabled: pulumi.Output; /** * Email address used to send emails from. You can use email only (`user@example.com`) or friendly address (`User `). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt). * * @deprecated from_address is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly fromAddress: pulumi.Output; /** * ARN of an identity verified with SES. * * @deprecated identity is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly identity: pulumi.Output; /** * (**Deprecated**) Messages per second that can be sent. * * @deprecated messages_per_second is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly messagesPerSecond: pulumi.Output; /** * ARN of an IAM role for AWS End User Messaging to use to send email from your campaigns or journeys through Amazon SES. * * @deprecated orchestration_sending_role_arn is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly orchestrationSendingRoleArn: pulumi.Output; /** * 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. */ readonly region: pulumi.Output; /** * ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service. * * @deprecated role_arn is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ readonly roleArn: pulumi.Output; /** * Create a EmailChannel resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: EmailChannelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EmailChannel resources. */ export interface EmailChannelState { /** * Application ID. * * @deprecated application_id is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ applicationId?: pulumi.Input; /** * ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel. * * @deprecated configuration_set is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ configurationSet?: pulumi.Input; /** * Whether the channel is enabled or disabled. Defaults to `true`. * * @deprecated enabled is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ enabled?: pulumi.Input; /** * Email address used to send emails from. You can use email only (`user@example.com`) or friendly address (`User `). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt). * * @deprecated from_address is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ fromAddress?: pulumi.Input; /** * ARN of an identity verified with SES. * * @deprecated identity is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ identity?: pulumi.Input; /** * (**Deprecated**) Messages per second that can be sent. * * @deprecated messages_per_second is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ messagesPerSecond?: pulumi.Input; /** * ARN of an IAM role for AWS End User Messaging to use to send email from your campaigns or journeys through Amazon SES. * * @deprecated orchestration_sending_role_arn is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ orchestrationSendingRoleArn?: pulumi.Input; /** * 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. */ region?: pulumi.Input; /** * ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service. * * @deprecated role_arn is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ roleArn?: pulumi.Input; } /** * The set of arguments for constructing a EmailChannel resource. */ export interface EmailChannelArgs { /** * Application ID. * * @deprecated application_id is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ applicationId: pulumi.Input; /** * ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel. * * @deprecated configuration_set is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ configurationSet?: pulumi.Input; /** * Whether the channel is enabled or disabled. Defaults to `true`. * * @deprecated enabled is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ enabled?: pulumi.Input; /** * Email address used to send emails from. You can use email only (`user@example.com`) or friendly address (`User `). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt). * * @deprecated from_address is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ fromAddress: pulumi.Input; /** * ARN of an identity verified with SES. * * @deprecated identity is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ identity: pulumi.Input; /** * ARN of an IAM role for AWS End User Messaging to use to send email from your campaigns or journeys through Amazon SES. * * @deprecated orchestration_sending_role_arn is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ orchestrationSendingRoleArn?: pulumi.Input; /** * 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. */ region?: pulumi.Input; /** * ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service. * * @deprecated role_arn is deprecated. AWS End User Messaging email features are being discontinued on October 30, 2026. Migrate to Amazon SES. */ roleArn?: pulumi.Input; } //# sourceMappingURL=emailChannel.d.ts.map