Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #263 from exoego/v2.731.0
Browse files Browse the repository at this point in the history
Update to aws-sdk-js v2.731.0
  • Loading branch information
exoego committed Aug 11, 2020
2 parents 2353e1b + cd86cb1 commit 49b0732
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ You may find the below peer facades useful when developing app with AWS.
## Getting Started

```sbt
libraryDependencies += "net.exoego" %%% "aws-sdk-scalajs-facade" % "0.30.0-v2.715.0"
libraryDependencies += "net.exoego" %%% "aws-sdk-scalajs-facade" % "0.31.0-v2.731.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.715.0"
npmDependencies += "aws-sdk" -> "2.731.0"
```

Check [scalajs-bundler](https://scalacenter.github.io/scalajs-bundler/) regarding how to use `ScalajsBundlerPlugin`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A complete set of [Scala.js](https://www.scala-js.org/) type facade for [aws/aws-sdk-js](https://github.com/aws/aws-sdk-js/).",
"main": "index.js",
"dependencies": {
"aws-sdk": "2.725.0"
"aws-sdk": "2.731.0"
},
"devDependencies": {},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3958,7 +3958,6 @@ package ec2 {
val `Linux with SQL Server Standard` = "Linux with SQL Server Standard".asInstanceOf[CapacityReservationInstancePlatform]
val `Linux with SQL Server Web` = "Linux with SQL Server Web".asInstanceOf[CapacityReservationInstancePlatform]
val `Linux with SQL Server Enterprise` = "Linux with SQL Server Enterprise".asInstanceOf[CapacityReservationInstancePlatform]
val `Windows BYOL` = "Windows BYOL".asInstanceOf[CapacityReservationInstancePlatform]

@inline def values =
js.Array(
Expand All @@ -3972,8 +3971,7 @@ package ec2 {
`Windows with SQL Server Web`,
`Linux with SQL Server Standard`,
`Linux with SQL Server Web`,
`Linux with SQL Server Enterprise`,
`Windows BYOL`
`Linux with SQL Server Enterprise`
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ package object lambda {
type Tags = js.Dictionary[TagValue]
type Timeout = Int
type Timestamp = String
type Topic = String
type Topics = js.Array[Topic]
type UnreservedConcurrentExecutions = Int
type Version = String
type VpcId = String
Expand Down Expand Up @@ -485,6 +487,7 @@ package lambda {
var ParallelizationFactor: js.UndefOr[ParallelizationFactor]
var StartingPosition: js.UndefOr[EventSourcePosition]
var StartingPositionTimestamp: js.UndefOr[Date]
var Topics: js.UndefOr[Topics]
}

object CreateEventSourceMappingRequest {
Expand All @@ -501,7 +504,8 @@ package lambda {
MaximumRetryAttempts: js.UndefOr[MaximumRetryAttemptsEventSourceMapping] = js.undefined,
ParallelizationFactor: js.UndefOr[ParallelizationFactor] = js.undefined,
StartingPosition: js.UndefOr[EventSourcePosition] = js.undefined,
StartingPositionTimestamp: js.UndefOr[Date] = js.undefined
StartingPositionTimestamp: js.UndefOr[Date] = js.undefined,
Topics: js.UndefOr[Topics] = js.undefined
): CreateEventSourceMappingRequest = {
val __obj = js.Dynamic.literal(
"EventSourceArn" -> EventSourceArn.asInstanceOf[js.Any],
Expand All @@ -518,6 +522,7 @@ package lambda {
ParallelizationFactor.foreach(__v => __obj.updateDynamic("ParallelizationFactor")(__v.asInstanceOf[js.Any]))
StartingPosition.foreach(__v => __obj.updateDynamic("StartingPosition")(__v.asInstanceOf[js.Any]))
StartingPositionTimestamp.foreach(__v => __obj.updateDynamic("StartingPositionTimestamp")(__v.asInstanceOf[js.Any]))
Topics.foreach(__v => __obj.updateDynamic("Topics")(__v.asInstanceOf[js.Any]))
__obj.asInstanceOf[CreateEventSourceMappingRequest]
}
}
Expand Down Expand Up @@ -851,6 +856,7 @@ package lambda {
var ParallelizationFactor: js.UndefOr[ParallelizationFactor]
var State: js.UndefOr[String]
var StateTransitionReason: js.UndefOr[String]
var Topics: js.UndefOr[Topics]
var UUID: js.UndefOr[String]
}

Expand All @@ -870,6 +876,7 @@ package lambda {
ParallelizationFactor: js.UndefOr[ParallelizationFactor] = js.undefined,
State: js.UndefOr[String] = js.undefined,
StateTransitionReason: js.UndefOr[String] = js.undefined,
Topics: js.UndefOr[Topics] = js.undefined,
UUID: js.UndefOr[String] = js.undefined
): EventSourceMappingConfiguration = {
val __obj = js.Dynamic.literal()
Expand All @@ -886,6 +893,7 @@ package lambda {
ParallelizationFactor.foreach(__v => __obj.updateDynamic("ParallelizationFactor")(__v.asInstanceOf[js.Any]))
State.foreach(__v => __obj.updateDynamic("State")(__v.asInstanceOf[js.Any]))
StateTransitionReason.foreach(__v => __obj.updateDynamic("StateTransitionReason")(__v.asInstanceOf[js.Any]))
Topics.foreach(__v => __obj.updateDynamic("Topics")(__v.asInstanceOf[js.Any]))
UUID.foreach(__v => __obj.updateDynamic("UUID")(__v.asInstanceOf[js.Any]))
__obj.asInstanceOf[EventSourceMappingConfiguration]
}
Expand Down
61 changes: 51 additions & 10 deletions services/s3/src/main/scala/facade/amazonaws/services/S3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -867,19 +867,60 @@ package s3 {
@js.native
sealed trait BucketLocationConstraint extends js.Any
object BucketLocationConstraint {
val EU = "EU".asInstanceOf[BucketLocationConstraint]
val `eu-west-1` = "eu-west-1".asInstanceOf[BucketLocationConstraint]
val `us-west-1` = "us-west-1".asInstanceOf[BucketLocationConstraint]
val `us-west-2` = "us-west-2".asInstanceOf[BucketLocationConstraint]
val `af-south-1` = "af-south-1".asInstanceOf[BucketLocationConstraint]
val `ap-east-1` = "ap-east-1".asInstanceOf[BucketLocationConstraint]
val `ap-northeast-1` = "ap-northeast-1".asInstanceOf[BucketLocationConstraint]
val `ap-northeast-2` = "ap-northeast-2".asInstanceOf[BucketLocationConstraint]
val `ap-northeast-3` = "ap-northeast-3".asInstanceOf[BucketLocationConstraint]
val `ap-south-1` = "ap-south-1".asInstanceOf[BucketLocationConstraint]
val `ap-southeast-1` = "ap-southeast-1".asInstanceOf[BucketLocationConstraint]
val `ap-southeast-2` = "ap-southeast-2".asInstanceOf[BucketLocationConstraint]
val `ap-northeast-1` = "ap-northeast-1".asInstanceOf[BucketLocationConstraint]
val `sa-east-1` = "sa-east-1".asInstanceOf[BucketLocationConstraint]
val `ca-central-1` = "ca-central-1".asInstanceOf[BucketLocationConstraint]
val `cn-north-1` = "cn-north-1".asInstanceOf[BucketLocationConstraint]
val `cn-northwest-1` = "cn-northwest-1".asInstanceOf[BucketLocationConstraint]
val EU = "EU".asInstanceOf[BucketLocationConstraint]
val `eu-central-1` = "eu-central-1".asInstanceOf[BucketLocationConstraint]
val `eu-north-1` = "eu-north-1".asInstanceOf[BucketLocationConstraint]
val `eu-south-1` = "eu-south-1".asInstanceOf[BucketLocationConstraint]
val `eu-west-1` = "eu-west-1".asInstanceOf[BucketLocationConstraint]
val `eu-west-2` = "eu-west-2".asInstanceOf[BucketLocationConstraint]
val `eu-west-3` = "eu-west-3".asInstanceOf[BucketLocationConstraint]
val `me-south-1` = "me-south-1".asInstanceOf[BucketLocationConstraint]
val `sa-east-1` = "sa-east-1".asInstanceOf[BucketLocationConstraint]
val `us-east-2` = "us-east-2".asInstanceOf[BucketLocationConstraint]
val `us-gov-east-1` = "us-gov-east-1".asInstanceOf[BucketLocationConstraint]
val `us-gov-west-1` = "us-gov-west-1".asInstanceOf[BucketLocationConstraint]
val `us-west-1` = "us-west-1".asInstanceOf[BucketLocationConstraint]
val `us-west-2` = "us-west-2".asInstanceOf[BucketLocationConstraint]

@inline def values = js.Array(EU, `eu-west-1`, `us-west-1`, `us-west-2`, `ap-south-1`, `ap-southeast-1`, `ap-southeast-2`, `ap-northeast-1`, `sa-east-1`, `cn-north-1`, `eu-central-1`)
@inline def values =
js.Array(
`af-south-1`,
`ap-east-1`,
`ap-northeast-1`,
`ap-northeast-2`,
`ap-northeast-3`,
`ap-south-1`,
`ap-southeast-1`,
`ap-southeast-2`,
`ca-central-1`,
`cn-north-1`,
`cn-northwest-1`,
EU,
`eu-central-1`,
`eu-north-1`,
`eu-south-1`,
`eu-west-1`,
`eu-west-2`,
`eu-west-3`,
`me-south-1`,
`sa-east-1`,
`us-east-2`,
`us-gov-east-1`,
`us-gov-west-1`,
`us-west-1`,
`us-west-2`
)
}

/**
Expand Down Expand Up @@ -6666,7 +6707,7 @@ package s3 {
}

/**
* This data type is deprecated. Use [[https://docs.aws.amazon.com/AmazonS3/latest/API/API_QueueConfiguration.html|QueueConfiguration]] for the same purposes. This data type specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.
* This data type is deprecated. Use <a>QueueConfiguration</a> for the same purposes. This data type specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.
*/
@js.native
trait QueueConfigurationDeprecated extends js.Object {
Expand Down Expand Up @@ -7124,7 +7165,7 @@ package s3 {
}

/**
* Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see [[https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects|Configuring advanced conditional redirects]] in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Specifies the redirect behavior and when a redirect is applied.
*/
@js.native
trait RoutingRule extends js.Object {
Expand Down Expand Up @@ -7785,7 +7826,7 @@ package s3 {
}

/**
* A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. This data type is deprecated. Use [[https://docs.aws.amazon.com/AmazonS3/latest/API/API_TopicConfiguration.html|TopicConfiguration]] instead.
* A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events. This data type is deprecated. Use <a>TopicConfiguration</a> instead.
*/
@js.native
trait TopicConfigurationDeprecated extends js.Object {
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.30.0-v2.715.0"
version in ThisBuild := "0.31.0-v2.731.0"

0 comments on commit 49b0732

Please sign in to comment.