com.pulumi.awsnative.vpclattice.kotlin.VpclatticeFunctions.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.vpclattice.kotlin
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getAccessLogSubscriptionPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getAuthPolicyPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getListenerPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getResourcePolicyPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getRulePlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getServiceNetworkPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getServiceNetworkServiceAssociationPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getServiceNetworkVpcAssociationPlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getServicePlain
import com.pulumi.awsnative.vpclattice.VpclatticeFunctions.getTargetGroupPlain
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetAccessLogSubscriptionPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetAccessLogSubscriptionPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetAuthPolicyPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetAuthPolicyPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetListenerPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetListenerPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetResourcePolicyPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetResourcePolicyPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetRulePlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetRulePlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkServiceAssociationPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkServiceAssociationPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkVpcAssociationPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkVpcAssociationPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServicePlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServicePlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetTargetGroupPlainArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.GetTargetGroupPlainArgsBuilder
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetAccessLogSubscriptionResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetAuthPolicyResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetListenerResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetResourcePolicyResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetRuleResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkServiceAssociationResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkVpcAssociationResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceResult
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetTargetGroupResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetAccessLogSubscriptionResult.Companion.toKotlin as getAccessLogSubscriptionResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetAuthPolicyResult.Companion.toKotlin as getAuthPolicyResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetListenerResult.Companion.toKotlin as getListenerResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetResourcePolicyResult.Companion.toKotlin as getResourcePolicyResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetRuleResult.Companion.toKotlin as getRuleResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkResult.Companion.toKotlin as getServiceNetworkResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkServiceAssociationResult.Companion.toKotlin as getServiceNetworkServiceAssociationResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkVpcAssociationResult.Companion.toKotlin as getServiceNetworkVpcAssociationResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceResult.Companion.toKotlin as getServiceResultToKotlin
import com.pulumi.awsnative.vpclattice.kotlin.outputs.GetTargetGroupResult.Companion.toKotlin as getTargetGroupResultToKotlin
public object VpclatticeFunctions {
/**
* Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose. The service network owner can use the access logs to audit the services in the network. The service network owner will only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network.
* @param argument null
* @return null
*/
public suspend fun getAccessLogSubscription(argument: GetAccessLogSubscriptionPlainArgs): GetAccessLogSubscriptionResult =
getAccessLogSubscriptionResultToKotlin(getAccessLogSubscriptionPlain(argument.toJava()).await())
/**
* @see [getAccessLogSubscription].
* @param arn The Amazon Resource Name (ARN) of the access log subscription.
* @return null
*/
public suspend fun getAccessLogSubscription(arn: String): GetAccessLogSubscriptionResult {
val argument = GetAccessLogSubscriptionPlainArgs(
arn = arn,
)
return getAccessLogSubscriptionResultToKotlin(getAccessLogSubscriptionPlain(argument.toJava()).await())
}
/**
* @see [getAccessLogSubscription].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetAccessLogSubscriptionPlainArgs].
* @return null
*/
public suspend fun getAccessLogSubscription(argument: suspend GetAccessLogSubscriptionPlainArgsBuilder.() -> Unit): GetAccessLogSubscriptionResult {
val builder = GetAccessLogSubscriptionPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAccessLogSubscriptionResultToKotlin(getAccessLogSubscriptionPlain(builtArgument.toJava()).await())
}
/**
* Creates or updates the auth policy.
* @param argument null
* @return null
*/
public suspend fun getAuthPolicy(argument: GetAuthPolicyPlainArgs): GetAuthPolicyResult =
getAuthPolicyResultToKotlin(getAuthPolicyPlain(argument.toJava()).await())
/**
* @see [getAuthPolicy].
* @param resourceIdentifier The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.
* @return null
*/
public suspend fun getAuthPolicy(resourceIdentifier: String): GetAuthPolicyResult {
val argument = GetAuthPolicyPlainArgs(
resourceIdentifier = resourceIdentifier,
)
return getAuthPolicyResultToKotlin(getAuthPolicyPlain(argument.toJava()).await())
}
/**
* @see [getAuthPolicy].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetAuthPolicyPlainArgs].
* @return null
*/
public suspend fun getAuthPolicy(argument: suspend GetAuthPolicyPlainArgsBuilder.() -> Unit): GetAuthPolicyResult {
val builder = GetAuthPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAuthPolicyResultToKotlin(getAuthPolicyPlain(builtArgument.toJava()).await())
}
/**
* Creates a listener for a service. Before you start using your Amazon VPC Lattice service, you must add one or more listeners. A listener is a process that checks for connection requests to your services.
* @param argument null
* @return null
*/
public suspend fun getListener(argument: GetListenerPlainArgs): GetListenerResult =
getListenerResultToKotlin(getListenerPlain(argument.toJava()).await())
/**
* @see [getListener].
* @param arn The Amazon Resource Name (ARN) of the listener.
* @return null
*/
public suspend fun getListener(arn: String): GetListenerResult {
val argument = GetListenerPlainArgs(
arn = arn,
)
return getListenerResultToKotlin(getListenerPlain(argument.toJava()).await())
}
/**
* @see [getListener].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetListenerPlainArgs].
* @return null
*/
public suspend fun getListener(argument: suspend GetListenerPlainArgsBuilder.() -> Unit): GetListenerResult {
val builder = GetListenerPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getListenerResultToKotlin(getListenerPlain(builtArgument.toJava()).await())
}
/**
* Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a resource.
* @param argument null
* @return null
*/
public suspend fun getResourcePolicy(argument: GetResourcePolicyPlainArgs): GetResourcePolicyResult =
getResourcePolicyResultToKotlin(getResourcePolicyPlain(argument.toJava()).await())
/**
* @see [getResourcePolicy].
* @param resourceArn An IAM policy.
* @return null
*/
public suspend fun getResourcePolicy(resourceArn: String): GetResourcePolicyResult {
val argument = GetResourcePolicyPlainArgs(
resourceArn = resourceArn,
)
return getResourcePolicyResultToKotlin(getResourcePolicyPlain(argument.toJava()).await())
}
/**
* @see [getResourcePolicy].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetResourcePolicyPlainArgs].
* @return null
*/
public suspend fun getResourcePolicy(argument: suspend GetResourcePolicyPlainArgsBuilder.() -> Unit): GetResourcePolicyResult {
val builder = GetResourcePolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getResourcePolicyResultToKotlin(getResourcePolicyPlain(builtArgument.toJava()).await())
}
/**
* Creates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions.
* @param argument null
* @return null
*/
public suspend fun getRule(argument: GetRulePlainArgs): GetRuleResult =
getRuleResultToKotlin(getRulePlain(argument.toJava()).await())
/**
* @see [getRule].
* @param arn The Amazon Resource Name (ARN) of the rule.
* @return null
*/
public suspend fun getRule(arn: String): GetRuleResult {
val argument = GetRulePlainArgs(
arn = arn,
)
return getRuleResultToKotlin(getRulePlain(argument.toJava()).await())
}
/**
* @see [getRule].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetRulePlainArgs].
* @return null
*/
public suspend fun getRule(argument: suspend GetRulePlainArgsBuilder.() -> Unit): GetRuleResult {
val builder = GetRulePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRuleResultToKotlin(getRulePlain(builtArgument.toJava()).await())
}
/**
* A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC).
* @param argument null
* @return null
*/
public suspend fun getService(argument: GetServicePlainArgs): GetServiceResult =
getServiceResultToKotlin(getServicePlain(argument.toJava()).await())
/**
* @see [getService].
* @param arn The Amazon Resource Name (ARN) of the service.
* @return null
*/
public suspend fun getService(arn: String): GetServiceResult {
val argument = GetServicePlainArgs(
arn = arn,
)
return getServiceResultToKotlin(getServicePlain(argument.toJava()).await())
}
/**
* @see [getService].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServicePlainArgs].
* @return null
*/
public suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult {
val builder = GetServicePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getServiceResultToKotlin(getServicePlain(builtArgument.toJava()).await())
}
/**
* A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.
* @param argument null
* @return null
*/
public suspend fun getServiceNetwork(argument: GetServiceNetworkPlainArgs): GetServiceNetworkResult =
getServiceNetworkResultToKotlin(getServiceNetworkPlain(argument.toJava()).await())
/**
* @see [getServiceNetwork].
* @param arn The Amazon Resource Name (ARN) of the service network.
* @return null
*/
public suspend fun getServiceNetwork(arn: String): GetServiceNetworkResult {
val argument = GetServiceNetworkPlainArgs(
arn = arn,
)
return getServiceNetworkResultToKotlin(getServiceNetworkPlain(argument.toJava()).await())
}
/**
* @see [getServiceNetwork].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkPlainArgs].
* @return null
*/
public suspend fun getServiceNetwork(argument: suspend GetServiceNetworkPlainArgsBuilder.() -> Unit): GetServiceNetworkResult {
val builder = GetServiceNetworkPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getServiceNetworkResultToKotlin(getServiceNetworkPlain(builtArgument.toJava()).await())
}
/**
* Associates a service with a service network.
* @param argument null
* @return null
*/
public suspend fun getServiceNetworkServiceAssociation(argument: GetServiceNetworkServiceAssociationPlainArgs): GetServiceNetworkServiceAssociationResult =
getServiceNetworkServiceAssociationResultToKotlin(getServiceNetworkServiceAssociationPlain(argument.toJava()).await())
/**
* @see [getServiceNetworkServiceAssociation].
* @param arn The Amazon Resource Name (ARN) of the association between the service network and the service.
* @return null
*/
public suspend fun getServiceNetworkServiceAssociation(arn: String): GetServiceNetworkServiceAssociationResult {
val argument = GetServiceNetworkServiceAssociationPlainArgs(
arn = arn,
)
return getServiceNetworkServiceAssociationResultToKotlin(getServiceNetworkServiceAssociationPlain(argument.toJava()).await())
}
/**
* @see [getServiceNetworkServiceAssociation].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkServiceAssociationPlainArgs].
* @return null
*/
public suspend fun getServiceNetworkServiceAssociation(argument: suspend GetServiceNetworkServiceAssociationPlainArgsBuilder.() -> Unit): GetServiceNetworkServiceAssociationResult {
val builder = GetServiceNetworkServiceAssociationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getServiceNetworkServiceAssociationResultToKotlin(getServiceNetworkServiceAssociationPlain(builtArgument.toJava()).await())
}
/**
* Associates a VPC with a service network.
* @param argument null
* @return null
*/
public suspend fun getServiceNetworkVpcAssociation(argument: GetServiceNetworkVpcAssociationPlainArgs): GetServiceNetworkVpcAssociationResult =
getServiceNetworkVpcAssociationResultToKotlin(getServiceNetworkVpcAssociationPlain(argument.toJava()).await())
/**
* @see [getServiceNetworkVpcAssociation].
* @param arn The Amazon Resource Name (ARN) of the association between the service network and the VPC.
* @return null
*/
public suspend fun getServiceNetworkVpcAssociation(arn: String): GetServiceNetworkVpcAssociationResult {
val argument = GetServiceNetworkVpcAssociationPlainArgs(
arn = arn,
)
return getServiceNetworkVpcAssociationResultToKotlin(getServiceNetworkVpcAssociationPlain(argument.toJava()).await())
}
/**
* @see [getServiceNetworkVpcAssociation].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetServiceNetworkVpcAssociationPlainArgs].
* @return null
*/
public suspend fun getServiceNetworkVpcAssociation(argument: suspend GetServiceNetworkVpcAssociationPlainArgsBuilder.() -> Unit): GetServiceNetworkVpcAssociationResult {
val builder = GetServiceNetworkVpcAssociationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getServiceNetworkVpcAssociationResultToKotlin(getServiceNetworkVpcAssociationPlain(builtArgument.toJava()).await())
}
/**
* A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.
* @param argument null
* @return null
*/
public suspend fun getTargetGroup(argument: GetTargetGroupPlainArgs): GetTargetGroupResult =
getTargetGroupResultToKotlin(getTargetGroupPlain(argument.toJava()).await())
/**
* @see [getTargetGroup].
* @param arn The Amazon Resource Name (ARN) of the target group.
* @return null
*/
public suspend fun getTargetGroup(arn: String): GetTargetGroupResult {
val argument = GetTargetGroupPlainArgs(
arn = arn,
)
return getTargetGroupResultToKotlin(getTargetGroupPlain(argument.toJava()).await())
}
/**
* @see [getTargetGroup].
* @param argument Builder for [com.pulumi.awsnative.vpclattice.kotlin.inputs.GetTargetGroupPlainArgs].
* @return null
*/
public suspend fun getTargetGroup(argument: suspend GetTargetGroupPlainArgsBuilder.() -> Unit): GetTargetGroupResult {
val builder = GetTargetGroupPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getTargetGroupResultToKotlin(getTargetGroupPlain(builtArgument.toJava()).await())
}
}