Created
May 23, 2018 08:19
-
-
Save onuratci/b11048679c95160bc98b87c997c02c6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Aws\Common\Aws; | |
| // Create a service builder using a configuration file | |
| $aws = Aws::factory('/path/to/my_config.json'); | |
| // Get the client from the builder by namespace | |
| $client = $aws->get('Kinesis'); | |
| $result = $client->putRecords(array( | |
| // Records is required | |
| 'Records' => array( | |
| array( | |
| // Data is required | |
| 'Data' => 'string', | |
| 'ExplicitHashKey' => 'string', | |
| // PartitionKey is required | |
| 'PartitionKey' => 'string', | |
| ), | |
| // ... repeated | |
| ), | |
| // StreamName is required | |
| 'StreamName' => 'string', | |
| )); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment