
com.pulumi.awsnative.appflow.kotlin.Connector.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.appflow.kotlin
import com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProvisioningConfig
import com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProvisioningConfig.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [Connector].
*/
@PulumiTagMarker
public class ConnectorResourceBuilder internal constructor() {
public var name: String? = null
public var args: ConnectorArgs = ConnectorArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend ConnectorArgsBuilder.() -> Unit) {
val builder = ConnectorArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Connector {
val builtJavaResource = com.pulumi.awsnative.appflow.Connector(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Connector(builtJavaResource)
}
}
/**
* Resource schema for AWS::AppFlow::Connector
*/
public class Connector internal constructor(
override val javaResource: com.pulumi.awsnative.appflow.Connector,
) : KotlinCustomResource(javaResource, ConnectorMapper) {
/**
* The arn of the connector. The arn is unique for each ConnectorRegistration in your AWS account.
*/
public val connectorArn: Output
get() = javaResource.connectorArn().applyValue({ args0 -> args0 })
/**
* The name of the connector. The name is unique for each ConnectorRegistration in your AWS account.
*/
public val connectorLabel: Output?
get() = javaResource.connectorLabel().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Contains information about the configuration of the connector being registered.
*/
public val connectorProvisioningConfig: Output
get() = javaResource.connectorProvisioningConfig().applyValue({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
})
/**
* The provisioning type of the connector. Currently the only supported value is LAMBDA.
*/
public val connectorProvisioningType: Output
get() = javaResource.connectorProvisioningType().applyValue({ args0 -> args0 })
/**
* A description about the connector that's being registered.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
}
public object ConnectorMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.appflow.Connector::class == javaResource::class
override fun map(javaResource: Resource): Connector = Connector(
javaResource as
com.pulumi.awsnative.appflow.Connector,
)
}
/**
* @see [Connector].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Connector].
*/
public suspend fun connector(name: String, block: suspend ConnectorResourceBuilder.() -> Unit): Connector {
val builder = ConnectorResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Connector].
* @param name The _unique_ name of the resulting resource.
*/
public fun connector(name: String): Connector {
val builder = ConnectorResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy