This tells the endpoint where to look for AWS credentials. This can be one of:
EnvironmentVariables: The endpoint will extract an AWS Access Key ID and AWS Secret Access Key from the environment variables
InstanceProfile: the endpoint will use the credentials of the first EC2 role attached to the EC2 instance. This is only valid when running the endpoint on an EC2 instance.
Example: To use the credentials of an EC2 role, specify:
This is the maximum number of days that a message will be retained within SQS and S3. When a sent message is not received and successfully processed within the specified time, the message will be lost. This value applies to both SQS and S3 - messages in SQS will be deleted after this amount of time expires, and large message bodies stored in S3 will automatically be deleted after this amount of time expires.
The maximum value is 14 days.
Example: To set this to the maximum value, specify:
This string value will be prepended to the name of every SQS queue referenced by the endpoint. This is useful when deploying many instances of the same application in the same AWS region (e.g. a development instance, a QA instance and a production instance), and the queue names need to be distinguished somehow.
Example: For a development instance, specify:
Queue names for the endpoint called "SampleEndpoint" might then look like:
DEV-SampleEndpoint DEV-SampleEndpoint-Retries DEV-SampleEndpoint-Timeouts DEV-SampleEndpoint-TimeoutsDispatcher
Example: For the Sydney region, specify
Default: Empty. Any attempt to send a large message with an empty S3 bucket will fail.
This is the name of an S3 Bucket that will be used to store message bodies for messages that are larger than 256kb in size. If this option is not specified, S3 will not be used at all. Any attempt to send a message larger than 256kb will throw if this option hasn't been specified.
If the specified bucket doesn't exist, it will be created at endpoint start up.
Example: To use a bucket named
This is the path within the specified S3 Bucket to store large message bodies. It is an error to specify this option without specifying a value for S3BucketForLargeMessages.
Example: To specify a path of "my/sample/path", specify:
This is the name of the host of the proxy server that the client must authenticate to, if one exists. If
ProxyHost is specified,
ProxyPort must also be specified.
Note that the username and password for the proxy can not be specified via the connection string; they are sourced from environment variables instead. The username must be set in
NSERVICEBUS_AMAZONSQS_PROXY_AUTHENTICATION_USERNAME and the password must be set in
SQS supports delaying message delivery by up to 15 minutes. When this option is set to
true, The SQS transport will not use the timeout manager for message deferral and will use the delayed delivery feature of SQS instead.
Enabling this on an endpoint means that a separate timeout queue is not used, thus saving the cost of continuously polling it. However when the need arises to delay the delivery of messages by a time span of more than 15 minutes, the SQS delayed delivery cannot be used.
var transport = endpointConfiguration.UseTransport<SqsTransport>(); transport.NativeDeferral();