src.index.DnsZone.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai
final case class DnsZone private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
activationState: besom.types.Output[String],
aliasCount: besom.types.Output[Int],
comment: besom.types.Output[scala.Option[String]],
contract: besom.types.Output[String],
endCustomerId: besom.types.Output[scala.Option[String]],
group: besom.types.Output[scala.Option[String]],
masters: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
signAndServe: besom.types.Output[scala.Option[Boolean]],
signAndServeAlgorithm: besom.types.Output[scala.Option[String]],
target: besom.types.Output[scala.Option[String]],
tsigKey: besom.types.Output[scala.Option[besom.api.akamai.outputs.DnsZoneTsigKey]],
`type`: besom.types.Output[String],
versionId: besom.types.Output[String],
zone: besom.types.Output[String]
) extends besom.CustomResource
object DnsZone extends besom.ResourceCompanion[DnsZone]:
/** Resource constructor for DnsZone.
*
* @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
* NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
* issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
* string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
*
* @param args [[DnsZoneArgs]] The configuration to use to create this resource.
*
* @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource.
* Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
*
* {{{
* val res = DnsZone(
* "my-resource",
* DnsZoneArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: DnsZoneArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[DnsZone] =
ctx.readOrRegisterResource[DnsZone, DnsZoneArgs]("akamai:index/dnsZone:DnsZone", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "akamai:index/dnsZone:DnsZone"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[DnsZone] =
besom.internal.ResourceDecoder.derived[DnsZone]
given decoder(using besom.types.Context): besom.types.Decoder[DnsZone] =
besom.internal.Decoder.customResourceDecoder[DnsZone]
given outputOps: {} with
extension(output: besom.types.Output[DnsZone])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def activationState : besom.types.Output[String] = output.flatMap(_.activationState)
def aliasCount : besom.types.Output[Int] = output.flatMap(_.aliasCount)
def comment : besom.types.Output[scala.Option[String]] = output.flatMap(_.comment)
def contract : besom.types.Output[String] = output.flatMap(_.contract)
def endCustomerId : besom.types.Output[scala.Option[String]] = output.flatMap(_.endCustomerId)
def group : besom.types.Output[scala.Option[String]] = output.flatMap(_.group)
def masters : besom.types.Output[scala.Option[scala.collection.immutable.List[String]]] = output.flatMap(_.masters)
def signAndServe : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.signAndServe)
def signAndServeAlgorithm : besom.types.Output[scala.Option[String]] = output.flatMap(_.signAndServeAlgorithm)
def target : besom.types.Output[scala.Option[String]] = output.flatMap(_.target)
def tsigKey : besom.types.Output[scala.Option[besom.api.akamai.outputs.DnsZoneTsigKey]] = output.flatMap(_.tsigKey)
def `type` : besom.types.Output[String] = output.flatMap(_.`type`)
def versionId : besom.types.Output[String] = output.flatMap(_.versionId)
def zone : besom.types.Output[String] = output.flatMap(_.zone)