src/main/scala/s3/website/model/Site.scala in s3_website-3.2.0 vs src/main/scala/s3/website/model/Site.scala in s3_website-3.3.0
- old
+ new
@@ -34,10 +34,12 @@
implicit val unsafeYaml = UnsafeYaml(yamlObject)
for {
s3_id <- loadOptionalString("s3_id").right
s3_secret <- loadOptionalString("s3_secret").right
session_token <- loadOptionalString("session_token").right
+ profile <- loadOptionalString("profile").right
+ profile_assume_role_arn <- loadOptionalString("profile_assume_role_arn").right
s3_bucket <- loadRequiredString("s3_bucket").right
s3_endpoint <- loadEndpoint.right
site <- loadOptionalString("site").right
max_age <- loadMaxAge.right
cache_control <- loadCacheControl.right
@@ -65,10 +67,12 @@
)
Config(
s3_id,
s3_secret,
session_token,
+ profile,
+ profile_assume_role_arn,
s3_bucket,
s3_endpoint getOrElse S3Endpoint.defaultEndpoint,
site,
max_age,
cache_control,
@@ -150,6 +154,6 @@
Left(ErrorReport(noSiteFound(s"Could not find a website. (The site setting in s3_website.yml points to a non-existing file $siteDir)")))
case None =>
Right(None)
}
}
-}
\ No newline at end of file
+}