1 | <?php |
||
22 | class SNSDestination extends Destination |
||
23 | { |
||
24 | 1 | public function fieldDefinitions() |
|
25 | { |
||
26 | return [ |
||
27 | 1 | 'type' => [static::TYPE => 'string'], |
|
28 | 1 | 'topicArn' => [static::TYPE => 'string'], |
|
29 | 1 | 'accessKey' => [static::TYPE => 'string'], |
|
30 | 1 | 'accessSecret' => [static::TYPE => 'string'], |
|
31 | ]; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $topicArn |
||
36 | * @param string $accessKey |
||
37 | * @param string $accessSecret |
||
38 | * @param Context|null $context |
||
39 | * @return SNSDestination |
||
40 | */ |
||
41 | public static function ofTopicArnAccessKeyAndSecret($topicArn, $accessKey, $accessSecret, Context $context = null) |
||
46 | } |
||
47 |