Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
net.exoego:aws-sdk-scalajs-facade-iotsecuretunneling_sjs1_2.13
Advanced tools
aws-sdk-scalajs-facade-iotsecuretunneling
A complete set of Scala.js type facade for aws/aws-sdk-js.
All 238 AWS are available as of 2020-11-23, and keep updating.
You may find the below peer facades useful when developing app with AWS.
libraryDependencies += "net.exoego" %%% "aws-sdk-scalajs-facade" % "0.32.0-v2.798.0"
scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule))
// Below are optional. Required when bundling aws-sdk for testing in sbt or
// for running the app (the generated JS) on environment without aws-sdk provided.
enablePlugins(ScalaJSBundlerPlugin)
npmDependencies += "aws-sdk" -> "2.731.0"
Check scalajs-bundler regarding how to use ScalajsBundlerPlugin
.
Note) The all-in-one artifact aws-sdk-scalajs-facade
includes all AWS facade and quite huge. If you depend only minimum facades, you will gain build performance boost (short fastOptJS
/fullOptJS
time). See the list of separate artifacts.
Every AWS services and their-related types are defined in facade.amazonaws.services.<service_name>
package in "net.exoego" %%% "aws-sdk-scalajs-facade-<service_name>" % VERSION
. See the list of separate artifacts.
Service class can be instantiated with their constructor.
import facade.amazonaws.services.s3._
for {
image <- new S3().getObjectFuture(GetObjectRequest(
Bucket = "foo-bar",
Key = "123.json"
))
} yield {
println(image.Body)
}
AWS
object is defined in core
project.
"aws-sdk-scalajs-facade-<service_name>"
depends on core
project so your project do not need to explicitly depend on core
.
By default, AWS
object expose only config
field to be used for configuring aws-sdk globally.
import facade.amazonaws.AWS
AWS.config.region = "..."
AWS.config.s3 = ???
By adding the artifact "net.exoego" %%% "aws-sdk-scalajs-facade" % VERSION
to libraryDependencies
, AWS
object aggregates all service classes so you can instantiate service class as same as in aws-sdk-js, like below:
import facade.amazonaws.AWS
import facade.amazonaws.services.dynamodb._
import scala.scalajs.js.Dictionary
for {
record <- new AWS.DynamoDB().getItemFuture(GetItemInput(
Key = Dictionary("product-id" -> AttributeValue.S("ABC-123")),
TableName = "product-table"
))
} yield {
println(record.Item)
}
Or using apply
method, you can skip new
keyword.
import facade.amazonaws.AWS
import facade.amazonaws.services.dynamodb._
import scala.scalajs.js.Dictionary
for {
record <- AWS.DynamoDB().getItemFuture(GetItemInput(
Key = Dictionary("product-id" -> AttributeValue.S("ABC-123")),
TableName = "product-table"
))
} yield {
println(record.Item)
}
ScalaJS 0.6.x | ScalaJS 1.0 | |
---|---|---|
Scala 2.13 | :heavy_check_mark: (v0.30.0 is final) | :heavy_check_mark: |
Scala 2.12 | :heavy_check_mark: (v0.30.0 is final) | :heavy_check_mark: |
Scala 2.11 | N/A | N/A |
Scala 2.10 | N/A | N/A |
Auto-generated from aws-sdk-scalajs-facade-generator.
This project started as a fork of awesome balshor/aws-sdk-scalajs-facade.
Intention of fork is to
npm install
sbt ~compile
See LICENSE.txt.
FAQs
aws-sdk-scalajs-facade-iotsecuretunneling
We found that net.exoego:aws-sdk-scalajs-facade-iotsecuretunneling_sjs1_2.13 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.