![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.oam.kotlin.outputs.GetLinkResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.oam.kotlin.outputs
import com.pulumi.awsnative.oam.kotlin.enums.LinkResourceType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property arn The ARN of the link. For example, `arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789`
* @property label The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, `my-account1` .
* @property linkConfiguration Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
* @property resourceTypes An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are `AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor` .
* @property tags Tags to apply to the link
*/
public data class GetLinkResult(
public val arn: String? = null,
public val label: String? = null,
public val linkConfiguration: LinkConfiguration? = null,
public val resourceTypes: List? = null,
public val tags: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.oam.outputs.GetLinkResult): GetLinkResult =
GetLinkResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
label = javaType.label().map({ args0 -> args0 }).orElse(null),
linkConfiguration = javaType.linkConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.oam.kotlin.outputs.LinkConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
resourceTypes = javaType.resourceTypes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.oam.kotlin.enums.LinkResourceType.Companion.toKotlin(args0)
})
}),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy