
com.pulumi.awsnative.bedrock.kotlin.AgentAlias.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.bedrock.kotlin
import com.pulumi.awsnative.bedrock.kotlin.enums.AgentAliasStatus
import com.pulumi.awsnative.bedrock.kotlin.outputs.AgentAliasHistoryEvent
import com.pulumi.awsnative.bedrock.kotlin.outputs.AgentAliasRoutingConfigurationListItem
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 kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.awsnative.bedrock.kotlin.enums.AgentAliasStatus.Companion.toKotlin as agentAliasStatusToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.AgentAliasHistoryEvent.Companion.toKotlin as agentAliasHistoryEventToKotlin
import com.pulumi.awsnative.bedrock.kotlin.outputs.AgentAliasRoutingConfigurationListItem.Companion.toKotlin as agentAliasRoutingConfigurationListItemToKotlin
/**
* Builder for [AgentAlias].
*/
@PulumiTagMarker
public class AgentAliasResourceBuilder internal constructor() {
public var name: String? = null
public var args: AgentAliasArgs = AgentAliasArgs()
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 AgentAliasArgsBuilder.() -> Unit) {
val builder = AgentAliasArgsBuilder()
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(): AgentAlias {
val builtJavaResource = com.pulumi.awsnative.bedrock.AgentAlias(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return AgentAlias(builtJavaResource)
}
}
/**
* Definition of AWS::Bedrock::AgentAlias Resource Type
*/
public class AgentAlias internal constructor(
override val javaResource: com.pulumi.awsnative.bedrock.AgentAlias,
) : KotlinCustomResource(javaResource, AgentAliasMapper) {
/**
* Arn representation of the Agent Alias.
*/
public val agentAliasArn: Output
get() = javaResource.agentAliasArn().applyValue({ args0 -> args0 })
/**
* The list of history events for an alias for an Agent.
*/
public val agentAliasHistoryEvents: Output>
get() = javaResource.agentAliasHistoryEvents().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> agentAliasHistoryEventToKotlin(args0) })
})
})
/**
* Id for an Agent Alias generated at the server side.
*/
public val agentAliasId: Output
get() = javaResource.agentAliasId().applyValue({ args0 -> args0 })
/**
* Name for a resource.
*/
public val agentAliasName: Output
get() = javaResource.agentAliasName().applyValue({ args0 -> args0 })
/**
* The status of the alias of the agent and whether it is ready for use. The following statuses are possible:
* - CREATING – The agent alias is being created.
* - PREPARED – The agent alias is finished being created or updated and is ready to be invoked.
* - FAILED – The agent alias API operation failed.
* - UPDATING – The agent alias is being updated.
* - DELETING – The agent alias is being deleted.
*/
public val agentAliasStatus: Output
get() = javaResource.agentAliasStatus().applyValue({ args0 ->
args0.let({ args0 ->
agentAliasStatusToKotlin(args0)
})
})
/**
* Identifier for a resource.
*/
public val agentId: Output
get() = javaResource.agentId().applyValue({ args0 -> args0 })
/**
* Time Stamp.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* Description of the Resource.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Routing configuration for an Agent alias.
*/
public val routingConfiguration: Output>?
get() = javaResource.routingConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
agentAliasRoutingConfigurationListItemToKotlin(args0)
})
})
}).orElse(null)
})
/**
* Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
* - [Tag naming limits and requirements](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions)
* - [Tagging best practices](https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices)
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy