
src.cloudasset.v1.Feed.scala Maven / Gradle / Ivy
package besom.api.googlenative.cloudasset.v1
final case class Feed private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
assetNames: besom.types.Output[scala.collection.immutable.List[String]],
assetTypes: besom.types.Output[scala.collection.immutable.List[String]],
condition: besom.types.Output[besom.api.googlenative.cloudasset.v1.outputs.ExprResponse],
contentType: besom.types.Output[String],
feedOutputConfig: besom.types.Output[besom.api.googlenative.cloudasset.v1.outputs.FeedOutputConfigResponse],
name: besom.types.Output[String],
relationshipTypes: besom.types.Output[scala.collection.immutable.List[String]],
v1Id: besom.types.Output[String],
v1Id1: besom.types.Output[String]
) extends besom.CustomResource
object Feed extends besom.ResourceCompanion[Feed]:
/** Resource constructor for Feed.
*
* @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 [[FeedArgs]] 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 = Feed(
* "my-resource",
* FeedArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: FeedArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Feed] =
ctx.readOrRegisterResource[Feed, FeedArgs]("google-native:cloudasset/v1:Feed", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:cloudasset/v1:Feed"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Feed] =
besom.internal.ResourceDecoder.derived[Feed]
given decoder(using besom.types.Context): besom.types.Decoder[Feed] =
besom.internal.Decoder.customResourceDecoder[Feed]
given outputOps: {} with
extension(output: besom.types.Output[Feed])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def assetNames : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.assetNames)
def assetTypes : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.assetTypes)
def condition : besom.types.Output[besom.api.googlenative.cloudasset.v1.outputs.ExprResponse] = output.flatMap(_.condition)
def contentType : besom.types.Output[String] = output.flatMap(_.contentType)
def feedOutputConfig : besom.types.Output[besom.api.googlenative.cloudasset.v1.outputs.FeedOutputConfigResponse] = output.flatMap(_.feedOutputConfig)
def name : besom.types.Output[String] = output.flatMap(_.name)
def relationshipTypes : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.relationshipTypes)
def v1Id : besom.types.Output[String] = output.flatMap(_.v1Id)
def v1Id1 : besom.types.Output[String] = output.flatMap(_.v1Id1)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy