src.index.EdgeWorkerArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai
final case class EdgeWorkerArgs private(
groupId: besom.types.Output[Int],
localBundle: besom.types.Output[scala.Option[String]],
name: besom.types.Output[scala.Option[String]],
resourceTierId: besom.types.Output[Int],
timeouts: besom.types.Output[scala.Option[besom.api.akamai.inputs.EdgeWorkerTimeoutsArgs]]
)
object EdgeWorkerArgs:
def apply(
groupId: besom.types.Input[Int],
localBundle: besom.types.Input.Optional[String] = scala.None,
name: besom.types.Input.Optional[String] = scala.None,
resourceTierId: besom.types.Input[Int],
timeouts: besom.types.Input.Optional[besom.api.akamai.inputs.EdgeWorkerTimeoutsArgs] = scala.None
)(using besom.types.Context): EdgeWorkerArgs =
new EdgeWorkerArgs(
groupId = groupId.asOutput(isSecret = false),
localBundle = localBundle.asOptionOutput(isSecret = false),
name = name.asOptionOutput(isSecret = false),
resourceTierId = resourceTierId.asOutput(isSecret = false),
timeouts = timeouts.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[EdgeWorkerArgs] =
besom.internal.Encoder.derived[EdgeWorkerArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[EdgeWorkerArgs] =
besom.internal.ArgsEncoder.derived[EdgeWorkerArgs]