All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.macie.kotlin.MacieFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.macie.kotlin

import com.pulumi.awsnative.macie.MacieFunctions.getAllowListPlain
import com.pulumi.awsnative.macie.MacieFunctions.getCustomDataIdentifierPlain
import com.pulumi.awsnative.macie.MacieFunctions.getFindingsFilterPlain
import com.pulumi.awsnative.macie.MacieFunctions.getSessionPlain
import com.pulumi.awsnative.macie.kotlin.inputs.GetAllowListPlainArgs
import com.pulumi.awsnative.macie.kotlin.inputs.GetAllowListPlainArgsBuilder
import com.pulumi.awsnative.macie.kotlin.inputs.GetCustomDataIdentifierPlainArgs
import com.pulumi.awsnative.macie.kotlin.inputs.GetCustomDataIdentifierPlainArgsBuilder
import com.pulumi.awsnative.macie.kotlin.inputs.GetFindingsFilterPlainArgs
import com.pulumi.awsnative.macie.kotlin.inputs.GetFindingsFilterPlainArgsBuilder
import com.pulumi.awsnative.macie.kotlin.inputs.GetSessionPlainArgs
import com.pulumi.awsnative.macie.kotlin.inputs.GetSessionPlainArgsBuilder
import com.pulumi.awsnative.macie.kotlin.outputs.GetAllowListResult
import com.pulumi.awsnative.macie.kotlin.outputs.GetCustomDataIdentifierResult
import com.pulumi.awsnative.macie.kotlin.outputs.GetFindingsFilterResult
import com.pulumi.awsnative.macie.kotlin.outputs.GetSessionResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.macie.kotlin.outputs.GetAllowListResult.Companion.toKotlin as getAllowListResultToKotlin
import com.pulumi.awsnative.macie.kotlin.outputs.GetCustomDataIdentifierResult.Companion.toKotlin as getCustomDataIdentifierResultToKotlin
import com.pulumi.awsnative.macie.kotlin.outputs.GetFindingsFilterResult.Companion.toKotlin as getFindingsFilterResultToKotlin
import com.pulumi.awsnative.macie.kotlin.outputs.GetSessionResult.Companion.toKotlin as getSessionResultToKotlin

public object MacieFunctions {
    /**
     * Macie AllowList resource schema
     * @param argument null
     * @return null
     */
    public suspend fun getAllowList(argument: GetAllowListPlainArgs): GetAllowListResult =
        getAllowListResultToKotlin(getAllowListPlain(argument.toJava()).await())

    /**
     * @see [getAllowList].
     * @param id AllowList ID.
     * @return null
     */
    public suspend fun getAllowList(id: String): GetAllowListResult {
        val argument = GetAllowListPlainArgs(
            id = id,
        )
        return getAllowListResultToKotlin(getAllowListPlain(argument.toJava()).await())
    }

    /**
     * @see [getAllowList].
     * @param argument Builder for [com.pulumi.awsnative.macie.kotlin.inputs.GetAllowListPlainArgs].
     * @return null
     */
    public suspend fun getAllowList(argument: suspend GetAllowListPlainArgsBuilder.() -> Unit): GetAllowListResult {
        val builder = GetAllowListPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAllowListResultToKotlin(getAllowListPlain(builtArgument.toJava()).await())
    }

    /**
     * Macie CustomDataIdentifier resource schema
     * @param argument null
     * @return null
     */
    public suspend fun getCustomDataIdentifier(argument: GetCustomDataIdentifierPlainArgs): GetCustomDataIdentifierResult =
        getCustomDataIdentifierResultToKotlin(getCustomDataIdentifierPlain(argument.toJava()).await())

    /**
     * @see [getCustomDataIdentifier].
     * @param id Custom data identifier ID.
     * @return null
     */
    public suspend fun getCustomDataIdentifier(id: String): GetCustomDataIdentifierResult {
        val argument = GetCustomDataIdentifierPlainArgs(
            id = id,
        )
        return getCustomDataIdentifierResultToKotlin(getCustomDataIdentifierPlain(argument.toJava()).await())
    }

    /**
     * @see [getCustomDataIdentifier].
     * @param argument Builder for [com.pulumi.awsnative.macie.kotlin.inputs.GetCustomDataIdentifierPlainArgs].
     * @return null
     */
    public suspend fun getCustomDataIdentifier(argument: suspend GetCustomDataIdentifierPlainArgsBuilder.() -> Unit): GetCustomDataIdentifierResult {
        val builder = GetCustomDataIdentifierPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getCustomDataIdentifierResultToKotlin(getCustomDataIdentifierPlain(builtArgument.toJava()).await())
    }

    /**
     * Macie FindingsFilter resource schema.
     * @param argument null
     * @return null
     */
    public suspend fun getFindingsFilter(argument: GetFindingsFilterPlainArgs): GetFindingsFilterResult =
        getFindingsFilterResultToKotlin(getFindingsFilterPlain(argument.toJava()).await())

    /**
     * @see [getFindingsFilter].
     * @param id Findings filter ID.
     * @return null
     */
    public suspend fun getFindingsFilter(id: String): GetFindingsFilterResult {
        val argument = GetFindingsFilterPlainArgs(
            id = id,
        )
        return getFindingsFilterResultToKotlin(getFindingsFilterPlain(argument.toJava()).await())
    }

    /**
     * @see [getFindingsFilter].
     * @param argument Builder for [com.pulumi.awsnative.macie.kotlin.inputs.GetFindingsFilterPlainArgs].
     * @return null
     */
    public suspend fun getFindingsFilter(argument: suspend GetFindingsFilterPlainArgsBuilder.() -> Unit): GetFindingsFilterResult {
        val builder = GetFindingsFilterPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFindingsFilterResultToKotlin(getFindingsFilterPlain(builtArgument.toJava()).await())
    }

    /**
     * The AWS::Macie::Session resource specifies a new Amazon Macie session. A session is an object that represents the Amazon Macie service. A session is required for Amazon Macie to become operational.
     * @param argument null
     * @return null
     */
    public suspend fun getSession(argument: GetSessionPlainArgs): GetSessionResult =
        getSessionResultToKotlin(getSessionPlain(argument.toJava()).await())

    /**
     * @see [getSession].
     * @param awsAccountId AWS account ID of customer
     * @return null
     */
    public suspend fun getSession(awsAccountId: String): GetSessionResult {
        val argument = GetSessionPlainArgs(
            awsAccountId = awsAccountId,
        )
        return getSessionResultToKotlin(getSessionPlain(argument.toJava()).await())
    }

    /**
     * @see [getSession].
     * @param argument Builder for [com.pulumi.awsnative.macie.kotlin.inputs.GetSessionPlainArgs].
     * @return null
     */
    public suspend fun getSession(argument: suspend GetSessionPlainArgsBuilder.() -> Unit): GetSessionResult {
        val builder = GetSessionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getSessionResultToKotlin(getSessionPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy