![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.appflow.kotlin.ConnectorProfile.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.appflow.kotlin
import com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileConnectionMode
import com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileConnectorType
import com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProfileConfig
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
import com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileConnectionMode.Companion.toKotlin as connectorProfileConnectionModeToKotlin
import com.pulumi.awsnative.appflow.kotlin.enums.ConnectorProfileConnectorType.Companion.toKotlin as connectorProfileConnectorTypeToKotlin
import com.pulumi.awsnative.appflow.kotlin.outputs.ConnectorProfileConfig.Companion.toKotlin as connectorProfileConfigToKotlin
/**
* Builder for [ConnectorProfile].
*/
@PulumiTagMarker
public class ConnectorProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: ConnectorProfileArgs = ConnectorProfileArgs()
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 ConnectorProfileArgsBuilder.() -> Unit) {
val builder = ConnectorProfileArgsBuilder()
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(): ConnectorProfile {
val builtJavaResource = com.pulumi.awsnative.appflow.ConnectorProfile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ConnectorProfile(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::AppFlow::ConnectorProfile
*/
public class ConnectorProfile internal constructor(
override val javaResource: com.pulumi.awsnative.appflow.ConnectorProfile,
) : KotlinCustomResource(javaResource, ConnectorProfileMapper) {
/**
* Mode in which data transfer should be enabled. Private connection mode is currently enabled for Salesforce, Snowflake, Trendmicro and Singular
*/
public val connectionMode: Output
get() = javaResource.connectionMode().applyValue({ args0 ->
args0.let({ args0 ->
connectorProfileConnectionModeToKotlin(args0)
})
})
/**
* The label of the connector. The label is unique for each ConnectorRegistration in your AWS account. Only needed if calling for CUSTOMCONNECTOR connector type/.
*/
public val connectorLabel: Output?
get() = javaResource.connectorLabel().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Unique identifier for connector profile resources
*/
public val connectorProfileArn: Output
get() = javaResource.connectorProfileArn().applyValue({ args0 -> args0 })
/**
* Connector specific configurations needed to create connector profile
*/
public val connectorProfileConfig: Output?
get() = javaResource.connectorProfileConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> connectorProfileConfigToKotlin(args0) })
}).orElse(null)
})
/**
* The maximum number of items to retrieve in a single batch.
*/
public val connectorProfileName: Output
get() = javaResource.connectorProfileName().applyValue({ args0 -> args0 })
/**
* List of Saas providers that need connector profile to be created
*/
public val connectorType: Output
get() = javaResource.connectorType().applyValue({ args0 ->
args0.let({ args0 ->
connectorProfileConnectorTypeToKotlin(args0)
})
})
/**
* A unique Arn for Connector-Profile resource
*/
public val credentialsArn: Output
get() = javaResource.credentialsArn().applyValue({ args0 -> args0 })
/**
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
*/
public val kmsArn: Output?
get() = javaResource.kmsArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
}
public object ConnectorProfileMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.appflow.ConnectorProfile::class == javaResource::class
override fun map(javaResource: Resource): ConnectorProfile = ConnectorProfile(
javaResource as
com.pulumi.awsnative.appflow.ConnectorProfile,
)
}
/**
* @see [ConnectorProfile].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [ConnectorProfile].
*/
public suspend fun connectorProfile(
name: String,
block: suspend ConnectorProfileResourceBuilder.() -> Unit,
): ConnectorProfile {
val builder = ConnectorProfileResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [ConnectorProfile].
* @param name The _unique_ name of the resulting resource.
*/
public fun connectorProfile(name: String): ConnectorProfile {
val builder = ConnectorProfileResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy