\FuriosoJack\MasterModelsAWS\Core\RequestsTraitResponseManager

Trait para el manejo del response aws

Summary

Methods
Properties
Constants
getResonse()
No public properties found
No constants found
No protected methods found
$response
N/A
setResponse()
No private properties found
N/A

Properties

$response

$response : \Aws\Result

Response de la solicitud AWS

Type

\Aws\Result

Methods

getResonse()

getResonse() : \Aws\Result|null

Retorna el resultado de la solicitud **Cuando se retorna un response en `null` es por que existen errores por erro se debe primero verificar que no existan errores**

Ejemplo De reponse:

   object(Aws\Result)#102 (1) {
       ["data":"Aws\Result":private]=>
       array(2) {
         ["Vpcs"]=>
         array(1) {
           [0]=>
           array(8) {
             ["CidrBlock"]=>
             string(13) "172.31.0.0/16"
             ["DhcpOptionsId"]=>
             string(13) "dopt-a86sds9c8ghce"
             ["State"]=>
             string(9) "available"
             ["VpcId"]=>
             string(12) "vpc-b3f0efdssdbc12a"
             ["InstanceTenancy"]=>
             string(7) "default"
             ["CidrBlockAssociationSet"]=>
             array(1) {
               [0]=>
               array(3) {
                 ["AssociationId"]=>
                 string(23) "vpc-cidr-assoc-0bcasdggff0d60"
                 ["CidrBlock"]=>
                 string(13) "172.31.0.0/16"
                 ["CidrBlockState"]=>
                 array(1) {
                   ["State"]=>
                   string(10) "associated"
                 }
               }
             }
             ["IsDefault"]=>
             bool(true)
             ["Tags"]=>
             array(1) {
               [0]=>
               array(2) {
                 ["Key"]=>
                 string(4) "Name"
                 ["Value"]=>
                 string(7) "default"
               }
             }
           }
         }
         ["@metadata"]=>
         array(4) {
           ["statusCode"]=>
           int(200)
           ["effectiveUri"]=>
           string(35) "https://ec2.us-east-1.amazonaws.com"
           ["headers"]=>
           array(5) {
             ["content-type"]=>
             string(22) "text/xml;charset=UTF-8"
             ["transfer-encoding"]=>
             string(7) "chunked"
             ["vary"]=>
             string(15) "Accept-Encoding"
             ["date"]=>
             string(29) "Fri, 31 Aug 2018 15:51:57 GMT"
             ["server"]=>
             string(9) "AmazonEC2"
           }
           ["transferStats"]=>
           array(1) {
             ["http"]=>
             array(1) {
               [0]=>
               array(0) {
               }
             }
           }
         }
       }
     }

Returns

\Aws\Result|null —

$response resultado de la solicitud

setResponse()

setResponse(\Aws\Result  $response = null) 

Se encarga de insertar la respuesta de la peticion

Parameters

\Aws\Result $response