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

com.pulumi.awsnative.inspectorv2.kotlin.Inspectorv2Functions.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.inspectorv2.kotlin

import com.pulumi.awsnative.inspectorv2.Inspectorv2Functions.getCisScanConfigurationPlain
import com.pulumi.awsnative.inspectorv2.Inspectorv2Functions.getFilterPlain
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.GetCisScanConfigurationPlainArgs
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.GetCisScanConfigurationPlainArgsBuilder
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.GetFilterPlainArgs
import com.pulumi.awsnative.inspectorv2.kotlin.inputs.GetFilterPlainArgsBuilder
import com.pulumi.awsnative.inspectorv2.kotlin.outputs.GetCisScanConfigurationResult
import com.pulumi.awsnative.inspectorv2.kotlin.outputs.GetFilterResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.inspectorv2.kotlin.outputs.GetCisScanConfigurationResult.Companion.toKotlin as getCisScanConfigurationResultToKotlin
import com.pulumi.awsnative.inspectorv2.kotlin.outputs.GetFilterResult.Companion.toKotlin as getFilterResultToKotlin

public object Inspectorv2Functions {
    /**
     * CIS Scan Configuration resource schema
     * @param argument null
     * @return null
     */
    public suspend fun getCisScanConfiguration(argument: GetCisScanConfigurationPlainArgs): GetCisScanConfigurationResult =
        getCisScanConfigurationResultToKotlin(getCisScanConfigurationPlain(argument.toJava()).await())

    /**
     * @see [getCisScanConfiguration].
     * @param arn CIS Scan configuration unique identifier
     * @return null
     */
    public suspend fun getCisScanConfiguration(arn: String): GetCisScanConfigurationResult {
        val argument = GetCisScanConfigurationPlainArgs(
            arn = arn,
        )
        return getCisScanConfigurationResultToKotlin(getCisScanConfigurationPlain(argument.toJava()).await())
    }

    /**
     * @see [getCisScanConfiguration].
     * @param argument Builder for [com.pulumi.awsnative.inspectorv2.kotlin.inputs.GetCisScanConfigurationPlainArgs].
     * @return null
     */
    public suspend fun getCisScanConfiguration(argument: suspend GetCisScanConfigurationPlainArgsBuilder.() -> Unit): GetCisScanConfigurationResult {
        val builder = GetCisScanConfigurationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getCisScanConfigurationResultToKotlin(getCisScanConfigurationPlain(builtArgument.toJava()).await())
    }

    /**
     * Inspector Filter resource schema
     * @param argument null
     * @return null
     */
    public suspend fun getFilter(argument: GetFilterPlainArgs): GetFilterResult =
        getFilterResultToKotlin(getFilterPlain(argument.toJava()).await())

    /**
     * @see [getFilter].
     * @param arn Findings filter ARN.
     * @return null
     */
    public suspend fun getFilter(arn: String): GetFilterResult {
        val argument = GetFilterPlainArgs(
            arn = arn,
        )
        return getFilterResultToKotlin(getFilterPlain(argument.toJava()).await())
    }

    /**
     * @see [getFilter].
     * @param argument Builder for [com.pulumi.awsnative.inspectorv2.kotlin.inputs.GetFilterPlainArgs].
     * @return null
     */
    public suspend fun getFilter(argument: suspend GetFilterPlainArgsBuilder.() -> Unit): GetFilterResult {
        val builder = GetFilterPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFilterResultToKotlin(getFilterPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy