
com.pulumi.awsnative.ec2.kotlin.NetworkInsightsAnalysis.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.ec2.kotlin
import com.pulumi.awsnative.ec2.kotlin.enums.NetworkInsightsAnalysisStatus
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisAlternatePathHint
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisExplanation
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisPathComponent
import com.pulumi.awsnative.kotlin.outputs.Tag
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 com.pulumi.awsnative.ec2.kotlin.enums.NetworkInsightsAnalysisStatus.Companion.toKotlin as networkInsightsAnalysisStatusToKotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisAlternatePathHint.Companion.toKotlin as networkInsightsAnalysisAlternatePathHintToKotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisExplanation.Companion.toKotlin as networkInsightsAnalysisExplanationToKotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisPathComponent.Companion.toKotlin as networkInsightsAnalysisPathComponentToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [NetworkInsightsAnalysis].
*/
@PulumiTagMarker
public class NetworkInsightsAnalysisResourceBuilder internal constructor() {
public var name: String? = null
public var args: NetworkInsightsAnalysisArgs = NetworkInsightsAnalysisArgs()
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 NetworkInsightsAnalysisArgsBuilder.() -> Unit) {
val builder = NetworkInsightsAnalysisArgsBuilder()
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(): NetworkInsightsAnalysis {
val builtJavaResource =
com.pulumi.awsnative.ec2.NetworkInsightsAnalysis(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return NetworkInsightsAnalysis(builtJavaResource)
}
}
/**
* Resource schema for AWS::EC2::NetworkInsightsAnalysis
*/
public class NetworkInsightsAnalysis internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.NetworkInsightsAnalysis,
) : KotlinCustomResource(javaResource, NetworkInsightsAnalysisMapper) {
/**
* The member accounts that contain resources that the path can traverse.
*/
public val additionalAccounts: Output>?
get() = javaResource.additionalAccounts().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* Potential intermediate components.
*/
public val alternatePathHints: Output>
get() = javaResource.alternatePathHints().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> networkInsightsAnalysisAlternatePathHintToKotlin(args0) })
})
})
/**
* The explanations. For more information, see [Reachability Analyzer explanation codes](https://docs.aws.amazon.com/vpc/latest/reachability/explanation-codes.html) .
*/
public val explanations: Output>
get() = javaResource.explanations().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
networkInsightsAnalysisExplanationToKotlin(args0)
})
})
})
/**
* The Amazon Resource Names (ARN) of the resources that the path must traverse.
*/
public val filterInArns: Output>?
get() = javaResource.filterInArns().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* The components in the path from source to destination.
*/
public val forwardPathComponents: Output>
get() = javaResource.forwardPathComponents().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> networkInsightsAnalysisPathComponentToKotlin(args0) })
})
})
/**
* The Amazon Resource Name (ARN) of the network insights analysis.
*/
public val networkInsightsAnalysisArn: Output
get() = javaResource.networkInsightsAnalysisArn().applyValue({ args0 -> args0 })
/**
* The ID of the network insights analysis.
*/
public val networkInsightsAnalysisId: Output
get() = javaResource.networkInsightsAnalysisId().applyValue({ args0 -> args0 })
/**
* The ID of the path.
*/
public val networkInsightsPathId: Output
get() = javaResource.networkInsightsPathId().applyValue({ args0 -> args0 })
/**
* Indicates whether the destination is reachable from the source.
*/
public val networkPathFound: Output
get() = javaResource.networkPathFound().applyValue({ args0 -> args0 })
/**
* The components in the path from destination to source.
*/
public val returnPathComponents: Output>
get() = javaResource.returnPathComponents().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> networkInsightsAnalysisPathComponentToKotlin(args0) })
})
})
/**
* The time the analysis started.
*/
public val startDate: Output
get() = javaResource.startDate().applyValue({ args0 -> args0 })
/**
* The status of the network insights analysis.
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 ->
args0.let({ args0 ->
networkInsightsAnalysisStatusToKotlin(args0)
})
})
/**
* The status message, if the status is `failed` .
*/
public val statusMessage: Output
get() = javaResource.statusMessage().applyValue({ args0 -> args0 })
/**
* The IDs of potential intermediate accounts.
*/
public val suggestedAccounts: Output>
get() = javaResource.suggestedAccounts().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* The tags to apply.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object NetworkInsightsAnalysisMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.NetworkInsightsAnalysis::class == javaResource::class
override fun map(javaResource: Resource): NetworkInsightsAnalysis =
NetworkInsightsAnalysis(javaResource as com.pulumi.awsnative.ec2.NetworkInsightsAnalysis)
}
/**
* @see [NetworkInsightsAnalysis].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [NetworkInsightsAnalysis].
*/
public suspend fun networkInsightsAnalysis(
name: String,
block: suspend NetworkInsightsAnalysisResourceBuilder.() -> Unit,
): NetworkInsightsAnalysis {
val builder = NetworkInsightsAnalysisResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [NetworkInsightsAnalysis].
* @param name The _unique_ name of the resulting resource.
*/
public fun networkInsightsAnalysis(name: String): NetworkInsightsAnalysis {
val builder = NetworkInsightsAnalysisResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy