All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.RegionSslPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.RegionSslPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Represents a Regional SSL policy. SSL policies give you the ability to control the
 * features of SSL that your SSL proxy or HTTPS load balancer negotiates.
 * To get more information about RegionSslPolicy, see:
 * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionSslPolicies)
 * * How-to Guides
 *     * [Using SSL Policies](https://cloud.google.com/compute/docs/load-balancing/ssl-policies)
 * ## Import
 * RegionSslPolicy can be imported using any of these accepted formats:
 * * `projects/{{project}}/regions/{{region}}/sslPolicies/{{name}}`
 * * `{{project}}/{{region}}/{{name}}`
 * * `{{region}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, RegionSslPolicy can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:compute/regionSslPolicy:RegionSslPolicy default projects/{{project}}/regions/{{region}}/sslPolicies/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:compute/regionSslPolicy:RegionSslPolicy default {{project}}/{{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:compute/regionSslPolicy:RegionSslPolicy default {{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:compute/regionSslPolicy:RegionSslPolicy default {{name}}
 * ```
 * @property customFeatures A list of features enabled when the selected profile is CUSTOM. The
 * method returns the set of features that can be specified in this
 * list. This field must be empty if the profile is not CUSTOM.
 * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
 * for which ciphers are available to use. **Note**: this argument
 * *must* be present when using the `CUSTOM` profile. This argument
 * *must not* be present when using any other profile.
 * @property description An optional description of this resource.
 * @property minTlsVersion The minimum version of SSL protocol that can be used by the clients
 * to establish a connection with the load balancer.
 * Default value is `TLS_1_0`.
 * Possible values are: `TLS_1_0`, `TLS_1_1`, `TLS_1_2`.
 * @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?` 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 profile Profile specifies the set of SSL features that can be used by the
 * load balancer when negotiating SSL with clients. If using `CUSTOM`,
 * the set of SSL features to enable must be specified in the
 * `customFeatures` field.
 * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
 * for information on what cipher suites each profile provides. If
 * `CUSTOM` is used, the `custom_features` attribute **must be set**.
 * Default value is `COMPATIBLE`.
 * Possible values are: `COMPATIBLE`, `MODERN`, `RESTRICTED`, `CUSTOM`.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property region The region where the regional SSL policy resides.
 * - - -
 */
public data class RegionSslPolicyArgs(
    public val customFeatures: Output>? = null,
    public val description: Output? = null,
    public val minTlsVersion: Output? = null,
    public val name: Output? = null,
    public val profile: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.RegionSslPolicyArgs =
        com.pulumi.gcp.compute.RegionSslPolicyArgs.builder()
            .customFeatures(customFeatures?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .minTlsVersion(minTlsVersion?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .profile(profile?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionSslPolicyArgs].
 */
@PulumiTagMarker
public class RegionSslPolicyArgsBuilder internal constructor() {
    private var customFeatures: Output>? = null

    private var description: Output? = null

    private var minTlsVersion: Output? = null

    private var name: Output? = null

    private var profile: Output? = null

    private var project: Output? = null

    private var region: Output? = null

    /**
     * @param value A list of features enabled when the selected profile is CUSTOM. The
     * method returns the set of features that can be specified in this
     * list. This field must be empty if the profile is not CUSTOM.
     * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
     * for which ciphers are available to use. **Note**: this argument
     * *must* be present when using the `CUSTOM` profile. This argument
     * *must not* be present when using any other profile.
     */
    @JvmName("qfnisodtsuqjrjsj")
    public suspend fun customFeatures(`value`: Output>) {
        this.customFeatures = value
    }

    @JvmName("ltbdixbegoodsgge")
    public suspend fun customFeatures(vararg values: Output) {
        this.customFeatures = Output.all(values.asList())
    }

    /**
     * @param values A list of features enabled when the selected profile is CUSTOM. The
     * method returns the set of features that can be specified in this
     * list. This field must be empty if the profile is not CUSTOM.
     * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
     * for which ciphers are available to use. **Note**: this argument
     * *must* be present when using the `CUSTOM` profile. This argument
     * *must not* be present when using any other profile.
     */
    @JvmName("tyocbpwcppndnmnm")
    public suspend fun customFeatures(values: List>) {
        this.customFeatures = Output.all(values)
    }

    /**
     * @param value An optional description of this resource.
     */
    @JvmName("elcugcesugabeajb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The minimum version of SSL protocol that can be used by the clients
     * to establish a connection with the load balancer.
     * Default value is `TLS_1_0`.
     * Possible values are: `TLS_1_0`, `TLS_1_1`, `TLS_1_2`.
     */
    @JvmName("wsfansvhqasddnqj")
    public suspend fun minTlsVersion(`value`: Output) {
        this.minTlsVersion = 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?` 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("boolbjotnmwjoeif")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Profile specifies the set of SSL features that can be used by the
     * load balancer when negotiating SSL with clients. If using `CUSTOM`,
     * the set of SSL features to enable must be specified in the
     * `customFeatures` field.
     * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
     * for information on what cipher suites each profile provides. If
     * `CUSTOM` is used, the `custom_features` attribute **must be set**.
     * Default value is `COMPATIBLE`.
     * Possible values are: `COMPATIBLE`, `MODERN`, `RESTRICTED`, `CUSTOM`.
     */
    @JvmName("vnbnjtpwyeisvnlk")
    public suspend fun profile(`value`: Output) {
        this.profile = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("icysglumjlewumpf")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The region where the regional SSL policy resides.
     * - - -
     */
    @JvmName("jikvhpfjvxvwgvsn")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value A list of features enabled when the selected profile is CUSTOM. The
     * method returns the set of features that can be specified in this
     * list. This field must be empty if the profile is not CUSTOM.
     * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
     * for which ciphers are available to use. **Note**: this argument
     * *must* be present when using the `CUSTOM` profile. This argument
     * *must not* be present when using any other profile.
     */
    @JvmName("lsvfmnxoxacroaxt")
    public suspend fun customFeatures(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customFeatures = mapped
    }

    /**
     * @param values A list of features enabled when the selected profile is CUSTOM. The
     * method returns the set of features that can be specified in this
     * list. This field must be empty if the profile is not CUSTOM.
     * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
     * for which ciphers are available to use. **Note**: this argument
     * *must* be present when using the `CUSTOM` profile. This argument
     * *must not* be present when using any other profile.
     */
    @JvmName("dnjemnpduuaekfkt")
    public suspend fun customFeatures(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customFeatures = mapped
    }

    /**
     * @param value An optional description of this resource.
     */
    @JvmName("plvoewwwdbmywxli")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The minimum version of SSL protocol that can be used by the clients
     * to establish a connection with the load balancer.
     * Default value is `TLS_1_0`.
     * Possible values are: `TLS_1_0`, `TLS_1_1`, `TLS_1_2`.
     */
    @JvmName("decbcagiawnluwum")
    public suspend fun minTlsVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minTlsVersion = mapped
    }

    /**
     * @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?` 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("xsdclekeesagsytq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Profile specifies the set of SSL features that can be used by the
     * load balancer when negotiating SSL with clients. If using `CUSTOM`,
     * the set of SSL features to enable must be specified in the
     * `customFeatures` field.
     * See the [official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies#profilefeaturesupport)
     * for information on what cipher suites each profile provides. If
     * `CUSTOM` is used, the `custom_features` attribute **must be set**.
     * Default value is `COMPATIBLE`.
     * Possible values are: `COMPATIBLE`, `MODERN`, `RESTRICTED`, `CUSTOM`.
     */
    @JvmName("yscbvidwdxockocg")
    public suspend fun profile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profile = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("wtxbvdhyhkqxxwny")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The region where the regional SSL policy resides.
     * - - -
     */
    @JvmName("haspwwyocnhwcxvl")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): RegionSslPolicyArgs = RegionSslPolicyArgs(
        customFeatures = customFeatures,
        description = description,
        minTlsVersion = minTlsVersion,
        name = name,
        profile = profile,
        project = project,
        region = region,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy