
com.pulumi.awsnative.osis.kotlin.Pipeline.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.osis.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineBufferOptions
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineEncryptionAtRestOptions
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineLogPublishingOptions
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineVpcEndpoint
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineVpcOptions
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineBufferOptions.Companion.toKotlin as pipelineBufferOptionsToKotlin
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineEncryptionAtRestOptions.Companion.toKotlin as pipelineEncryptionAtRestOptionsToKotlin
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineLogPublishingOptions.Companion.toKotlin as pipelineLogPublishingOptionsToKotlin
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineVpcEndpoint.Companion.toKotlin as pipelineVpcEndpointToKotlin
import com.pulumi.awsnative.osis.kotlin.outputs.PipelineVpcOptions.Companion.toKotlin as pipelineVpcOptionsToKotlin
/**
* Builder for [Pipeline].
*/
@PulumiTagMarker
public class PipelineResourceBuilder internal constructor() {
public var name: String? = null
public var args: PipelineArgs = PipelineArgs()
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 PipelineArgsBuilder.() -> Unit) {
val builder = PipelineArgsBuilder()
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(): Pipeline {
val builtJavaResource = com.pulumi.awsnative.osis.Pipeline(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Pipeline(builtJavaResource)
}
}
/**
* An OpenSearch Ingestion Service Data Prepper pipeline running Data Prepper.
*/
public class Pipeline internal constructor(
override val javaResource: com.pulumi.awsnative.osis.Pipeline,
) : KotlinCustomResource(javaResource, PipelineMapper) {
/**
* Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the `EncryptionAtRestOptions` . For more information, see [Persistent buffering](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/osis-features-overview.html#persistent-buffering) .
*/
public val bufferOptions: Output?
get() = javaResource.bufferOptions().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> pipelineBufferOptionsToKotlin(args0) })
}).orElse(null)
})
/**
* Options to control how OpenSearch encrypts buffer data.
*/
public val encryptionAtRestOptions: Output?
get() = javaResource.encryptionAtRestOptions().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> pipelineEncryptionAtRestOptionsToKotlin(args0) })
}).orElse(null)
})
/**
* A list of endpoints that can be used for ingesting data into a pipeline
*/
public val ingestEndpointUrls: Output>
get() = javaResource.ingestEndpointUrls().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* Key-value pairs that represent log publishing settings.
*/
public val logPublishingOptions: Output?
get() = javaResource.logPublishingOptions().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> pipelineLogPublishingOptionsToKotlin(args0) })
}).orElse(null)
})
/**
* The maximum pipeline capacity, in Ingestion OpenSearch Compute Units (OCUs).
*/
public val maxUnits: Output
get() = javaResource.maxUnits().applyValue({ args0 -> args0 })
/**
* The minimum pipeline capacity, in Ingestion OpenSearch Compute Units (OCUs).
*/
public val minUnits: Output
get() = javaResource.minUnits().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the pipeline.
*/
public val pipelineArn: Output
get() = javaResource.pipelineArn().applyValue({ args0 -> args0 })
/**
* The Data Prepper pipeline configuration.
*/
public val pipelineConfigurationBody: Output
get() = javaResource.pipelineConfigurationBody().applyValue({ args0 -> args0 })
/**
* Name of the OpenSearch Ingestion Service pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region.
*/
public val pipelineName: Output
get() = javaResource.pipelineName().applyValue({ args0 -> args0 })
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* The VPC endpoint service name for the pipeline.
*/
public val vpcEndpointService: Output
get() = javaResource.vpcEndpointService().applyValue({ args0 -> args0 })
/**
* The VPC interface endpoints that have access to the pipeline.
*/
public val vpcEndpoints: Output>
get() = javaResource.vpcEndpoints().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
pipelineVpcEndpointToKotlin(args0)
})
})
})
/**
* Options that specify the subnets and security groups for an OpenSearch Ingestion VPC endpoint.
*/
public val vpcOptions: Output?
get() = javaResource.vpcOptions().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
pipelineVpcOptionsToKotlin(args0)
})
}).orElse(null)
})
}
public object PipelineMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.osis.Pipeline::class == javaResource::class
override fun map(javaResource: Resource): Pipeline = Pipeline(
javaResource as
com.pulumi.awsnative.osis.Pipeline,
)
}
/**
* @see [Pipeline].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Pipeline].
*/
public suspend fun pipeline(name: String, block: suspend PipelineResourceBuilder.() -> Unit): Pipeline {
val builder = PipelineResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Pipeline].
* @param name The _unique_ name of the resulting resource.
*/
public fun pipeline(name: String): Pipeline {
val builder = PipelineResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy