NAME

Twilio::Rest::Serverless::V1::Service::Environment::Deployment - The Deployment resource

SYNOPSIS

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

my $deployment = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->create(\%options);
for my $deployment ($client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->read({}, 20)) {
  ...
}
my $deployment = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments($sid)->fetch;

DESCRIPTION

An association of a Build with an Environment so that the Build is published in the Environment.

This file holds DeploymentList, DeploymentPage, DeploymentContext and DeploymentInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

DeploymentList

Returned by $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments. See also Twilio::ListResource.

create

my $deployment = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->create(\%options);

Create a new Deployment. Returns a DeploymentInstance.

The options are:

build_sid

The SID of the Build for the Deployment.

is_plugin

Whether the Deployment is a plugin.

read

my @records = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->read(\%options, $limit, $page_size);

Retrieve a list of all Deployments. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->stream(\%options, $limit, $page_size);

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

page

my $page = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments->get_context($sid);

Returns a DeploymentContext, and makes no request.

DeploymentPage

A Twilio::Page of DeploymentInstance objects.

records_key

build_instance

Used by Twilio::Page.

DeploymentContext

Returned by $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments($sid). It makes no request until one of these methods is called.

fetch

my $deployment = $client->serverless->v1->services($service_sid)->environments($environment_sid)->deployments($sid)->fetch;

Retrieve a specific Deployment. Returns a DeploymentInstance.

DeploymentInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Deployment resource.

build_sid

The SID of the Build for the deployment.

date_created

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

date_updated

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

environment_sid

The SID of the Environment for the Deployment.

service_sid

The SID of the Service that the Deployment resource is associated with.

sid

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

url

The absolute URL of the Deployment resource.

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.