com.pulumi.aws.servicediscovery.kotlin.outputs.GetServiceResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.servicediscovery.kotlin.outputs
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getService.
* @property arn ARN of the service.
* @property description Description of the service.
* @property dnsConfigs Complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dns_config` Block for details.
* @property healthCheckConfigs Complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `health_check_config` Block for details.
* @property healthCheckCustomConfigs A complex type that contains settings for ECS managed health checks. See `health_check_custom_config` Block for details.
* @property id The provider-assigned unique ID for this managed resource.
* @property name
* @property namespaceId ID of the namespace to use for DNS configuration.
* @property tags Map of tags to assign to the service. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property tagsAll (**Deprecated**) Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*/
public data class GetServiceResult(
public val arn: String,
public val description: String,
public val dnsConfigs: List,
public val healthCheckConfigs: List,
public val healthCheckCustomConfigs: List,
public val id: String,
public val name: String,
public val namespaceId: String,
public val tags: Map? = null,
@Deprecated(
message = """
this attribute has been deprecated
""",
)
public val tagsAll: Map,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.servicediscovery.outputs.GetServiceResult): GetServiceResult = GetServiceResult(
arn = javaType.arn(),
description = javaType.description(),
dnsConfigs = javaType.dnsConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.aws.servicediscovery.kotlin.outputs.GetServiceDnsConfig.Companion.toKotlin(args0)
})
}),
healthCheckConfigs = javaType.healthCheckConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.aws.servicediscovery.kotlin.outputs.GetServiceHealthCheckConfig.Companion.toKotlin(args0)
})
}),
healthCheckCustomConfigs = javaType.healthCheckCustomConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.aws.servicediscovery.kotlin.outputs.GetServiceHealthCheckCustomConfig.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
name = javaType.name(),
namespaceId = javaType.namespaceId(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
tagsAll = javaType.tagsAll().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy