![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.customerprofiles.kotlin.EventStream.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.customerprofiles.kotlin
import com.pulumi.awsnative.customerprofiles.kotlin.enums.EventStreamState
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DestinationDetailsProperties
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.customerprofiles.kotlin.enums.EventStreamState.Companion.toKotlin as eventStreamStateToKotlin
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DestinationDetailsProperties.Companion.toKotlin as destinationDetailsPropertiesToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [EventStream].
*/
@PulumiTagMarker
public class EventStreamResourceBuilder internal constructor() {
public var name: String? = null
public var args: EventStreamArgs = EventStreamArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend EventStreamArgsBuilder.() -> Unit) {
val builder = EventStreamArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): EventStream {
val builtJavaResource =
com.pulumi.awsnative.customerprofiles.EventStream(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return EventStream(builtJavaResource)
}
}
/**
* An Event Stream resource of Amazon Connect Customer Profiles
*/
public class EventStream internal constructor(
override val javaResource: com.pulumi.awsnative.customerprofiles.EventStream,
) : KotlinCustomResource(javaResource, EventStreamMapper) {
/**
* The timestamp of when the export was created.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* Details regarding the Kinesis stream.
*/
public val destinationDetails: Output
get() = javaResource.destinationDetails().applyValue({ args0 ->
args0.let({ args0 ->
destinationDetailsPropertiesToKotlin(args0)
})
})
/**
* The unique name of the domain.
*/
public val domainName: Output
get() = javaResource.domainName().applyValue({ args0 -> args0 })
/**
* A unique identifier for the event stream.
*/
public val eventStreamArn: Output
get() = javaResource.eventStreamArn().applyValue({ args0 -> args0 })
/**
* The name of the event stream.
*/
public val eventStreamName: Output
get() = javaResource.eventStreamName().applyValue({ args0 -> args0 })
/**
* The operational state of destination stream for export.
*/
public val state: Output
get() = javaResource.state().applyValue({ args0 ->
args0.let({ args0 ->
eventStreamStateToKotlin(args0)
})
})
/**
* The tags used to organize, track, or control access for this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* The StreamARN of the destination to deliver profile events to. For example, arn:aws:kinesis:region:account-id:stream/stream-name.
*/
public val uri: Output
get() = javaResource.uri().applyValue({ args0 -> args0 })
}
public object EventStreamMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.customerprofiles.EventStream::class == javaResource::class
override fun map(javaResource: Resource): EventStream = EventStream(
javaResource as
com.pulumi.awsnative.customerprofiles.EventStream,
)
}
/**
* @see [EventStream].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [EventStream].
*/
public suspend fun eventStream(name: String, block: suspend EventStreamResourceBuilder.() -> Unit): EventStream {
val builder = EventStreamResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [EventStream].
* @param name The _unique_ name of the resulting resource.
*/
public fun eventStream(name: String): EventStream {
val builder = EventStreamResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy