Class Result
- Aws\Result implements Aws\ResultInterface, Aws\MonitoringEventsInterface uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
- Namespace: Aws
- Located at Result.php
AWS result.
Methods Summary
- __construct ( array $data = [] )
-
hasKey ( string $name )
Check if the model contains a key by name
-
get ( string $key )
Get a specific key value from the result model.
-
search ( string $expression )
Returns the result of executing a JMESPath expression on the contents of the Result model.
-
__toString ( )
Provides debug information about the result object
- getPath ( $path )
Methods inherited from Aws\ResultInterface
Methods inherited from Countable
count()
Methods inherited from IteratorAggregate
getIterator()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Methods Details
__construct ( array $data = [] )
boolean hasKey ( string $name )
Check if the model contains a key by name
Parameters
string | $name | Name of the key to retrieve |
Returns
boolean |
Implementation of
mixed|null get ( string $key )
Get a specific key value from the result model.
Parameters
string | $key | Key to retrieve. |
Returns
mixed|null Value of the key or NULL if not found. |
Implementation of
mixed search ( string $expression )
Returns the result of executing a JMESPath expression on the contents of the Result model.
$result = $client->execute($command); $jpResult = $result->search('foo.*.bar[?baz > 10
]');
Parameters
string | $expression | JMESPath expression to execute |
Returns
mixed Returns the result of the JMESPath expression. |
Link
Implementation of
string __toString ( )
Provides debug information about the result object
Returns
string |