com.pulumi.gcp.networkservices.kotlin.outputs.EdgeCacheServiceRoutingHostRule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.networkservices.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property description A human-readable description of the hostRule.
* @property hosts The list of host patterns to match.
* Host patterns must be valid hostnames. Ports are not allowed. Wildcard hosts are supported in the suffix or prefix form. * matches any string of ([a-z0-9-.]*). It does not match the empty string.
* When multiple hosts are specified, hosts are matched in the following priority:
* 1. Exact domain names: ``www.foo.com``.
* 2. Suffix domain wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
* 3. Prefix domain wildcards: ``foo.*`` or ``foo-*``.
* 4. Special wildcard ``*`` matching any domain.
* Notes:
* The wildcard will not match the empty string. e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``. The longest wildcards match first. Only a single host in the entire service can match on ``*``. A domain must be unique across all configured hosts within a service.
* Hosts are matched against the HTTP Host header, or for HTTP/2 and HTTP/3, the ":authority" header, from the incoming request.
* You may specify up to 10 hosts.
* @property pathMatcher The name of the pathMatcher associated with this hostRule.
*/
public data class EdgeCacheServiceRoutingHostRule(
public val description: String? = null,
public val hosts: List,
public val pathMatcher: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.EdgeCacheServiceRoutingHostRule): EdgeCacheServiceRoutingHostRule = EdgeCacheServiceRoutingHostRule(
description = javaType.description().map({ args0 -> args0 }).orElse(null),
hosts = javaType.hosts().map({ args0 -> args0 }),
pathMatcher = javaType.pathMatcher(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy