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

com.pulumi.awsnative.guardduty.kotlin.GuarddutyFunctions.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.guardduty.kotlin

import com.pulumi.awsnative.guardduty.GuarddutyFunctions.getDetectorPlain
import com.pulumi.awsnative.guardduty.GuarddutyFunctions.getFilterPlain
import com.pulumi.awsnative.guardduty.GuarddutyFunctions.getIpSetPlain
import com.pulumi.awsnative.guardduty.GuarddutyFunctions.getMalwareProtectionPlanPlain
import com.pulumi.awsnative.guardduty.GuarddutyFunctions.getMemberPlain
import com.pulumi.awsnative.guardduty.GuarddutyFunctions.getThreatIntelSetPlain
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetDetectorPlainArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetDetectorPlainArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetFilterPlainArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetFilterPlainArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetIpSetPlainArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetIpSetPlainArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetMalwareProtectionPlanPlainArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetMalwareProtectionPlanPlainArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetMemberPlainArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetMemberPlainArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetThreatIntelSetPlainArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.GetThreatIntelSetPlainArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetDetectorResult
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetFilterResult
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetIpSetResult
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetMalwareProtectionPlanResult
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetMemberResult
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetThreatIntelSetResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetDetectorResult.Companion.toKotlin as getDetectorResultToKotlin
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetFilterResult.Companion.toKotlin as getFilterResultToKotlin
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetIpSetResult.Companion.toKotlin as getIpSetResultToKotlin
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetMalwareProtectionPlanResult.Companion.toKotlin as getMalwareProtectionPlanResultToKotlin
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetMemberResult.Companion.toKotlin as getMemberResultToKotlin
import com.pulumi.awsnative.guardduty.kotlin.outputs.GetThreatIntelSetResult.Companion.toKotlin as getThreatIntelSetResultToKotlin

public object GuarddutyFunctions {
    /**
     * Resource Type definition for AWS::GuardDuty::Detector
     * @param argument null
     * @return null
     */
    public suspend fun getDetector(argument: GetDetectorPlainArgs): GetDetectorResult =
        getDetectorResultToKotlin(getDetectorPlain(argument.toJava()).await())

    /**
     * @see [getDetector].
     * @param id The unique ID of the detector.
     * @return null
     */
    public suspend fun getDetector(id: String): GetDetectorResult {
        val argument = GetDetectorPlainArgs(
            id = id,
        )
        return getDetectorResultToKotlin(getDetectorPlain(argument.toJava()).await())
    }

    /**
     * @see [getDetector].
     * @param argument Builder for [com.pulumi.awsnative.guardduty.kotlin.inputs.GetDetectorPlainArgs].
     * @return null
     */
    public suspend fun getDetector(argument: suspend GetDetectorPlainArgsBuilder.() -> Unit): GetDetectorResult {
        val builder = GetDetectorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDetectorResultToKotlin(getDetectorPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::GuardDuty::Filter
     * @param argument null
     * @return null
     */
    public suspend fun getFilter(argument: GetFilterPlainArgs): GetFilterResult =
        getFilterResultToKotlin(getFilterPlain(argument.toJava()).await())

    /**
     * @see [getFilter].
     * @param detectorId The ID of the detector belonging to the GuardDuty account that you want to create a filter for.
     * @param name The name of the filter. Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A whitespace is considered to be an invalid character.
     * @return null
     */
    public suspend fun getFilter(detectorId: String, name: String): GetFilterResult {
        val argument = GetFilterPlainArgs(
            detectorId = detectorId,
            name = name,
        )
        return getFilterResultToKotlin(getFilterPlain(argument.toJava()).await())
    }

    /**
     * @see [getFilter].
     * @param argument Builder for [com.pulumi.awsnative.guardduty.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())
    }

    /**
     * Resource Type definition for AWS::GuardDuty::IPSet
     * @param argument null
     * @return null
     */
    public suspend fun getIpSet(argument: GetIpSetPlainArgs): GetIpSetResult =
        getIpSetResultToKotlin(getIpSetPlain(argument.toJava()).await())

    /**
     * @see [getIpSet].
     * @param detectorId The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.
     * @param id
     * @return null
     */
    public suspend fun getIpSet(detectorId: String, id: String): GetIpSetResult {
        val argument = GetIpSetPlainArgs(
            detectorId = detectorId,
            id = id,
        )
        return getIpSetResultToKotlin(getIpSetPlain(argument.toJava()).await())
    }

    /**
     * @see [getIpSet].
     * @param argument Builder for [com.pulumi.awsnative.guardduty.kotlin.inputs.GetIpSetPlainArgs].
     * @return null
     */
    public suspend fun getIpSet(argument: suspend GetIpSetPlainArgsBuilder.() -> Unit): GetIpSetResult {
        val builder = GetIpSetPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getIpSetResultToKotlin(getIpSetPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::GuardDuty::MalwareProtectionPlan
     * @param argument null
     * @return null
     */
    public suspend fun getMalwareProtectionPlan(argument: GetMalwareProtectionPlanPlainArgs): GetMalwareProtectionPlanResult =
        getMalwareProtectionPlanResultToKotlin(getMalwareProtectionPlanPlain(argument.toJava()).await())

    /**
     * @see [getMalwareProtectionPlan].
     * @param malwareProtectionPlanId A unique identifier associated with Malware Protection plan resource.
     * @return null
     */
    public suspend fun getMalwareProtectionPlan(malwareProtectionPlanId: String): GetMalwareProtectionPlanResult {
        val argument = GetMalwareProtectionPlanPlainArgs(
            malwareProtectionPlanId = malwareProtectionPlanId,
        )
        return getMalwareProtectionPlanResultToKotlin(getMalwareProtectionPlanPlain(argument.toJava()).await())
    }

    /**
     * @see [getMalwareProtectionPlan].
     * @param argument Builder for [com.pulumi.awsnative.guardduty.kotlin.inputs.GetMalwareProtectionPlanPlainArgs].
     * @return null
     */
    public suspend fun getMalwareProtectionPlan(argument: suspend GetMalwareProtectionPlanPlainArgsBuilder.() -> Unit): GetMalwareProtectionPlanResult {
        val builder = GetMalwareProtectionPlanPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getMalwareProtectionPlanResultToKotlin(getMalwareProtectionPlanPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::GuardDuty::Member
     * @param argument null
     * @return null
     */
    public suspend fun getMember(argument: GetMemberPlainArgs): GetMemberResult =
        getMemberResultToKotlin(getMemberPlain(argument.toJava()).await())

    /**
     * @see [getMember].
     * @param detectorId The ID of the detector associated with the GuardDuty service to add the member to.
     * @param memberId The AWS account ID of the account to designate as a member.
     * @return null
     */
    public suspend fun getMember(detectorId: String, memberId: String): GetMemberResult {
        val argument = GetMemberPlainArgs(
            detectorId = detectorId,
            memberId = memberId,
        )
        return getMemberResultToKotlin(getMemberPlain(argument.toJava()).await())
    }

    /**
     * @see [getMember].
     * @param argument Builder for [com.pulumi.awsnative.guardduty.kotlin.inputs.GetMemberPlainArgs].
     * @return null
     */
    public suspend fun getMember(argument: suspend GetMemberPlainArgsBuilder.() -> Unit): GetMemberResult {
        val builder = GetMemberPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getMemberResultToKotlin(getMemberPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::GuardDuty::ThreatIntelSet
     * @param argument null
     * @return null
     */
    public suspend fun getThreatIntelSet(argument: GetThreatIntelSetPlainArgs): GetThreatIntelSetResult =
        getThreatIntelSetResultToKotlin(getThreatIntelSetPlain(argument.toJava()).await())

    /**
     * @see [getThreatIntelSet].
     * @param detectorId The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.
     * @param id The unique ID of the `threatIntelSet` .
     * @return null
     */
    public suspend fun getThreatIntelSet(detectorId: String, id: String): GetThreatIntelSetResult {
        val argument = GetThreatIntelSetPlainArgs(
            detectorId = detectorId,
            id = id,
        )
        return getThreatIntelSetResultToKotlin(getThreatIntelSetPlain(argument.toJava()).await())
    }

    /**
     * @see [getThreatIntelSet].
     * @param argument Builder for [com.pulumi.awsnative.guardduty.kotlin.inputs.GetThreatIntelSetPlainArgs].
     * @return null
     */
    public suspend fun getThreatIntelSet(argument: suspend GetThreatIntelSetPlainArgsBuilder.() -> Unit): GetThreatIntelSetResult {
        val builder = GetThreatIntelSetPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getThreatIntelSetResultToKotlin(getThreatIntelSetPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy