Documentation

Result
in package
implements ResultInterface, MonitoringEventsInterface Uses HasDataTrait, HasMonitoringEventsTrait

AWS result.

Interfaces, Classes and Traits

ResultInterface
Represents an AWS result object that is returned from executing an operation.
MonitoringEventsInterface
Interface for adding and retrieving client-side monitoring events

Table of Contents

$data  : array<string|int, mixed>
$monitoringEvents  : mixed
__construct()  : mixed
__toString()  : string
Provides debug information about the result object
appendMonitoringEvent()  : mixed
Append a client-side monitoring event to this object's event list
count()  : mixed
get()  : mixed|null
Get a specific key value from the result model.
getIterator()  : mixed
getMonitoringEvents()  : array<string|int, mixed>
Get client-side monitoring events attached to this object. Each event is represented as an associative array within the returned array.
getPath()  : mixed
hasKey()  : bool
Check if the model contains a key by name
offsetExists()  : mixed
offsetGet()  : mixed|null
This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').
offsetSet()  : mixed
offsetUnset()  : mixed
prependMonitoringEvent()  : mixed
Prepend a client-side monitoring event to this object's event list
search()  : mixed
Returns the result of executing a JMESPath expression on the contents of the Result model.
toArray()  : mixed

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []
Return values
mixed

__toString()

Provides debug information about the result object

public __toString() : string
Return values
string

appendMonitoringEvent()

Append a client-side monitoring event to this object's event list

public appendMonitoringEvent(array<string|int, mixed> $event) : mixed
Parameters
$event : array<string|int, mixed>
Return values
mixed

get()

Get a specific key value from the result model.

public get(mixed $key) : mixed|null
Parameters
$key : mixed

Key to retrieve.

Return values
mixed|null

Value of the key or NULL if not found.

getIterator()

public getIterator() : mixed
Return values
mixed

getMonitoringEvents()

Get client-side monitoring events attached to this object. Each event is represented as an associative array within the returned array.

public getMonitoringEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPath()

public getPath(mixed $path) : mixed
Parameters
$path : mixed
Tags
deprecated
Return values
mixed

hasKey()

Check if the model contains a key by name

public hasKey(mixed $name) : bool
Parameters
$name : mixed

Name of the key to retrieve

Return values
bool

offsetExists()

public offsetExists(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetGet()

This method returns a reference to the variable to allow for indirect array modification (e.g., $foo['bar']['baz'] = 'qux').

public offsetGet( $offset) : mixed|null
Parameters
$offset :
Return values
mixed|null

offsetSet()

public offsetSet(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed
Return values
mixed

offsetUnset()

public offsetUnset(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

prependMonitoringEvent()

Prepend a client-side monitoring event to this object's event list

public prependMonitoringEvent(array<string|int, mixed> $event) : mixed
Parameters
$event : array<string|int, mixed>
Return values
mixed

Returns the result of executing a JMESPath expression on the contents of the Result model.

public search(mixed $expression) : mixed

$result = $client->execute($command); $jpResult = $result->search('foo.*.bar[?baz > 10]');

Parameters
$expression : mixed

JMESPath expression to execute

Return values
mixed

Returns the result of the JMESPath expression.

toArray()

public toArray() : mixed
Return values
mixed

Search results