NAME

Twilio::Rest::Iam::V1::RolePermission - The RolePermission resource

SYNOPSIS

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

for my $role_permission ($client->iam->v1->role_permission($role_sid)->read({}, 20)) {
  ...
}

DESCRIPTION

This file holds RolePermissionList, RolePermissionPage and RolePermissionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

RolePermissionList

Returned by $client->iam->v1->role_permission($role_sid). See also Twilio::ListResource.

read

my @records = $client->iam->v1->role_permission($role_sid)->read(\%options, $limit, $page_size);

List resolved permissions for a role. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->iam->v1->role_permission($role_sid)->stream(\%options, $limit, $page_size);

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

page

my $page = $client->iam->v1->role_permission($role_sid)->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->iam->v1->role_permission($role_sid)->get_page($url);

Fetches the page at a URL given by Twilio.

RolePermissionPage

A Twilio::Page of RolePermissionInstance objects.

records_key

build_instance

Used by Twilio::Page.

RolePermissionInstance

See also Twilio::InstanceResource.

Its fields are:

action

The action granted by the permission (e.g., read).

external_description

The external description of the permission.

namespace

The namespace of the permission (e.g., twilio).

product

The product the permission belongs to (e.g., iam).

resource

The resource the permission applies to (e.g., roles).

sid

The unique string that identifies the Permission 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.