Files
DefinitelyTyped/aws-sdk
MichaelBuen 3dde9d27db Update aws-sdk.d.ts (#10232)
Make QueueUrl optional, as it can have a default value that is be obtained from aws.SQS:

```
var sqs = new aws.SQS({
    region: config.aws.region,
    accessKeyId: config.aws.accessID,
    secretAccessKey: config.aws.secretKey,

    // For every request in this demo, I'm going to be using the same QueueUrl; so,
    // rather than explicitly defining it on every request, I can set it here as the
    // default QueueUrl to be automatically appended to every request.
    params: {
        QueueUrl: config.aws.queueUrl
    }
});

var sendMessage = Q.nbind( sqs.sendMessage, sqs );


// ---------------------------------------------------------- //
// ---------------------------------------------------------- //


// Now that we have a Q-ified method, we can send the message.
sendMessage({
    MessageBody: "This is my first ever SQS request... evar!"
})

```

Based on:
http://www.bennadel.com/blog/2792-shedding-the-monolithic-application-with-aws-simple-queue-service-sqs-and-node-js.htm
2016-07-23 23:21:08 -07:00
..
2016-07-23 23:21:08 -07:00