zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-amplifybackend_3 Show documentation
Show all versions of zio-aws-amplifybackend_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.amplifybackend.model
import zio.aws.amplifybackend.model.primitives.{__boolean, __string}
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class CreateBackendAuthIdentityPoolConfig(
identityPoolName: __string,
unauthenticatedLogin: __boolean
) {
def buildAwsValue()
: software.amazon.awssdk.services.amplifybackend.model.CreateBackendAuthIdentityPoolConfig = {
import CreateBackendAuthIdentityPoolConfig.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.amplifybackend.model.CreateBackendAuthIdentityPoolConfig
.builder()
.identityPoolName(identityPoolName: java.lang.String)
.unauthenticatedLogin(unauthenticatedLogin: java.lang.Boolean)
.build()
}
def asReadOnly
: zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig.ReadOnly =
zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig
.wrap(buildAwsValue())
}
object CreateBackendAuthIdentityPoolConfig {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.amplifybackend.model.CreateBackendAuthIdentityPoolConfig
] = BuilderHelper.apply
trait ReadOnly {
def asEditable
: zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig =
zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig(
identityPoolName,
unauthenticatedLogin
)
def identityPoolName: __string
def unauthenticatedLogin: __boolean
def getIdentityPoolName: ZIO[Any, Nothing, __string] =
ZIO.succeed(identityPoolName)
def getUnauthenticatedLogin: ZIO[Any, Nothing, __boolean] =
ZIO.succeed(unauthenticatedLogin)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.amplifybackend.model.CreateBackendAuthIdentityPoolConfig
) extends zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig.ReadOnly {
override val identityPoolName: __string = impl.identityPoolName(): __string
override val unauthenticatedLogin: __boolean =
impl.unauthenticatedLogin(): __boolean
}
def wrap(
impl: software.amazon.awssdk.services.amplifybackend.model.CreateBackendAuthIdentityPoolConfig
): zio.aws.amplifybackend.model.CreateBackendAuthIdentityPoolConfig.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy