All Downloads are FREE. Search and download functionalities are using the official Maven repository.

facade.amazonaws.services.SQS.scala Maven / Gradle / Ivy

The newest version!
package facade.amazonaws.services

import scalajs._
import scalajs.js.annotation.JSImport
import scala.scalajs.js.|
import scala.concurrent.Future
import facade.amazonaws._

package object sqs {
  type AWSAccountIdList = js.Array[String]
  type ActionNameList = js.Array[String]
  type AttributeNameList = js.Array[QueueAttributeName]
  type BatchResultErrorEntryList = js.Array[BatchResultErrorEntry]
  type Binary = js.typedarray.TypedArray[_, _] | js.Array[Byte] | String
  type BinaryList = js.Array[Binary]
  type BoxedInteger = Int
  type ChangeMessageVisibilityBatchRequestEntryList = js.Array[ChangeMessageVisibilityBatchRequestEntry]
  type ChangeMessageVisibilityBatchResultEntryList = js.Array[ChangeMessageVisibilityBatchResultEntry]
  type DeleteMessageBatchRequestEntryList = js.Array[DeleteMessageBatchRequestEntry]
  type DeleteMessageBatchResultEntryList = js.Array[DeleteMessageBatchResultEntry]
  type MessageAttributeName = String
  type MessageAttributeNameList = js.Array[MessageAttributeName]
  type MessageBodyAttributeMap = js.Dictionary[MessageAttributeValue]
  type MessageBodySystemAttributeMap = js.Dictionary[MessageSystemAttributeValue]
  type MessageList = js.Array[Message]
  type MessageSystemAttributeMap = js.Dictionary[String]
  type QueueAttributeMap = js.Dictionary[String]
  type QueueUrlList = js.Array[String]
  type SendMessageBatchRequestEntryList = js.Array[SendMessageBatchRequestEntry]
  type SendMessageBatchResultEntryList = js.Array[SendMessageBatchResultEntry]
  type StringList = js.Array[String]
  type TagKey = String
  type TagKeyList = js.Array[TagKey]
  type TagMap = js.Dictionary[TagValue]
  type TagValue = String
  type Token = String

  implicit final class SQSOps(private val service: SQS) extends AnyVal {

    @inline def addPermissionFuture(params: AddPermissionRequest): Future[js.Object] = service.addPermission(params).promise().toFuture
    @inline def changeMessageVisibilityBatchFuture(params: ChangeMessageVisibilityBatchRequest): Future[ChangeMessageVisibilityBatchResult] = service.changeMessageVisibilityBatch(params).promise().toFuture
    @inline def changeMessageVisibilityFuture(params: ChangeMessageVisibilityRequest): Future[js.Object] = service.changeMessageVisibility(params).promise().toFuture
    @inline def createQueueFuture(params: CreateQueueRequest): Future[CreateQueueResult] = service.createQueue(params).promise().toFuture
    @inline def deleteMessageBatchFuture(params: DeleteMessageBatchRequest): Future[DeleteMessageBatchResult] = service.deleteMessageBatch(params).promise().toFuture
    @inline def deleteMessageFuture(params: DeleteMessageRequest): Future[js.Object] = service.deleteMessage(params).promise().toFuture
    @inline def deleteQueueFuture(params: DeleteQueueRequest): Future[js.Object] = service.deleteQueue(params).promise().toFuture
    @inline def getQueueAttributesFuture(params: GetQueueAttributesRequest): Future[GetQueueAttributesResult] = service.getQueueAttributes(params).promise().toFuture
    @inline def getQueueUrlFuture(params: GetQueueUrlRequest): Future[GetQueueUrlResult] = service.getQueueUrl(params).promise().toFuture
    @inline def listDeadLetterSourceQueuesFuture(params: ListDeadLetterSourceQueuesRequest): Future[ListDeadLetterSourceQueuesResult] = service.listDeadLetterSourceQueues(params).promise().toFuture
    @inline def listQueueTagsFuture(params: ListQueueTagsRequest): Future[ListQueueTagsResult] = service.listQueueTags(params).promise().toFuture
    @inline def listQueuesFuture(params: ListQueuesRequest): Future[ListQueuesResult] = service.listQueues(params).promise().toFuture
    @inline def purgeQueueFuture(params: PurgeQueueRequest): Future[js.Object] = service.purgeQueue(params).promise().toFuture
    @inline def receiveMessageFuture(params: ReceiveMessageRequest): Future[ReceiveMessageResult] = service.receiveMessage(params).promise().toFuture
    @inline def removePermissionFuture(params: RemovePermissionRequest): Future[js.Object] = service.removePermission(params).promise().toFuture
    @inline def sendMessageBatchFuture(params: SendMessageBatchRequest): Future[SendMessageBatchResult] = service.sendMessageBatch(params).promise().toFuture
    @inline def sendMessageFuture(params: SendMessageRequest): Future[SendMessageResult] = service.sendMessage(params).promise().toFuture
    @inline def setQueueAttributesFuture(params: SetQueueAttributesRequest): Future[js.Object] = service.setQueueAttributes(params).promise().toFuture
    @inline def tagQueueFuture(params: TagQueueRequest): Future[js.Object] = service.tagQueue(params).promise().toFuture
    @inline def untagQueueFuture(params: UntagQueueRequest): Future[js.Object] = service.untagQueue(params).promise().toFuture

  }
}

package sqs {
  @js.native
  @JSImport("aws-sdk/clients/sqs", JSImport.Namespace, "AWS.SQS")
  class SQS() extends js.Object {
    def this(config: AWSConfig) = this()

    def addPermission(params: AddPermissionRequest): Request[js.Object] = js.native
    def changeMessageVisibility(params: ChangeMessageVisibilityRequest): Request[js.Object] = js.native
    def changeMessageVisibilityBatch(params: ChangeMessageVisibilityBatchRequest): Request[ChangeMessageVisibilityBatchResult] = js.native
    def createQueue(params: CreateQueueRequest): Request[CreateQueueResult] = js.native
    def deleteMessage(params: DeleteMessageRequest): Request[js.Object] = js.native
    def deleteMessageBatch(params: DeleteMessageBatchRequest): Request[DeleteMessageBatchResult] = js.native
    def deleteQueue(params: DeleteQueueRequest): Request[js.Object] = js.native
    def getQueueAttributes(params: GetQueueAttributesRequest): Request[GetQueueAttributesResult] = js.native
    def getQueueUrl(params: GetQueueUrlRequest): Request[GetQueueUrlResult] = js.native
    def listDeadLetterSourceQueues(params: ListDeadLetterSourceQueuesRequest): Request[ListDeadLetterSourceQueuesResult] = js.native
    def listQueueTags(params: ListQueueTagsRequest): Request[ListQueueTagsResult] = js.native
    def listQueues(params: ListQueuesRequest): Request[ListQueuesResult] = js.native
    def purgeQueue(params: PurgeQueueRequest): Request[js.Object] = js.native
    def receiveMessage(params: ReceiveMessageRequest): Request[ReceiveMessageResult] = js.native
    def removePermission(params: RemovePermissionRequest): Request[js.Object] = js.native
    def sendMessage(params: SendMessageRequest): Request[SendMessageResult] = js.native
    def sendMessageBatch(params: SendMessageBatchRequest): Request[SendMessageBatchResult] = js.native
    def setQueueAttributes(params: SetQueueAttributesRequest): Request[js.Object] = js.native
    def tagQueue(params: TagQueueRequest): Request[js.Object] = js.native
    def untagQueue(params: UntagQueueRequest): Request[js.Object] = js.native
  }

  /** 

*/ @js.native trait AddPermissionRequest extends js.Object { var AWSAccountIds: AWSAccountIdList var Actions: ActionNameList var Label: String var QueueUrl: String } object AddPermissionRequest { @inline def apply( AWSAccountIds: AWSAccountIdList, Actions: ActionNameList, Label: String, QueueUrl: String ): AddPermissionRequest = { val __obj = js.Dynamic.literal( "AWSAccountIds" -> AWSAccountIds.asInstanceOf[js.Any], "Actions" -> Actions.asInstanceOf[js.Any], "Label" -> Label.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[AddPermissionRequest] } } /** Gives a detailed description of the result of an action on each entry in the request. */ @js.native trait BatchResultErrorEntry extends js.Object { var Code: String var Id: String var SenderFault: Boolean var Message: js.UndefOr[String] } object BatchResultErrorEntry { @inline def apply( Code: String, Id: String, SenderFault: Boolean, Message: js.UndefOr[String] = js.undefined ): BatchResultErrorEntry = { val __obj = js.Dynamic.literal( "Code" -> Code.asInstanceOf[js.Any], "Id" -> Id.asInstanceOf[js.Any], "SenderFault" -> SenderFault.asInstanceOf[js.Any] ) Message.foreach(__v => __obj.updateDynamic("Message")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[BatchResultErrorEntry] } } /**

*/ @js.native trait ChangeMessageVisibilityBatchRequest extends js.Object { var Entries: ChangeMessageVisibilityBatchRequestEntryList var QueueUrl: String } object ChangeMessageVisibilityBatchRequest { @inline def apply( Entries: ChangeMessageVisibilityBatchRequestEntryList, QueueUrl: String ): ChangeMessageVisibilityBatchRequest = { val __obj = js.Dynamic.literal( "Entries" -> Entries.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[ChangeMessageVisibilityBatchRequest] } } /** Encloses a receipt handle and an entry id for each message in ChangeMessageVisibilityBatch. * All of the following list parameters must be prefixed with ChangeMessageVisibilityBatchRequestEntry.n, where n is an integer value starting with 1. For example, a parameter list for this action might look like this: * &ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2 * &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle * &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 */ @js.native trait ChangeMessageVisibilityBatchRequestEntry extends js.Object { var Id: String var ReceiptHandle: String var VisibilityTimeout: js.UndefOr[Int] } object ChangeMessageVisibilityBatchRequestEntry { @inline def apply( Id: String, ReceiptHandle: String, VisibilityTimeout: js.UndefOr[Int] = js.undefined ): ChangeMessageVisibilityBatchRequestEntry = { val __obj = js.Dynamic.literal( "Id" -> Id.asInstanceOf[js.Any], "ReceiptHandle" -> ReceiptHandle.asInstanceOf[js.Any] ) VisibilityTimeout.foreach(__v => __obj.updateDynamic("VisibilityTimeout")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ChangeMessageVisibilityBatchRequestEntry] } } /** For each message in the batch, the response contains a ChangeMessageVisibilityBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails. */ @js.native trait ChangeMessageVisibilityBatchResult extends js.Object { var Failed: BatchResultErrorEntryList var Successful: ChangeMessageVisibilityBatchResultEntryList } object ChangeMessageVisibilityBatchResult { @inline def apply( Failed: BatchResultErrorEntryList, Successful: ChangeMessageVisibilityBatchResultEntryList ): ChangeMessageVisibilityBatchResult = { val __obj = js.Dynamic.literal( "Failed" -> Failed.asInstanceOf[js.Any], "Successful" -> Successful.asInstanceOf[js.Any] ) __obj.asInstanceOf[ChangeMessageVisibilityBatchResult] } } /** Encloses the Id of an entry in ChangeMessageVisibilityBatch. */ @js.native trait ChangeMessageVisibilityBatchResultEntry extends js.Object { var Id: String } object ChangeMessageVisibilityBatchResultEntry { @inline def apply( Id: String ): ChangeMessageVisibilityBatchResultEntry = { val __obj = js.Dynamic.literal( "Id" -> Id.asInstanceOf[js.Any] ) __obj.asInstanceOf[ChangeMessageVisibilityBatchResultEntry] } } @js.native trait ChangeMessageVisibilityRequest extends js.Object { var QueueUrl: String var ReceiptHandle: String var VisibilityTimeout: Int } object ChangeMessageVisibilityRequest { @inline def apply( QueueUrl: String, ReceiptHandle: String, VisibilityTimeout: Int ): ChangeMessageVisibilityRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any], "ReceiptHandle" -> ReceiptHandle.asInstanceOf[js.Any], "VisibilityTimeout" -> VisibilityTimeout.asInstanceOf[js.Any] ) __obj.asInstanceOf[ChangeMessageVisibilityRequest] } } /**

*/ @js.native trait CreateQueueRequest extends js.Object { var QueueName: String var Attributes: js.UndefOr[QueueAttributeMap] var tags: js.UndefOr[TagMap] } object CreateQueueRequest { @inline def apply( QueueName: String, Attributes: js.UndefOr[QueueAttributeMap] = js.undefined, tags: js.UndefOr[TagMap] = js.undefined ): CreateQueueRequest = { val __obj = js.Dynamic.literal( "QueueName" -> QueueName.asInstanceOf[js.Any] ) Attributes.foreach(__v => __obj.updateDynamic("Attributes")(__v.asInstanceOf[js.Any])) tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[CreateQueueRequest] } } /** Returns the QueueUrl attribute of the created queue. */ @js.native trait CreateQueueResult extends js.Object { var QueueUrl: js.UndefOr[String] } object CreateQueueResult { @inline def apply( QueueUrl: js.UndefOr[String] = js.undefined ): CreateQueueResult = { val __obj = js.Dynamic.literal() QueueUrl.foreach(__v => __obj.updateDynamic("QueueUrl")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[CreateQueueResult] } } /**

*/ @js.native trait DeleteMessageBatchRequest extends js.Object { var Entries: DeleteMessageBatchRequestEntryList var QueueUrl: String } object DeleteMessageBatchRequest { @inline def apply( Entries: DeleteMessageBatchRequestEntryList, QueueUrl: String ): DeleteMessageBatchRequest = { val __obj = js.Dynamic.literal( "Entries" -> Entries.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[DeleteMessageBatchRequest] } } /** Encloses a receipt handle and an identifier for it. */ @js.native trait DeleteMessageBatchRequestEntry extends js.Object { var Id: String var ReceiptHandle: String } object DeleteMessageBatchRequestEntry { @inline def apply( Id: String, ReceiptHandle: String ): DeleteMessageBatchRequestEntry = { val __obj = js.Dynamic.literal( "Id" -> Id.asInstanceOf[js.Any], "ReceiptHandle" -> ReceiptHandle.asInstanceOf[js.Any] ) __obj.asInstanceOf[DeleteMessageBatchRequestEntry] } } /** For each message in the batch, the response contains a DeleteMessageBatchResultEntry tag if the message is deleted or a BatchResultErrorEntry tag if the message can't be deleted. */ @js.native trait DeleteMessageBatchResult extends js.Object { var Failed: BatchResultErrorEntryList var Successful: DeleteMessageBatchResultEntryList } object DeleteMessageBatchResult { @inline def apply( Failed: BatchResultErrorEntryList, Successful: DeleteMessageBatchResultEntryList ): DeleteMessageBatchResult = { val __obj = js.Dynamic.literal( "Failed" -> Failed.asInstanceOf[js.Any], "Successful" -> Successful.asInstanceOf[js.Any] ) __obj.asInstanceOf[DeleteMessageBatchResult] } } /** Encloses the Id of an entry in DeleteMessageBatch. */ @js.native trait DeleteMessageBatchResultEntry extends js.Object { var Id: String } object DeleteMessageBatchResultEntry { @inline def apply( Id: String ): DeleteMessageBatchResultEntry = { val __obj = js.Dynamic.literal( "Id" -> Id.asInstanceOf[js.Any] ) __obj.asInstanceOf[DeleteMessageBatchResultEntry] } } /**

*/ @js.native trait DeleteMessageRequest extends js.Object { var QueueUrl: String var ReceiptHandle: String } object DeleteMessageRequest { @inline def apply( QueueUrl: String, ReceiptHandle: String ): DeleteMessageRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any], "ReceiptHandle" -> ReceiptHandle.asInstanceOf[js.Any] ) __obj.asInstanceOf[DeleteMessageRequest] } } /**

*/ @js.native trait DeleteQueueRequest extends js.Object { var QueueUrl: String } object DeleteQueueRequest { @inline def apply( QueueUrl: String ): DeleteQueueRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[DeleteQueueRequest] } } /**

*/ @js.native trait GetQueueAttributesRequest extends js.Object { var QueueUrl: String var AttributeNames: js.UndefOr[AttributeNameList] } object GetQueueAttributesRequest { @inline def apply( QueueUrl: String, AttributeNames: js.UndefOr[AttributeNameList] = js.undefined ): GetQueueAttributesRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) AttributeNames.foreach(__v => __obj.updateDynamic("AttributeNames")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[GetQueueAttributesRequest] } } /** A list of returned queue attributes. */ @js.native trait GetQueueAttributesResult extends js.Object { var Attributes: js.UndefOr[QueueAttributeMap] } object GetQueueAttributesResult { @inline def apply( Attributes: js.UndefOr[QueueAttributeMap] = js.undefined ): GetQueueAttributesResult = { val __obj = js.Dynamic.literal() Attributes.foreach(__v => __obj.updateDynamic("Attributes")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[GetQueueAttributesResult] } } /**

*/ @js.native trait GetQueueUrlRequest extends js.Object { var QueueName: String var QueueOwnerAWSAccountId: js.UndefOr[String] } object GetQueueUrlRequest { @inline def apply( QueueName: String, QueueOwnerAWSAccountId: js.UndefOr[String] = js.undefined ): GetQueueUrlRequest = { val __obj = js.Dynamic.literal( "QueueName" -> QueueName.asInstanceOf[js.Any] ) QueueOwnerAWSAccountId.foreach(__v => __obj.updateDynamic("QueueOwnerAWSAccountId")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[GetQueueUrlRequest] } } /** For more information, see [[https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html|Interpreting Responses]] in the Amazon Simple Queue Service Developer Guide. */ @js.native trait GetQueueUrlResult extends js.Object { var QueueUrl: js.UndefOr[String] } object GetQueueUrlResult { @inline def apply( QueueUrl: js.UndefOr[String] = js.undefined ): GetQueueUrlResult = { val __obj = js.Dynamic.literal() QueueUrl.foreach(__v => __obj.updateDynamic("QueueUrl")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[GetQueueUrlResult] } } /**

*/ @js.native trait ListDeadLetterSourceQueuesRequest extends js.Object { var QueueUrl: String var MaxResults: js.UndefOr[BoxedInteger] var NextToken: js.UndefOr[Token] } object ListDeadLetterSourceQueuesRequest { @inline def apply( QueueUrl: String, MaxResults: js.UndefOr[BoxedInteger] = js.undefined, NextToken: js.UndefOr[Token] = js.undefined ): ListDeadLetterSourceQueuesRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) MaxResults.foreach(__v => __obj.updateDynamic("MaxResults")(__v.asInstanceOf[js.Any])) NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ListDeadLetterSourceQueuesRequest] } } /** A list of your dead letter source queues. */ @js.native trait ListDeadLetterSourceQueuesResult extends js.Object { var queueUrls: QueueUrlList var NextToken: js.UndefOr[Token] } object ListDeadLetterSourceQueuesResult { @inline def apply( queueUrls: QueueUrlList, NextToken: js.UndefOr[Token] = js.undefined ): ListDeadLetterSourceQueuesResult = { val __obj = js.Dynamic.literal( "queueUrls" -> queueUrls.asInstanceOf[js.Any] ) NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ListDeadLetterSourceQueuesResult] } } @js.native trait ListQueueTagsRequest extends js.Object { var QueueUrl: String } object ListQueueTagsRequest { @inline def apply( QueueUrl: String ): ListQueueTagsRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[ListQueueTagsRequest] } } @js.native trait ListQueueTagsResult extends js.Object { var Tags: js.UndefOr[TagMap] } object ListQueueTagsResult { @inline def apply( Tags: js.UndefOr[TagMap] = js.undefined ): ListQueueTagsResult = { val __obj = js.Dynamic.literal() Tags.foreach(__v => __obj.updateDynamic("Tags")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ListQueueTagsResult] } } /**

*/ @js.native trait ListQueuesRequest extends js.Object { var MaxResults: js.UndefOr[BoxedInteger] var NextToken: js.UndefOr[Token] var QueueNamePrefix: js.UndefOr[String] } object ListQueuesRequest { @inline def apply( MaxResults: js.UndefOr[BoxedInteger] = js.undefined, NextToken: js.UndefOr[Token] = js.undefined, QueueNamePrefix: js.UndefOr[String] = js.undefined ): ListQueuesRequest = { val __obj = js.Dynamic.literal() MaxResults.foreach(__v => __obj.updateDynamic("MaxResults")(__v.asInstanceOf[js.Any])) NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) QueueNamePrefix.foreach(__v => __obj.updateDynamic("QueueNamePrefix")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ListQueuesRequest] } } /** A list of your queues. */ @js.native trait ListQueuesResult extends js.Object { var NextToken: js.UndefOr[Token] var QueueUrls: js.UndefOr[QueueUrlList] } object ListQueuesResult { @inline def apply( NextToken: js.UndefOr[Token] = js.undefined, QueueUrls: js.UndefOr[QueueUrlList] = js.undefined ): ListQueuesResult = { val __obj = js.Dynamic.literal() NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) QueueUrls.foreach(__v => __obj.updateDynamic("QueueUrls")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ListQueuesResult] } } /** An Amazon SQS message. */ @js.native trait Message extends js.Object { var Attributes: js.UndefOr[MessageSystemAttributeMap] var Body: js.UndefOr[String] var MD5OfBody: js.UndefOr[String] var MD5OfMessageAttributes: js.UndefOr[String] var MessageAttributes: js.UndefOr[MessageBodyAttributeMap] var MessageId: js.UndefOr[String] var ReceiptHandle: js.UndefOr[String] } object Message { @inline def apply( Attributes: js.UndefOr[MessageSystemAttributeMap] = js.undefined, Body: js.UndefOr[String] = js.undefined, MD5OfBody: js.UndefOr[String] = js.undefined, MD5OfMessageAttributes: js.UndefOr[String] = js.undefined, MessageAttributes: js.UndefOr[MessageBodyAttributeMap] = js.undefined, MessageId: js.UndefOr[String] = js.undefined, ReceiptHandle: js.UndefOr[String] = js.undefined ): Message = { val __obj = js.Dynamic.literal() Attributes.foreach(__v => __obj.updateDynamic("Attributes")(__v.asInstanceOf[js.Any])) Body.foreach(__v => __obj.updateDynamic("Body")(__v.asInstanceOf[js.Any])) MD5OfBody.foreach(__v => __obj.updateDynamic("MD5OfBody")(__v.asInstanceOf[js.Any])) MD5OfMessageAttributes.foreach(__v => __obj.updateDynamic("MD5OfMessageAttributes")(__v.asInstanceOf[js.Any])) MessageAttributes.foreach(__v => __obj.updateDynamic("MessageAttributes")(__v.asInstanceOf[js.Any])) MessageId.foreach(__v => __obj.updateDynamic("MessageId")(__v.asInstanceOf[js.Any])) ReceiptHandle.foreach(__v => __obj.updateDynamic("ReceiptHandle")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[Message] } } /** The user-specified message attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see SendMessage. * Name, type, value and the message body must not be empty or null. All parts of the message attribute, including Name, Type, and Value, are part of the message size restriction (256 KB or 262,144 bytes). */ @js.native trait MessageAttributeValue extends js.Object { var DataType: String var BinaryListValues: js.UndefOr[BinaryList] var BinaryValue: js.UndefOr[Binary] var StringListValues: js.UndefOr[StringList] var StringValue: js.UndefOr[String] } object MessageAttributeValue { @inline def apply( DataType: String, BinaryListValues: js.UndefOr[BinaryList] = js.undefined, BinaryValue: js.UndefOr[Binary] = js.undefined, StringListValues: js.UndefOr[StringList] = js.undefined, StringValue: js.UndefOr[String] = js.undefined ): MessageAttributeValue = { val __obj = js.Dynamic.literal( "DataType" -> DataType.asInstanceOf[js.Any] ) BinaryListValues.foreach(__v => __obj.updateDynamic("BinaryListValues")(__v.asInstanceOf[js.Any])) BinaryValue.foreach(__v => __obj.updateDynamic("BinaryValue")(__v.asInstanceOf[js.Any])) StringListValues.foreach(__v => __obj.updateDynamic("StringListValues")(__v.asInstanceOf[js.Any])) StringValue.foreach(__v => __obj.updateDynamic("StringValue")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[MessageAttributeValue] } } @js.native sealed trait MessageSystemAttributeName extends js.Any object MessageSystemAttributeName { val SenderId = "SenderId".asInstanceOf[MessageSystemAttributeName] val SentTimestamp = "SentTimestamp".asInstanceOf[MessageSystemAttributeName] val ApproximateReceiveCount = "ApproximateReceiveCount".asInstanceOf[MessageSystemAttributeName] val ApproximateFirstReceiveTimestamp = "ApproximateFirstReceiveTimestamp".asInstanceOf[MessageSystemAttributeName] val SequenceNumber = "SequenceNumber".asInstanceOf[MessageSystemAttributeName] val MessageDeduplicationId = "MessageDeduplicationId".asInstanceOf[MessageSystemAttributeName] val MessageGroupId = "MessageGroupId".asInstanceOf[MessageSystemAttributeName] val AWSTraceHeader = "AWSTraceHeader".asInstanceOf[MessageSystemAttributeName] @inline def values = js.Array(SenderId, SentTimestamp, ApproximateReceiveCount, ApproximateFirstReceiveTimestamp, SequenceNumber, MessageDeduplicationId, MessageGroupId, AWSTraceHeader) } @js.native sealed trait MessageSystemAttributeNameForSends extends js.Any object MessageSystemAttributeNameForSends { val AWSTraceHeader = "AWSTraceHeader".asInstanceOf[MessageSystemAttributeNameForSends] @inline def values = js.Array(AWSTraceHeader) } /** The user-specified message system attribute value. For string data types, the Value attribute has the same restrictions on the content as the message body. For more information, see SendMessage. * Name, type, value and the message body must not be empty or null. */ @js.native trait MessageSystemAttributeValue extends js.Object { var DataType: String var BinaryListValues: js.UndefOr[BinaryList] var BinaryValue: js.UndefOr[Binary] var StringListValues: js.UndefOr[StringList] var StringValue: js.UndefOr[String] } object MessageSystemAttributeValue { @inline def apply( DataType: String, BinaryListValues: js.UndefOr[BinaryList] = js.undefined, BinaryValue: js.UndefOr[Binary] = js.undefined, StringListValues: js.UndefOr[StringList] = js.undefined, StringValue: js.UndefOr[String] = js.undefined ): MessageSystemAttributeValue = { val __obj = js.Dynamic.literal( "DataType" -> DataType.asInstanceOf[js.Any] ) BinaryListValues.foreach(__v => __obj.updateDynamic("BinaryListValues")(__v.asInstanceOf[js.Any])) BinaryValue.foreach(__v => __obj.updateDynamic("BinaryValue")(__v.asInstanceOf[js.Any])) StringListValues.foreach(__v => __obj.updateDynamic("StringListValues")(__v.asInstanceOf[js.Any])) StringValue.foreach(__v => __obj.updateDynamic("StringValue")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[MessageSystemAttributeValue] } } /**

*/ @js.native trait PurgeQueueRequest extends js.Object { var QueueUrl: String } object PurgeQueueRequest { @inline def apply( QueueUrl: String ): PurgeQueueRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[PurgeQueueRequest] } } @js.native sealed trait QueueAttributeName extends js.Any object QueueAttributeName { val All = "All".asInstanceOf[QueueAttributeName] val Policy = "Policy".asInstanceOf[QueueAttributeName] val VisibilityTimeout = "VisibilityTimeout".asInstanceOf[QueueAttributeName] val MaximumMessageSize = "MaximumMessageSize".asInstanceOf[QueueAttributeName] val MessageRetentionPeriod = "MessageRetentionPeriod".asInstanceOf[QueueAttributeName] val ApproximateNumberOfMessages = "ApproximateNumberOfMessages".asInstanceOf[QueueAttributeName] val ApproximateNumberOfMessagesNotVisible = "ApproximateNumberOfMessagesNotVisible".asInstanceOf[QueueAttributeName] val CreatedTimestamp = "CreatedTimestamp".asInstanceOf[QueueAttributeName] val LastModifiedTimestamp = "LastModifiedTimestamp".asInstanceOf[QueueAttributeName] val QueueArn = "QueueArn".asInstanceOf[QueueAttributeName] val ApproximateNumberOfMessagesDelayed = "ApproximateNumberOfMessagesDelayed".asInstanceOf[QueueAttributeName] val DelaySeconds = "DelaySeconds".asInstanceOf[QueueAttributeName] val ReceiveMessageWaitTimeSeconds = "ReceiveMessageWaitTimeSeconds".asInstanceOf[QueueAttributeName] val RedrivePolicy = "RedrivePolicy".asInstanceOf[QueueAttributeName] val FifoQueue = "FifoQueue".asInstanceOf[QueueAttributeName] val ContentBasedDeduplication = "ContentBasedDeduplication".asInstanceOf[QueueAttributeName] val KmsMasterKeyId = "KmsMasterKeyId".asInstanceOf[QueueAttributeName] val KmsDataKeyReusePeriodSeconds = "KmsDataKeyReusePeriodSeconds".asInstanceOf[QueueAttributeName] val DeduplicationScope = "DeduplicationScope".asInstanceOf[QueueAttributeName] val FifoThroughputLimit = "FifoThroughputLimit".asInstanceOf[QueueAttributeName] @inline def values = js.Array( All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit ) } /**

*/ @js.native trait ReceiveMessageRequest extends js.Object { var QueueUrl: String var AttributeNames: js.UndefOr[AttributeNameList] var MaxNumberOfMessages: js.UndefOr[Int] var MessageAttributeNames: js.UndefOr[MessageAttributeNameList] var ReceiveRequestAttemptId: js.UndefOr[String] var VisibilityTimeout: js.UndefOr[Int] var WaitTimeSeconds: js.UndefOr[Int] } object ReceiveMessageRequest { @inline def apply( QueueUrl: String, AttributeNames: js.UndefOr[AttributeNameList] = js.undefined, MaxNumberOfMessages: js.UndefOr[Int] = js.undefined, MessageAttributeNames: js.UndefOr[MessageAttributeNameList] = js.undefined, ReceiveRequestAttemptId: js.UndefOr[String] = js.undefined, VisibilityTimeout: js.UndefOr[Int] = js.undefined, WaitTimeSeconds: js.UndefOr[Int] = js.undefined ): ReceiveMessageRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) AttributeNames.foreach(__v => __obj.updateDynamic("AttributeNames")(__v.asInstanceOf[js.Any])) MaxNumberOfMessages.foreach(__v => __obj.updateDynamic("MaxNumberOfMessages")(__v.asInstanceOf[js.Any])) MessageAttributeNames.foreach(__v => __obj.updateDynamic("MessageAttributeNames")(__v.asInstanceOf[js.Any])) ReceiveRequestAttemptId.foreach(__v => __obj.updateDynamic("ReceiveRequestAttemptId")(__v.asInstanceOf[js.Any])) VisibilityTimeout.foreach(__v => __obj.updateDynamic("VisibilityTimeout")(__v.asInstanceOf[js.Any])) WaitTimeSeconds.foreach(__v => __obj.updateDynamic("WaitTimeSeconds")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ReceiveMessageRequest] } } /** A list of received messages. */ @js.native trait ReceiveMessageResult extends js.Object { var Messages: js.UndefOr[MessageList] } object ReceiveMessageResult { @inline def apply( Messages: js.UndefOr[MessageList] = js.undefined ): ReceiveMessageResult = { val __obj = js.Dynamic.literal() Messages.foreach(__v => __obj.updateDynamic("Messages")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[ReceiveMessageResult] } } /**

*/ @js.native trait RemovePermissionRequest extends js.Object { var Label: String var QueueUrl: String } object RemovePermissionRequest { @inline def apply( Label: String, QueueUrl: String ): RemovePermissionRequest = { val __obj = js.Dynamic.literal( "Label" -> Label.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[RemovePermissionRequest] } } /**

*/ @js.native trait SendMessageBatchRequest extends js.Object { var Entries: SendMessageBatchRequestEntryList var QueueUrl: String } object SendMessageBatchRequest { @inline def apply( Entries: SendMessageBatchRequestEntryList, QueueUrl: String ): SendMessageBatchRequest = { val __obj = js.Dynamic.literal( "Entries" -> Entries.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[SendMessageBatchRequest] } } /** Contains the details of a single Amazon SQS message along with an Id. */ @js.native trait SendMessageBatchRequestEntry extends js.Object { var Id: String var MessageBody: String var DelaySeconds: js.UndefOr[Int] var MessageAttributes: js.UndefOr[MessageBodyAttributeMap] var MessageDeduplicationId: js.UndefOr[String] var MessageGroupId: js.UndefOr[String] var MessageSystemAttributes: js.UndefOr[MessageBodySystemAttributeMap] } object SendMessageBatchRequestEntry { @inline def apply( Id: String, MessageBody: String, DelaySeconds: js.UndefOr[Int] = js.undefined, MessageAttributes: js.UndefOr[MessageBodyAttributeMap] = js.undefined, MessageDeduplicationId: js.UndefOr[String] = js.undefined, MessageGroupId: js.UndefOr[String] = js.undefined, MessageSystemAttributes: js.UndefOr[MessageBodySystemAttributeMap] = js.undefined ): SendMessageBatchRequestEntry = { val __obj = js.Dynamic.literal( "Id" -> Id.asInstanceOf[js.Any], "MessageBody" -> MessageBody.asInstanceOf[js.Any] ) DelaySeconds.foreach(__v => __obj.updateDynamic("DelaySeconds")(__v.asInstanceOf[js.Any])) MessageAttributes.foreach(__v => __obj.updateDynamic("MessageAttributes")(__v.asInstanceOf[js.Any])) MessageDeduplicationId.foreach(__v => __obj.updateDynamic("MessageDeduplicationId")(__v.asInstanceOf[js.Any])) MessageGroupId.foreach(__v => __obj.updateDynamic("MessageGroupId")(__v.asInstanceOf[js.Any])) MessageSystemAttributes.foreach(__v => __obj.updateDynamic("MessageSystemAttributes")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[SendMessageBatchRequestEntry] } } /** For each message in the batch, the response contains a SendMessageBatchResultEntry tag if the message succeeds or a BatchResultErrorEntry tag if the message fails. */ @js.native trait SendMessageBatchResult extends js.Object { var Failed: BatchResultErrorEntryList var Successful: SendMessageBatchResultEntryList } object SendMessageBatchResult { @inline def apply( Failed: BatchResultErrorEntryList, Successful: SendMessageBatchResultEntryList ): SendMessageBatchResult = { val __obj = js.Dynamic.literal( "Failed" -> Failed.asInstanceOf[js.Any], "Successful" -> Successful.asInstanceOf[js.Any] ) __obj.asInstanceOf[SendMessageBatchResult] } } /** Encloses a MessageId for a successfully-enqueued message in a SendMessageBatch. */ @js.native trait SendMessageBatchResultEntry extends js.Object { var Id: String var MD5OfMessageBody: String var MessageId: String var MD5OfMessageAttributes: js.UndefOr[String] var MD5OfMessageSystemAttributes: js.UndefOr[String] var SequenceNumber: js.UndefOr[String] } object SendMessageBatchResultEntry { @inline def apply( Id: String, MD5OfMessageBody: String, MessageId: String, MD5OfMessageAttributes: js.UndefOr[String] = js.undefined, MD5OfMessageSystemAttributes: js.UndefOr[String] = js.undefined, SequenceNumber: js.UndefOr[String] = js.undefined ): SendMessageBatchResultEntry = { val __obj = js.Dynamic.literal( "Id" -> Id.asInstanceOf[js.Any], "MD5OfMessageBody" -> MD5OfMessageBody.asInstanceOf[js.Any], "MessageId" -> MessageId.asInstanceOf[js.Any] ) MD5OfMessageAttributes.foreach(__v => __obj.updateDynamic("MD5OfMessageAttributes")(__v.asInstanceOf[js.Any])) MD5OfMessageSystemAttributes.foreach(__v => __obj.updateDynamic("MD5OfMessageSystemAttributes")(__v.asInstanceOf[js.Any])) SequenceNumber.foreach(__v => __obj.updateDynamic("SequenceNumber")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[SendMessageBatchResultEntry] } } /**

*/ @js.native trait SendMessageRequest extends js.Object { var MessageBody: String var QueueUrl: String var DelaySeconds: js.UndefOr[Int] var MessageAttributes: js.UndefOr[MessageBodyAttributeMap] var MessageDeduplicationId: js.UndefOr[String] var MessageGroupId: js.UndefOr[String] var MessageSystemAttributes: js.UndefOr[MessageBodySystemAttributeMap] } object SendMessageRequest { @inline def apply( MessageBody: String, QueueUrl: String, DelaySeconds: js.UndefOr[Int] = js.undefined, MessageAttributes: js.UndefOr[MessageBodyAttributeMap] = js.undefined, MessageDeduplicationId: js.UndefOr[String] = js.undefined, MessageGroupId: js.UndefOr[String] = js.undefined, MessageSystemAttributes: js.UndefOr[MessageBodySystemAttributeMap] = js.undefined ): SendMessageRequest = { val __obj = js.Dynamic.literal( "MessageBody" -> MessageBody.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) DelaySeconds.foreach(__v => __obj.updateDynamic("DelaySeconds")(__v.asInstanceOf[js.Any])) MessageAttributes.foreach(__v => __obj.updateDynamic("MessageAttributes")(__v.asInstanceOf[js.Any])) MessageDeduplicationId.foreach(__v => __obj.updateDynamic("MessageDeduplicationId")(__v.asInstanceOf[js.Any])) MessageGroupId.foreach(__v => __obj.updateDynamic("MessageGroupId")(__v.asInstanceOf[js.Any])) MessageSystemAttributes.foreach(__v => __obj.updateDynamic("MessageSystemAttributes")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[SendMessageRequest] } } /** The MD5OfMessageBody and MessageId elements. */ @js.native trait SendMessageResult extends js.Object { var MD5OfMessageAttributes: js.UndefOr[String] var MD5OfMessageBody: js.UndefOr[String] var MD5OfMessageSystemAttributes: js.UndefOr[String] var MessageId: js.UndefOr[String] var SequenceNumber: js.UndefOr[String] } object SendMessageResult { @inline def apply( MD5OfMessageAttributes: js.UndefOr[String] = js.undefined, MD5OfMessageBody: js.UndefOr[String] = js.undefined, MD5OfMessageSystemAttributes: js.UndefOr[String] = js.undefined, MessageId: js.UndefOr[String] = js.undefined, SequenceNumber: js.UndefOr[String] = js.undefined ): SendMessageResult = { val __obj = js.Dynamic.literal() MD5OfMessageAttributes.foreach(__v => __obj.updateDynamic("MD5OfMessageAttributes")(__v.asInstanceOf[js.Any])) MD5OfMessageBody.foreach(__v => __obj.updateDynamic("MD5OfMessageBody")(__v.asInstanceOf[js.Any])) MD5OfMessageSystemAttributes.foreach(__v => __obj.updateDynamic("MD5OfMessageSystemAttributes")(__v.asInstanceOf[js.Any])) MessageId.foreach(__v => __obj.updateDynamic("MessageId")(__v.asInstanceOf[js.Any])) SequenceNumber.foreach(__v => __obj.updateDynamic("SequenceNumber")(__v.asInstanceOf[js.Any])) __obj.asInstanceOf[SendMessageResult] } } /**

*/ @js.native trait SetQueueAttributesRequest extends js.Object { var Attributes: QueueAttributeMap var QueueUrl: String } object SetQueueAttributesRequest { @inline def apply( Attributes: QueueAttributeMap, QueueUrl: String ): SetQueueAttributesRequest = { val __obj = js.Dynamic.literal( "Attributes" -> Attributes.asInstanceOf[js.Any], "QueueUrl" -> QueueUrl.asInstanceOf[js.Any] ) __obj.asInstanceOf[SetQueueAttributesRequest] } } @js.native trait TagQueueRequest extends js.Object { var QueueUrl: String var Tags: TagMap } object TagQueueRequest { @inline def apply( QueueUrl: String, Tags: TagMap ): TagQueueRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any], "Tags" -> Tags.asInstanceOf[js.Any] ) __obj.asInstanceOf[TagQueueRequest] } } @js.native trait UntagQueueRequest extends js.Object { var QueueUrl: String var TagKeys: TagKeyList } object UntagQueueRequest { @inline def apply( QueueUrl: String, TagKeys: TagKeyList ): UntagQueueRequest = { val __obj = js.Dynamic.literal( "QueueUrl" -> QueueUrl.asInstanceOf[js.Any], "TagKeys" -> TagKeys.asInstanceOf[js.Any] ) __obj.asInstanceOf[UntagQueueRequest] } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy