com.pulumi.awsnative.customerprofiles.kotlin.Domain.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.DomainMatching
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DomainRuleBasedMatching
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DomainStats
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DomainMatching.Companion.toKotlin as domainMatchingToKotlin
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DomainRuleBasedMatching.Companion.toKotlin as domainRuleBasedMatchingToKotlin
import com.pulumi.awsnative.customerprofiles.kotlin.outputs.DomainStats.Companion.toKotlin as domainStatsToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [Domain].
*/
@PulumiTagMarker
public class DomainResourceBuilder internal constructor() {
public var name: String? = null
public var args: DomainArgs = DomainArgs()
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 DomainArgsBuilder.() -> Unit) {
val builder = DomainArgsBuilder()
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(): Domain {
val builtJavaResource = com.pulumi.awsnative.customerprofiles.Domain(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Domain(builtJavaResource)
}
}
/**
* A domain defined for 3rd party data source in Profile Service
*/
public class Domain internal constructor(
override val javaResource: com.pulumi.awsnative.customerprofiles.Domain,
) : KotlinCustomResource(javaResource, DomainMapper) {
/**
* The time of this integration got created
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The URL of the SQS dead letter queue
*/
public val deadLetterQueueUrl: Output?
get() = javaResource.deadLetterQueueUrl().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The default encryption key
*/
public val defaultEncryptionKey: Output?
get() = javaResource.defaultEncryptionKey().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The default number of days until the data within the domain expires.
*/
public val defaultExpirationDays: Output
get() = javaResource.defaultExpirationDays().applyValue({ args0 -> args0 })
/**
* The unique name of the domain.
*/
public val domainName: Output
get() = javaResource.domainName().applyValue({ args0 -> args0 })
/**
* The time of this integration got last updated at
*/
public val lastUpdatedAt: Output
get() = javaResource.lastUpdatedAt().applyValue({ args0 -> args0 })
/**
* The process of matching duplicate profiles.
*/
public val matching: Output?
get() = javaResource.matching().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
domainMatchingToKotlin(args0)
})
}).orElse(null)
})
/**
* The process of matching duplicate profiles using Rule-Based matching.
*/
public val ruleBasedMatching: Output?
get() = javaResource.ruleBasedMatching().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> domainRuleBasedMatchingToKotlin(args0) })
}).orElse(null)
})
public val stats: Output
get() = javaResource.stats().applyValue({ args0 ->
args0.let({ args0 ->
domainStatsToKotlin(args0)
})
})
/**
* The tags (keys and values) associated with the domain
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object DomainMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.customerprofiles.Domain::class == javaResource::class
override fun map(javaResource: Resource): Domain = Domain(
javaResource as
com.pulumi.awsnative.customerprofiles.Domain,
)
}
/**
* @see [Domain].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Domain].
*/
public suspend fun domain(name: String, block: suspend DomainResourceBuilder.() -> Unit): Domain {
val builder = DomainResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Domain].
* @param name The _unique_ name of the resulting resource.
*/
public fun domain(name: String): Domain {
val builder = DomainResourceBuilder()
builder.name(name)
return builder.build()
}