src.index.IamRoleArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai
final case class IamRoleArgs private(
description: besom.types.Output[String],
grantedRoles: besom.types.Output[scala.collection.immutable.List[Int]],
name: besom.types.Output[scala.Option[String]],
`type`: besom.types.Output[scala.Option[String]]
)
object IamRoleArgs:
def apply(
description: besom.types.Input[String],
grantedRoles: besom.types.Input[scala.collection.immutable.List[besom.types.Input[Int]]],
name: besom.types.Input.Optional[String] = scala.None,
`type`: besom.types.Input.Optional[String] = scala.None
)(using besom.types.Context): IamRoleArgs =
new IamRoleArgs(
description = description.asOutput(isSecret = false),
grantedRoles = grantedRoles.asOutput(isSecret = false),
name = name.asOptionOutput(isSecret = false),
`type` = `type`.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[IamRoleArgs] =
besom.internal.Encoder.derived[IamRoleArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[IamRoleArgs] =
besom.internal.ArgsEncoder.derived[IamRoleArgs]