
com.pulumi.googlenative.dataproc.v1.kotlin.Dataproc_v1Functions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dataproc.v1.kotlin
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getAutoscalingPolicyIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getAutoscalingPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getBatchPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getClusterPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getJobPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getNodeGroupPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getRegionAutoscalingPolicyIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getRegionClusterIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getRegionJobIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getRegionOperationIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getRegionWorkflowTemplateIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getWorkflowTemplateIamPolicyPlain
import com.pulumi.googlenative.dataproc.v1.Dataproc_v1Functions.getWorkflowTemplatePlain
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetAutoscalingPolicyIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetAutoscalingPolicyIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetAutoscalingPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetAutoscalingPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetBatchPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetBatchPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetClusterPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetClusterPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetJobPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetJobPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetNodeGroupPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetNodeGroupPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionAutoscalingPolicyIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionAutoscalingPolicyIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionClusterIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionClusterIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionJobIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionJobIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionOperationIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionOperationIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionWorkflowTemplateIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionWorkflowTemplateIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetWorkflowTemplateIamPolicyPlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetWorkflowTemplateIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetWorkflowTemplatePlainArgs
import com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetWorkflowTemplatePlainArgsBuilder
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetAutoscalingPolicyIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetAutoscalingPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetBatchResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetClusterResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetJobResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetNodeGroupResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionAutoscalingPolicyIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionClusterIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionJobIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionOperationIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionWorkflowTemplateIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetWorkflowTemplateIamPolicyResult
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetWorkflowTemplateResult
import kotlinx.coroutines.future.await
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetAutoscalingPolicyIamPolicyResult.Companion.toKotlin as getAutoscalingPolicyIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetAutoscalingPolicyResult.Companion.toKotlin as getAutoscalingPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetBatchResult.Companion.toKotlin as getBatchResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetClusterResult.Companion.toKotlin as getClusterResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetJobResult.Companion.toKotlin as getJobResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetNodeGroupResult.Companion.toKotlin as getNodeGroupResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionAutoscalingPolicyIamPolicyResult.Companion.toKotlin as getRegionAutoscalingPolicyIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionClusterIamPolicyResult.Companion.toKotlin as getRegionClusterIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionJobIamPolicyResult.Companion.toKotlin as getRegionJobIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionOperationIamPolicyResult.Companion.toKotlin as getRegionOperationIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetRegionWorkflowTemplateIamPolicyResult.Companion.toKotlin as getRegionWorkflowTemplateIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetWorkflowTemplateIamPolicyResult.Companion.toKotlin as getWorkflowTemplateIamPolicyResultToKotlin
import com.pulumi.googlenative.dataproc.v1.kotlin.outputs.GetWorkflowTemplateResult.Companion.toKotlin as getWorkflowTemplateResultToKotlin
public object Dataproc_v1Functions {
/**
* Retrieves autoscaling policy.
* @param argument null
* @return null
*/
public suspend fun getAutoscalingPolicy(argument: GetAutoscalingPolicyPlainArgs): GetAutoscalingPolicyResult =
getAutoscalingPolicyResultToKotlin(getAutoscalingPolicyPlain(argument.toJava()).await())
/**
* @see [getAutoscalingPolicy].
* @param autoscalingPolicyId
* @param location
* @param project
* @return null
*/
public suspend fun getAutoscalingPolicy(
autoscalingPolicyId: String,
location: String,
project: String? = null,
): GetAutoscalingPolicyResult {
val argument = GetAutoscalingPolicyPlainArgs(
autoscalingPolicyId = autoscalingPolicyId,
location = location,
project = project,
)
return getAutoscalingPolicyResultToKotlin(getAutoscalingPolicyPlain(argument.toJava()).await())
}
/**
* @see [getAutoscalingPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetAutoscalingPolicyPlainArgs].
* @return null
*/
public suspend fun getAutoscalingPolicy(argument: suspend GetAutoscalingPolicyPlainArgsBuilder.() -> Unit): GetAutoscalingPolicyResult {
val builder = GetAutoscalingPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAutoscalingPolicyResultToKotlin(getAutoscalingPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getAutoscalingPolicyIamPolicy(argument: GetAutoscalingPolicyIamPolicyPlainArgs): GetAutoscalingPolicyIamPolicyResult =
getAutoscalingPolicyIamPolicyResultToKotlin(getAutoscalingPolicyIamPolicyPlain(argument.toJava()).await())
/**
* @see [getAutoscalingPolicyIamPolicy].
* @param autoscalingPolicyId
* @param location
* @param project
* @return null
*/
public suspend fun getAutoscalingPolicyIamPolicy(
autoscalingPolicyId: String,
location: String,
project: String? = null,
): GetAutoscalingPolicyIamPolicyResult {
val argument = GetAutoscalingPolicyIamPolicyPlainArgs(
autoscalingPolicyId = autoscalingPolicyId,
location = location,
project = project,
)
return getAutoscalingPolicyIamPolicyResultToKotlin(getAutoscalingPolicyIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getAutoscalingPolicyIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetAutoscalingPolicyIamPolicyPlainArgs].
* @return null
*/
public suspend fun getAutoscalingPolicyIamPolicy(argument: suspend GetAutoscalingPolicyIamPolicyPlainArgsBuilder.() -> Unit): GetAutoscalingPolicyIamPolicyResult {
val builder = GetAutoscalingPolicyIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAutoscalingPolicyIamPolicyResultToKotlin(getAutoscalingPolicyIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the batch workload resource representation.
* @param argument null
* @return null
*/
public suspend fun getBatch(argument: GetBatchPlainArgs): GetBatchResult =
getBatchResultToKotlin(getBatchPlain(argument.toJava()).await())
/**
* @see [getBatch].
* @param batchId
* @param location
* @param project
* @return null
*/
public suspend fun getBatch(
batchId: String,
location: String,
project: String? = null,
): GetBatchResult {
val argument = GetBatchPlainArgs(
batchId = batchId,
location = location,
project = project,
)
return getBatchResultToKotlin(getBatchPlain(argument.toJava()).await())
}
/**
* @see [getBatch].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetBatchPlainArgs].
* @return null
*/
public suspend fun getBatch(argument: suspend GetBatchPlainArgsBuilder.() -> Unit): GetBatchResult {
val builder = GetBatchPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getBatchResultToKotlin(getBatchPlain(builtArgument.toJava()).await())
}
/**
* Gets the resource representation for a cluster in a project.
* @param argument null
* @return null
*/
public suspend fun getCluster(argument: GetClusterPlainArgs): GetClusterResult =
getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())
/**
* @see [getCluster].
* @param clusterName
* @param project
* @param region
* @return null
*/
public suspend fun getCluster(
clusterName: String,
project: String? = null,
region: String,
): GetClusterResult {
val argument = GetClusterPlainArgs(
clusterName = clusterName,
project = project,
region = region,
)
return getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())
}
/**
* @see [getCluster].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetClusterPlainArgs].
* @return null
*/
public suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult {
val builder = GetClusterPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getClusterResultToKotlin(getClusterPlain(builtArgument.toJava()).await())
}
/**
* Gets the resource representation for a job in a project.
* @param argument null
* @return null
*/
public suspend fun getJob(argument: GetJobPlainArgs): GetJobResult =
getJobResultToKotlin(getJobPlain(argument.toJava()).await())
/**
* @see [getJob].
* @param jobId
* @param project
* @param region
* @return null
*/
public suspend fun getJob(
jobId: String,
project: String? = null,
region: String,
): GetJobResult {
val argument = GetJobPlainArgs(
jobId = jobId,
project = project,
region = region,
)
return getJobResultToKotlin(getJobPlain(argument.toJava()).await())
}
/**
* @see [getJob].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetJobPlainArgs].
* @return null
*/
public suspend fun getJob(argument: suspend GetJobPlainArgsBuilder.() -> Unit): GetJobResult {
val builder = GetJobPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getJobResultToKotlin(getJobPlain(builtArgument.toJava()).await())
}
/**
* Gets the resource representation for a node group in a cluster.
* @param argument null
* @return null
*/
public suspend fun getNodeGroup(argument: GetNodeGroupPlainArgs): GetNodeGroupResult =
getNodeGroupResultToKotlin(getNodeGroupPlain(argument.toJava()).await())
/**
* @see [getNodeGroup].
* @param clusterId
* @param nodeGroupId
* @param project
* @param regionId
* @return null
*/
public suspend fun getNodeGroup(
clusterId: String,
nodeGroupId: String,
project: String? = null,
regionId: String,
): GetNodeGroupResult {
val argument = GetNodeGroupPlainArgs(
clusterId = clusterId,
nodeGroupId = nodeGroupId,
project = project,
regionId = regionId,
)
return getNodeGroupResultToKotlin(getNodeGroupPlain(argument.toJava()).await())
}
/**
* @see [getNodeGroup].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetNodeGroupPlainArgs].
* @return null
*/
public suspend fun getNodeGroup(argument: suspend GetNodeGroupPlainArgsBuilder.() -> Unit): GetNodeGroupResult {
val builder = GetNodeGroupPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getNodeGroupResultToKotlin(getNodeGroupPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getRegionAutoscalingPolicyIamPolicy(argument: GetRegionAutoscalingPolicyIamPolicyPlainArgs): GetRegionAutoscalingPolicyIamPolicyResult =
getRegionAutoscalingPolicyIamPolicyResultToKotlin(getRegionAutoscalingPolicyIamPolicyPlain(argument.toJava()).await())
/**
* @see [getRegionAutoscalingPolicyIamPolicy].
* @param autoscalingPolicyId
* @param project
* @param regionId
* @return null
*/
public suspend fun getRegionAutoscalingPolicyIamPolicy(
autoscalingPolicyId: String,
project: String? = null,
regionId: String,
): GetRegionAutoscalingPolicyIamPolicyResult {
val argument = GetRegionAutoscalingPolicyIamPolicyPlainArgs(
autoscalingPolicyId = autoscalingPolicyId,
project = project,
regionId = regionId,
)
return getRegionAutoscalingPolicyIamPolicyResultToKotlin(getRegionAutoscalingPolicyIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getRegionAutoscalingPolicyIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionAutoscalingPolicyIamPolicyPlainArgs].
* @return null
*/
public suspend fun getRegionAutoscalingPolicyIamPolicy(argument: suspend GetRegionAutoscalingPolicyIamPolicyPlainArgsBuilder.() -> Unit): GetRegionAutoscalingPolicyIamPolicyResult {
val builder = GetRegionAutoscalingPolicyIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRegionAutoscalingPolicyIamPolicyResultToKotlin(getRegionAutoscalingPolicyIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getRegionClusterIamPolicy(argument: GetRegionClusterIamPolicyPlainArgs): GetRegionClusterIamPolicyResult =
getRegionClusterIamPolicyResultToKotlin(getRegionClusterIamPolicyPlain(argument.toJava()).await())
/**
* @see [getRegionClusterIamPolicy].
* @param clusterId
* @param project
* @param regionId
* @return null
*/
public suspend fun getRegionClusterIamPolicy(
clusterId: String,
project: String? = null,
regionId: String,
): GetRegionClusterIamPolicyResult {
val argument = GetRegionClusterIamPolicyPlainArgs(
clusterId = clusterId,
project = project,
regionId = regionId,
)
return getRegionClusterIamPolicyResultToKotlin(getRegionClusterIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getRegionClusterIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionClusterIamPolicyPlainArgs].
* @return null
*/
public suspend fun getRegionClusterIamPolicy(argument: suspend GetRegionClusterIamPolicyPlainArgsBuilder.() -> Unit): GetRegionClusterIamPolicyResult {
val builder = GetRegionClusterIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRegionClusterIamPolicyResultToKotlin(getRegionClusterIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getRegionJobIamPolicy(argument: GetRegionJobIamPolicyPlainArgs): GetRegionJobIamPolicyResult =
getRegionJobIamPolicyResultToKotlin(getRegionJobIamPolicyPlain(argument.toJava()).await())
/**
* @see [getRegionJobIamPolicy].
* @param jobId
* @param project
* @param regionId
* @return null
*/
public suspend fun getRegionJobIamPolicy(
jobId: String,
project: String? = null,
regionId: String,
): GetRegionJobIamPolicyResult {
val argument = GetRegionJobIamPolicyPlainArgs(
jobId = jobId,
project = project,
regionId = regionId,
)
return getRegionJobIamPolicyResultToKotlin(getRegionJobIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getRegionJobIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionJobIamPolicyPlainArgs].
* @return null
*/
public suspend fun getRegionJobIamPolicy(argument: suspend GetRegionJobIamPolicyPlainArgsBuilder.() -> Unit): GetRegionJobIamPolicyResult {
val builder = GetRegionJobIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRegionJobIamPolicyResultToKotlin(getRegionJobIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getRegionOperationIamPolicy(argument: GetRegionOperationIamPolicyPlainArgs): GetRegionOperationIamPolicyResult =
getRegionOperationIamPolicyResultToKotlin(getRegionOperationIamPolicyPlain(argument.toJava()).await())
/**
* @see [getRegionOperationIamPolicy].
* @param operationId
* @param project
* @param regionId
* @return null
*/
public suspend fun getRegionOperationIamPolicy(
operationId: String,
project: String? = null,
regionId: String,
): GetRegionOperationIamPolicyResult {
val argument = GetRegionOperationIamPolicyPlainArgs(
operationId = operationId,
project = project,
regionId = regionId,
)
return getRegionOperationIamPolicyResultToKotlin(getRegionOperationIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getRegionOperationIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionOperationIamPolicyPlainArgs].
* @return null
*/
public suspend fun getRegionOperationIamPolicy(argument: suspend GetRegionOperationIamPolicyPlainArgsBuilder.() -> Unit): GetRegionOperationIamPolicyResult {
val builder = GetRegionOperationIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRegionOperationIamPolicyResultToKotlin(getRegionOperationIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getRegionWorkflowTemplateIamPolicy(argument: GetRegionWorkflowTemplateIamPolicyPlainArgs): GetRegionWorkflowTemplateIamPolicyResult =
getRegionWorkflowTemplateIamPolicyResultToKotlin(getRegionWorkflowTemplateIamPolicyPlain(argument.toJava()).await())
/**
* @see [getRegionWorkflowTemplateIamPolicy].
* @param project
* @param regionId
* @param workflowTemplateId
* @return null
*/
public suspend fun getRegionWorkflowTemplateIamPolicy(
project: String? = null,
regionId: String,
workflowTemplateId: String,
): GetRegionWorkflowTemplateIamPolicyResult {
val argument = GetRegionWorkflowTemplateIamPolicyPlainArgs(
project = project,
regionId = regionId,
workflowTemplateId = workflowTemplateId,
)
return getRegionWorkflowTemplateIamPolicyResultToKotlin(getRegionWorkflowTemplateIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getRegionWorkflowTemplateIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetRegionWorkflowTemplateIamPolicyPlainArgs].
* @return null
*/
public suspend fun getRegionWorkflowTemplateIamPolicy(argument: suspend GetRegionWorkflowTemplateIamPolicyPlainArgsBuilder.() -> Unit): GetRegionWorkflowTemplateIamPolicyResult {
val builder = GetRegionWorkflowTemplateIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getRegionWorkflowTemplateIamPolicyResultToKotlin(getRegionWorkflowTemplateIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.
* @param argument null
* @return null
*/
public suspend fun getWorkflowTemplate(argument: GetWorkflowTemplatePlainArgs): GetWorkflowTemplateResult =
getWorkflowTemplateResultToKotlin(getWorkflowTemplatePlain(argument.toJava()).await())
/**
* @see [getWorkflowTemplate].
* @param location
* @param project
* @param version
* @param workflowTemplateId
* @return null
*/
public suspend fun getWorkflowTemplate(
location: String,
project: String? = null,
version: Int? = null,
workflowTemplateId: String,
): GetWorkflowTemplateResult {
val argument = GetWorkflowTemplatePlainArgs(
location = location,
project = project,
version = version,
workflowTemplateId = workflowTemplateId,
)
return getWorkflowTemplateResultToKotlin(getWorkflowTemplatePlain(argument.toJava()).await())
}
/**
* @see [getWorkflowTemplate].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetWorkflowTemplatePlainArgs].
* @return null
*/
public suspend fun getWorkflowTemplate(argument: suspend GetWorkflowTemplatePlainArgsBuilder.() -> Unit): GetWorkflowTemplateResult {
val builder = GetWorkflowTemplatePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWorkflowTemplateResultToKotlin(getWorkflowTemplatePlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getWorkflowTemplateIamPolicy(argument: GetWorkflowTemplateIamPolicyPlainArgs): GetWorkflowTemplateIamPolicyResult =
getWorkflowTemplateIamPolicyResultToKotlin(getWorkflowTemplateIamPolicyPlain(argument.toJava()).await())
/**
* @see [getWorkflowTemplateIamPolicy].
* @param location
* @param project
* @param workflowTemplateId
* @return null
*/
public suspend fun getWorkflowTemplateIamPolicy(
location: String,
project: String? = null,
workflowTemplateId: String,
): GetWorkflowTemplateIamPolicyResult {
val argument = GetWorkflowTemplateIamPolicyPlainArgs(
location = location,
project = project,
workflowTemplateId = workflowTemplateId,
)
return getWorkflowTemplateIamPolicyResultToKotlin(getWorkflowTemplateIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getWorkflowTemplateIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.dataproc.v1.kotlin.inputs.GetWorkflowTemplateIamPolicyPlainArgs].
* @return null
*/
public suspend fun getWorkflowTemplateIamPolicy(argument: suspend GetWorkflowTemplateIamPolicyPlainArgsBuilder.() -> Unit): GetWorkflowTemplateIamPolicyResult {
val builder = GetWorkflowTemplateIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWorkflowTemplateIamPolicyResultToKotlin(getWorkflowTemplateIamPolicyPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy