
com.pulumi.googlenative.compute.beta.kotlin.PublicDelegatedPrefixArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.beta.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.PublicDelegatedPrefixArgs.builder
import com.pulumi.googlenative.compute.beta.kotlin.inputs.PublicDelegatedPrefixPublicDelegatedSubPrefixArgs
import com.pulumi.googlenative.compute.beta.kotlin.inputs.PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.
* @property description An optional description of this resource. Provide this property when you create the resource.
* @property ipCidrRange The IPv4 address range, in CIDR format, represented by this public delegated prefix.
* @property isLiveMigration If true, the prefix will be live migrated.
* @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
* @property parentPrefix The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
* @property project
* @property publicDelegatedSubPrefixs The list of sub public delegated prefixes that exist for this public delegated prefix.
* @property region
* @property requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*/
public data class PublicDelegatedPrefixArgs(
public val description: Output? = null,
public val ipCidrRange: Output? = null,
public val isLiveMigration: Output? = null,
public val name: Output? = null,
public val parentPrefix: Output? = null,
public val project: Output? = null,
public val publicDelegatedSubPrefixs: Output>? = null,
public val region: Output? = null,
public val requestId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.beta.PublicDelegatedPrefixArgs =
com.pulumi.googlenative.compute.beta.PublicDelegatedPrefixArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.ipCidrRange(ipCidrRange?.applyValue({ args0 -> args0 }))
.isLiveMigration(isLiveMigration?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.parentPrefix(parentPrefix?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.publicDelegatedSubPrefixs(
publicDelegatedSubPrefixs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.region(region?.applyValue({ args0 -> args0 }))
.requestId(requestId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PublicDelegatedPrefixArgs].
*/
@PulumiTagMarker
public class PublicDelegatedPrefixArgsBuilder internal constructor() {
private var description: Output? = null
private var ipCidrRange: Output? = null
private var isLiveMigration: Output? = null
private var name: Output? = null
private var parentPrefix: Output? = null
private var project: Output? = null
private var publicDelegatedSubPrefixs:
Output>? = null
private var region: Output? = null
private var requestId: Output? = null
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("yriickxcibydplcs")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*/
@JvmName("ybtpmfbibwprwthp")
public suspend fun ipCidrRange(`value`: Output) {
this.ipCidrRange = value
}
/**
* @param value If true, the prefix will be live migrated.
*/
@JvmName("mjkuflehcwffedjj")
public suspend fun isLiveMigration(`value`: Output) {
this.isLiveMigration = value
}
/**
* @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*/
@JvmName("lynjharaylrsnbjd")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*/
@JvmName("tggdrlirkabpulik")
public suspend fun parentPrefix(`value`: Output) {
this.parentPrefix = value
}
/**
* @param value
*/
@JvmName("bsjvolwcxtgrmxkp")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The list of sub public delegated prefixes that exist for this public delegated prefix.
*/
@JvmName("skcewfhofbbnnxri")
public suspend fun publicDelegatedSubPrefixs(`value`: Output>) {
this.publicDelegatedSubPrefixs = value
}
@JvmName("qkhrtcgplxyprnsb")
public suspend fun publicDelegatedSubPrefixs(vararg values: Output) {
this.publicDelegatedSubPrefixs = Output.all(values.asList())
}
/**
* @param values The list of sub public delegated prefixes that exist for this public delegated prefix.
*/
@JvmName("xxurngwrhymgimjo")
public suspend fun publicDelegatedSubPrefixs(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy