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

com.pulumi.awsnative.connect.kotlin.ConnectFunctions.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.connect.kotlin

import com.pulumi.awsnative.connect.ConnectFunctions.getContactFlowModulePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getContactFlowPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getEvaluationFormPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getHoursOfOperationPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getInstancePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getInstanceStorageConfigPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getIntegrationAssociationPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getPhoneNumberPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getPredefinedAttributePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getPromptPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getQueuePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getQuickConnectPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getRoutingProfilePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getRulePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getSecurityKeyPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getSecurityProfilePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getTaskTemplatePlain
import com.pulumi.awsnative.connect.ConnectFunctions.getTrafficDistributionGroupPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getUserHierarchyGroupPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getUserPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getViewPlain
import com.pulumi.awsnative.connect.ConnectFunctions.getViewVersionPlain
import com.pulumi.awsnative.connect.kotlin.enums.InstanceStorageConfigInstanceStorageResourceType
import com.pulumi.awsnative.connect.kotlin.enums.IntegrationAssociationIntegrationType
import com.pulumi.awsnative.connect.kotlin.inputs.GetContactFlowModulePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetContactFlowModulePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetContactFlowPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetContactFlowPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetEvaluationFormPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetEvaluationFormPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetHoursOfOperationPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetHoursOfOperationPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetInstancePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetInstancePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetInstanceStorageConfigPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetInstanceStorageConfigPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetIntegrationAssociationPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetIntegrationAssociationPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetPhoneNumberPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetPhoneNumberPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetPredefinedAttributePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetPredefinedAttributePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetPromptPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetPromptPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetQueuePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetQueuePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetQuickConnectPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetQuickConnectPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetRoutingProfilePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetRoutingProfilePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetRulePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetRulePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetSecurityKeyPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetSecurityKeyPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetSecurityProfilePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetSecurityProfilePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetTaskTemplatePlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetTaskTemplatePlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetTrafficDistributionGroupPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetTrafficDistributionGroupPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetUserHierarchyGroupPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetUserHierarchyGroupPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetUserPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetUserPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetViewPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetViewPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.inputs.GetViewVersionPlainArgs
import com.pulumi.awsnative.connect.kotlin.inputs.GetViewVersionPlainArgsBuilder
import com.pulumi.awsnative.connect.kotlin.outputs.GetContactFlowModuleResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetContactFlowResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetEvaluationFormResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetHoursOfOperationResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetInstanceResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetInstanceStorageConfigResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetIntegrationAssociationResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetPhoneNumberResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetPredefinedAttributeResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetPromptResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetQueueResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetQuickConnectResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetRoutingProfileResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetRuleResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetSecurityKeyResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetSecurityProfileResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetTaskTemplateResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetTrafficDistributionGroupResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetUserHierarchyGroupResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetUserResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetViewResult
import com.pulumi.awsnative.connect.kotlin.outputs.GetViewVersionResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.connect.kotlin.outputs.GetContactFlowModuleResult.Companion.toKotlin as getContactFlowModuleResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetContactFlowResult.Companion.toKotlin as getContactFlowResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetEvaluationFormResult.Companion.toKotlin as getEvaluationFormResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetHoursOfOperationResult.Companion.toKotlin as getHoursOfOperationResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetInstanceResult.Companion.toKotlin as getInstanceResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetInstanceStorageConfigResult.Companion.toKotlin as getInstanceStorageConfigResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetIntegrationAssociationResult.Companion.toKotlin as getIntegrationAssociationResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetPhoneNumberResult.Companion.toKotlin as getPhoneNumberResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetPredefinedAttributeResult.Companion.toKotlin as getPredefinedAttributeResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetPromptResult.Companion.toKotlin as getPromptResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetQueueResult.Companion.toKotlin as getQueueResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetQuickConnectResult.Companion.toKotlin as getQuickConnectResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetRoutingProfileResult.Companion.toKotlin as getRoutingProfileResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetRuleResult.Companion.toKotlin as getRuleResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetSecurityKeyResult.Companion.toKotlin as getSecurityKeyResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetSecurityProfileResult.Companion.toKotlin as getSecurityProfileResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetTaskTemplateResult.Companion.toKotlin as getTaskTemplateResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetTrafficDistributionGroupResult.Companion.toKotlin as getTrafficDistributionGroupResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetUserHierarchyGroupResult.Companion.toKotlin as getUserHierarchyGroupResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetUserResult.Companion.toKotlin as getUserResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetViewResult.Companion.toKotlin as getViewResultToKotlin
import com.pulumi.awsnative.connect.kotlin.outputs.GetViewVersionResult.Companion.toKotlin as getViewVersionResultToKotlin

public object ConnectFunctions {
    /**
     * Resource Type definition for AWS::Connect::ContactFlow
     * @param argument null
     * @return null
     */
    public suspend fun getContactFlow(argument: GetContactFlowPlainArgs): GetContactFlowResult =
        getContactFlowResultToKotlin(getContactFlowPlain(argument.toJava()).await())

    /**
     * @see [getContactFlow].
     * @param contactFlowArn The identifier of the contact flow (ARN).
     * @return null
     */
    public suspend fun getContactFlow(contactFlowArn: String): GetContactFlowResult {
        val argument = GetContactFlowPlainArgs(
            contactFlowArn = contactFlowArn,
        )
        return getContactFlowResultToKotlin(getContactFlowPlain(argument.toJava()).await())
    }

    /**
     * @see [getContactFlow].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetContactFlowPlainArgs].
     * @return null
     */
    public suspend fun getContactFlow(argument: suspend GetContactFlowPlainArgsBuilder.() -> Unit): GetContactFlowResult {
        val builder = GetContactFlowPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getContactFlowResultToKotlin(getContactFlowPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::ContactFlowModule.
     * @param argument null
     * @return null
     */
    public suspend fun getContactFlowModule(argument: GetContactFlowModulePlainArgs): GetContactFlowModuleResult =
        getContactFlowModuleResultToKotlin(getContactFlowModulePlain(argument.toJava()).await())

    /**
     * @see [getContactFlowModule].
     * @param contactFlowModuleArn The identifier of the contact flow module (ARN).
     * @return null
     */
    public suspend fun getContactFlowModule(contactFlowModuleArn: String): GetContactFlowModuleResult {
        val argument = GetContactFlowModulePlainArgs(
            contactFlowModuleArn = contactFlowModuleArn,
        )
        return getContactFlowModuleResultToKotlin(getContactFlowModulePlain(argument.toJava()).await())
    }

    /**
     * @see [getContactFlowModule].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetContactFlowModulePlainArgs].
     * @return null
     */
    public suspend fun getContactFlowModule(argument: suspend GetContactFlowModulePlainArgsBuilder.() -> Unit): GetContactFlowModuleResult {
        val builder = GetContactFlowModulePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getContactFlowModuleResultToKotlin(getContactFlowModulePlain(builtArgument.toJava()).await())
    }

    /**
     * Creates an evaluation form for the specified CON instance.
     * @param argument null
     * @return null
     */
    public suspend fun getEvaluationForm(argument: GetEvaluationFormPlainArgs): GetEvaluationFormResult =
        getEvaluationFormResultToKotlin(getEvaluationFormPlain(argument.toJava()).await())

    /**
     * @see [getEvaluationForm].
     * @param evaluationFormArn The Amazon Resource Name (ARN) of the evaluation form.
     * @return null
     */
    public suspend fun getEvaluationForm(evaluationFormArn: String): GetEvaluationFormResult {
        val argument = GetEvaluationFormPlainArgs(
            evaluationFormArn = evaluationFormArn,
        )
        return getEvaluationFormResultToKotlin(getEvaluationFormPlain(argument.toJava()).await())
    }

    /**
     * @see [getEvaluationForm].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetEvaluationFormPlainArgs].
     * @return null
     */
    public suspend fun getEvaluationForm(argument: suspend GetEvaluationFormPlainArgsBuilder.() -> Unit): GetEvaluationFormResult {
        val builder = GetEvaluationFormPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getEvaluationFormResultToKotlin(getEvaluationFormPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::HoursOfOperation
     * @param argument null
     * @return null
     */
    public suspend fun getHoursOfOperation(argument: GetHoursOfOperationPlainArgs): GetHoursOfOperationResult =
        getHoursOfOperationResultToKotlin(getHoursOfOperationPlain(argument.toJava()).await())

    /**
     * @see [getHoursOfOperation].
     * @param hoursOfOperationArn The Amazon Resource Name (ARN) for the hours of operation.
     * @return null
     */
    public suspend fun getHoursOfOperation(hoursOfOperationArn: String): GetHoursOfOperationResult {
        val argument = GetHoursOfOperationPlainArgs(
            hoursOfOperationArn = hoursOfOperationArn,
        )
        return getHoursOfOperationResultToKotlin(getHoursOfOperationPlain(argument.toJava()).await())
    }

    /**
     * @see [getHoursOfOperation].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetHoursOfOperationPlainArgs].
     * @return null
     */
    public suspend fun getHoursOfOperation(argument: suspend GetHoursOfOperationPlainArgsBuilder.() -> Unit): GetHoursOfOperationResult {
        val builder = GetHoursOfOperationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getHoursOfOperationResultToKotlin(getHoursOfOperationPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::Instance
     * @param argument null
     * @return null
     */
    public suspend fun getInstance(argument: GetInstancePlainArgs): GetInstanceResult =
        getInstanceResultToKotlin(getInstancePlain(argument.toJava()).await())

    /**
     * @see [getInstance].
     * @param arn An instanceArn is automatically generated on creation based on instanceId.
     * @return null
     */
    public suspend fun getInstance(arn: String): GetInstanceResult {
        val argument = GetInstancePlainArgs(
            arn = arn,
        )
        return getInstanceResultToKotlin(getInstancePlain(argument.toJava()).await())
    }

    /**
     * @see [getInstance].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetInstancePlainArgs].
     * @return null
     */
    public suspend fun getInstance(argument: suspend GetInstancePlainArgsBuilder.() -> Unit): GetInstanceResult {
        val builder = GetInstancePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getInstanceResultToKotlin(getInstancePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::InstanceStorageConfig
     * @param argument null
     * @return null
     */
    public suspend fun getInstanceStorageConfig(argument: GetInstanceStorageConfigPlainArgs): GetInstanceStorageConfigResult =
        getInstanceStorageConfigResultToKotlin(getInstanceStorageConfigPlain(argument.toJava()).await())

    /**
     * @see [getInstanceStorageConfig].
     * @param associationId The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.
     * @param instanceArn Connect Instance ID with which the storage config will be associated
     * @param resourceType A valid resource type. Following are the valid resource types: `CHAT_TRANSCRIPTS` | `CALL_RECORDINGS` | `SCHEDULED_REPORTS` | `MEDIA_STREAMS` | `CONTACT_TRACE_RECORDS` | `AGENT_EVENTS`
     * @return null
     */
    public suspend fun getInstanceStorageConfig(
        associationId: String,
        instanceArn: String,
        resourceType: InstanceStorageConfigInstanceStorageResourceType,
    ): GetInstanceStorageConfigResult {
        val argument = GetInstanceStorageConfigPlainArgs(
            associationId = associationId,
            instanceArn = instanceArn,
            resourceType = resourceType,
        )
        return getInstanceStorageConfigResultToKotlin(getInstanceStorageConfigPlain(argument.toJava()).await())
    }

    /**
     * @see [getInstanceStorageConfig].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetInstanceStorageConfigPlainArgs].
     * @return null
     */
    public suspend fun getInstanceStorageConfig(argument: suspend GetInstanceStorageConfigPlainArgsBuilder.() -> Unit): GetInstanceStorageConfigResult {
        val builder = GetInstanceStorageConfigPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getInstanceStorageConfigResultToKotlin(getInstanceStorageConfigPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::IntegrationAssociation
     * @param argument null
     * @return null
     */
    public suspend fun getIntegrationAssociation(argument: GetIntegrationAssociationPlainArgs): GetIntegrationAssociationResult =
        getIntegrationAssociationResultToKotlin(getIntegrationAssociationPlain(argument.toJava()).await())

    /**
     * @see [getIntegrationAssociation].
     * @param instanceId The Amazon Resource Name (ARN) of the instance.
     * *Minimum* : `1`
     * *Maximum* : `100`
     * @param integrationArn ARN of the integration being associated with the instance.
     * *Minimum* : `1`
     * *Maximum* : `140`
     * @param integrationType Specifies the integration type to be associated with the instance.
     * *Allowed Values* : `LEX_BOT` | `LAMBDA_FUNCTION`
     * @return null
     */
    public suspend fun getIntegrationAssociation(
        instanceId: String,
        integrationArn: String,
        integrationType: IntegrationAssociationIntegrationType,
    ): GetIntegrationAssociationResult {
        val argument = GetIntegrationAssociationPlainArgs(
            instanceId = instanceId,
            integrationArn = integrationArn,
            integrationType = integrationType,
        )
        return getIntegrationAssociationResultToKotlin(getIntegrationAssociationPlain(argument.toJava()).await())
    }

    /**
     * @see [getIntegrationAssociation].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetIntegrationAssociationPlainArgs].
     * @return null
     */
    public suspend fun getIntegrationAssociation(argument: suspend GetIntegrationAssociationPlainArgsBuilder.() -> Unit): GetIntegrationAssociationResult {
        val builder = GetIntegrationAssociationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getIntegrationAssociationResultToKotlin(getIntegrationAssociationPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::PhoneNumber
     * @param argument null
     * @return null
     */
    public suspend fun getPhoneNumber(argument: GetPhoneNumberPlainArgs): GetPhoneNumberResult =
        getPhoneNumberResultToKotlin(getPhoneNumberPlain(argument.toJava()).await())

    /**
     * @see [getPhoneNumber].
     * @param phoneNumberArn The phone number ARN
     * @return null
     */
    public suspend fun getPhoneNumber(phoneNumberArn: String): GetPhoneNumberResult {
        val argument = GetPhoneNumberPlainArgs(
            phoneNumberArn = phoneNumberArn,
        )
        return getPhoneNumberResultToKotlin(getPhoneNumberPlain(argument.toJava()).await())
    }

    /**
     * @see [getPhoneNumber].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetPhoneNumberPlainArgs].
     * @return null
     */
    public suspend fun getPhoneNumber(argument: suspend GetPhoneNumberPlainArgsBuilder.() -> Unit): GetPhoneNumberResult {
        val builder = GetPhoneNumberPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPhoneNumberResultToKotlin(getPhoneNumberPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::PredefinedAttribute
     * @param argument null
     * @return null
     */
    public suspend fun getPredefinedAttribute(argument: GetPredefinedAttributePlainArgs): GetPredefinedAttributeResult =
        getPredefinedAttributeResultToKotlin(getPredefinedAttributePlain(argument.toJava()).await())

    /**
     * @see [getPredefinedAttribute].
     * @param instanceArn The identifier of the Amazon Connect instance.
     * @param name The name of the predefined attribute.
     * @return null
     */
    public suspend fun getPredefinedAttribute(instanceArn: String, name: String): GetPredefinedAttributeResult {
        val argument = GetPredefinedAttributePlainArgs(
            instanceArn = instanceArn,
            name = name,
        )
        return getPredefinedAttributeResultToKotlin(getPredefinedAttributePlain(argument.toJava()).await())
    }

    /**
     * @see [getPredefinedAttribute].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetPredefinedAttributePlainArgs].
     * @return null
     */
    public suspend fun getPredefinedAttribute(argument: suspend GetPredefinedAttributePlainArgsBuilder.() -> Unit): GetPredefinedAttributeResult {
        val builder = GetPredefinedAttributePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPredefinedAttributeResultToKotlin(getPredefinedAttributePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::Prompt
     * @param argument null
     * @return null
     */
    public suspend fun getPrompt(argument: GetPromptPlainArgs): GetPromptResult =
        getPromptResultToKotlin(getPromptPlain(argument.toJava()).await())

    /**
     * @see [getPrompt].
     * @param promptArn The Amazon Resource Name (ARN) for the prompt.
     * @return null
     */
    public suspend fun getPrompt(promptArn: String): GetPromptResult {
        val argument = GetPromptPlainArgs(
            promptArn = promptArn,
        )
        return getPromptResultToKotlin(getPromptPlain(argument.toJava()).await())
    }

    /**
     * @see [getPrompt].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetPromptPlainArgs].
     * @return null
     */
    public suspend fun getPrompt(argument: suspend GetPromptPlainArgsBuilder.() -> Unit): GetPromptResult {
        val builder = GetPromptPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPromptResultToKotlin(getPromptPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::Queue
     * @param argument null
     * @return null
     */
    public suspend fun getQueue(argument: GetQueuePlainArgs): GetQueueResult =
        getQueueResultToKotlin(getQueuePlain(argument.toJava()).await())

    /**
     * @see [getQueue].
     * @param queueArn The Amazon Resource Name (ARN) for the queue.
     * @return null
     */
    public suspend fun getQueue(queueArn: String): GetQueueResult {
        val argument = GetQueuePlainArgs(
            queueArn = queueArn,
        )
        return getQueueResultToKotlin(getQueuePlain(argument.toJava()).await())
    }

    /**
     * @see [getQueue].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetQueuePlainArgs].
     * @return null
     */
    public suspend fun getQueue(argument: suspend GetQueuePlainArgsBuilder.() -> Unit): GetQueueResult {
        val builder = GetQueuePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getQueueResultToKotlin(getQueuePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::QuickConnect
     * @param argument null
     * @return null
     */
    public suspend fun getQuickConnect(argument: GetQuickConnectPlainArgs): GetQuickConnectResult =
        getQuickConnectResultToKotlin(getQuickConnectPlain(argument.toJava()).await())

    /**
     * @see [getQuickConnect].
     * @param quickConnectArn The Amazon Resource Name (ARN) for the quick connect.
     * @return null
     */
    public suspend fun getQuickConnect(quickConnectArn: String): GetQuickConnectResult {
        val argument = GetQuickConnectPlainArgs(
            quickConnectArn = quickConnectArn,
        )
        return getQuickConnectResultToKotlin(getQuickConnectPlain(argument.toJava()).await())
    }

    /**
     * @see [getQuickConnect].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetQuickConnectPlainArgs].
     * @return null
     */
    public suspend fun getQuickConnect(argument: suspend GetQuickConnectPlainArgsBuilder.() -> Unit): GetQuickConnectResult {
        val builder = GetQuickConnectPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getQuickConnectResultToKotlin(getQuickConnectPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::RoutingProfile
     * @param argument null
     * @return null
     */
    public suspend fun getRoutingProfile(argument: GetRoutingProfilePlainArgs): GetRoutingProfileResult =
        getRoutingProfileResultToKotlin(getRoutingProfilePlain(argument.toJava()).await())

    /**
     * @see [getRoutingProfile].
     * @param routingProfileArn The Amazon Resource Name (ARN) of the routing profile.
     * @return null
     */
    public suspend fun getRoutingProfile(routingProfileArn: String): GetRoutingProfileResult {
        val argument = GetRoutingProfilePlainArgs(
            routingProfileArn = routingProfileArn,
        )
        return getRoutingProfileResultToKotlin(getRoutingProfilePlain(argument.toJava()).await())
    }

    /**
     * @see [getRoutingProfile].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetRoutingProfilePlainArgs].
     * @return null
     */
    public suspend fun getRoutingProfile(argument: suspend GetRoutingProfilePlainArgsBuilder.() -> Unit): GetRoutingProfileResult {
        val builder = GetRoutingProfilePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getRoutingProfileResultToKotlin(getRoutingProfilePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS:Connect::Rule
     * @param argument null
     * @return null
     */
    public suspend fun getRule(argument: GetRulePlainArgs): GetRuleResult =
        getRuleResultToKotlin(getRulePlain(argument.toJava()).await())

    /**
     * @see [getRule].
     * @param ruleArn The Amazon Resource Name (ARN) of the rule.
     * @return null
     */
    public suspend fun getRule(ruleArn: String): GetRuleResult {
        val argument = GetRulePlainArgs(
            ruleArn = ruleArn,
        )
        return getRuleResultToKotlin(getRulePlain(argument.toJava()).await())
    }

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

    /**
     * Resource Type definition for AWS::Connect::SecurityKey
     * @param argument null
     * @return null
     */
    public suspend fun getSecurityKey(argument: GetSecurityKeyPlainArgs): GetSecurityKeyResult =
        getSecurityKeyResultToKotlin(getSecurityKeyPlain(argument.toJava()).await())

    /**
     * @see [getSecurityKey].
     * @param associationId An `AssociationId` is automatically generated when a storage config is associated with an instance.
     * @param instanceId The Amazon Resource Name (ARN) of the instance.
     * *Minimum* : `1`
     * *Maximum* : `100`
     * @return null
     */
    public suspend fun getSecurityKey(associationId: String, instanceId: String): GetSecurityKeyResult {
        val argument = GetSecurityKeyPlainArgs(
            associationId = associationId,
            instanceId = instanceId,
        )
        return getSecurityKeyResultToKotlin(getSecurityKeyPlain(argument.toJava()).await())
    }

    /**
     * @see [getSecurityKey].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetSecurityKeyPlainArgs].
     * @return null
     */
    public suspend fun getSecurityKey(argument: suspend GetSecurityKeyPlainArgsBuilder.() -> Unit): GetSecurityKeyResult {
        val builder = GetSecurityKeyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getSecurityKeyResultToKotlin(getSecurityKeyPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::SecurityProfile
     * @param argument null
     * @return null
     */
    public suspend fun getSecurityProfile(argument: GetSecurityProfilePlainArgs): GetSecurityProfileResult =
        getSecurityProfileResultToKotlin(getSecurityProfilePlain(argument.toJava()).await())

    /**
     * @see [getSecurityProfile].
     * @param securityProfileArn The Amazon Resource Name (ARN) for the security profile.
     * @return null
     */
    public suspend fun getSecurityProfile(securityProfileArn: String): GetSecurityProfileResult {
        val argument = GetSecurityProfilePlainArgs(
            securityProfileArn = securityProfileArn,
        )
        return getSecurityProfileResultToKotlin(getSecurityProfilePlain(argument.toJava()).await())
    }

    /**
     * @see [getSecurityProfile].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetSecurityProfilePlainArgs].
     * @return null
     */
    public suspend fun getSecurityProfile(argument: suspend GetSecurityProfilePlainArgsBuilder.() -> Unit): GetSecurityProfileResult {
        val builder = GetSecurityProfilePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getSecurityProfileResultToKotlin(getSecurityProfilePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::TaskTemplate.
     * @param argument null
     * @return null
     */
    public suspend fun getTaskTemplate(argument: GetTaskTemplatePlainArgs): GetTaskTemplateResult =
        getTaskTemplateResultToKotlin(getTaskTemplatePlain(argument.toJava()).await())

    /**
     * @see [getTaskTemplate].
     * @param arn The identifier (arn) of the task template.
     * @return null
     */
    public suspend fun getTaskTemplate(arn: String): GetTaskTemplateResult {
        val argument = GetTaskTemplatePlainArgs(
            arn = arn,
        )
        return getTaskTemplateResultToKotlin(getTaskTemplatePlain(argument.toJava()).await())
    }

    /**
     * @see [getTaskTemplate].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetTaskTemplatePlainArgs].
     * @return null
     */
    public suspend fun getTaskTemplate(argument: suspend GetTaskTemplatePlainArgsBuilder.() -> Unit): GetTaskTemplateResult {
        val builder = GetTaskTemplatePlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getTaskTemplateResultToKotlin(getTaskTemplatePlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::TrafficDistributionGroup
     * @param argument null
     * @return null
     */
    public suspend fun getTrafficDistributionGroup(argument: GetTrafficDistributionGroupPlainArgs): GetTrafficDistributionGroupResult =
        getTrafficDistributionGroupResultToKotlin(getTrafficDistributionGroupPlain(argument.toJava()).await())

    /**
     * @see [getTrafficDistributionGroup].
     * @param trafficDistributionGroupArn The identifier of the traffic distribution group.
     * @return null
     */
    public suspend fun getTrafficDistributionGroup(trafficDistributionGroupArn: String): GetTrafficDistributionGroupResult {
        val argument = GetTrafficDistributionGroupPlainArgs(
            trafficDistributionGroupArn = trafficDistributionGroupArn,
        )
        return getTrafficDistributionGroupResultToKotlin(getTrafficDistributionGroupPlain(argument.toJava()).await())
    }

    /**
     * @see [getTrafficDistributionGroup].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetTrafficDistributionGroupPlainArgs].
     * @return null
     */
    public suspend fun getTrafficDistributionGroup(argument: suspend GetTrafficDistributionGroupPlainArgsBuilder.() -> Unit): GetTrafficDistributionGroupResult {
        val builder = GetTrafficDistributionGroupPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getTrafficDistributionGroupResultToKotlin(getTrafficDistributionGroupPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::User
     * @param argument null
     * @return null
     */
    public suspend fun getUser(argument: GetUserPlainArgs): GetUserResult =
        getUserResultToKotlin(getUserPlain(argument.toJava()).await())

    /**
     * @see [getUser].
     * @param userArn The Amazon Resource Name (ARN) for the user.
     * @return null
     */
    public suspend fun getUser(userArn: String): GetUserResult {
        val argument = GetUserPlainArgs(
            userArn = userArn,
        )
        return getUserResultToKotlin(getUserPlain(argument.toJava()).await())
    }

    /**
     * @see [getUser].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetUserPlainArgs].
     * @return null
     */
    public suspend fun getUser(argument: suspend GetUserPlainArgsBuilder.() -> Unit): GetUserResult {
        val builder = GetUserPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getUserResultToKotlin(getUserPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::UserHierarchyGroup
     * @param argument null
     * @return null
     */
    public suspend fun getUserHierarchyGroup(argument: GetUserHierarchyGroupPlainArgs): GetUserHierarchyGroupResult =
        getUserHierarchyGroupResultToKotlin(getUserHierarchyGroupPlain(argument.toJava()).await())

    /**
     * @see [getUserHierarchyGroup].
     * @param userHierarchyGroupArn The Amazon Resource Name (ARN) for the user hierarchy group.
     * @return null
     */
    public suspend fun getUserHierarchyGroup(userHierarchyGroupArn: String): GetUserHierarchyGroupResult {
        val argument = GetUserHierarchyGroupPlainArgs(
            userHierarchyGroupArn = userHierarchyGroupArn,
        )
        return getUserHierarchyGroupResultToKotlin(getUserHierarchyGroupPlain(argument.toJava()).await())
    }

    /**
     * @see [getUserHierarchyGroup].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetUserHierarchyGroupPlainArgs].
     * @return null
     */
    public suspend fun getUserHierarchyGroup(argument: suspend GetUserHierarchyGroupPlainArgsBuilder.() -> Unit): GetUserHierarchyGroupResult {
        val builder = GetUserHierarchyGroupPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getUserHierarchyGroupResultToKotlin(getUserHierarchyGroupPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::View
     * @param argument null
     * @return null
     */
    public suspend fun getView(argument: GetViewPlainArgs): GetViewResult =
        getViewResultToKotlin(getViewPlain(argument.toJava()).await())

    /**
     * @see [getView].
     * @param viewArn The Amazon Resource Name (ARN) of the view.
     * @return null
     */
    public suspend fun getView(viewArn: String): GetViewResult {
        val argument = GetViewPlainArgs(
            viewArn = viewArn,
        )
        return getViewResultToKotlin(getViewPlain(argument.toJava()).await())
    }

    /**
     * @see [getView].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetViewPlainArgs].
     * @return null
     */
    public suspend fun getView(argument: suspend GetViewPlainArgsBuilder.() -> Unit): GetViewResult {
        val builder = GetViewPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getViewResultToKotlin(getViewPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Connect::ViewVersion
     * @param argument null
     * @return null
     */
    public suspend fun getViewVersion(argument: GetViewVersionPlainArgs): GetViewVersionResult =
        getViewVersionResultToKotlin(getViewVersionPlain(argument.toJava()).await())

    /**
     * @see [getViewVersion].
     * @param viewVersionArn The Amazon Resource Name (ARN) of the created view version.
     * @return null
     */
    public suspend fun getViewVersion(viewVersionArn: String): GetViewVersionResult {
        val argument = GetViewVersionPlainArgs(
            viewVersionArn = viewVersionArn,
        )
        return getViewVersionResultToKotlin(getViewVersionPlain(argument.toJava()).await())
    }

    /**
     * @see [getViewVersion].
     * @param argument Builder for [com.pulumi.awsnative.connect.kotlin.inputs.GetViewVersionPlainArgs].
     * @return null
     */
    public suspend fun getViewVersion(argument: suspend GetViewVersionPlainArgsBuilder.() -> Unit): GetViewVersionResult {
        val builder = GetViewVersionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getViewVersionResultToKotlin(getViewVersionPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy