sendgrid
ImportantAs of Flowpipe 1.0.0,
credential
has been renamed toconnection
. Thesendgrid
credential resource is deprecated and will be removed in a future version of Flowpipe. Use the sendgrid connection instead.
The sendgrid
credential can be used to access SendGrid resources.
credential "sendgrid" "my_sendgrid" { api_key = "SG.R7..."}
Arguments
Name | Type | Required? | Description |
---|---|---|---|
api_key | String | Optional | SendGrid API Key |
All arguments are optional, and a sendgrid
credential with no arguments will behave the same as the default credential.
Attributes (Read-Only)
Attribute | Type | Description |
---|---|---|
env | Map | A map of the resolved credential-related environment variables (SENDGRID_API_KEY ) |
Default Credential
The sendgrid
credential type includes an implicit, default credential (credential.sendgrid.default
) that will be configured to set the api_key
to the SENDGRID_API_KEY
environment variable.
credential "sendgrid" "default" { api_key = env("SENDGRID_API_KEY")}