Class SendSesEmailTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
io.github.gregwhitaker.awsemulator.core.AbstractAwsEmulatorTask
io.github.gregwhitaker.awsemulator.aws.AbstractAwsResourceTask
io.github.gregwhitaker.awsemulator.aws.ses.SendSesEmailTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault(because="Sends a new message to the live emulator on every invocation")
public abstract class SendSesEmailTask
extends AbstractAwsResourceTask
Submits simple or raw email to local SES and writes its message ID. This task does not relay SMTP.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.ListProperty<String>Bcc recipients.abstract org.gradle.api.provider.ListProperty<String>Cc recipients.abstract org.gradle.api.provider.Property<String>Existing configuration set used for event publication.abstract org.gradle.api.provider.Property<String>Verified bare sender address, required even when raw MIME contains a From header.abstract org.gradle.api.provider.Property<String>UTF-8 HTML body; incompatible with rawMessage.abstract org.gradle.api.file.RegularFilePropertyUTF-8 message ID output; defaults to build/aws-emulator/ses/TASK/message-id.txt.abstract org.gradle.api.file.RegularFilePropertyComplete MIME document, up to 40 MiB.abstract org.gradle.api.provider.ListProperty<String>Optional reply-to addresses.abstract org.gradle.api.provider.Property<String>Simple-message subject; incompatible with rawMessage.abstract org.gradle.api.provider.Property<String>UTF-8 plain text body; incompatible with rawMessage.abstract org.gradle.api.provider.ListProperty<String>To recipients; the combined To/Cc/Bcc list must contain 1–50 bare addresses.voidsend()voidvoidsetFromAddressOption(String value) voidsetSubjectOption(String value) voidsetTextBodyOption(String value) voidsetToAddressesOption(String value) Methods inherited from class io.github.gregwhitaker.awsemulator.aws.AbstractAwsResourceTask
connection, getApiCallTimeoutSeconds, getMode, setModeOptionMethods inherited from class io.github.gregwhitaker.awsemulator.core.AbstractAwsEmulatorTask
getRuntime, getRuntimeName, setRuntimeNameOptionMethods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
SendSesEmailTask
public SendSesEmailTask()
-
-
Method Details
-
getFromAddress
Verified bare sender address, required even when raw MIME contains a From header. -
getToAddresses
To recipients; the combined To/Cc/Bcc list must contain 1–50 bare addresses. -
getCcAddresses
Cc recipients. -
getBccAddresses
Bcc recipients. -
getReplyToAddresses
Optional reply-to addresses. -
getSubject
Simple-message subject; incompatible with rawMessage. -
getTextBody
UTF-8 plain text body; incompatible with rawMessage. -
getHtmlBody
UTF-8 HTML body; incompatible with rawMessage. -
getRawMessage
@InputFile @Optional @PathSensitive(RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getRawMessage()Complete MIME document, up to 40 MiB. Supply envelope sender and recipients separately. -
getConfigurationSetName
Existing configuration set used for event publication. -
getMessageIdFile
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getMessageIdFile()UTF-8 message ID output; defaults to build/aws-emulator/ses/TASK/message-id.txt. -
setFromAddressOption
-
setToAddressesOption
-
setSubjectOption
-
setTextBodyOption
-
setConfigurationSetNameOption
-
send
public void send()
-