com.pulumi.awsnative.securitylake.kotlin.SecuritylakeFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.securitylake.kotlin
import com.pulumi.awsnative.securitylake.SecuritylakeFunctions.getAwsLogSourcePlain
import com.pulumi.awsnative.securitylake.SecuritylakeFunctions.getDataLakePlain
import com.pulumi.awsnative.securitylake.SecuritylakeFunctions.getSubscriberNotificationPlain
import com.pulumi.awsnative.securitylake.SecuritylakeFunctions.getSubscriberPlain
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetAwsLogSourcePlainArgs
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetAwsLogSourcePlainArgsBuilder
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetDataLakePlainArgs
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetDataLakePlainArgsBuilder
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetSubscriberNotificationPlainArgs
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetSubscriberNotificationPlainArgsBuilder
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetSubscriberPlainArgs
import com.pulumi.awsnative.securitylake.kotlin.inputs.GetSubscriberPlainArgsBuilder
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetAwsLogSourceResult
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetDataLakeResult
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetSubscriberNotificationResult
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetSubscriberResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetAwsLogSourceResult.Companion.toKotlin as getAwsLogSourceResultToKotlin
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetDataLakeResult.Companion.toKotlin as getDataLakeResultToKotlin
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetSubscriberNotificationResult.Companion.toKotlin as getSubscriberNotificationResultToKotlin
import com.pulumi.awsnative.securitylake.kotlin.outputs.GetSubscriberResult.Companion.toKotlin as getSubscriberResultToKotlin
public object SecuritylakeFunctions {
/**
* Resource Type definition for AWS::SecurityLake::AwsLogSource
* @param argument null
* @return null
*/
public suspend fun getAwsLogSource(argument: GetAwsLogSourcePlainArgs): GetAwsLogSourceResult =
getAwsLogSourceResultToKotlin(getAwsLogSourcePlain(argument.toJava()).await())
/**
* @see [getAwsLogSource].
* @param sourceName The name for a AWS source. This must be a Regionally unique value.
* @param sourceVersion The version for a AWS source. This must be a Regionally unique value.
* @return null
*/
public suspend fun getAwsLogSource(sourceName: String, sourceVersion: String): GetAwsLogSourceResult {
val argument = GetAwsLogSourcePlainArgs(
sourceName = sourceName,
sourceVersion = sourceVersion,
)
return getAwsLogSourceResultToKotlin(getAwsLogSourcePlain(argument.toJava()).await())
}
/**
* @see [getAwsLogSource].
* @param argument Builder for [com.pulumi.awsnative.securitylake.kotlin.inputs.GetAwsLogSourcePlainArgs].
* @return null
*/
public suspend fun getAwsLogSource(argument: suspend GetAwsLogSourcePlainArgsBuilder.() -> Unit): GetAwsLogSourceResult {
val builder = GetAwsLogSourcePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAwsLogSourceResultToKotlin(getAwsLogSourcePlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::SecurityLake::DataLake
* @param argument null
* @return null
*/
public suspend fun getDataLake(argument: GetDataLakePlainArgs): GetDataLakeResult =
getDataLakeResultToKotlin(getDataLakePlain(argument.toJava()).await())
/**
* @see [getDataLake].
* @param arn The Amazon Resource Name (ARN) created by you to provide to the subscriber.
* @return null
*/
public suspend fun getDataLake(arn: String): GetDataLakeResult {
val argument = GetDataLakePlainArgs(
arn = arn,
)
return getDataLakeResultToKotlin(getDataLakePlain(argument.toJava()).await())
}
/**
* @see [getDataLake].
* @param argument Builder for [com.pulumi.awsnative.securitylake.kotlin.inputs.GetDataLakePlainArgs].
* @return null
*/
public suspend fun getDataLake(argument: suspend GetDataLakePlainArgsBuilder.() -> Unit): GetDataLakeResult {
val builder = GetDataLakePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDataLakeResultToKotlin(getDataLakePlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::SecurityLake::Subscriber
* @param argument null
* @return null
*/
public suspend fun getSubscriber(argument: GetSubscriberPlainArgs): GetSubscriberResult =
getSubscriberResultToKotlin(getSubscriberPlain(argument.toJava()).await())
/**
* @see [getSubscriber].
* @param subscriberArn The Amazon Resource Name (ARN) of the Security Lake subscriber.
* @return null
*/
public suspend fun getSubscriber(subscriberArn: String): GetSubscriberResult {
val argument = GetSubscriberPlainArgs(
subscriberArn = subscriberArn,
)
return getSubscriberResultToKotlin(getSubscriberPlain(argument.toJava()).await())
}
/**
* @see [getSubscriber].
* @param argument Builder for [com.pulumi.awsnative.securitylake.kotlin.inputs.GetSubscriberPlainArgs].
* @return null
*/
public suspend fun getSubscriber(argument: suspend GetSubscriberPlainArgsBuilder.() -> Unit): GetSubscriberResult {
val builder = GetSubscriberPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSubscriberResultToKotlin(getSubscriberPlain(builtArgument.toJava()).await())
}
/**
* Resource Type definition for AWS::SecurityLake::SubscriberNotification
* @param argument null
* @return null
*/
public suspend fun getSubscriberNotification(argument: GetSubscriberNotificationPlainArgs): GetSubscriberNotificationResult =
getSubscriberNotificationResultToKotlin(getSubscriberNotificationPlain(argument.toJava()).await())
/**
* @see [getSubscriberNotification].
* @param subscriberArn The ARN for the subscriber
* @return null
*/
public suspend fun getSubscriberNotification(subscriberArn: String): GetSubscriberNotificationResult {
val argument = GetSubscriberNotificationPlainArgs(
subscriberArn = subscriberArn,
)
return getSubscriberNotificationResultToKotlin(getSubscriberNotificationPlain(argument.toJava()).await())
}
/**
* @see [getSubscriberNotification].
* @param argument Builder for [com.pulumi.awsnative.securitylake.kotlin.inputs.GetSubscriberNotificationPlainArgs].
* @return null
*/
public suspend fun getSubscriberNotification(argument: suspend GetSubscriberNotificationPlainArgsBuilder.() -> Unit): GetSubscriberNotificationResult {
val builder = GetSubscriberNotificationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSubscriberNotificationResultToKotlin(getSubscriberNotificationPlain(builtArgument.toJava()).await())
}
}