HumHub Documentation (unofficial)

SesClient extends AbstractApi
in package

Base class all API clients are inheriting.

Table of Contents

Properties

$awsErrorFactory  : AwsErrorFactoryInterface
$configuration  : Configuration
$credentialProvider  : CredentialProvider
$endpointCache  : EndpointCache
$httpClient  : HttpClientInterface
$logger  : LoggerInterface
$signers  : array<string, Signer>

Methods

__construct()  : mixed
getConfiguration()  : Configuration
presign()  : string
sendEmail()  : SendEmailResponse
Sends an email message. You can use the Amazon SES API v2 to send the following types of messages:
discoverEndpoints()  : array<string|int, EndpointInterface>
getAwsErrorFactory()  : AwsErrorFactoryInterface
getEndpoint()  : string
Build the endpoint full uri.
getEndpointMetadata()  : array{endpoint: string, signRegion: string, signService: string, signVersions: string[]}
Returns the AWS endpoint metadata for the given region.
getResponse()  : Response
getServiceCode()  : string
getSignatureScopeName()  : string
getSignatureVersion()  : string
getSignerFactories()  : array<string, callable(string, string): Signer>
getDiscoveredEndpoint()  : string
getSigner()  : Signer

Properties

Methods

presign()

public final presign(Input $input[, DateTimeImmutable|null $expires = null ]) : string
Parameters
$input : Input
$expires : DateTimeImmutable|null = null
Return values
string

sendEmail()

Sends an email message. You can use the Amazon SES API v2 to send the following types of messages:

public sendEmail(ListManagementOptions|array, '@region'?: string|null}|SendEmailRequest $input) : SendEmailResponse
  • Simple – A standard email message. When you create this type of message, you specify the sender, the recipient, and the message body, and Amazon SES assembles the message for you.
  • Raw – A raw, MIME-formatted email message. When you send this type of email, you have to specify all of the message headers, as well as the message body. You can use this message type to send messages that contain attachments. The message that you specify has to be a valid MIME message.
  • Templated – A message that contains personalization tags. When you send this type of email, Amazon SES API v2 automatically replaces the tags with values that you specify.
Parameters
$input : ListManagementOptions|array, '@region'?: string|null}|SendEmailRequest
Tags
see
https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html
see
https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-email-2019-09-27.html#sendemail
throws
TooManyRequestsException
throws
LimitExceededException
throws
AccountSuspendedException
throws
SendingPausedException
throws
MessageRejectedException
throws
MailFromDomainNotVerifiedException
throws
NotFoundException
throws
BadRequestException
Return values
SendEmailResponse

getEndpoint()

Build the endpoint full uri.

protected getEndpoint(string $uri, array<string, string> $query, string|null $region) : string
Parameters
$uri : string

or path

$query : array<string, string>

parameters that should go in the query string

$region : string|null

region provided by the user in the @region parameter of the Input

Return values
string

getEndpointMetadata()

Returns the AWS endpoint metadata for the given region.

protected getEndpointMetadata(string|null $region) : array{endpoint: string, signRegion: string, signService: string, signVersions: string[]}

When user did not provide a region, the client have to either return a global endpoint or fallback to the Configuration::DEFAULT_REGION constant.

This implementation is a BC layer for client that does not require core:^1.2.

Parameters
$region : string|null

region provided by the user (without fallback to a default region)

Return values
array{endpoint: string, signRegion: string, signService: string, signVersions: string[]}

getServiceCode()

protected getServiceCode() : string
Return values
string

getSignatureScopeName()

protected getSignatureScopeName() : string
Return values
string

getSignatureVersion()

protected getSignatureVersion() : string
Return values
string

getSignerFactories()

protected getSignerFactories() : array<string, callable(string, string): Signer>
Return values
array<string, callable(string, string): Signer>

getDiscoveredEndpoint()

private getDiscoveredEndpoint(string $uri, array<string, string> $query, string|null $region, bool $usesEndpointDiscovery, bool $requiresEndpointDiscovery) : string
Parameters
$uri : string
$query : array<string, string>
$region : string|null
$usesEndpointDiscovery : bool
$requiresEndpointDiscovery : bool
Return values
string

getSigner()

private getSigner(string|null $region) : Signer
Parameters
$region : string|null

region provided by the user in the @region parameter of the Input

Return values
Signer

        
On this page

Search results