
com.pulumi.awsnative.customerprofiles.kotlin.Integration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.customerprofiles.kotlin
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.IntegrationFlowDefinition
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.IntegrationObjectTypeMapping
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.outputs.IntegrationFlowDefinition.Companion.toKotlin as integrationFlowDefinitionToKotlin
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.IntegrationObjectTypeMapping.Companion.toKotlin as integrationObjectTypeMappingToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [Integration].
*/
@PulumiTagMarker
public class IntegrationResourceBuilder internal constructor() {
public var name: String? = null
public var args: IntegrationArgs = IntegrationArgs()
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 IntegrationArgsBuilder.() -> Unit) {
val builder = IntegrationArgsBuilder()
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(): Integration {
val builtJavaResource =
com.pulumi.awsnative.customerprofiles.Integration(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Integration(builtJavaResource)
}
}
/**
* The resource schema for creating an Amazon Connect Customer Profiles Integration.
*/
public class Integration internal constructor(
override val javaResource: com.pulumi.awsnative.customerprofiles.Integration,
) : KotlinCustomResource(javaResource, IntegrationMapper) {
/**
* The time of this integration got created
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The unique name of the domain.
*/
public val domainName: Output
get() = javaResource.domainName().applyValue({ args0 -> args0 })
/**
* The configuration that controls how Customer Profiles retrieves data from the source.
*/
public val flowDefinition: Output?
get() = javaResource.flowDefinition().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> integrationFlowDefinitionToKotlin(args0) })
}).orElse(null)
})
/**
* The time of this integration got last updated at
*/
public val lastUpdatedAt: Output
get() = javaResource.lastUpdatedAt().applyValue({ args0 -> args0 })
/**
* The name of the ObjectType defined for the 3rd party data in Profile Service
*/
public val objectTypeName: Output?
get() = javaResource.objectTypeName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The mapping between 3rd party event types and ObjectType names
*/
public val objectTypeNames: Output>?
get() = javaResource.objectTypeNames().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
integrationObjectTypeMappingToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The tags (keys and values) associated with the integration
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* The URI of the S3 bucket or any other type of data source.
*/
public val uri: Output?
get() = javaResource.uri().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
}
public object IntegrationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.customerprofiles.Integration::class == javaResource::class
override fun map(javaResource: Resource): Integration = Integration(
javaResource as
com.pulumi.awsnative.customerprofiles.Integration,
)
}
/**
* @see [Integration].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Integration].
*/
public suspend fun integration(name: String, block: suspend IntegrationResourceBuilder.() -> Unit): Integration {
val builder = IntegrationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Integration].
* @param name The _unique_ name of the resulting resource.
*/
public fun integration(name: String): Integration {
val builder = IntegrationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy