AccountsAws

Create Credential Aws

POST
/v1/Credentials/AWS

Create a new AWS Credential

Authorization

accountSid_authToken
AuthorizationBasic <token>

In: header

Request Body

application/x-www-form-urlencoded

Credentials*string

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

FriendlyName?string

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

AccountSid?string

The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request.

Match^AC[0-9a-fA-F]{32}$
Length34 <= length <= 34

Response Body

application/json

curl -X POST "https://example.com/v1/Credentials/AWS" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'AccountSid=ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&FriendlyName=friendly_name&Credentials=aws_credentials'
{  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "date_created": "2015-07-31T04:00:00Z",  "date_updated": "2015-07-31T04:00:00Z",  "friendly_name": "friendly_name",  "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "url": "https://accounts.twilio.com/v1/Credentials/AWS/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}