You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 'endpoint' => null (string, default=null) The full URI of the webservice. This is only required when connecting to a custom endpoint e.g. localstack
34
+
* 'endpoint' => null, (string, default=null) The full URI of the webservice. This is only required when connecting to a custom endpoint e.g. localstack
35
+
* 'profile' => null, (string, default=null) The name of an AWS profile to used, if provided the SDK will attempt to read associated credentials from the ~/.aws/credentials file.
35
36
* 'queue_owner_aws_account_id' The AWS account ID of the account that created the queue.
36
37
* ].
37
38
*
@@ -92,6 +93,10 @@ private function establishConnection(): SqsClient
92
93
$config['endpoint'] = $this->config['endpoint'];
93
94
}
94
95
96
+
if (isset($this->config['profile'])) {
97
+
$config['profile'] = $this->config['profile'];
98
+
}
99
+
95
100
if ($this->config['key'] && $this->config['secret']) {
96
101
$config['credentials'] = [
97
102
'key' => $this->config['key'],
@@ -120,10 +125,7 @@ private function parseDsn(string $dsn): array
120
125
$dsn = Dsn::parseFirst($dsn);
121
126
122
127
if ('sqs' !== $dsn->getSchemeProtocol()) {
123
-
thrownew \LogicException(sprintf(
124
-
'The given scheme protocol "%s" is not supported. It must be "sqs"',
125
-
$dsn->getSchemeProtocol()
126
-
));
128
+
thrownew \LogicException(sprintf('The given scheme protocol "%s" is not supported. It must be "sqs"', $dsn->getSchemeProtocol()));
0 commit comments