@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.219Z") @Stability(value=Stable) public class CfnEmailChannel extends CfnResource implements IInspectable
A channel is a type of platform that you can deliver messages to. You can use the email channel to send email to users. Before you can use Amazon Pinpoint to send email, you must enable the email channel for an Amazon Pinpoint application.
The EmailChannel resource represents the status, identity, and other settings of the email channel for an application
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;
CfnEmailChannel cfnEmailChannel = CfnEmailChannel.Builder.create(this, "MyCfnEmailChannel")
.applicationId("applicationId")
.fromAddress("fromAddress")
.identity("identity")
// the properties below are optional
.configurationSet("configurationSet")
.enabled(false)
.roleArn("roleArn")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEmailChannel.Builder
A fluent builder for
CfnEmailChannel. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEmailChannel(software.constructs.Construct scope,
String id,
CfnEmailChannelProps props)
Create a new `AWS::Pinpoint::EmailChannel`.
|
protected |
CfnEmailChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEmailChannel(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
The unique identifier for the Amazon Pinpoint application that you're specifying the email channel for.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getConfigurationSet()
The [Amazon SES configuration set](https://docs.aws.amazon.com/ses/latest/APIReference/API_ConfigurationSet.html) that you want to apply to messages that you send through the channel.
|
Object |
getEnabled()
Specifies whether to enable the email channel for the application.
|
String |
getFromAddress()
The verified email address that you want to send email from when you send email through the channel.
|
String |
getIdentity()
The Amazon Resource Name (ARN) of the identity, verified with Amazon Simple Email Service (Amazon SES), that you want to use when you send email through the channel.
|
String |
getRoleArn()
The ARN of the AWS Identity and Access Management (IAM) role that you want Amazon Pinpoint to use when it submits email-related event data for the channel.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationId(String value)
The unique identifier for the Amazon Pinpoint application that you're specifying the email channel for.
|
void |
setConfigurationSet(String value)
The [Amazon SES configuration set](https://docs.aws.amazon.com/ses/latest/APIReference/API_ConfigurationSet.html) that you want to apply to messages that you send through the channel.
|
void |
setEnabled(Boolean value)
Specifies whether to enable the email channel for the application.
|
void |
setEnabled(IResolvable value)
Specifies whether to enable the email channel for the application.
|
void |
setFromAddress(String value)
The verified email address that you want to send email from when you send email through the channel.
|
void |
setIdentity(String value)
The Amazon Resource Name (ARN) of the identity, verified with Amazon Simple Email Service (Amazon SES), that you want to use when you send email through the channel.
|
void |
setRoleArn(String value)
The ARN of the AWS Identity and Access Management (IAM) role that you want Amazon Pinpoint to use when it submits email-related event data for the channel.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEmailChannel(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEmailChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEmailChannel(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEmailChannelProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApplicationId()
@Stability(value=Stable)
public void setApplicationId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getFromAddress()
@Stability(value=Stable)
public void setFromAddress(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getIdentity()
@Stability(value=Stable)
public void setIdentity(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getConfigurationSet()
@Stability(value=Stable)
public void setConfigurationSet(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEnabled()
@Stability(value=Stable)
public void setEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getRoleArn()
@Stability(value=Stable)
public void setRoleArn(@Nullable
String value)
Copyright © 2022. All rights reserved.