@Retention(value=RUNTIME) @Target(value={PARAMETER,METHOD}) public @interface SendGridOutput
Place this on a parameter whose value would be written to SendGrid. The parameter type should be OutputBinding<T>, where T could be one of:
| Modifier and Type | Required Element and Description |
|---|---|
String |
apiKey
Defines the API key of the SendGrid to which to write.
|
String |
from
Defines the 'FROM' name of the SendGrid to which to write.
|
String |
name
The variable name used in function.json.
|
String |
subject
Defines the subject of the SendGrid email to which to write.
|
String |
text
Defines the content text of the SendGrid email to which to write.
|
String |
to
Defines the 'TO' email of the SendGrid to which to write.
|
public abstract String name
public abstract String apiKey
public abstract String to
public abstract String from
public abstract String subject
public abstract String text
public abstract String dataType
Defines how Functions runtime should treat the parameter value. Possible values are:
Copyright © 2022. All rights reserved.