com.pulumi.gcp.compute.kotlin.RegionSslPolicyArgs.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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy