src.config.inputs.ConfigArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai.config.inputs
final case class ConfigArgs private(
accessToken: besom.types.Output[String],
accountKey: besom.types.Output[scala.Option[String]],
clientSecret: besom.types.Output[String],
clientToken: besom.types.Output[String],
host: besom.types.Output[String],
maxBody: besom.types.Output[scala.Option[Int]]
)
object ConfigArgs:
def apply(
accessToken: besom.types.Input[String],
accountKey: besom.types.Input.Optional[String] = scala.None,
clientSecret: besom.types.Input[String],
clientToken: besom.types.Input[String],
host: besom.types.Input[String],
maxBody: besom.types.Input.Optional[Int] = scala.None
)(using besom.types.Context): ConfigArgs =
new ConfigArgs(
accessToken = accessToken.asOutput(isSecret = false),
accountKey = accountKey.asOptionOutput(isSecret = false),
clientSecret = clientSecret.asOutput(isSecret = false),
clientToken = clientToken.asOutput(isSecret = false),
host = host.asOutput(isSecret = false),
maxBody = maxBody.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[ConfigArgs] =
besom.internal.Encoder.derived[ConfigArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[ConfigArgs] =
besom.internal.ArgsEncoder.derived[ConfigArgs]