io.cloudshiftdev.awscdk.services.frauddetector.CfnList.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.frauddetector
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IInspectable
import io.cloudshiftdev.awscdk.ITaggable
import io.cloudshiftdev.awscdk.TagManager
import io.cloudshiftdev.awscdk.TreeInspector
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import io.cloudshiftdev.constructs.Construct as CloudshiftdevConstructsConstruct
import software.constructs.Construct as SoftwareConstructsConstruct
/**
* Creates a list.
*
* List is a set of input data for a variable in your event dataset. You use the input data in a
* rule that's associated with your detector. For more information, see
* [Lists](https://docs.aws.amazon.com//frauddetector/latest/ug/lists.html) .
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import io.cloudshiftdev.awscdk.services.frauddetector.*;
* CfnList cfnList = CfnList.Builder.create(this, "MyCfnList")
* .name("name")
* // the properties below are optional
* .description("description")
* .elements(List.of("elements"))
* .tags(List.of(CfnTag.builder()
* .key("key")
* .value("value")
* .build()))
* .variableType("variableType")
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html)
*/
public open class CfnList(
cdkObject: software.amazon.awscdk.services.frauddetector.CfnList,
) : CfnResource(cdkObject),
IInspectable,
ITaggable {
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnListProps,
) :
this(software.amazon.awscdk.services.frauddetector.CfnList(scope.let(CloudshiftdevConstructsConstruct.Companion::unwrap),
id, props.let(CfnListProps.Companion::unwrap))
)
public constructor(
scope: CloudshiftdevConstructsConstruct,
id: String,
props: CfnListProps.Builder.() -> Unit,
) : this(scope, id, CfnListProps(props)
)
/**
* The event type ARN.
*/
public open fun attrArn(): String = unwrap(this).getAttrArn()
/**
* Timestamp of when the list was created.
*/
public open fun attrCreatedTime(): String = unwrap(this).getAttrCreatedTime()
/**
* Timestamp of when list was last updated.
*/
public open fun attrLastUpdatedTime(): String = unwrap(this).getAttrLastUpdatedTime()
/**
* The description of the list.
*/
public open fun description(): String? = unwrap(this).getDescription()
/**
* The description of the list.
*/
public open fun description(`value`: String) {
unwrap(this).setDescription(`value`)
}
/**
* The elements in the list.
*/
public open fun elements(): List = unwrap(this).getElements() ?: emptyList()
/**
* The elements in the list.
*/
public open fun elements(`value`: List) {
unwrap(this).setElements(`value`)
}
/**
* The elements in the list.
*/
public open fun elements(vararg `value`: String): Unit = elements(`value`.toList())
/**
* Examines the CloudFormation resource and discloses attributes.
*
* @param inspector tree inspector to collect and process attributes.
*/
public override fun inspect(inspector: TreeInspector) {
unwrap(this).inspect(inspector.let(TreeInspector.Companion::unwrap))
}
/**
* The name of the list.
*/
public open fun name(): String = unwrap(this).getName()
/**
* The name of the list.
*/
public open fun name(`value`: String) {
unwrap(this).setName(`value`)
}
/**
* Tag Manager which manages the tags for this resource.
*/
public override fun tags(): TagManager = unwrap(this).getTags().let(TagManager::wrap)
/**
* An array of key-value pairs to apply to this resource.
*/
public open fun tagsRaw(): List = unwrap(this).getTagsRaw()?.map(CfnTag::wrap) ?:
emptyList()
/**
* An array of key-value pairs to apply to this resource.
*/
public open fun tagsRaw(`value`: List) {
unwrap(this).setTagsRaw(`value`.map(CfnTag.Companion::unwrap))
}
/**
* An array of key-value pairs to apply to this resource.
*/
public open fun tagsRaw(vararg `value`: CfnTag): Unit = tagsRaw(`value`.toList())
/**
* The variable type of the list.
*/
public open fun variableType(): String? = unwrap(this).getVariableType()
/**
* The variable type of the list.
*/
public open fun variableType(`value`: String) {
unwrap(this).setVariableType(`value`)
}
/**
* A fluent builder for [io.cloudshiftdev.awscdk.services.frauddetector.CfnList].
*/
@CdkDslMarker
public interface Builder {
/**
* The description of the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-description)
* @param description The description of the list.
*/
public fun description(description: String)
/**
* The elements in the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-elements)
* @param elements The elements in the list.
*/
public fun elements(elements: List)
/**
* The elements in the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-elements)
* @param elements The elements in the list.
*/
public fun elements(vararg elements: String)
/**
* The name of the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-name)
* @param name The name of the list.
*/
public fun name(name: String)
/**
* An array of key-value pairs to apply to this resource.
*
* For more information, see
* [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-tags)
* @param tags An array of key-value pairs to apply to this resource.
*/
public fun tags(tags: List)
/**
* An array of key-value pairs to apply to this resource.
*
* For more information, see
* [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-tags)
* @param tags An array of key-value pairs to apply to this resource.
*/
public fun tags(vararg tags: CfnTag)
/**
* The variable type of the list.
*
* For more information, see [Variable
* types](https://docs.aws.amazon.com/frauddetector/latest/ug/variables.html#variable-types)
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-variabletype)
* @param variableType The variable type of the list.
*/
public fun variableType(variableType: String)
}
private class BuilderImpl(
scope: SoftwareConstructsConstruct,
id: String,
) : Builder {
private val cdkBuilder: software.amazon.awscdk.services.frauddetector.CfnList.Builder =
software.amazon.awscdk.services.frauddetector.CfnList.Builder.create(scope, id)
/**
* The description of the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-description)
* @param description The description of the list.
*/
override fun description(description: String) {
cdkBuilder.description(description)
}
/**
* The elements in the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-elements)
* @param elements The elements in the list.
*/
override fun elements(elements: List) {
cdkBuilder.elements(elements)
}
/**
* The elements in the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-elements)
* @param elements The elements in the list.
*/
override fun elements(vararg elements: String): Unit = elements(elements.toList())
/**
* The name of the list.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-name)
* @param name The name of the list.
*/
override fun name(name: String) {
cdkBuilder.name(name)
}
/**
* An array of key-value pairs to apply to this resource.
*
* For more information, see
* [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-tags)
* @param tags An array of key-value pairs to apply to this resource.
*/
override fun tags(tags: List) {
cdkBuilder.tags(tags.map(CfnTag.Companion::unwrap))
}
/**
* An array of key-value pairs to apply to this resource.
*
* For more information, see
* [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-tags)
* @param tags An array of key-value pairs to apply to this resource.
*/
override fun tags(vararg tags: CfnTag): Unit = tags(tags.toList())
/**
* The variable type of the list.
*
* For more information, see [Variable
* types](https://docs.aws.amazon.com/frauddetector/latest/ug/variables.html#variable-types)
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-list.html#cfn-frauddetector-list-variabletype)
* @param variableType The variable type of the list.
*/
override fun variableType(variableType: String) {
cdkBuilder.variableType(variableType)
}
public fun build(): software.amazon.awscdk.services.frauddetector.CfnList = cdkBuilder.build()
}
public companion object {
public val CFN_RESOURCE_TYPE_NAME: String =
software.amazon.awscdk.services.frauddetector.CfnList.CFN_RESOURCE_TYPE_NAME
public operator fun invoke(
scope: CloudshiftdevConstructsConstruct,
id: String,
block: Builder.() -> Unit = {},
): CfnList {
val builderImpl = BuilderImpl(CloudshiftdevConstructsConstruct.unwrap(scope), id)
return CfnList(builderImpl.apply(block).build())
}
internal fun wrap(cdkObject: software.amazon.awscdk.services.frauddetector.CfnList): CfnList =
CfnList(cdkObject)
internal fun unwrap(wrapped: CfnList): software.amazon.awscdk.services.frauddetector.CfnList =
wrapped.cdkObject as software.amazon.awscdk.services.frauddetector.CfnList
}
}