
com.pulumi.awsnative.route53resolver.kotlin.OutpostResolver.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.route53resolver.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.route53resolver.kotlin.enums.OutpostResolverStatus
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.route53resolver.kotlin.enums.OutpostResolverStatus.Companion.toKotlin as outpostResolverStatusToKotlin
/**
* Builder for [OutpostResolver].
*/
@PulumiTagMarker
public class OutpostResolverResourceBuilder internal constructor() {
public var name: String? = null
public var args: OutpostResolverArgs = OutpostResolverArgs()
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 OutpostResolverArgsBuilder.() -> Unit) {
val builder = OutpostResolverArgsBuilder()
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(): OutpostResolver {
val builtJavaResource =
com.pulumi.awsnative.route53resolver.OutpostResolver(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return OutpostResolver(builtJavaResource)
}
}
/**
* Resource schema for AWS::Route53Resolver::OutpostResolver.
*/
public class OutpostResolver internal constructor(
override val javaResource: com.pulumi.awsnative.route53resolver.OutpostResolver,
) : KotlinCustomResource(javaResource, OutpostResolverMapper) {
/**
* The OutpostResolver ARN.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Id
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* The OutpostResolver creation time
*/
public val creationTime: Output
get() = javaResource.creationTime().applyValue({ args0 -> args0 })
/**
* The id of the creator request.
*/
public val creatorRequestId: Output
get() = javaResource.creatorRequestId().applyValue({ args0 -> args0 })
/**
* The number of OutpostResolvers.
*/
public val instanceCount: Output?
get() = javaResource.instanceCount().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The OutpostResolver last modified time
*/
public val modificationTime: Output
get() = javaResource.modificationTime().applyValue({ args0 -> args0 })
/**
* The OutpostResolver name.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The Outpost ARN.
*/
public val outpostArn: Output
get() = javaResource.outpostArn().applyValue({ args0 -> args0 })
/**
* The OutpostResolver instance type.
*/
public val preferredInstanceType: Output
get() = javaResource.preferredInstanceType().applyValue({ args0 -> args0 })
/**
* The OutpostResolver status, possible values are CREATING, OPERATIONAL, UPDATING, DELETING, ACTION_NEEDED, FAILED_CREATION and FAILED_DELETION.
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 ->
args0.let({ args0 ->
outpostResolverStatusToKotlin(args0)
})
})
/**
* The OutpostResolver status message.
*/
public val statusMessage: Output
get() = javaResource.statusMessage().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)
})
}
public object OutpostResolverMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.route53resolver.OutpostResolver::class == javaResource::class
override fun map(javaResource: Resource): OutpostResolver = OutpostResolver(
javaResource as
com.pulumi.awsnative.route53resolver.OutpostResolver,
)
}
/**
* @see [OutpostResolver].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [OutpostResolver].
*/
public suspend fun outpostResolver(
name: String,
block: suspend OutpostResolverResourceBuilder.() -> Unit,
): OutpostResolver {
val builder = OutpostResolverResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [OutpostResolver].
* @param name The _unique_ name of the resulting resource.
*/
public fun outpostResolver(name: String): OutpostResolver {
val builder = OutpostResolverResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy