Introduction E2E Networks documentation Skip to content E2E Cloud Docs E2E Networks TIR Toggle navigation menu Login Sign Up E2E Networks documentation K Docs E2E Networks TIR Myaccount Getting Started with Myaccount SignUp Process for Indian Customers Customer validation Process for Indian Customers SignUp Process for International Customers Customer Validation Process for International Process Customer Validation Process for Contact Persons Domestic Customer Validation Process FAQs International Customer Validation Process FAQs Sign In Process Release Notes Compute Nodes Virtual Compute Nodes Monitoring 1Click Deployment Active Directory GPU GPU Cloud EQS Introduction Appliance Load Balancer Appliance Auto Scaling Introduction Concepts Define Scale Groups FaaS Function as a Service FaaS Network CDN VPC How to reserve an IP address Reserve IP Pool DNS Custom Reverse DNS Firewall Security Group Tag Security Firewall Bitninja Best Practices SSH Key Management Audit Logs Password Policy 2Factor Authentication Others License Management User Management Purchase SSL CertbotPlugin Apply or Redeem Coupon Code Account Statement Cloud Platform Support Introduction Platform Support Policy FAQ E2Es MyAccount FAQs Code of Conduct of Directors and Senior Management CSR Policy Whistle blower policy Jitsi Meet Mod Evasive Multisite using cPanel Softaculous Copying data from Linux to Windows using WinSCP Migrate MySQL Database Between DBaaS Manage MySQL Abuse Abuse Logs Abuse Attacks Spam Mails Phishing Complaint Copyright Complaint Billing Payment Payment Method EMandate Redeem Coupon Customer Details Updation Setup AutoDebit feature TDS Deduction process Declaration us 206AB Minimum Billing Provisioning and Deprovisioning Process View Invoice and Payment Prepaid Billing Set up Infra Credits Balance Alert Whatsapp notification for Payment reminder Restore Service on a Suspended Account for NonPayment Database Database Database PostgreSQL Parameter Group MongoDB mariaDB Storage Storage Block Storage Object Storage CDP Backup Scalable File System Kubernetes Kubernetes Service Kubernetes Kubernetes Marketplace Monitoring Stack Cert Manager Nginx Ingress Controller Troubleshooting Argo CD Declarative GitOps CD for Kubernetes Deploy to Kubernetes using Argo CD and GitOps Jenkins CI Tool Setup Jenkins On Kubernetes Cluster Ansible CD Tool Istio Service Connecting to Dbaas FAQS Container Registery Container Registery API Developers Guide API SDK E2E CLI Tool Introduction Terraform Terraform Getting Started e2enode Resource Node Plans e2eimage Resource AIML TIR AI Release Notes TIR AI Platform Introduction Getting Started Howto Guides Projects Notebooks Committed Notebook GPU H100 Plans Datasets Model Repository Model Endpoints Pipeline Run Scheduled Run Fine Tuning Models Model Playground Samples and Tutorials API Tokens SSH Key Container Team Features Settings Analytics Billing AIML Tutorials Finetune LLMA with Multiple GPUs Deploy Inference for LLMA 2 Deploy Inference for Codellama Deploy Inference for Stable Diffusion v21 Finetune Stable Diffusion model on TIR Deploy Inference for MPT7BCHAT Custom Containers in TIR Fine Tuning Bloom Natural Language Queries to SQL wth Code Llama E2E Networks documentation Welcome to E2E Cloud EQS documentation Introduction Introduction E2E Queue service EQS lets you send store and recieve message between parts of your application or components This is E2E EQS compliant high performant and reliable service which can be used for high volume of sendreceive between various components in your software stack How to Create EQS Click on Compute from the side navbar Under the compute section user will be able to see an EQS service and users have to click on EQS After clicking on the EQS the page will be redirected to EQS page and for creating EQS users have to click on Create Queue Service button After clicking on create EQS service the EQS creation form will be open and on that page the user can give the name of EQS and select the plan as per his requirement and can also use VPC After filling details users have to click on the Create button After clicking on the Create button the EQS service will be created and it will be shown in the list Actions You can perform the following actions available for the respective EQS Add Queue For creating Queue user have to click on Add Queue button Creds To see the credentials like access key and secret key you have to click on the creds button under Actions After clicking on the creds button a pop will appear in which the user will be able to see the credentials Delete To delete your EQS click on the Delete button under Actions After clicking on the delete button a pop will open click on the Delete button again to delete the Queue Service Add Queue under tab For adding a queue under created EQS users have to click on the Add Queue button After clicking on the Add Queue button A popup will open give a name of your queue and click on Add button After giving a Queue name click on Add button After creating a queue It will be shown in the list under created EQS Actions for queue service You can perform the following actions for the respective Queue Test Send Message User can send a message by clicking on Test send message After clicking on Test send a message a popup will open leave a message and set time delay and then click on send button Purge To purge a queue click on the purge button After clicking on the purge button a pop will appear click on the Ok button to continue Delete To delete a Queue click on the Delete button After clicking on the delete button a popup will appear click on delete button again to delete the queue Using SDK Python SDK 1 Go to your project directory 2 Make your virtual Environment and activate it 3 Install Boto3 into your virtual Environment pip install boto3 4 Make a connection with the EQS client To make the connection with the EQS client you need to pass configurations and credentials Configurations regionname yourregion endpointurl eqsendpointurl provided by e2e networks eqs service Credentials awsaccesskeyid youraccesskeyid awssecretkeyid yoursecretkeyid Make connection with EQS You can make the connection with the EQS client in three ways a You can directly pass the credentials and configurations at the time of making a session with the EQS client warning Hardcoded credentials in application is not recommended import boto3 session boto3Session eqsclientsessionclient sqs awsaccesskeyid youraccesskeyid awssecretaccesskey yoursecretkey regionname yourregion endpointurl eqsendpointurl You can also pass credentials and configurations inside boto3Session instead of sessionclient b you can put credentials and configurations in the config and credentials file and these files should be located at awsconfig awscredentials location put into awsconfig file default region REGION put into awscredentials file default awsaccesskeyid ACCESSKEYID awssecretaccesskey SECRETKEY import boto3 session boto3Session eqsclientsessionclient sqs endpointurl EQSENDPOINTURLl This will include configurations and credentials in the client by default c you can make the connection with the EQS client by passing the credentials and configuration into the environment variables file To install the python dotenv package you can use the command pip install pythondotenv using terminal Linux OS X or Unix export AWSACCESSKEYID youraccesskeyid export AWSSECRETACCESSKEY yoursecretkey export AWSDEFAULTREGION youreqsregion using terminal Windows set AWSACCESSKEYID youraccesskeyid set AWSSECRETACCESSKEY yoursecretkey set AWSDEFAULTREGION youreqsregion or edit your enviourment valiable file AWSACCESSKEYID youraccesskeyid AWSSECRETACCESSKEY yoursecretaccesskey AWSDEFAULTREGION youreqsregion import boto3 import os from dotenv import loaddotenv loaddotenv session boto3Sessionawsaccesskeyid osenvirongetAWSACCESSKEYID awssecretaccesskey osenvirongetAWSSECRETACCESSKEY regionname osenvirongetAWSDEFAULTREGION eqsclientsessionclient sqs endpointurl EQSENDPOINTURL above eqsclient is an object which has all methods related to queue operations response of sessionclient Methods available in eqsclient Change VisibilityTimeout Request Syntax response eqsclientchangemessagevisibility QueueUrlstring ReceiptHandlestring VisibilityTimeout123 Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed ReceiptHandle string RequiredThe receipt handle is associated with the message whose visibility timeout is changed This parameter is returned by the ReceiveMessage action VisibilityTimeout integer RequiredThe new value for the messages visibility timeout in seconds Response Syntax None Change VisibilityTimeout in batch Request Syntax response eqsclientchangemessagevisibilitybatch QueueUrlstring Entries Id string ReceiptHandle string VisibilityTimeout 123 Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed Entries list RequiredDictionary id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle VisibilityTimeout string The new value in seconds for the messages visibility timeout Response Syntax Successful Id string Failed Id string SenderFault True False Code string Message string Close connection Request Syntax eqsclientclose Response Syntax None Create queue Request Syntax response eqsclientcreatequeue QueueNamestring Attributesstring string tagsstring string Parameters QueueName string Required1 A queue name can have up to 80 characters 2 Valid values alphanumeric characters hyphens and underscores Attributes dictionary Attributes could be 1 DelaySeconds Timesecond to which extent delivery of messages is delayed in the queue Valid values 0 to 900 second default 0 second 2 MaximumMessageSize The size of the message after which the queue will reject the message Valid values 1024 bytes 1 KiB to 262144 bytes 256 KiB default 262144 bytes256 KiB 3 MessageRetentionPeriod Time to which extent a queue will retain a message Valid values 60 seconds 1 minute to 1209600 seconds 14 days default 345600 4 days 4 ReceiveMessageWaitTimeSeconds Time to which extent ReceiveMessage action waits before receiving a message Valid values 0 to 20 seconds default 0 second 5 VisibilityTimeout The amount of time that a message in a queue is invisible to other consumers after a consumer retrieves it Valid values 0 to 43200 seconds 12 hours default 30 second tags dictionary 1 Adding more than 50 tags to a queue isnt recommended 2 A new tag with a key identical to that of an existing tag overwrites the existing tag Response Syntax QueueUrl string Delete message Request Syntax response eqsclientdeletemessage QueueUrlstring ReceiptHandlestring Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted ReceiptHandle string RequiredThe receipt handle is associated with the message to delete Response Syntax None Delete message in batch Request Syntax response eqsclientdeletemessagebatch QueueUrlstring Entries Id string ReceiptHandle string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted Entries list RequiredDictionary id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle Response Syntax Successful Id string Failed Id string SenderFault True False Code string Message string Delete queue Request Syntax response eqsclientdeletequeue QueueUrlstring Parameters QueueUrl string Required The URL of the E2E EQS queue to delete Response Syntax None Get queue attributes Request Syntax response eqsclientgetqueueattributes QueueUrlstring AttributeNames All Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which attributes are get AttributeNames list OptionalA list of attributes for which to retrieve information All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds Response Syntax Attributes string string Get queue url Request Syntax response eqsclientgetqueueurlQueueNamestring Parameters QueueName string RequiredThe name of the queue whose URL must be fetched Response Syntax QueueUrl string List queue tags Request Syntax response eqsclientlistqueuetagsQueueUrlstring Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the tags must be listed Response Syntax Tags string string List queues Request Syntax response eqsclientlistqueues QueueNamePrefixstring MaxResults123 Parameters QueueNamePrefix string OptionalA string to use for filtering the list results Only those queues whose name begins with the specified string are returned MaxResults integer OptionalThe maximum number of results to include in the response Valid values 1 to 1000 Response Syntax QueueUrls string Purge queue delete all the messages from queue Request Syntax response eqsclientpurgequeueQueueUrlstring Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the messages must be deleted Response Syntax None Receive message Request Syntax response eqsclientreceivemessage QueueUrlstring AttributeNamesAll MessageAttributeNames string MaxNumberOfMessages2 VisibilityTimeout25 WaitTimeSeconds10 ReceiveRequestAttemptIdstring Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are received AttributeNames list A list of attributes that need to be returned along with each message All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds MessageAttributeNames list The name of the message attribute MaxNumberOfMessages integer The maximum number of messages to return Valid range 1 to 10 default 1 VisibilityTimeout integer The duration in seconds that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request WaitTimeSeconds integer The duration in seconds for which the call waits for a message to arrive in the queue before returning Response Syntax Messages MessageId string ReceiptHandle string MD5OfBody string Body string Attributes string string MD5OfMessageAttributes string MessageAttributes string StringValue string BinaryValue bbytes DataType string Send message Request Syntax response eqsclientsendmessage QueueUrlstring MessageBodystring DelaySeconds123 MessageAttributes string StringValue string BinaryValue bbytes DataType string MessageSystemAttributes string StringValue string BinaryValue bbytes DataType string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are send MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes dictionary Each message attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string name of the message attributes dictionary Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes dictionary Each message system attribute consists of a Name Type and Value The name type value and message body must not be empty or null string the name of the message attributes dictionary Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support the following data type Binary Number String Response Syntax MD5OfMessageBody string MD5OfMessageAttributes string MD5OfMessageSystemAttributes string MessageId string SequenceNumber string Send message in batch Request Syntax response eqsclientsendmessagebatch QueueUrlstring Entries Id string MessageBody string DelaySeconds 123 MessageAttributes string StringValue string BinaryValue bbytes DataType string MessageSystemAttributes string StringValue string BinaryValue bbytes DataType string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are sent Entries list RequiredA list of SendMessageBatchRequestEntry items Dict Contains the details of a single E2E EQS message along with an Id Id string REQUIREDAn identifier for a message in this batch is used to communicate the result MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes dictionary Each message attribute consists of a Name Type and Value The Name type value and message body must not be empty or null string The name of the message attributes Dictionary Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes dictionary Each message system attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string The name of the message attributes Dictionary Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support following data type Binary Number String Response Syntax Successful Id string MessageId string MD5OfMessageBody string MD5OfMessageAttributes string MD5OfMessageSystemAttributes string SequenceNumber string Failed Id string SenderFault True False Code string Message string Set queue Attributes Request Syntax response eqsclientsetqueueattributes QueueUrlstring Attributes string string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which attributes should be set Attributes DictionaryRequiredA map of attributes to set Response Syntax None Tag queue Request Syntax response eqsclienttagqueue QueueUrlstring Tagsstring string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue Tags Dict RequiredThe list of tags to be added to the specified queue Response Syntax None Untag queue Request Syntax response eqsclientuntagqueue QueueUrlstring TagKeysstring Parameters QueueUrl string RequiredThe URL of the E2E EQS queue TagKeys list RequiredThe list of tags to be removed from the specified queue Response Syntax None Reference code import boto3 ACCESSKEY youraccesskeyid SECRETKEY yoursecretkey SERVICENAME sqs REGIONNAME yourregion class EqsClient make a connection with the E2E EQS client def makeconnectionself try session boto3Session eqsclient sessionclient SERVICENAME awsaccesskeyidACCESSKEY awssecretaccesskeySECRETKEY regionnameREGIONNAME endpointurlyoureqsendpointurl except print problem in making connection with eqs client please check your credentials return eqsclient change message visibility timeout of the message def changemessagevisibilitytimeout self eqsclient queueurl receipthandle visibilitytime try response eqsclientchangemessagevisibility QueueUrlqueueurl ReceiptHandlereceipthandle VisibilityTimeoutvisibilitytime except print error in changing visibility timeout return response change message visibility timeout of the messages def changemessagevisibilitytimeoutbatch self eqsclient queueurl receipthandle1 receipthandle2 try response eqsclientchangemessagevisibilitybatch QueueUrlqueueurl Entries Id 1 ReceiptHandle receipthandle1 VisibilityTimeout 123 Id 2 ReceiptHandle receipthandle2 VisibilityTimeout 221 except print error in changing message visibility in batch return response close connections with E2E EQS endpoint URL def closeconnectionself eqsclient try return eqsclientclose except printerror in closing connection with eqs delete messages def deletemessagebatchself eqsclient queueurl rh1 rh2 try response eqsclientdeletemessagebatch QueueUrlqueueurl Entries Id 1 ReceiptHandle rh1 Id 2 ReceiptHandle rh2 except printerror in deleting messages in batch return response delete queue def deletequeueself eqsclient queueurl try response eqsclientdeletequeueQueueUrlqueueurl except printfailed to delete queue return response get queue URL def getqueueurlself eqsclient queuename try response eqsclientgetqueueurlQueueNamequeuename except print error in getting url of the queue please make sure you are using correct queue name return response list all the queues def listqueuesself eqsclient try response eqsclientlistqueues except printerror in listing queues return response list queue tags based on queue url def listqueuetagsself eqsclient queueurl try response eqsclientlistqueuetagsQueueUrlqueueurl except print failed to list queue tags make sure you are using correct queue url return response make queue def makequeueself eqsclient queuename try response eqsclientcreatequeueQueueNamequeuename except printerror in making queue return response get attributes of a queue based on queue url def getallattributesself eqsclient queueurl try response eqsclientgetqueueattributes QueueUrlqueueurl AttributeNames All except printerror in getting all attributes return response receive a message and delete it from the queue def processmessegesself eqsclient queueurl try response eqsclientreceivemessage QueueUrlqueueurl MaxNumberOfMessages1 VisibilityTimeout30 WaitTimeSeconds0 if Messages in response message responseMessages0 printReceived message s messageBody try response eqsclientdeletemessage QueueUrlqueueurl ReceiptHandlemessageReceiptHandle except printfailed to delete messagae else printNo messages in queue except printfailed to process message delete all the messages from the queue def purgequeueself eqsclient queueurl try response eqsclientpurgequeueQueueUrlqueueurl except printfailed to delete all messages from queue return response push message to a queue def pushmessagequeueself eqsclient queueurl message try response eqsclientsendmessageQueueUrlqueueurl MessageBodymessage except printfailed to push message to queue return response send messages to a queue def sendmessagebatchself eqsclient queueurl try response eqsclientsendmessagebatch QueueUrlqueueurl Entries Id 1 MessageBody message1 DelaySeconds 13 MessageAttributes name1 StringValue stringmessage BinaryValue bytesmessage DataType String MessageSystemAttributes namesystem1 StringValue stringsystemmessage BinaryValue bbytessystemmessage DataType String Id 2 MessageBody message2 DelaySeconds 12 MessageAttributes name2 StringValue stringmessage BinaryValue bbytesmessage DataType String MessageSystemAttributes namesystem2 StringValue stringsystemmessage BinaryValue bbytessystemmessage DataType String except printerror in sending messages return response add tag to a queue def tagqueueself eqsclient queueurl tags try response eqsclienttagqueueQueueUrlqueueurl Tagstags except printfailed to tag queue return response untag tags form a queue def untagqueueself eqsclient queueurl tagkey try response eqsclientuntagqueue QueueUrlqueueurl TagKeys tagkey except print falied to untag queue make sure you are using correct tagkey and queue url return response Golang SDK 1 Install go SDK To install the SDK and its dependencies run the following Go command go get u githubcomawsawssdkgo If you set the environment variable to 1 you can use the following command to get the SDK The SDKs runtime dependencies are vendored in the vendor folder go get u githubcomawsawssdkgo 2 initialize your folder using if not already initialized go mod init 3 make connection with the EQS client To make the connection with the EQS client you need to pass configurations and credentials Configurations regionname yourregion endpointurl eqsendpointurl provided by e2e networks eqs service Credentials awsaccesskeyid youraccesskeyid awssecretkeyid yoursecretkeyid Make connection with EQS There are many ways to provide credentials and configuration to connect with EQS service a providing credentials directly to client object warning Hardcoded credentials in application is not recommended create a new file named credentialsgo import fmt githubcomawsawssdkgoaws githubcomawsawssdkgoawssession githubcomawsawssdkgoservicesqs accessKey youraccesskey secretKey yoursecretkey creds credentialsNewStaticCredentialsaccessKey secretKey sess err sessionNewSessionawsConfig Region awsStringregionname Endpoint awsStringendpointurl Credentials creds if err nil fmtprintlnFailed to create sessionerr osExit1 eqsclient sqsNewsess b you can put credentials and configurations in the config and credentials file and these files should be located at awsconfig awscredentials location client will automaticlay access these credentials and configurations put in awscredentials file default region yourregion put in awsconfiguration file default awsaccesskeyid your access key id awssecretaccesskey your secret key create a new file named credentialsgo import fmt githubcomawsawssdkgoaws githubcomawsawssdkgoawssession githubcomawsawssdkgoservicesqs sess err sessionNewSessionawsConfig Endpoint awsStringENDPOINT if err nil fmtprintlnFailed to create sessionerr osExit1 eqsclient sqsNewsess c you can make the connection with the EQS client by passing the credentials and configuration into the environment variables file using terminal Linux OS X or Unix export AWSACCESSKEYID youraccesskeyid export AWSSECRETACCESSKEY yoursecretkey export AWSDEFAULTREGION youreqsregion using terminal Windows set AWSACCESSKEYID youraccesskeyid set AWSSECRETACCESSKEY yoursecretkey set AWSDEFAULTREGION youreqsregion or edit your enviourment valiable file AWSACCESSKEYID youraccesskeyid AWSSECRETACCESSKEY yoursecretaccesskey AWSDEFAULTREGION youreqsregion create a new file named credentialsgo import fmt os githubcomawsawssdkgoaws githubcomawsawssdkgoawssession githubcomawsawssdkgoservicesqs githubcomjohogodotenv err godotenvLoadenv if err nil fmtPrintlnError loading env file return accessKey osGetenvAWSACCESSKEYID secretKey osGetenvAWSSECRETACCESSKEY region osGetenvAWSREGION creds credentialsNewStaticCredentialsaccessKey secretKey config awsConfig Region awsStringregion Endpoint awsStringendpointurl Credentials creds sess sessionMustsessionNewSessionconfig eqsclient sqsNewsess Methods available for eqsclient Change Visibility Timeout Visibility Timeout refers to the amount of time that a message remains invisible to other consumers after it has been retrieved by a consumer Request Syntax get queue name receipt handle visibility timeout queue flagStringq yourqueuename The name of the queue handle flagStringh messagereceipthandle The receipt handle of the message visibility flagInt64v 50 The duration in seconds that the message is not visible to other consumers flagParse if queue handle fmtPrintlnYou must supply a queue name q QUEUE and message receipt handle h HANDLE return if visibility 0 visibility 0 if visibility 126060 visibility 12 60 60 get queue url using eqsclient result err eqsclientGetQueueUrlsqsGetQueueUrlInput QueueName queue queueURL urlResultQueueUrl calling ChangeMessageVisibility method using eqsclient err eqsclientChangeMessageVisibilitysqsChangeMessageVisibilityInput ReceiptHandle handle QueueUrl queueURL VisibilityTimeout visibility Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed ReceiptHandle string RequiredThe receipt handle is associated with the message whose visibility timeout is changed This parameter is returned by the ReceiveMessage action VisibilityTimeout integer RequiredThe new value for the messages visibility timeout in seconds Valid values 0 to 43200 seconds 12 hours default 30 second Response Syntax nil Create Queue Request Syntax get queue name queue flagStringq yourqueuename The name of the queue flagParse if queue fmtPrintlnYou must supply a queue name q QUEUE return Use CreateQueue method using eqsclient to create a queue using queue name You can also define attributes and tags for the queue result err eqsclientCreateQueuesqsCreateQueueInput QueueName queue Attributes mapstringstring DelaySeconds awsString60 MessageRetentionPeriod awsString86400 Tags mapstringstring Environment awsStringProduction Application awsStringMyApp take queue url from result fmtPrintlnURL resultQueueUrl Parameters QueueName string Required1 A queue name can have up to 80 characters 2 Valid values alphanumeric characters hyphens and underscores Attributes map Attributes could be 1 DelaySeconds Timesecond to which extent delivery of messages is delayed in the queue Valid values 0 to 900 second default 0 second 2 MaximumMessageSize The size of the message after which the queue will reject the message Valid values 1024 bytes 1 KiB to 262144 bytes 256 KiB default 262144 bytes256 KiB 3 MessageRetentionPeriod Time to which extent a queue will retain a message Valid values 60 seconds 1 minute to 1209600 seconds 14 days default 345600 4 days 4 ReceiveMessageWaitTimeSeconds Time to which extent ReceiveMessage action waits before receiving a message Valid values 0 to 20 seconds default 0 second 5 VisibilityTimeout The amount of time that a message in a queue is invisible to other consumers after a consumer retrieves it Valid values 0 to 43200 seconds 12 hours default 30 second tags map 1 Adding more than 50 tags to a queue isnt recommended 2 A new tag with a key identical to that of an existing tag overwrites the existing tag Response Syntax result QueueUrl queueurl Delete message Request Syntax get the queue name and message handle queue flagStringq The name of the queue messageHandle flagStringm The receipt handle of the message flagParse if queue messageHandle fmtPrintlnYou must supply a queue name q QUEUE and message receipt handle m MESSAGEHANDLE return pass queue url and message handle and call DeleteMessage method using client err eqsclientDeleteMessagesqsDeleteMessageInput QueueUrl queueURL ReceiptHandle messageHandle Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted ReceiptHandle string RequiredThe receipt handle is associated with the message to delete Response Syntax nil Delete message in batch Request Syntax prepare the input for DeleteMessageBatch API call input sqsDeleteMessageBatchInputQueueUrl awsStringqueueURL for i receiptHandle range messageReceiptHandles inputEntries appendinputEntries sqsDeleteMessageBatchRequestEntry Id awsStirngstrconvItoai ReceiptHandle receiptHandle call the DeleteMessageBatch method using eqsclient err eqsclientDeleteMessageBatchinput if err nil return err Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted Entries slice Requiredmap id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle Response Syntax Successful Id string Failed Id string SenderFault True False Code string Message string Delete queue Request Syntax getting the queue url queueURL yourqueueurl calling the DeleteQueue method using eqsclient err eqsclientDeleteQueuesqsDeleteQueueInput QueueUrl awsStringqueueURL if err nil handle error Parameters QueueUrl string Required The URL of the E2E EQS queue to delete Response Syntax nil Get queue attributes Request Syntax calling GetQueueAttributes method using eqsclient result err eqsclientGetQueueAttributessqsGetQueueAttributesInput QueueUrl awsStringqueueurl AttributeNames string awsStringsqsQueueAttributeNameAll Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which attributes are get AttributeNames slice OptionalA list of attributes for which to retrieve information All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds Response Syntax Attributes mapstringstring VisibilityTimeout awsString60 Get queue url Request Syntax getting input using queue name input sqsGetQueueUrlInput QueueName awsStringmyqueuename calling GetQueueUrl method using eqsclient passing input as params result err eqsclientGetQueueUrlinput if err nil fmtprintlnError in getting queue err return fmtPrintlnQueue URL resultQueueUrl Parameters QueueName string RequiredThe name of the queue whose URL must be fetched Response Syntax QueueUrl string List queue tags Request Syntax defining input using queue url input sqsListQueueTagsInput QueueUrl awsStringqueueUrl calling ListQueueTags method using eqsclient resp err eqsclientListQueueTagsinput if err nil fmtPrintlnError listing queue tags err return Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the tags must be listed Response Syntax type ListQueueTagsOutput struct Tags mapstringstring typemap requiredtrue List queues Request Syntax Set the queue name prefix and max results to retrieve queueNamePrefix myqueue maxResults int6410 Call the ListQueues API with the specified parameters resp err svcListQueuessqsListQueuesInput QueueNamePrefix queueNamePrefix MaxResults maxResults if err nil fmtPrintlnError listing queues err return Print out the URLs of the returned queues for url range respQueueUrls fmtPrintlnurl Parameters QueueNamePrefix string OptionalA string to use for filtering the list results Only those queues whose name begins with the specified string are returned MaxResults integer OptionalThe maximum number of results to include in the response Valid values 1 to 1000 Response Syntax resp type ListQueuesOutput struct QueueUrls string typelist requiredtrue Purge queue delete all the messages from queue Request Syntax calling PurgeQueue method using eqsclient err eqsclientPurgeQueuesqsPurgeQueueInput QueueUrl queueURL if err nil fmtPrintlnError purging queue err return Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the messages must be deleted Response Syntax nil Receive Message Request Syntax getting queue url visibility timeout AttributeNames MessageAttributeNames maxNumberOfMessages and waitTimeSeconds queueURL YOURQUEUEURL attributeNames string awsStringAll returns all attributes messageAttributeNames string awsStringATTRIBUTENAME maxNumberOfMessages awsInt642 visibilityTimeout awsInt6425 waitTimeSeconds awsInt6410 calling ReceiveMessage method using eqsclient result err eqsclientReceiveMessagesqsReceiveMessageInput AttributeNames attributeNames MessageAttributeNames messageAttributeNames MaxNumberOfMessages maxNumberOfMessages QueueUrl queueURL VisibilityTimeout visibilityTimeout WaitTimeSeconds waitTimeSeconds if err nil fmtPrintlnError receiving messages err return Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are received AttributeNames slice A list of attributes that need to be returned along with each message All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds MessageAttributeNames slice The name of the message attribute MaxNumberOfMessages integer The maximum number of messages to return Valid range 1 to 10 default 1 VisibilityTimeout integer The duration in seconds that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request WaitTimeSeconds integer The duration in seconds for which the call waits for a message to arrive in the queue before returning Response Syntax type ReceiveMessageOutput struct Messages Message a list of received messages type Message struct MessageId string ReceiptHandle string MD5OfBody string Body string MD5OfMessageAttributes string Attributes mapstringstring message system attributes MessageAttributes mapstringMessageAttributeValue message userdefined attributes type MessageAttributeValue struct StringValue string string value of the message attribute BinaryValue byte binary value of the message attribute DataType string data type of the message attribute Send messgage Request Syntax setting up params params sqsSendMessageInput QueueUrl awsStringQUEUEURLHERE MessageBody awsStringMESSAGEBODYHERE DelaySeconds awsInt64123 MessageAttributes mapstringsqsMessageAttributeValue ATTRIBUTENAMEHERE DataType awsStringSTRING StringValue awsStringATTRIBUTEVALUEHERE MessageSystemAttributes mapstringsqsMessageSystemAttributeValue SYSTEMATTRIBUTENAMEHERE DataType awsStringSTRING StringValue awsStringSYSTEMATTRIBUTEVALUEHERE calling SendMesssage method using eqsclient resp err eqsclientSendMessageparams if err nil handle error return Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are send MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes map Each message attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes map Each message system attribute consists of a Name Type and Value The name type value and message body must not be empty or null string the name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Type of message attributes EQS support the following data type Binary Number String Response Syntax resp sqsSendMessageOutput MD5OfMessageBody awsStringhashofmessagebody MD5OfMessageAttributes awsStringhashofmessageattribute MD5OfMessageSystemAttributes awsStringhashofmessagesystemattributes MessageId awsStringmessageid SequenceNumber awsStringsequencenumber Send message in batch Request Syntax calling SendMessageBatch method using eqsclient resp err eqsclientSendMessageBatchsqsSendMessageBatchInput QueueUrl awsStringQUEUEURL Entries sqsSendMessageBatchRequestEntry Id awsStringMESSAGEID1 MessageBody awsStringMESSAGEBODY1 DelaySeconds awsInt640 MessageAttributes mapstringsqsMessageAttributeValue ATTRIBUTENAME1 sqsMessageAttributeValue DataType awsStringSTRING StringValue awsStringATTRIBUTEVALUE1 ATTRIBUTENAME2 sqsMessageAttributeValue DataType awsStringNUMBER StringValue awsStringATTRIBUTEVALUE2 MessageSystemAttributes mapstringsqsMessageSystemAttributeValue SYSTEMATTRIBUTENAME1 sqsMessageSystemAttributeValue DataType awsStringSTRING StringValue awsStringSYSTEMATTRIBUTEVALUE1 SYSTEMATTRIBUTENAME2 sqsMessageSystemAttributeValue DataType awsStringBINARY BinaryValue byteSYSTEMATTRIBUTEVALUE2 Id awsStringMESSAGEID2 MessageBody awsStringMESSAGEBODY2 DelaySeconds awsInt640 MessageAttributes mapstringsqsMessageAttributeValue ATTRIBUTENAME3 sqsMessageAttributeValue DataType awsStringSTRING StringValue awsStringATTRIBUTEVALUE3 ATTRIBUTENAME4 sqsMessageAttributeValue DataType awsStringNUMBER StringValue awsStringATTRIBUTEVALUE4 MessageSystemAttributes mapstringsqsMessageSystemAttributeValue SYSTEMATTRIBUTENAME3 sqsMessageSystemAttributeValue DataType awsStringSTRING StringValue awsStringSYSTEMATTRIBUTEVALUE3 SYSTEMATTRIBUTENAME4 sqsMessageSystemAttributeValue DataType awsStringBINARY BinaryValue byteSYSTEMATTRIBUTEVALUE4 if err nil fmtPrintlnError err return Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are sent Entries slice RequiredA list of SendMessageBatchRequestEntry items Dict Contains the details of a single E2E EQS message along with an Id Id string REQUIREDAn identifier for a message in this batch is used to communicate the result MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes map Each message attribute consists of a Name Type and Value The Name type value and message body must not be empty or null string The name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes map Each message system attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string The name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support following data type Binary Number String Response Syntax type SendMessageBatchOutput struct Successful SendMessageBatchResultEntry locationNameListSendMessageBatchResultEntry typelist Failed BatchResultErrorEntry locationNameListBatchResultErrorEntry typelist type SendMessageBatchResultEntry struct Id string typestring MessageId string typestring MD5OfMessageAttributes string typestring MD5OfMessageBody string typestring MD5OfMessageSystemAttributes string typestring SequenceNumber string typestring type BatchResultErrorEntry struct Id string typestring SenderFault bool typeboolean Code string typestring Message string typestring Set queue Attributes Request Syntax calling SetQueueAttributes method using eqsclient err eqsclientSetQueueAttributessqsSetQueueAttributesInput QueueUrl awsStringYOURQUEUEURLHERE Attributes mapstringstring Attribute1 awsStringValue1 Attribute2 awsStringValue2 Add more attributes here as needed if err nil Handle error panicerr Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which attributes should be set Attributes mapRequiredA map of attributes to set Response Syntax nil Tag queue Request Syntax calling TagQueue method using eqsclient resp err svcTagQueuesqsTagQueueInput QueueUrl awsStringYOURQUEUEURLHERE Tags mapstringstring Tag1 awsStringValue1 Tag2 awsStringValue2 Add more tags here as needed if err nil Handle error panicerr Parameters QueueUrl string RequiredThe URL of the E2E EQS queue Tags map RequiredThe list of tags to be added to the specified queue Response Syntax nil Untag Queue Request Syntax set queue url and tags queueURL yourqueueurl tags mapstringstring Environment awsStringproduction Owner awsStringexampleexamplecom set input params params sqsTagQueueInput QueueUrl queueURL Tags tags calling UntagQueue method using eqsclient err svcTagQueueparams if err nil fmtPrintlnError setting tags err return fmtPrintlnTags successfully set Parameters QueueUrl string RequiredThe URL of the E2E EQS queue TagKeys slice RequiredThe list of tags to be removed from the specified queue Response Syntax nil Nodejs SDK 1 install sdk package in to your directory make sure that Nodejs is install in your machine npm install awssdk You can install specific package which is required like right now we are working on SQS so we can install SQS npm install awssdkclientsqs 2 Make a connection with the EQS client To make the connection with the EQS client you need to pass configurations and credentials Configurations regionname yourregion endpointurl eqsendpointurl provided by e2e networks eqs service Credentials awsaccesskeyid youraccesskeyid awssecretkeyid yoursecretkeyid Make Connection with EQS there are many ways to make connection with eqsclient a You can directly pass the credentials and configurations at the time of making a session with the EQS client warning Hardcoded credentials in application is not recommended create a new file named indexjs import SQSClient from awssdkclientsqs REGION yourregion ENDPOINT endpointprovidedbyE2E ACCESSKEYID accesskeyid SECRETACCESSKEY yoursecretaccesskey const eqsclient new SQSClient region REGION endpoint ENDPOINT credentials accessKeyId ACCESSKEYID secretAccessKey SECRETACCESSKEY b you can put credentials and configurations in the config and credentials file and these files should be located at awsconfig awscredentials location put credentials into awscredentials file default awsaccesskeyidaccesskeyid awssecretaccesskeysecretkey put config into awsconfig file default region region create a new file named indexjs import SQSClient from awssdkclientsqs ENDPOINT eqsendpointurlprovidedbye2e const eqsclient new SQSClient endpoint ENDPOINT c you can make the connection with the EQS client by passing the credentials and configuration into the environment variables file install dotenv npm install dotenv using terminal Linux OS X or Unix export AWSACCESSKEYID youraccesskeyid export AWSSECRETACCESSKEY yoursecretkey export AWSDEFAULTREGION youreqsregion export ENDPOINT endpointurl using terminal Windows set AWSACCESSKEYID youraccesskeyid set AWSSECRETACCESSKEY yoursecretkey set AWSDEFAULTREGION youreqsregion set ENDPOINT endpointurl or edit your enviourment valiable file AWSACCESSKEYID youraccesskeyid AWSSECRETACCESSKEY yoursecretaccesskey AWSDEFAULTREGION youreqsregion ENDPOINT endpointurl create a file named indexjs import SQSClient from awssdkclientsqs import dotenv from dotenv dotenvconfig const eqsclient new SQSClient region processenvAWSREGION credentials accessKeyId processenvAWSACCESSKEYID secretAccessKey processenvAWSSECRETACCESSKEY endpoint processenvENDPOINT export eqsclient Methods available for eqsclient Change VisibilityTimeout Request Syntax import SQS from awssdk const eqsclient new SQS const queueUrl YOURQUEUEURL const receiptHandle YOURRECEIPTHANDLE const visibilityTimeout 123 const params QueueUrl queueUrl ReceiptHandle receiptHandle VisibilityTimeout visibilityTimeout eqsclientchangeMessageVisibilityparams functionerr data if err consolelogError err else consolelogSuccess data Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed ReceiptHandle string RequiredThe receipt handle is associated with the message whose visibility timeout is changed This parameter is returned by the ReceiveMessage action VisibilityTimeout integer RequiredThe new value for the messages visibility timeout in seconds Response Syntax None Change VisibilityTimeout batch Request Syntax import SQS from awssdk const eqsclient new SQS const queueUrl YOURQUEUEURL const entries Id MESSAGEID1 ReceiptHandle RECEIPTHANDLE1 VisibilityTimeout 123 Id MESSAGEID2 ReceiptHandle RECEIPTHANDLE2 VisibilityTimeout 456 const params QueueUrl queueUrl Entries entries eqsclientchangeMessageVisibilityBatchparams functionerr data if err consolelogError err else consolelogSuccess dataSuccessful consolelogFailures dataFailed Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed Entries Array Requiredmap id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle VisibilityTimeout string The new value in seconds for the messages visibility timeout Response Syntax Successful Id string Failed Id string SenderFault true false Code string Message string Close connection Request Syntax import SQS from awssdk const eqsclient new SQS eqsclientclosefunctionerr if err consoleerrorError closing the connection err else consolelogConnection closed successfully Response Syntax None Create Queue Request Syntax import SQS from awssdk const eqsclient new SQS const params QueueName QUEUENAME Attributes DelaySeconds 0 MaximumMessageSize 262144 MessageRetentionPeriod 345600 ReceiveMessageWaitTimeSeconds 0 VisibilityTimeout 30 tags Tag1 Value1 Tag2 Value2 eqsclientcreateQueueparams functionerr data if err consolelogError creating queue err else consolelogQueue URL dataQueueUrl Parameters QueueName string Required1 A queue name can have up to 80 characters 2 Valid values alphanumeric characters hyphens and underscores Attributes map Attributes could be 1 DelaySeconds Timesecond to which extent delivery of messages is delayed in the queue Valid values 0 to 900 second default 0 second 2 MaximumMessageSize The size of the message after which the queue will reject the message Valid values 1024 bytes 1 KiB to 262144 bytes 256 KiB default 262144 bytes256 KiB 3 MessageRetentionPeriod Time to which extent a queue will retain a message Valid values 60 seconds 1 minute to 1209600 seconds 14 days default 345600 4 days 4 ReceiveMessageWaitTimeSeconds Time to which extent ReceiveMessage action waits before receiving a message Valid values 0 to 20 seconds default 0 second 5 VisibilityTimeout The amount of time that a message in a queue is invisible to other consumers after a consumer retrieves it Valid values 0 to 43200 seconds 12 hours default 30 second tags map 1 Adding more than 50 tags to a queue isnt recommended 2 A new tag with a key identical to that of an existing tag overwrites the existing tag Response Syntax QueueUrl string Delete message Request Syntax import SQS from awssdk const eqsclient new SQS eqsClientdeleteMessage QueueUrl string ReceiptHandle string functionerr data if err consolelogError err else consolelogMessage Deleted data Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted ReceiptHandle string RequiredThe receipt handle is associated with the message to delete Response Syntax None Delete message in batch Request Syntax import SQS from awssdk const eqsclient new SQS const params QueueUrl STRINGVALUE Entries Id STRINGVALUE ReceiptHandle STRINGVALUE sqsdeleteMessageBatchparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted Entries Array Requiredmap id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle Response Syntax Successful Id string Failed Id string SenderFault truefalse Code string Message string Delete queue Request Syntax var params QueueUrl STRINGVALUE required eqsclientdeleteQueueparams functionerr data if err consolelogerr errstack an error occurred else consolelogdata successful response Parameters QueueUrl string Required The URL of the E2E EQS queue to delete Response Syntax None Get Queue Attributes Request Syntax import SQS from awssdk const eqsclient new SQS const params QueueUrl QUEUEURL AttributeNames All eqsclientgetQueueAttributesparams err data if err consolelogError err else consolelogSuccess dataAttributes Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which attributes are get AttributeNames Array OptionalA list of attributes for which to retrieve information All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds Response Syntax Attributes string string Get queue url Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueName STRINGVALUE eqsclientgetQueueUrlparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueName string RequiredThe name of the queue whose URL must be fetched Response Syntax QueueUrl STRINGVALUE List queue tags Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueUrl STRINGVALUE eqsclientlistQueueTagsparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the tags must be listed Response Syntax Tags STRINGVALUE STRINGVALUE List queues Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueNamePrefix STRINGVALUE MaxResults 123 sqslistQueuesparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueNamePrefix string OptionalA string to use for filtering the list results Only those queues whose name begins with the specified string are returned MaxResults integer OptionalThe maximum number of results to include in the response Valid values 1 to 1000 Response Syntax QueueUrls STRINGVALUE Receive message Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueUrl STRINGVALUE AttributeNames All MessageAttributeNames STRINGVALUE MaxNumberOfMessages 2 VisibilityTimeout 25 WaitTimeSeconds 10 ReceiveRequestAttemptId STRINGVALUE eqsclientreceiveMessageparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are received AttributeNames Array A list of attributes that need to be returned along with each message All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds MessageAttributeNames Array The name of the message attribute MaxNumberOfMessages integer The maximum number of messages to return Valid range 1 to 10 default 1 VisibilityTimeout integer The duration in seconds that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request WaitTimeSeconds integer The duration in seconds for which the call waits for a message to arrive in the queue before returning Response Syntax Messages MessageId STRINGVALUE ReceiptHandle STRINGVALUE MD5OfBody STRINGVALUE Body STRINGVALUE Attributes STRINGVALUE STRINGVALUE MD5OfMessageAttributes STRINGVALUE MessageAttributes STRINGVALUE StringValue STRINGVALUE BinaryValue BYTESVALUE DataType STRINGVALUE Send messgage Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueUrl STRINGVALUE required MessageBody STRINGVALUE DelaySeconds 0 MessageAttributes STRINGVALUE DataType STRINGVALUE BinaryValue Bufferfrom STRINGVALUE StringValue STRINGVALUE MessageSystemAttributes STRINGVALUE DataType STRINGVALUE BinaryValue Bufferfrom STRINGVALUE StringValue STRINGVALUE eqsclientsendMessageparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are send MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes map Each message attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes dictionary Each message system attribute consists of a Name Type and Value The name type value and message body must not be empty or null string the name of the message attributes dictionary Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support the following data type Binary Number String Response Syntax MD5OfMessageBody string MD5OfMessageAttributes string MD5OfMessageSystemAttributes string MessageId string SequenceNumber string Send message in batch Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueUrl STRINGVALUE the URL of the E2E EQS queue Entries Id MESSAGEID an identifier for the message in the batch MessageBody MESSAGEBODY the message to send DelaySeconds 0 the number of seconds to delay the message optional MessageAttributes ATTRIBUTENAME DataType STRINGVALUE StringValue STRINGVALUE BinaryValue new BufferBYTESVALUE MessageSystemAttributes ATTRIBUTENAME DataType STRINGVALUE StringValue STRINGVALUE BinaryValue new BufferBYTESVALUE eqsclientsendMessageBatchparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are sent Entries Array RequiredA list of SendMessageBatchRequestEntry items map Contains the details of a single E2E EQS message along with an Id Id string REQUIREDAn identifier for a message in this batch is used to communicate the result MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes map Each message attribute consists of a Name Type and Value The Name type value and message body must not be empty or null string The name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes map Each message system attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string The name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support following data type Binary Number String Response Syntax Successful Id MESSAGEID MessageId MESSAGEID MD5OfMessageBody MD5HASH MD5OfMessageAttributes MD5HASH MD5OfMessageSystemAttributes MD5HASH SequenceNumber SEQUENCENUMBER Failed Set queue Attributes Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueUrl STRINGVALUE required Attributes AttributeName1 AttributeValue1 AttributeName2 AttributeValue2 eqsclientsetQueueAttributesparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which attributes should be set Attributes mapRequiredA map of attributes to set Response Syntax None Tag queue Request Syntax import SQS from awssdk const eqsclient new SQS const params QueueUrl YOURQUEUEURL Tags YOURTAGKEY YOURTAGVALUE eqsclienttagQueueparams err data if err consolelogError err else consolelogQueue tagged successfully Parameters QueueUrl string RequiredThe URL of the E2E EQS queue Tags map RequiredThe list of tags to be added to the specified queue Response Syntax None Untag queue Request Syntax import SQS from awssdk const eqsclient new SQS var params QueueUrl STRINGVALUE required TagKeys STRINGVALUE eqsClientuntagQueueparams functionerr data if err consolelogerr errstack else consolelogdata Parameters QueueUrl string RequiredThe URL of the E2E EQS queue TagKeys list RequiredThe list of tags to be removed from the specified queue Response Syntax None Java SDK 1 Install java and maven 2 go to project directory and enter the command mvn archetypegenerate DarchetypeGroupIdsoftwareamazonawssdk DarchetypeArtifactIdarchetypeappquickstart DarchetypeVersion21816 Enter the prompt values Prompt Value to enter Define value for property service s3 Define value for property httpClient apacheclient Define value for property nativeImage false Define value for property groupId orgexample Define value for property artifactId getstarted Define value for property version 10SNAPSHOT Enter Define value for property package orgexample Enter 3 your project directory would look something like this getstarted READMEmd pomxml src main java org example Appjava DependencyFactoryjava Handlerjava resources simpleloggerproperties test java org example HandlerTestjava 10 directories 7 files your appjava file package orgexample import javautilList import orgslf4jLogger import orgslf4jLoggerFactory public class App private static final Logger logger LoggerFactorygetLoggerAppclass public static void mainString args loggerinfoApplication starts Handler handler new Handler you can call function of handler through handler object loggerinfoApplication ends 4 make connection with the EQS client To make the connection with the EQS client you need to pass configurations and credentials Configurations regionname yourregion endpointurl eqsendpointurl provided by e2e networks eqs service Credentials awsaccesskeyid youraccesskeyid awssecretkeyid yoursecretkeyid Make connection with EQS There are many ways to provide credentials and configuration to connect with EQS service a providing credentials directly to client object warning Hardcoded credentials in application is not recommended Update your DependencyFactoryjava file package orgexample import javanetURI import softwareamazonawssdkauthcredentials import softwareamazonawssdkregionsRegion import softwareamazonawssdkservicessqs public class DependencyFactory private DependencyFactory public static SqsClient sqsClient AwsCredentialscredentialsAwsBasicCredentialscreateyour accesskeyid yoursecretaccesskey URI endpointUri URIcreateyour e2e eqs access url Region region Regionofelasticmq SqsClient eqsclient SqsClientbuilder credentialsProviderStaticCredentialProvidercreatecredentials endpointOverrideendpointUri regionregion build return eqsclient b you can put credentials and configurations in the config and credentials file and these files should be located at awsconfig awscredentials location client will automaticlay access these credentials and configurations put in awscredentials file default region yourregion put in awsconfiguration file default awsaccesskeyid your access key id awssecretaccesskey your secret key Update your DependencyFactoryjava file package orgexample import javanetURI import softwareamazonawssdkauthcredentials import softwareamazonawssdkregionsRegion import softwareamazonawssdkservicessqsSqsClient public class DependencyFactory private DependencyFactory public static SqsClient sqsClient AwsCredentialsProvider credentialsProvider DefaultCredentialsProviderbuilderbuild Region region Regionofnew DefaultAwsRegionProviderChaingetRegion URI endpointUri URIcreatee2eeqsaccessurl SqsClient eqsclient SqsClientbuilder credentialsProvidercredentialsProvider endpointOverrideendpointUri regionregion build return eqsclient c you can make the connection with the EQS client by passing the credentials and configuration into the environment variables file using terminal Linux OS X or Unix export AWSACCESSKEYID youraccesskeyid export AWSSECRETACCESSKEY yoursecretkey export AWSDEFAULTREGION youreqsregion using terminal Windows set AWSACCESSKEYID youraccesskeyid set AWSSECRETACCESSKEY yoursecretkey set AWSDEFAULTREGION youreqsregion or edit your enviourment valiable file AWSACCESSKEYID youraccesskeyid AWSSECRETACCESSKEY yoursecretaccesskey AWSDEFAULTREGION youreqsregion pomxml file dependency groupIdiogithubcdimasciogroupId artifactIddotenvjavaartifactId version220version dependency update your DependencyFactoryjava import iogithubcdimasciodotenvDotenv import softwareamazonawssdkauthcredentials import softwareamazonawssdkregions import softwareamazonawssdkservicessqs public class DependencyFactory public static SqsClient sqsClient Dotenv dotenv Dotenvload AwsCredentials credentials AwsBasicCredentialscreate dotenvgetAWSACCESSKEYID dotenvgetAWSSECRETACCESSKEY Region region RegionofdotenvgetAWSREGION URI endpointUri URIcreatee2eeqsaccessurl SqsClient eqsclient SqsClientbuilder credentialsProviderStaticCredentialsProvidercreatecredentials endpointOverrideendpointUri regionregion build return eqsclient Methods available in eqsclient necessary imports import comamazonawsservicessqs import comamazonawsservicessqsmodel Change VisibilityTimeout Request Syntax your java file String queueUrl queueurl ChangeMessageVisibilityRequest request ChangeMessageVisibilityRequestbuilder queueUrlqueueUrl receiptHandleexamplereceipthandle visibilityTimeout60 build eqsclientchangeMessageVisibilityrequest SystemoutprintlnMessage visibility timeout changed successfully Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed ReceiptHandle string RequiredThe receipt handle is associated with the message whose visibility timeout is changed This parameter is returned by the ReceiveMessage action VisibilityTimeout integer RequiredThe new value for the messages visibility timeout in seconds Response Syntax void Change VisibilityTimeout in batch Request Syntax edit your java file final String queueUrl yourqueueurlhere ChangeMessageVisibilityBatchRequest request new ChangeMessageVisibilityBatchRequest withQueueUrlqueueUrl withEntries new ChangeMessageVisibilityBatchRequestEntry withIdmessage1 withReceiptHandlereceipthandle1 withVisibilityTimeout3600 new ChangeMessageVisibilityBatchRequestEntry withIdmessage2 withReceiptHandlereceipthandle2 withVisibilityTimeout600 ChangeMessageVisibilityBatchResponse response eqsclientchangeMessageVisibilityBatchrequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed Entries ArrayListLinkList Requiredobjects id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle VisibilityTimeout integer The new value in seconds for the messages visibility timeout Response Syntax ChangeMessageVisibilityBatchResult Successful ChangeMessageVisibilityBatchResultEntry Id message1 SenderFault false Failed ChangeMessageVisibilityBatchResultEntry Id message2 SenderFault true Code InvalidParameterValue Message message Close connection Request Syntax edit your java file eqsclientclose Response Syntax None Create queue Request Syntax edit your java file CreateQueueRequest request new CreateQueueRequest withQueueNamestring withAttributesMapof DelaySeconds 123 MaximumMessageSize 456 MessageRetentionPeriod 789 ReceiveMessageWaitTimeSeconds 10 VisibilityTimeout 30 withTagsMapof tag1 value1 tag2 value2 CreateQueueResponse response eqsclientcreateQueuerequest String queueUrl responsegetQueueUrl Parameters QueueName string Required1 A queue name can have up to 80 characters 2 Valid values alphanumeric characters hyphens and underscores Attributes MapHashMap Attributes could be 1 DelaySeconds Timesecond to which extent delivery of messages is delayed in the queue Valid values 0 to 900 second default 0 second 2 MaximumMessageSize The size of the message after which the queue will reject the message Valid values 1024 bytes 1 KiB to 262144 bytes 256 KiB default 262144 bytes256 KiB 3 MessageRetentionPeriod Time to which extent a queue will retain a message Valid values 60 seconds 1 minute to 1209600 seconds 14 days default 345600 4 days 4 ReceiveMessageWaitTimeSeconds Time to which extent ReceiveMessage action waits before receiving a message Valid values 0 to 20 seconds default 0 second 5 VisibilityTimeout The amount of time that a message in a queue is invisible to other consumers after a consumer retrieves it Valid values 0 to 43200 seconds 12 hours default 30 second tags MapHashMap 1 Adding more than 50 tags to a queue isnt recommended 2 A new tag with a key identical to that of an existing tag overwrites the existing tag Response Syntax QueueUrl string Delete message Request Syntax edit your java file DeleteMessageRequest request new DeleteMessageRequest withQueueUrlstring withReceiptHandlestring eqsclientdeleteMessagerequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted ReceiptHandle string RequiredThe receipt handle is associated with the message to delete Response Syntax void Delete message in batch Request Syntax edit your java file DeleteMessageBatchRequest request new DeleteMessageBatchRequest withQueueUrlstring withEntries new DeleteMessageBatchRequestEntry withIdstring withReceiptHandlestring new DeleteMessageBatchRequestEntry withIdstring withReceiptHandlestring DeleteMessageBatchResult result eqsclientdeleteMessageBatchrequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted Entries ArrayListLinkList Requiredobjects id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle Response Syntax public class DeleteMessageBatchResult private ListDeleteMessageBatchResultEntry successful private ListBatchResultErrorEntry failed public class DeleteMessageBatchResultEntry private String id public class BatchResultErrorEntry private String id private boolean senderFault private String code private String message Delete queue Request Syntax String queueUrl yourqueueurlhere DeleteQueueRequest request new DeleteQueueRequestqueueUrl eqsclientdeleteQueuerequest Parameters QueueUrl string Required The URL of the E2E EQS queue to delete Response Syntax void Get queue attributes Request Syntax edit your java file GetQueueAttributesRequest request new GetQueueAttributesRequest withQueueUrlqueueurl withAttributeNamesAll GetQueueAttributesResult result sqsClientgetQueueAttributesrequest MapString String attributes resultgetAttributes Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which attributes are get AttributeNames ArrayListLinkList OptionalA list of attributes for which to retrieve information All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds Response Syntax GetQueueAttributesResultattributes VisibilityTimeout30 MaximumMessageSize262144 MessageRetentionPeriod345600 ApproximateNumberOfMessages0 ApproximateNumberOfMessagesNotVisible0 CreatedTimestampTue Apr 27 050000 UTC 2021 LastModifiedTimestampTue Apr 27 050000 UTC 2021 Get queue url Request Syntax edit your java file GetQueueUrlResult result eqsclientgetQueueUrlGetQueueUrlRequestbuilderqueueNamequeuenamebuild String queueUrl resultqueueUrl Parameters QueueName string RequiredThe name of the queue whose URL must be fetched Response Syntax QueueUrl string List queue tags Request Syntax edit your java file SqsClient sqsClient SqsClientcreate String queueUrl YOURQUEUEURL ListQueueTagsRequest Request ListQueueTagsRequestbuilder queueUrlqueueUrl build ListQueueTagsResponse Response sqsClientlistQueueTagsRequest SystemoutprintlnQueue Tags Responsetags Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the tags must be listed Response Syntax Tags TagKey1 TagValue1 TagKey2 TagValue2 List queues Request Syntax edit your java file ListQueuesRequest Request ListQueuesRequestbuilder queueNamePrefixYOURQUEUENAMEPREFIX maxResults10 build ListQueuesResponse Response sqsClientlistQueuesRequest SystemoutprintlnQueue URLs ResponsequeueUrls Parameters QueueNamePrefix string OptionalA string to use for filtering the list results Only those queues whose name begins with the specified string are returned MaxResults integer OptionalThe maximum number of results to include in the response Valid values 1 to 1000 Response Syntax QueueUrls string Purge queue delete all the messages from queue Request Syntax edit your java file String queueUrl queueurl PurgeQueueRequest purgeRequest new PurgeQueueRequestqueueUrl PurgeQueueResult purgeResult eqsclientpurgeQueuepurgeRequest SystemoutprintlnMessages purged from queue queueUrl Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the messages must be deleted Response Syntax void Receive message Request Syntax edit your java file String queueUrl yourqueueurlhere ReceiveMessageRequest Request new ReceiveMessageRequestqueueUrl withAttributeNamesAll can specify specific attributes as well withMessageAttributeNamesyourmessageattributenamehere withMaxNumberOfMessages2 withVisibilityTimeout25 withWaitTimeSeconds10 withReceiveRequestAttemptIdyourreceiverequestattemptidhere ReceiveMessageResult Result eqsclientreceiveMessageRequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are received AttributeNames ArrayListLinkList A list of attributes that need to be returned along with each message All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds MessageAttributeNames ArrayListLinkList The name of the message attribute MaxNumberOfMessages integer The maximum number of messages to return Valid range 1 to 10 default 1 VisibilityTimeout integer The duration in seconds that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request WaitTimeSeconds integer The duration in seconds for which the call waits for a message to arrive in the queue before returning Response Syntax Messages MessageId messageid ReceiptHandle receipthandle MD5OfBody messagebodyhash Body messagebody Attributes ApproximateReceiveCount 1 SentTimestamp sendtimestamp SenderId senderid ApproximateFirstReceiveTimestamp approxfirstreceivetimestamp MD5OfMessageAttributes messageattributeshash MessageAttributes MyAttribute StringValue stringvalue DataType String Send Message Request Syntax edit your java file String queueUrl QUEUEURL String messageBody MESSAGEBODY int delaySeconds 0 optional SendMessageRequest request new SendMessageRequest withQueueUrlqueueUrl withMessageBodymessageBody withDelaySecondsdelaySeconds Optional message attributes MapString MessageAttributeValue messageAttributes new HashMap messageAttributesputAttribute1 new MessageAttributeValue withDataTypeString withStringValueValue1 messageAttributesputAttribute2 new MessageAttributeValue withDataTypeNumber withStringValue123 requestsetMessageAttributesmessageAttributes Optional message system attributes MapString MessageSystemAttributeValue messageSystemAttributes new HashMap messageSystemAttributesputSystemAttribute1 new MessageSystemAttributeValue withDataTypeString withStringValueValue1 messageSystemAttributesputSystemAttribute2 new MessageSystemAttributeValue withDataTypeNumber withStringValue123 requestsetMessageSystemAttributesmessageSystemAttributes SendMessageResult result eqsclientsendMessagerequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are send MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes MapHashMap Each message attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string name of the message attributes MapHashMap Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes MapHashMap Each message system attribute consists of a Name Type and Value The name type value and message body must not be empty or null string the name of the message attributes MapHashMap Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support the following data type Binary Number String Response Syntax MessageId string MD5OfMessageBody string MD5OfMessageAttributes string MD5OfMessageSystemAttributes string SequenceNumber string string reprasent actual value return by the method Send message in batch Request Syntax edit your java file SendMessageBatchRequest Request new SendMessageBatchRequest withQueueUrlstring withEntriesnew SendMessageBatchRequestEntry withIdstring withMessageBodystring withDelaySeconds123 withMessageAttributesCollectionssingletonMap string new MessageAttributeValue withDataTypestring withStringValuestring withBinaryValueByteBufferwrapnew byte withMessageSystemAttributesCollectionssingletonMap string new MessageSystemAttributeValue withDataTypestring withStringValuestring withBinaryValueByteBufferwrapnew byte new SendMessageBatchRequestEntry withIdstring withMessageBodystring withDelaySeconds100 withMessageAttributesCollectionssingletonMap string new MessageAttributeValue withDataTypestring withStringValuestring withBinaryValueByteBufferwrapnew byte withMessageSystemAttributesCollectionssingletonMap string new MessageSystemAttributeValue withDataTypestring withStringValuestring withBinaryValueByteBufferwrapnew byte SendMessageBatchResult result eqsclientsendMessageBatchRequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are sent Entries ArrayListLinkList RequiredA list of SendMessageBatchRequestEntry items MapHashMap Contains the details of a single E2E EQS message along with an Id Id string REQUIREDAn identifier for a message in this batch is used to communicate the result MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes map Each message attribute consists of a Name Type and Value The Name type value and message body must not be empty or null string The name of the message attributes map Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes MapHashMap Each message system attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string The name of the message attributes MapHashMap Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support following data type Binary Number String Response Syntax public class SendMessageBatchResult private ListSendMessageBatchResultEntry successful private ListBatchResultErrorEntry failed public class SendMessageBatchResultEntry private String id private String messageId private String mD5OfMessageBody private String mD5OfMessageAttributes private String mD5OfMessageSystemAttributes private String sequenceNumber public class BatchResultErrorEntry private String id private Boolean senderFault private String code private String message Set queue Attributes Request Syntax edit your java file String queueUrl yourqueueurl MapString String attributes new HashMap attributesputAttributeName AttributeValue SetQueueAttributesRequest request new SetQueueAttributesRequest withQueueUrlqueueUrl withAttributesattributes SetQueueAttributesResult result eqsclientsetQueueAttributesrequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which attributes should be set AttributesRequiredA map of attributes to set Response Syntax void Tag Queue Request Syntax edit your java file String queueUrl QUEUEURL MapString String tags new HashMap tagsputtag1 value1 tagsputtag2 value2 TagQueueRequest Request new TagQueueRequest withQueueUrlqueueUrl withTagstags TageQueueResult Result eqsclienttagQueueRequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue Tags RequiredThe map of tags to be added to the specified queue Response Syntax void Untag queue Request Syntax edit your java file ListString tagKeys ArraysasListtagkey1 tagkey2 tagkey3 UntagQueueRequest Request new UntagQueueRequest withQueueUrlqueueurl withTagKeystagKeys UntagqueueResult Result sqsClientuntagQueueRequest Parameters QueueUrl string RequiredThe URL of the E2E EQS queue TagKeys ArrayListLinkList RequiredThe list of tags to be removed from the specified queue Response Syntax void Ruby SDK 1 install gem and then install aws sdk for ruby If your project uses Bundler add the following line to your Gemfile to add the AWS SDK for Ruby to your project gem awssdk If you dont use Bundler the easiest way to install the SDK is to use RubyGems To install the latest version of the SDK use the following command gem install awssdk If the previous command fails on your Unixbased system use sudo to install the SDK as shown in the following command sudo gem install awssdk 2 Make a connection with the EQS client To make the connection with the EQS client you need to pass configurations and credentials Configurations regionname yourregion endpointurl eqsendpointurl provided by e2e networks eqs service Credentials awsaccesskeyid youraccesskeyid awssecretkeyid yoursecretkeyid Make connection with EQS You can establish the connection with the EQS client in several ways a You can directly pass the credentials and configurations at the time of making a session with the EQS client warning Hardcoded credentials in application is not recommended edit your rb file require awssdksqs eqsclient AwsSQSClientnew endpoint eqsendpointurlprovidedbye2e regionyourregion credentials AwsCredentialsnewawsaccesskeyidawssecretaccesskey b you can put credentials and configurations in the config and credentials file and these files should be located at awsconfig awscredentials location put into awsconfig file default region REGION put into awscredentials file default awsaccesskeyid ACCESSKEYID awssecretaccesskey SECRETKEY edit your rb file require awssdksqs eqsclient AwsSQSClientnew endpoint eqsendpointurlprovidedbye2e c you can make the connection with the EQS client by passing the credentials and configuration into the environment variables file To install the python dotenv package you can use the command gem install dotenv using terminal Linux OS X or Unix export AWSACCESSKEYID youraccesskeyid export AWSSECRETACCESSKEY yoursecretkey export AWSDEFAULTREGION youreqsregion using terminal Windows set AWSACCESSKEYID youraccesskeyid set AWSSECRETACCESSKEY yoursecretkey set AWSDEFAULTREGION youreqsregion or edit your enviourment valiable file AWSACCESSKEYID youraccesskeyid AWSSECRETACCESSKEY yoursecretaccesskey AWSDEFAULTREGION youreqsregion edit your rb file require awssdksqs require dotenvload eqsclient AwsSQSClientnew region ENVAWSREGION accesskeyid ENVAWSACCESSKEYID secretaccesskey ENVAWSSECRETACCESSKEY endpoint ENVAWSSQSENDPOINT Methods available in eqsclient Change VisibilityTimeout Request Syntax queueurl yourqueueurlhere receipthandle yourreceipthandlehere visibilitytimeout 123 resp eqsclientchangemessagevisibility queueurl queueurl receipthandle receipthandle visibilitytimeout visibilitytimeout Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed ReceiptHandle string RequiredThe receipt handle is associated with the message whose visibility timeout is changed This parameter is returned by the ReceiveMessage action VisibilityTimeout integer RequiredThe new value for the messages visibility timeout in seconds Response Syntax nil Change VisibilityTimeout in batch Request Syntax response eqsclientchangemessagevisibilitybatch queueurl string entries id string receipthandle string visibilitytimeout 123 Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed Entries Array RequiredHash id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle VisibilityTimeout string The new value in seconds for the messages visibility timeout Response Syntax successful id string failed id string senderfault true false code string message string Create queue Request Syntax queuename myqueue attributes DelaySeconds 0 MaximumMessageSize 262144 MessageRetentionPeriod 345600 ReceiveMessageWaitTimeSeconds 0 VisibilityTimeout 30 tags tagkey tagvalue resp eqsclientcreatequeue queuename queuename attributes attributes tags tags Parameters QueueName string Required1 A queue name can have up to 80 characters 2 Valid values alphanumeric characters hyphens and underscores Attributes Hash Attributes could be 1 DelaySeconds Timesecond to which extent delivery of messages is delayed in the queue Valid values 0 to 900 second default 0 second 2 MaximumMessageSize The size of the message after which the queue will reject the message Valid values 1024 bytes 1 KiB to 262144 bytes 256 KiB default 262144 bytes256 KiB 3 MessageRetentionPeriod Time to which extent a queue will retain a message Valid values 60 seconds 1 minute to 1209600 seconds 14 days default 345600 4 days 4 ReceiveMessageWaitTimeSeconds Time to which extent ReceiveMessage action waits before receiving a message Valid values 0 to 20 seconds default 0 second 5 VisibilityTimeout The amount of time that a message in a queue is invisible to other consumers after a consumer retrieves it Valid values 0 to 43200 seconds 12 hours default 30 second tags Hash 1 Adding more than 50 tags to a queue isnt recommended 2 A new tag with a key identical to that of an existing tag overwrites the existing tag Response Syntax queueurl string Delete message Request Syntax eqsclientdeletemessage queueurl string receipthandle string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted ReceiptHandle string RequiredThe receipt handle is associated with the message to delete Response Syntax nil Delete message in batch Request Syntax response sqsclientdeletemessagebatch queueurl string required entries id string required receipthandle string required Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted Entries Array RequiredHash id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle Response Syntax successful id string failed id string senderfault false code string message string Delete queue Request Syntax resp eqsclientdeletequeue queueurl String required Parameters QueueUrl string Required The URL of the E2E EQS queue to delete Response Syntax nil Get queue Attributes Request Syntax queueurl yourqueueurl attributenames All resposne sqsgetqueueattributes queueurl queueurl attributenames attributenames Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which attributes are get AttributeNames ArrayString OptionalA list of attributes for which to retrieve information All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds Response Syntax attributes attributename1 attributevalue1 attributename2 attributevalue2 Get queue url Request Syntax queuename queuename resp sqsgetqueueurlqueuename queuename Parameters QueueName string RequiredThe name of the queue whose URL must be fetched Response Syntax queueurl string List queue tags Request Syntax queueurl queueurl resp sqslistqueuetags queueurl queueurl Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the tags must be listed Response Syntax Tags Key1 Value1 Key2 Value2 List queues Request Syntax queuenameprefix myqueue maxresults 10 resp sqslistqueues queuenameprefix queuenameprefix maxresults maxresults Parameters QueueNamePrefix string OptionalA string to use for filtering the list results Only those queues whose name begins with the specified string are returned MaxResults integer OptionalThe maximum number of results to include in the response Valid values 1 to 1000 Response Syntax queueurls string Purge queue delete all the messages from queue Request Syntax queueurl queueurl resp sqspurgequeue queueurl queueurl Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the messages must be deleted Response Syntax nil Receive message Request Syntax resp sqsclientreceivemessage queueurl string attributenames All messageattributenames string maxnumberofmessages 2 visibilitytimeout 25 waittimeseconds 10 receiverequestattemptid string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are received AttributeNames Array A list of attributes that need to be returned along with each message All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds MessageAttributeNames Array The name of the message attribute MaxNumberOfMessages integer The maximum number of messages to return Valid range 1 to 10 default 1 VisibilityTimeout integer The duration in seconds that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request WaitTimeSeconds integer The duration in seconds for which the call waits for a message to arrive in the queue before returning Response Syntax messages messageid string receipthandle string md5ofbody string body string attributes string string md5ofmessageattributes string messageattributes string stringvalue string binaryvalue bytes datatype string Send message Request Syntax resp sqssendmessage queueurl QUEUEURL messagebody MESSAGEBODY delayseconds 123 messageattributes ATTRIBUTENAME stringvalue ATTRIBUTEVALUE datatype STRING EQS supports Binary Number String data types messagesystemattributes ATTRIBUTENAME stringvalue ATTRIBUTEVALUE datatype STRING EQS supports Binary Number String data types Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are send MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes Hash Each message attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string name of the message attributes Hash Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes Hash Each message system attribute consists of a Name Type and Value The name type value and message body must not be empty or null string the name of the message attributes Hash Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support the following data type Binary Number String Response Syntax md5ofmessagebody string md5ofmessageattributes string md5ofmessagesystemattributes string messageid string sequencenumber string Send message in batch Request Syntax resp sqsclientsendmessagebatch queueurl QUEUEURL entries id MESSAGEID1 messagebody MESSAGEBODY1 delayseconds 123 messageattributes ATTRIBUTENAME1 stringvalue ATTRIBUTEVALUE1 datatype String Binary or Number messagesystemattributes SYSATTRIBUTENAME1 stringvalue SYSATTRIBUTEVALUE1 datatype String Binary or Number id MESSAGEID2 messagebody MESSAGEBODY2 delayseconds 456 messageattributes ATTRIBUTENAME3 stringvalue ATTRIBUTEVALUE3 datatype String Binary or Number messagesystemattributes SYSATTRIBUTENAME3 stringvalue SYSATTRIBUTEVALUE3 datatype String Binary or Number Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are sent Entries Array RequiredA list of SendMessageBatchRequestEntry items Hash Contains the details of a single E2E EQS message along with an Id Id string REQUIREDAn identifier for a message in this batch is used to communicate the result MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes Hash Each message attribute consists of a Name Type and Value The Name type value and message body must not be empty or null string The name of the message attributes Hash Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes Hash Each message system attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string The name of the message attributes Hash Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support following data type Binary Number String Response Syntax successful id string messageid string md5ofmessagebody string md5ofmessageattributes string md5ofmessagesystemattributes string sequencenumber string failed id string senderfault true false code string message string Set queue Attributes Request Syntax resp sqsclientsetqueueattributes queueurl string required attributes string string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which attributes should be set Attributes HashRequiredA map of attributes to set Response Syntax nil Tag queue Request Syntax sqsclienttagqueue queueurl QUEUEURL tags TAGNAME TAGVALUE Parameters QueueUrl string RequiredThe URL of the E2E EQS queue Tags Hash RequiredThe list of tags to be added to the specified queue Response Syntax nil Untag queue Request Syntax queueurl QUEUEURL tagkeys TAGKEY1 TAGKEY2 sqsuntagqueue queueurl queueurl tagkeys tagkeys Parameters QueueUrl string RequiredThe URL of the E2E EQS queue TagKeys Array RequiredThe list of tags to be removed from the specified queue Response Syntax nil PHP SDK 1 Install php of version 550 or above 2 Install composer for your system 3 go to your directory and install awssdk for php using command composer require awsawssdkphp 4 You can use the below given Composer command to install the latest version of the AWS SDK for PHP as a dependency php d memorylimit1 composerphar require awsawssdkphp 4 Make a connection with the EQS client To make the connection with the EQS client you need to pass configurations and credentials Configurations regionname yourregion endpointurl eqsendpointurl provided by e2e networks eqs service Credentials awsaccesskeyid youraccesskeyid awssecretkeyid yoursecretkeyid Make connection with EQS You can make the connection with the EQS client in three ways a You can directly pass the credentials and configurations at the time of making a session with the EQS client warning Hardcoded credentials in application is not recommended edit your php file php require vendorautoloadphp use AwsCredentialsCredentials use AwsSqsSqsClient config region your region version 20121105 version of sdk endpoint endpointurltoconnectwitheqs credentials new Credentialseqsaccesskeyid eqssecretaccesskey eqsclient new SqsClient credentials credentials region configregion version configversion endpoint configendpoint you can put credentials and configurations in the config and credentials file and these files should be located at awsconfig awscredentials location put into awsconfig file default region REGION put into awscredentials file put into awscredentials file default awsaccesskeyid ACCESSKEYID awssecretaccesskey SECRETKEY edit your php file php require vendorautoloadphp use AwsSqsSqsClient use AwsExceptionAwsException eqsclient new SqsClient version20121105 region yourregion endpoint eqsendpointurlprovidedbye2e you can make the connection with the EQS client by passing the credentials and configuration into the environment variables file Install the vlucasphpdotenv package using Composer composer require vlucasphpdotenv using terminal Linux OS X or Unix export AWSACCESSKEYID youraccesskeyid export AWSSECRETACCESSKEY yoursecretkey export AWSDEFAULTREGION youreqsregion using terminal Windows set AWSACCESSKEYID youraccesskeyid set AWSSECRETACCESSKEY yoursecretkey set AWSDEFAULTREGION youreqsregion or edit your enviourment valiable file AWSACCESSKEYID youraccesskeyid AWSSECRETACCESSKEY yoursecretaccesskey AWSDEFAULTREGION youreqsregion edit your php file php requireonce DIR vendorautoloadphp use AwsSqsSqsClient use DotenvDotenv dotenv DotenvcreateImmutableDIR dotenvload eqsclient new SqsClient version 20121105 region getenvAWSREGION credentials key getenvAWSACCESSKEYID secret getenvAWSSECRETACCESSKEY above eqsclient is an object which has all methods related to queue operations Methods available in eqsclient Change VisibilityTimeout Request Syntax result eqsclientchangeMessageVisibility QueueUrl QUEUEURL ReceiptHandle RECEIPTHANDLE VisibilityTimeout 123 Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed ReceiptHandle string RequiredThe receipt handle is associated with the message whose visibility timeout is changed This parameter is returned by the ReceiveMessage action VisibilityTimeout integer RequiredThe new value for the messages visibility timeout in seconds Response Syntax null Change VisibilityTimeout in batch result eqsclientchangeMessageVisibilityBatch QueueUrl QUEUEURL Entries Id MESSAGEID1 ReceiptHandle RECEIPTHANDLE1 VisibilityTimeout 123 Id MESSAGEID2 ReceiptHandle RECEIPTHANDLE2 VisibilityTimeout 456 Parameters QueueUrl string RequiredThe URL of the E2E EQS queue whose messages visibility is changed Entries Array RequiredAssociative Array id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle VisibilityTimeout string The new value in seconds for the messages visibility timeout Response Syntax Failed Code string Id string Message string SenderFault true false Successful Id string Create queue Request Syntax params QueueName myqueue Attributes DelaySeconds 0 MaximumMessageSize 262144 MessageRetentionPeriod 345600 ReceiveMessageWaitTimeSeconds 0 VisibilityTimeout 30 tags Department Finance Create the queue result eqsclientcreateQueueparams Parameters QueueName string Required1 A queue name can have up to 80 characters 2 Valid values alphanumeric characters hyphens and underscores Attributes associative array Attributes could be 1 DelaySeconds Timesecond to which extent delivery of messages is delayed in the queue Valid values 0 to 900 second default 0 second 2 MaximumMessageSize The size of the message after which the queue will reject the message Valid values 1024 bytes 1 KiB to 262144 bytes 256 KiB default 262144 bytes256 KiB 3 MessageRetentionPeriod Time to which extent a queue will retain a message Valid values 60 seconds 1 minute to 1209600 seconds 14 days default 345600 4 days 4 ReceiveMessageWaitTimeSeconds Time to which extent ReceiveMessage action waits before receiving a message Valid values 0 to 20 seconds default 0 second 5 VisibilityTimeout The amount of time that a message in a queue is invisible to other consumers after a consumer retrieves it Valid values 0 to 43200 seconds 12 hours default 30 second tags associative array 1 Adding more than 50 tags to a queue isnt recommended 2 A new tag with a key identical to that of an existing tag overwrites the existing tag Response Syntax QueueUrl string Delete message Request Syntax eqsclientdeleteMessage QueueUrl QUEUEURL ReceiptHandle RECEIPTHANDLE Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted ReceiptHandle string RequiredThe receipt handle is associated with the message to delete Response Syntax null Delete message in batch Request Syntax result eqsclientdeleteMessageBatch QueueUrl QUEUEURL Entries Id MESSAGEID1 ReceiptHandle RECEIPTHANDLE1 Id MESSAGEID2 ReceiptHandle RECEIPTHANDLE2 Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are deleted Entries Array Requiredassociative array id Requiredstring An identifier for this particular receipt handle used to communicate the result ReceiptHandle Required string A receipt handle Response Syntax Successful Id string Additional successful entries Failed Id string SenderFault true false Code string Message string Additional failed entries Delete queue Request Syntax result eqsclientdeleteQueuearray QueueUrl is required QueueUrl string Parameters QueueUrl string Required The URL of the E2E EQS queue to delete Response Syntax null Get queue attributes Request Syntax params QueueUrl QUEUEURL AttributeNames All Or specify specific attributes as an array Call the operation result sqsClientgetQueueAttributesparams Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which attributes are get AttributeNames Array OptionalA list of attributes for which to retrieve information All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds Response Syntax Attributes string Get queue url Request Syntax result eqsclientgetQueueUrl QueueName string REQUIRED Parameters QueueName string RequiredThe name of the queue whose URL must be fetched Response Syntax QueueUrl string List queue tags Request Syntax result eqsclientlistQueueTags QueueUrl string Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the tags must be listed Response Syntax Tags string List queues Request Syntax result eqsclientlistQueues MaxResults integer NextToken string QueueNamePrefix string Parameters QueueNamePrefix string OptionalA string to use for filtering the list results Only those queues whose name begins with the specified string are returned NextTokenstring Pagination token to request the next set of results MaxResults integer OptionalThe maximum number of results to include in the response Valid values 1 to 1000 Response Syntax NextToken string QueueUrls string Purge queue delete all the messages from queue Request Syntax result eqsclientpurgeQueue QueueUrl string REQUIRED Parameters QueueUrl string RequiredThe URL of the E2E EQS queue of which all the messages must be deleted Response Syntax null Receive message result eqsclientreceiveMessage AttributeNames string MaxNumberOfMessages integer MessageAttributeNames string QueueUrl string REQUIRED ReceiveRequestAttemptId string VisibilityTimeout integer WaitTimeSeconds integer Parameters QueueUrl string RequiredThe URL of the E2E EQS queue from which messages are received AttributeNames Array A list of attributes that need to be returned along with each message All it specifies returns all values you can also specify specific attributes in the list As VisibilityTimeout MaximumMessageSize MessageRetentionPeriod ApproximateNumberOfMessages ApproximateNumberOfMessagesNotVisible CreatedTimestamp LastModifiedTimestamp QueueArn ApproximateNumberOfMessagesDelayed DelaySeconds ReceiveMessageWaitTimeSeconds MessageAttributeNames Array The name of the message attribute MaxNumberOfMessages integer The maximum number of messages to return Valid range 1 to 10 default 1 VisibilityTimeout integer The duration in seconds that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request WaitTimeSeconds integer The duration in seconds for which the call waits for a message to arrive in the queue before returning Response Syntax Messages Attributes string Body string MD5OfBody string MD5OfMessageAttributes string MessageAttributes String BinaryListValues string resource PsrHttpMessageStreamInterface BinaryValue string resource PsrHttpMessageStreamInterface DataType string StringListValues string StringValue string MessageId string ReceiptHandle string Send message Request Syntax result eqsclientsendMessage DelaySeconds integer MessageAttributes String DataType string REQUIRED StringListValues string StringValue string MessageBody string REQUIRED MessageDeduplicationId string MessageGroupId string MessageSystemAttributes MessageSystemAttributeNameForSends DataType string REQUIRED StringListValues string StringValue string QueueUrl string REQUIRED Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are send MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes associative array Each message attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string name of the message attributes associative array Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes associative array Each message system attribute consists of a Name Type and Value The name type value and message body must not be empty or null string the name of the message attributes associative array Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support the following data type Binary Number String Response Syntax MD5OfMessageAttributes string MD5OfMessageBody string MD5OfMessageSystemAttributes string MessageId string SequenceNumber string Send message in batch Request Syntax result eqsclientsendMessageBatch Entries REQUIRED DelaySeconds integer Id string REQUIRED MessageAttributes String DataType string REQUIRED StringListValues string StringValue string MessageBody string REQUIRED MessageDeduplicationId string MessageGroupId string MessageSystemAttributes MessageSystemAttributeNameForSends DataType string REQUIRED StringListValues string StringValue string QueueUrl string REQUIRED Parameters QueueUrl string RequiredThe URL of the E2E EQS queue to which messages are sent Entries Array RequiredA list of SendMessageBatchRequestEntry items Associative array Contains the details of a single E2E EQS message along with an Id Id string REQUIREDAn identifier for a message in this batch is used to communicate the result MessageBody string RequiredThe message to send The minimum size is one character The maximum size is 256 KB DelaySeconds integer The length of time in seconds for which to delay a specific message MessageAttributes associative array Each message attribute consists of a Name Type and Value The Name type value and message body must not be empty or null string The name of the message attributes associative array Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed data encrypted data or images string Required Type of message attributes EQS support the following data type Binary Number String MessageSystemAttributes associative array Each message system attribute consists of a Name Type and Value Name type value and the message body must not be empty or null string The name of the message attributes associative array Value of message attributes 1 StringValue string Strings are Unicode with UTF8 binary encoding 2 BinaryValue bytes Binary type attributes can store any binary data such as compressed dataencrypted data or images string Type of message attributes EQS support following data type Binary Number String Response Syntax Failed Code string Id string Message string SenderFault true false Successful Id string MD5OfMessageAttributes string MD5OfMessageBody string MD5OfMessageSystemAttributes string MessageId string SequenceNumber string Tag queue Request Syntax result eqsclienttagQueue QueueUrl string REQUIRED Tags string REQUIRED Parameters QueueUrl string RequiredThe URL of the E2E EQS queue Tags associative array RequiredThe list of tags to be added to the specified queue Response Syntax null Untag queue Request Syntax result eqsclientuntagQueue QueueUrl string REQUIRED TagKeys string REQUIRED Parameters QueueUrl string RequiredThe URL of the E2E EQS queue TagKeys Array RequiredThe list of tags to be removed from the specified queue Response Syntax null On this page How to Create EQS Actions Add Queue Creds Delete Add Queue under tab Actions for queue service Test Send Message Purge Delete Using SDK Python SDK Make connection with EQS Change VisibilityTimeout Change VisibilityTimeout in batch Close connection Create queue Delete message Delete message in batch Delete queue Get queue attributes Get queue url List queue tags List queues Purge queue Receive message Send message Send message in batch Set queue Attributes Tag queue Untag queue Reference code Golang SDK Make connection with EQS Change Visibility Timeout Create Queue Delete message Delete message in batch Delete queue Get queue attributes Get queue url List queue tags List queues Purge queue Receive Message Send messgage Send message in batch Set queue Attributes Tag queue Untag Queue Nodejs SDK Make Connection with EQS Change VisibilityTimeout Change VisibilityTimeout batch Close connection Create Queue Delete message Delete message in batch Delete queue Get Queue Attributes Get queue url List queue tags List queues Receive message Send messgage Send message in batch Set queue Attributes Tag queue Untag queue Java SDK Make connection with EQS Change VisibilityTimeout Change VisibilityTimeout in batch Close connection Create queue Delete message Delete message in batch Delete queue Get queue attributes Get queue url List queue tags List queues Purge queue Receive message Send Message Send message in batch Set queue Attributes Tag Queue Untag queue Ruby SDK Make connection with EQS Change VisibilityTimeout Change VisibilityTimeout in batch Create queue Delete message Delete message in batch Delete queue Get queue Attributes Get queue url List queue tags List queues Purge queue Receive message Send message Send message in batch Set queue Attributes Tag queue Untag queue PHP SDK Make connection with EQS Change VisibilityTimeout Change VisibilityTimeout in batch Create queue Delete message Delete message in batch Delete queue Get queue attributes Get queue url List queue tags List queues Purge queue Receive message Send message Send message in batch Tag queue Untag queue Products TIR AI Platform GPU Dedicated Compute CPU Intensive Cloud High Memory Cloud Linux Smart Dedicated cPanel Linux Cloud Windows Cloud Windows SQL Cloud Plesk Windows Cloud GPU Smart Dedicated Load Balancer Company About Us Meet the Team Become a Partner E2E in Media Testimonials Investors Careers Contact Us Contact Sales Escalation Matrix Service Level Agreement Terms of Service Privacy Policy Refund Policy Policy FAQ Resources Blog Events Service Health Status Help White Papers Ecosystem Enablers Customers Certifications Countries Served FAQs E2E Networks Limited E2E Networks Limited is a NSE Listed AIFirst Hyperscale Cloud Computing Platform CIN Number L72900DL2009PLC341980 Copyright 2023 E2E Networks Limited