AssumeRole.php 511 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace OSS\Tests;
  3. class AssumeRole extends StsBase
  4. {
  5. private $Action = "AssumeRole";
  6. private $RoleArn;
  7. private $RoleSessionName;
  8. private $Policy;
  9. private $DurationSeconds = "3600";
  10. public function getAttributes()
  11. {
  12. return get_object_vars($this);
  13. }
  14. public function __set($name, $value)
  15. {
  16. $this->$name = $value;
  17. }
  18. public function __construct()
  19. {
  20. parent::__construct();
  21. $this->RoleSessionName = "sts";
  22. }
  23. }