NAME

Twilio::Rest::Accounts::V1::Credential::Aws - The Aws resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $aws = $client->accounts->v1->credentials->aws->create($credentials, \%options);
for my $aws ($client->accounts->v1->credentials->aws->read({}, 20)) {
  ...
}
my $aws = $client->accounts->v1->credentials->aws($sid)->fetch;
$client->accounts->v1->credentials->aws($sid)->update(\%options);
$client->accounts->v1->credentials->aws($sid)->delete;

DESCRIPTION

User provided AWS keys

This file holds AwsList, AwsPage, AwsContext and AwsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

AwsList

Returned by $client->accounts->v1->credentials->aws. See also Twilio::ListResource.

create

my $aws = $client->accounts->v1->credentials->aws->create($credentials, \%options);

Create a new AWS Credential. Returns a AwsInstance.

The required values are:

$credentials

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

The options are:

account_sid

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

friendly_name

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

read

my @records = $client->accounts->v1->credentials->aws->read(\%options, $limit, $page_size);

Retrieves a collection of AWS Credentials belonging to the account used to make the request. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->accounts->v1->credentials->aws->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->accounts->v1->credentials->aws->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->accounts->v1->credentials->aws->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->accounts->v1->credentials->aws->get_context($sid);

Returns a AwsContext, and makes no request.

AwsPage

A Twilio::Page of AwsInstance objects.

records_key

build_instance

Used by Twilio::Page.

AwsContext

Returned by $client->accounts->v1->credentials->aws($sid). It makes no request until one of these methods is called.

fetch

my $aws = $client->accounts->v1->credentials->aws($sid)->fetch;

Fetch the AWS credentials specified by the provided Credential Sid. Returns a AwsInstance.

update

my $aws = $client->accounts->v1->credentials->aws($sid)->update(\%options);

Modify the properties of a given Account. Returns a AwsInstance.

The options are:

friendly_name

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

delete

$client->accounts->v1->credentials->aws($sid)->delete;

Delete a Credential from your account. Returns true.

AwsInstance

See also Twilio::InstanceResource.

It has fetch, update and delete, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the AWS resource.

date_created

The date and time in GMT when the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The string that you assigned to describe the resource.

sid

The unique string that we created to identify the AWS resource.

url

The URI for this resource, relative to https://accounts.twilio.com

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.