
com.pulumi.awsnative.bedrock.kotlin.outputs.GetFlowResult.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.outputs
import com.pulumi.awsnative.bedrock.kotlin.enums.FlowStatus
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property arn Arn representation of the Flow
* @property createdAt Time Stamp.
* @property customerEncryptionKeyArn A KMS key ARN
* @property definition
* @property description Description of the flow
* @property executionRoleArn ARN of a IAM role
* @property id Identifier for a Flow
* @property name Name for the flow
* @property status The status of the flow. The following statuses are possible:
* - NotPrepared – The flow has been created or updated, but hasn't been prepared. If you just created the flow, you can't test it. If you updated the flow, the `DRAFT` version won't contain the latest changes for testing. Send a [PrepareFlow](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PrepareFlow.html) request to package the latest changes into the `DRAFT` version.
* - Preparing – The flow is being prepared so that the `DRAFT` version contains the latest changes for testing.
* - Prepared – The flow is prepared and the `DRAFT` version contains the latest changes for testing.
* - Failed – The last API operation that you invoked on the flow failed. Send a [GetFlow](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlow.html) request and check the error message in the `validations` field.
* @property tags
* @property testAliasTags
* @property updatedAt Time Stamp.
* @property version Draft Version.
*/
public data class GetFlowResult(
public val arn: String? = null,
public val createdAt: String? = null,
public val customerEncryptionKeyArn: String? = null,
public val definition: FlowDefinition? = null,
public val description: String? = null,
public val executionRoleArn: String? = null,
public val id: String? = null,
public val name: String? = null,
public val status: FlowStatus? = null,
public val tags: Map? = null,
public val testAliasTags: Map? = null,
public val updatedAt: String? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.GetFlowResult): GetFlowResult = GetFlowResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
customerEncryptionKeyArn = javaType.customerEncryptionKeyArn().map({ args0 -> args0 }).orElse(null),
definition = javaType.definition().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.bedrock.kotlin.outputs.FlowDefinition.Companion.toKotlin(args0)
})
}).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
executionRoleArn = javaType.executionRoleArn().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
status = javaType.status().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.bedrock.kotlin.enums.FlowStatus.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
testAliasTags = javaType.testAliasTags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
updatedAt = javaType.updatedAt().map({ args0 -> args0 }).orElse(null),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy