The AWS resource represents Amazon Web Services (AWS) credentials in your Twilio account. Twilio can store video and voice recordings on AWS Simple Storage Service (S3). To access S3, Twilio uses AWS credentials.
The unique string that we created to identify the AWS resource.
^CR[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Account that created the AWS resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The date and time in GMT when the resource was created specified in RFC 2822 format.
The date and time in GMT when the resource was last updated specified in RFC 2822 format.
The URI for this resource, relative to https://accounts.twilio.com
POST https://accounts.twilio.com/v1/Credentials/AWS
application/x-www-form-urlencoded
A string that contains the AWS access credentials in the format <AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>
. For example, AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function createCredentialAws() {11const aW = await client.accounts.v1.credentials.aws.create({12credentials: "Credentials",13});1415console.log(aW.sid);16}1718createCredentialAws();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"date_created": "2015-07-31T04:00:00Z",4"date_updated": "2015-07-31T04:00:00Z",5"friendly_name": "friendly_name",6"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"url": "https://accounts.twilio.com/v1/Credentials/AWS/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"8}
GET https://accounts.twilio.com/v1/Credentials/AWS/{Sid}
The Twilio-provided string that uniquely identifies the AWS resource to fetch.
^CR[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchCredentialAws() {11const aW = await client.accounts.v1.credentials12.aws("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.fetch();1415console.log(aW.sid);16}1718fetchCredentialAws();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"date_created": "2015-07-31T04:00:00Z",4"date_updated": "2015-07-31T04:00:00Z",5"friendly_name": "friendly_name",6"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"url": "https://accounts.twilio.com/v1/Credentials/AWS/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"8}
GET https://accounts.twilio.com/v1/Credentials/AWS
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listCredentialAws() {11const aWs = await client.accounts.v1.credentials.aws.list({ limit: 20 });1213aWs.forEach((a) => console.log(a.sid));14}1516listCredentialAws();
1{2"credentials": [],3"meta": {4"first_page_url": "https://accounts.twilio.com/v1/Credentials/AWS?PageSize=50&Page=0",5"key": "credentials",6"next_page_url": null,7"page": 0,8"page_size": 50,9"previous_page_url": null,10"url": "https://accounts.twilio.com/v1/Credentials/AWS?PageSize=50&Page=0"11}12}
POST https://accounts.twilio.com/v1/Credentials/AWS/{Sid}
The Twilio-provided string that uniquely identifies the AWS resource to update.
^CR[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
application/x-www-form-urlencoded
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function updateCredentialAws() {11const aW = await client.accounts.v1.credentials12.aws("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.update({ friendlyName: "FriendlyName" });1415console.log(aW.sid);16}1718updateCredentialAws();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"date_created": "2015-07-31T04:00:00Z",4"date_updated": "2015-07-31T04:00:00Z",5"friendly_name": "FriendlyName",6"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"url": "https://accounts.twilio.com/v1/Credentials/AWS/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"8}
DELETE https://accounts.twilio.com/v1/Credentials/AWS/{Sid}
The Twilio-provided string that uniquely identifies the AWS resource to delete.
^CR[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function deleteCredentialAws() {11await client.accounts.v1.credentials12.aws("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.remove();14}1516deleteCredentialAws();