KosmoKrator

productivity

Amazon SES CLI for AI Agents

Use the Amazon SES CLI from KosmoKrator to call Amazon SES tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Amazon SES CLI Setup

Amazon SES can be configured headlessly with `kosmokrator integrations:configure amazon-ses`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure amazon-ses --enable --read allow --write ask --json
kosmokrator integrations:doctor amazon-ses --json
kosmokrator integrations:status --json

Credentials

Authentication type: aws sigv4 aws_sigv4. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

No credentials are required.

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call amazon-ses.amazonses_send_email '{"from_email_address":"example_from_email_address","destination":"example_destination","subject":"example_subject","html_body":"example_html_body","text_body":"example_text_body","template_name":"example_template_name","template_data":"example_template_data","reply_to_addresses":"example_reply_to_addresses"}' --json
Provider shortcut
kosmo integrations:amazon-ses amazonses_send_email '{"from_email_address":"example_from_email_address","destination":"example_destination","subject":"example_subject","html_body":"example_html_body","text_body":"example_text_body","template_name":"example_template_name","template_data":"example_template_data","reply_to_addresses":"example_reply_to_addresses"}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs amazon-ses --json
kosmo integrations:docs amazon-ses.amazonses_send_email --json
kosmo integrations:schema amazon-ses.amazonses_send_email --json
kosmo integrations:search "Amazon SES" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

amazon-ses.amazonses_send_email

Send an email via Amazon SES. Specify the sender, recipient(s), subject, and body (HTML and/or plain text). Optionally reference a template or add reply-to addresses.

Write write
Parameters
from_email_address, destination, subject, html_body, text_body, template_name, template_data, reply_to_addresses, configuration_set_name
Generic call
kosmo integrations:call amazon-ses.amazonses_send_email '{"from_email_address":"example_from_email_address","destination":"example_destination","subject":"example_subject","html_body":"example_html_body","text_body":"example_text_body","template_name":"example_template_name","template_data":"example_template_data","reply_to_addresses":"example_reply_to_addresses"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_send_email '{"from_email_address":"example_from_email_address","destination":"example_destination","subject":"example_subject","html_body":"example_html_body","text_body":"example_text_body","template_name":"example_template_name","template_data":"example_template_data","reply_to_addresses":"example_reply_to_addresses"}' --json

amazon-ses.amazonses_get_account

Get Amazon SES account-level sending details.

Read read
Parameters
none
Generic call
kosmo integrations:call amazon-ses.amazonses_get_account '{}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_get_account '{}' --json

amazon-ses.amazonses_get_template

Retrieve an email template from Amazon SES by its name. Returns the template subject, HTML body, and text body.

Read read
Parameters
name
Generic call
kosmo integrations:call amazon-ses.amazonses_get_template '{"name":"example_name"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_get_template '{"name":"example_name"}' --json

amazon-ses.amazonses_list_templates

List all email templates in Amazon SES. Returns template names and creation timestamps. Supports pagination.

Read read
Parameters
page_size, next_token
Generic call
kosmo integrations:call amazon-ses.amazonses_list_templates '{"page_size":1,"next_token":"example_next_token"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_list_templates '{"page_size":1,"next_token":"example_next_token"}' --json

amazon-ses.amazonses_create_template

Create a new email template in Amazon SES. Templates can include HTML and plain text content with optional substitution variables (e.g., {{name}}).

Write write
Parameters
template_name, subject, html_content, text_content
Generic call
kosmo integrations:call amazon-ses.amazonses_create_template '{"template_name":"example_template_name","subject":"example_subject","html_content":"example_html_content","text_content":"example_text_content"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_create_template '{"template_name":"example_template_name","subject":"example_subject","html_content":"example_html_content","text_content":"example_text_content"}' --json

amazon-ses.amazonses_update_template

Update an existing Amazon SES email template.

Write write
Parameters
template_name, subject, html_content, text_content
Generic call
kosmo integrations:call amazon-ses.amazonses_update_template '{"template_name":"example_template_name","subject":"example_subject","html_content":"example_html_content","text_content":"example_text_content"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_update_template '{"template_name":"example_template_name","subject":"example_subject","html_content":"example_html_content","text_content":"example_text_content"}' --json

amazon-ses.amazonses_delete_template

Delete an Amazon SES email template by name.

Write write
Parameters
template_name
Generic call
kosmo integrations:call amazon-ses.amazonses_delete_template '{"template_name":"example_template_name"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_delete_template '{"template_name":"example_template_name"}' --json

amazon-ses.amazonses_list_suppressions

List email addresses on the Amazon SES account-level suppression list. Suppressed addresses will not receive emails.

Read read
Parameters
page_size, next_token, reason
Generic call
kosmo integrations:call amazon-ses.amazonses_list_suppressions '{"page_size":1,"next_token":"example_next_token","reason":"example_reason"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_list_suppressions '{"page_size":1,"next_token":"example_next_token","reason":"example_reason"}' --json

amazon-ses.amazonses_list_identities

List Amazon SES verified email and domain identities.

Read read
Parameters
page_size, next_token
Generic call
kosmo integrations:call amazon-ses.amazonses_list_identities '{"page_size":1,"next_token":"example_next_token"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_list_identities '{"page_size":1,"next_token":"example_next_token"}' --json

amazon-ses.amazonses_get_identity

Get Amazon SES identity details for an email address or domain.

Read read
Parameters
identity
Generic call
kosmo integrations:call amazon-ses.amazonses_get_identity '{"identity":"example_identity"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_get_identity '{"identity":"example_identity"}' --json

amazon-ses.amazonses_list_configuration_sets

List Amazon SES configuration sets.

Read read
Parameters
page_size, next_token
Generic call
kosmo integrations:call amazon-ses.amazonses_list_configuration_sets '{"page_size":1,"next_token":"example_next_token"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_list_configuration_sets '{"page_size":1,"next_token":"example_next_token"}' --json

amazon-ses.amazonses_api_get

Call any signed Amazon SES v2 GET endpoint.

Read read
Parameters
path, params
Generic call
kosmo integrations:call amazon-ses.amazonses_api_get '{"path":"example_path","params":"example_params"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_api_get '{"path":"example_path","params":"example_params"}' --json

amazon-ses.amazonses_api_post

Call any signed Amazon SES v2 POST endpoint.

Write write
Parameters
path, body
Generic call
kosmo integrations:call amazon-ses.amazonses_api_post '{"path":"example_path","body":"example_body"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_api_post '{"path":"example_path","body":"example_body"}' --json

amazon-ses.amazonses_api_put

Call any signed Amazon SES v2 PUT endpoint.

Write write
Parameters
path, body
Generic call
kosmo integrations:call amazon-ses.amazonses_api_put '{"path":"example_path","body":"example_body"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_api_put '{"path":"example_path","body":"example_body"}' --json

amazon-ses.amazonses_api_delete

Call any signed Amazon SES v2 DELETE endpoint.

Write write
Parameters
path, body
Generic call
kosmo integrations:call amazon-ses.amazonses_api_delete '{"path":"example_path","body":"example_body"}' --json
Shortcut
kosmo integrations:amazon-ses amazonses_api_delete '{"path":"example_path","body":"example_body"}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

amazon-ses.amazonses_send_email 9 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_send_email --json
ParameterTypeRequiredDescription
from_email_address string yes The sender email address (must be verified in SES). e.g., "sender@example.com" or "Sender Name <sender@example.com>".
destination object yes Recipient addresses. Object with "ToAddresses" (array), "CcAddresses" (array, optional), and "BccAddresses" (array, optional).
subject string no The email subject line. Required unless using a template.
html_body string no HTML content of the email body.
text_body string no Plain text content of the email body.
template_name string no Name of an existing SES email template to use. If provided, subject/html_body/text_body are ignored.
template_data object no Key-value pairs to substitute into the template placeholders.
reply_to_addresses array no List of email addresses for reply-to.
configuration_set_name string no The SES configuration set to associate with this email for tracking and analytics.
amazon-ses.amazonses_get_account 0 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_get_account --json
ParameterTypeRequiredDescription
No parameters.
amazon-ses.amazonses_get_template 1 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_get_template --json
ParameterTypeRequiredDescription
name string yes The name of the email template to retrieve.
amazon-ses.amazonses_list_templates 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_list_templates --json
ParameterTypeRequiredDescription
page_size integer no Maximum number of templates to return per page (default: 10, max: 100).
next_token string no Pagination token from a previous response to fetch the next page of results.
amazon-ses.amazonses_create_template 4 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_create_template --json
ParameterTypeRequiredDescription
template_name string yes A unique name for the template.
subject string yes The email subject line. Supports substitution variables (e.g., "Welcome, {{name}}!").
html_content string no HTML body of the template. Supports substitution variables using {{variable}} syntax.
text_content string no Plain text body of the template. Supports substitution variables using {{variable}} syntax.
amazon-ses.amazonses_update_template 4 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_update_template --json
ParameterTypeRequiredDescription
template_name string yes Template name.
subject string yes Template subject.
html_content string no HTML template body.
text_content string no Text template body.
amazon-ses.amazonses_delete_template 1 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_delete_template --json
ParameterTypeRequiredDescription
template_name string yes Template name.
amazon-ses.amazonses_list_suppressions 3 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_list_suppressions --json
ParameterTypeRequiredDescription
page_size integer no Maximum number of suppressed addresses to return per page.
next_token string no Pagination token from a previous response to fetch the next page of results.
reason string no Optional suppression reason filter.
amazon-ses.amazonses_list_identities 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_list_identities --json
ParameterTypeRequiredDescription
page_size integer no Maximum identities to return.
next_token string no Pagination token.
amazon-ses.amazonses_get_identity 1 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_get_identity --json
ParameterTypeRequiredDescription
identity string yes Email address or domain identity.
amazon-ses.amazonses_list_configuration_sets 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_list_configuration_sets --json
ParameterTypeRequiredDescription
page_size integer no Maximum configuration sets to return.
next_token string no Pagination token.
amazon-ses.amazonses_api_get 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_api_get --json
ParameterTypeRequiredDescription
path string yes SES API path beginning with /v2/.
params object no Query parameters.
amazon-ses.amazonses_api_post 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_api_post --json
ParameterTypeRequiredDescription
path string yes SES API path beginning with /v2/.
body object no JSON body.
amazon-ses.amazonses_api_put 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_api_put --json
ParameterTypeRequiredDescription
path string yes SES API path beginning with /v2/.
body object no JSON body.
amazon-ses.amazonses_api_delete 2 parameters
Schema command
kosmo integrations:schema amazon-ses.amazonses_api_delete --json
ParameterTypeRequiredDescription
path string yes SES API path beginning with /v2/.
body object no JSON body.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.