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

com.pulumi.awsnative.detective.kotlin.DetectiveFunctions.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.detective.kotlin

import com.pulumi.awsnative.detective.DetectiveFunctions.getGraphPlain
import com.pulumi.awsnative.detective.DetectiveFunctions.getMemberInvitationPlain
import com.pulumi.awsnative.detective.DetectiveFunctions.getOrganizationAdminPlain
import com.pulumi.awsnative.detective.kotlin.inputs.GetGraphPlainArgs
import com.pulumi.awsnative.detective.kotlin.inputs.GetGraphPlainArgsBuilder
import com.pulumi.awsnative.detective.kotlin.inputs.GetMemberInvitationPlainArgs
import com.pulumi.awsnative.detective.kotlin.inputs.GetMemberInvitationPlainArgsBuilder
import com.pulumi.awsnative.detective.kotlin.inputs.GetOrganizationAdminPlainArgs
import com.pulumi.awsnative.detective.kotlin.inputs.GetOrganizationAdminPlainArgsBuilder
import com.pulumi.awsnative.detective.kotlin.outputs.GetGraphResult
import com.pulumi.awsnative.detective.kotlin.outputs.GetMemberInvitationResult
import com.pulumi.awsnative.detective.kotlin.outputs.GetOrganizationAdminResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.detective.kotlin.outputs.GetGraphResult.Companion.toKotlin as getGraphResultToKotlin
import com.pulumi.awsnative.detective.kotlin.outputs.GetMemberInvitationResult.Companion.toKotlin as getMemberInvitationResultToKotlin
import com.pulumi.awsnative.detective.kotlin.outputs.GetOrganizationAdminResult.Companion.toKotlin as getOrganizationAdminResultToKotlin

public object DetectiveFunctions {
    /**
     * Resource schema for AWS::Detective::Graph
     * @param argument null
     * @return null
     */
    public suspend fun getGraph(argument: GetGraphPlainArgs): GetGraphResult =
        getGraphResultToKotlin(getGraphPlain(argument.toJava()).await())

    /**
     * @see [getGraph].
     * @param arn The Detective graph ARN
     * @return null
     */
    public suspend fun getGraph(arn: String): GetGraphResult {
        val argument = GetGraphPlainArgs(
            arn = arn,
        )
        return getGraphResultToKotlin(getGraphPlain(argument.toJava()).await())
    }

    /**
     * @see [getGraph].
     * @param argument Builder for [com.pulumi.awsnative.detective.kotlin.inputs.GetGraphPlainArgs].
     * @return null
     */
    public suspend fun getGraph(argument: suspend GetGraphPlainArgsBuilder.() -> Unit): GetGraphResult {
        val builder = GetGraphPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getGraphResultToKotlin(getGraphPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::Detective::MemberInvitation
     * @param argument null
     * @return null
     */
    public suspend fun getMemberInvitation(argument: GetMemberInvitationPlainArgs): GetMemberInvitationResult =
        getMemberInvitationResultToKotlin(getMemberInvitationPlain(argument.toJava()).await())

    /**
     * @see [getMemberInvitation].
     * @param graphArn The ARN of the graph to which the member account will be invited
     * @param memberId The AWS account ID to be invited to join the graph as a member
     * @return null
     */
    public suspend fun getMemberInvitation(graphArn: String, memberId: String): GetMemberInvitationResult {
        val argument = GetMemberInvitationPlainArgs(
            graphArn = graphArn,
            memberId = memberId,
        )
        return getMemberInvitationResultToKotlin(getMemberInvitationPlain(argument.toJava()).await())
    }

    /**
     * @see [getMemberInvitation].
     * @param argument Builder for [com.pulumi.awsnative.detective.kotlin.inputs.GetMemberInvitationPlainArgs].
     * @return null
     */
    public suspend fun getMemberInvitation(argument: suspend GetMemberInvitationPlainArgsBuilder.() -> Unit): GetMemberInvitationResult {
        val builder = GetMemberInvitationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getMemberInvitationResultToKotlin(getMemberInvitationPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource schema for AWS::Detective::OrganizationAdmin
     * @param argument null
     * @return null
     */
    public suspend fun getOrganizationAdmin(argument: GetOrganizationAdminPlainArgs): GetOrganizationAdminResult =
        getOrganizationAdminResultToKotlin(getOrganizationAdminPlain(argument.toJava()).await())

    /**
     * @see [getOrganizationAdmin].
     * @param accountId The account ID of the account that should be registered as your Organization's delegated administrator for Detective
     * @return null
     */
    public suspend fun getOrganizationAdmin(accountId: String): GetOrganizationAdminResult {
        val argument = GetOrganizationAdminPlainArgs(
            accountId = accountId,
        )
        return getOrganizationAdminResultToKotlin(getOrganizationAdminPlain(argument.toJava()).await())
    }

    /**
     * @see [getOrganizationAdmin].
     * @param argument Builder for [com.pulumi.awsnative.detective.kotlin.inputs.GetOrganizationAdminPlainArgs].
     * @return null
     */
    public suspend fun getOrganizationAdmin(argument: suspend GetOrganizationAdminPlainArgsBuilder.() -> Unit): GetOrganizationAdminResult {
        val builder = GetOrganizationAdminPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getOrganizationAdminResultToKotlin(getOrganizationAdminPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy