Guest User

Untitled

a guest
May 27th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. use Aws\Common\Aws;
  2.  
  3. // Create a service builder using a configuration file
  4. $aws = Aws::factory('/path/to/my_config.json');
  5.  
  6. // Get the client from the builder by namespace
  7. $client = $aws->get('Kinesis');
  8.  
  9. $result = $client->putRecords(array(
  10. // Records is required
  11. 'Records' => array(
  12. array(
  13. // Data is required
  14. 'Data' => 'string',
  15. 'ExplicitHashKey' => 'string',
  16. // PartitionKey is required
  17. 'PartitionKey' => 'string',
  18. ),
  19. // ... repeated
  20. ),
  21. // StreamName is required
  22. 'StreamName' => 'string',
  23. ));
Add Comment
Please, Sign In to add comment