![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.appconfig.kotlin.HostedConfigurationVersion.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.appconfig.kotlin
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
/**
* Builder for [HostedConfigurationVersion].
*/
@PulumiTagMarker
public class HostedConfigurationVersionResourceBuilder internal constructor() {
public var name: String? = null
public var args: HostedConfigurationVersionArgs = HostedConfigurationVersionArgs()
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 HostedConfigurationVersionArgsBuilder.() -> Unit) {
val builder = HostedConfigurationVersionArgsBuilder()
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(): HostedConfigurationVersion {
val builtJavaResource =
com.pulumi.awsnative.appconfig.HostedConfigurationVersion(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return HostedConfigurationVersion(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::AppConfig::HostedConfigurationVersion
*/
public class HostedConfigurationVersion internal constructor(
override val javaResource: com.pulumi.awsnative.appconfig.HostedConfigurationVersion,
) : KotlinCustomResource(javaResource, HostedConfigurationVersionMapper) {
/**
* The application ID.
*/
public val applicationId: Output
get() = javaResource.applicationId().applyValue({ args0 -> args0 })
/**
* The configuration profile ID.
*/
public val configurationProfileId: Output
get() = javaResource.configurationProfileId().applyValue({ args0 -> args0 })
/**
* The content of the configuration or the configuration data.
*/
public val content: Output
get() = javaResource.content().applyValue({ args0 -> args0 })
/**
* A standard MIME type describing the format of the configuration content.
*/
public val contentType: Output
get() = javaResource.contentType().applyValue({ args0 -> args0 })
/**
* A description of the hosted configuration version.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration version.
*/
public val latestVersionNumber: Output?
get() = javaResource.latestVersionNumber().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A user-defined label for an AWS AppConfig hosted configuration version.
*/
public val versionLabel: Output?
get() = javaResource.versionLabel().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Current version number of hosted configuration version.
*/
public val versionNumber: Output
get() = javaResource.versionNumber().applyValue({ args0 -> args0 })
}
public object HostedConfigurationVersionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.appconfig.HostedConfigurationVersion::class == javaResource::class
override fun map(javaResource: Resource): HostedConfigurationVersion =
HostedConfigurationVersion(
javaResource as
com.pulumi.awsnative.appconfig.HostedConfigurationVersion,
)
}
/**
* @see [HostedConfigurationVersion].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [HostedConfigurationVersion].
*/
public suspend fun hostedConfigurationVersion(
name: String,
block: suspend HostedConfigurationVersionResourceBuilder.() -> Unit,
): HostedConfigurationVersion {
val builder = HostedConfigurationVersionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [HostedConfigurationVersion].
* @param name The _unique_ name of the resulting resource.
*/
public fun hostedConfigurationVersion(name: String): HostedConfigurationVersion {
val builder = HostedConfigurationVersionResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy