Skip to content

Instantly share code, notes, and snippets.

@kennovation1
Last active July 31, 2019 15:08
Show Gist options
  • Save kennovation1/6b9a3117f85f1af3b71d79b40a5dbe12 to your computer and use it in GitHub Desktop.
Save kennovation1/6b9a3117f85f1af3b71d79b40a5dbe12 to your computer and use it in GitHub Desktop.
$ aws pinpoint get-apps
{
"ApplicationsResponse": {
"Item": [
{
"tags": {},
"Id": "APP_PROJECT_IDENTIFIER",
"Arn": "arn:aws:mobiletargeting:us-east-1:AWS_ACCOUNT_ID:apps/APP_PROJECT_IDENTIFIER",
"Name": "Example project name"
}
]
}
}
$ aws pinpoint get-email-channel --application-id APP_PROJECT_IDENTIFIER
{
"EmailChannelResponse": {
"FromAddress": "My Display Name <replies@email.example.com>",
"MessagesPerSecond": 14,
"LastModifiedDate": "2019-07-30T20:00:05.858Z",
"RoleArn": "arn:aws:iam::AWS_ACCOUNT_ID:role/service-role/pinpoint-events",
"Enabled": true,
"Platform": "EMAIL",
"Version": 5,
"IsArchived": false,
"CreationDate": "2019-07-29T15:09:06.845Z",
"ApplicationId": "APP_PROJECT_IDENTIFIER",
"Id": "email",
"Identity": "arn:aws:ses:us-east-1:AWS_ACCOUNT_ID:identity/email.example.com"
}
}
$ aws pinpoint update-email-channel --application-id APP_PROJECT_IDENTIFIER \
--email-channel-request '{"FromAddress": "My Display Name <replies@email.example.com>", "Identity": "arn:aws:ses:us-east-1:AWS_ACCOUNT_ID:identity/email.example.com", "RoleArn": "arn:aws:iam::AWS_ACCOUNT_ID:role/service-role/pinpoint-events"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment