src.index.inputs.ProviderConfigArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai.inputs
final case class ProviderConfigArgs 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 ProviderConfigArgs:
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): ProviderConfigArgs =
new ProviderConfigArgs(
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[ProviderConfigArgs] =
besom.internal.Encoder.derived[ProviderConfigArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[ProviderConfigArgs] =
besom.internal.ArgsEncoder.derived[ProviderConfigArgs]