![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.macie.kotlin.CustomDataIdentifier.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.macie.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
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
/**
* Builder for [CustomDataIdentifier].
*/
@PulumiTagMarker
public class CustomDataIdentifierResourceBuilder internal constructor() {
public var name: String? = null
public var args: CustomDataIdentifierArgs = CustomDataIdentifierArgs()
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 CustomDataIdentifierArgsBuilder.() -> Unit) {
val builder = CustomDataIdentifierArgsBuilder()
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(): CustomDataIdentifier {
val builtJavaResource = com.pulumi.awsnative.macie.CustomDataIdentifier(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return CustomDataIdentifier(builtJavaResource)
}
}
/**
* Macie CustomDataIdentifier resource schema
*/
public class CustomDataIdentifier internal constructor(
override val javaResource: com.pulumi.awsnative.macie.CustomDataIdentifier,
) : KotlinCustomResource(javaResource, CustomDataIdentifierMapper) {
/**
* Custom data identifier ARN.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Custom data identifier ID.
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* Description of custom data identifier.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Words to be ignored.
*/
public val ignoreWords: Output>?
get() = javaResource.ignoreWords().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* Keywords to be matched against.
*/
public val keywords: Output>?
get() = javaResource.keywords().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* Maximum match distance.
*/
public val maximumMatchDistance: Output?
get() = javaResource.maximumMatchDistance().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Name of custom data identifier.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Regular expression for custom data identifier.
*/
public val regex: Output
get() = javaResource.regex().applyValue({ args0 -> args0 })
/**
* A collection of tags associated with a resource
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
}
public object CustomDataIdentifierMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.macie.CustomDataIdentifier::class == javaResource::class
override fun map(javaResource: Resource): CustomDataIdentifier = CustomDataIdentifier(
javaResource
as com.pulumi.awsnative.macie.CustomDataIdentifier,
)
}
/**
* @see [CustomDataIdentifier].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [CustomDataIdentifier].
*/
public suspend fun customDataIdentifier(
name: String,
block: suspend CustomDataIdentifierResourceBuilder.() -> Unit,
): CustomDataIdentifier {
val builder = CustomDataIdentifierResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [CustomDataIdentifier].
* @param name The _unique_ name of the resulting resource.
*/
public fun customDataIdentifier(name: String): CustomDataIdentifier {
val builder = CustomDataIdentifierResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy