com.pulumi.gcp.compute.kotlin.RegionSslPolicy.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.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [RegionSslPolicy].
*/
@PulumiTagMarker
public class RegionSslPolicyResourceBuilder internal constructor() {
public var name: String? = null
public var args: RegionSslPolicyArgs = RegionSslPolicyArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend RegionSslPolicyArgsBuilder.() -> Unit) {
val builder = RegionSslPolicyArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): RegionSslPolicy {
val builtJavaResource = com.pulumi.gcp.compute.RegionSslPolicy(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return RegionSslPolicy(builtJavaResource)
}
}
/**
* 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}}
* ```
*/
public class RegionSslPolicy internal constructor(
override val javaResource: com.pulumi.gcp.compute.RegionSslPolicy,
) : KotlinCustomResource(javaResource, RegionSslPolicyMapper) {
/**
* Creation timestamp in RFC3339 text format.
*/
public val creationTimestamp: Output
get() = javaResource.creationTimestamp().applyValue({ args0 -> args0 })
/**
* 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.
*/
public val customFeatures: Output>?
get() = javaResource.customFeatures().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* An optional description of this resource.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The list of features enabled in the SSL policy.
*/
public val enabledFeatures: Output>
get() = javaResource.enabledFeatures().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* Fingerprint of this resource. A hash of the contents stored in this
* object. This field is used in optimistic locking.
*/
public val fingerprint: Output
get() = javaResource.fingerprint().applyValue({ args0 -> args0 })
/**
* 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`.
*/
public val minTlsVersion: Output?
get() = javaResource.minTlsVersion().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* 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.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* 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`.
*/
public val profile: Output?
get() = javaResource.profile().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* The region where the regional SSL policy resides.
* - - -
*/
public val region: Output
get() = javaResource.region().applyValue({ args0 -> args0 })
/**
* The URI of the created resource.
*/
public val selfLink: Output
get() = javaResource.selfLink().applyValue({ args0 -> args0 })
}
public object RegionSslPolicyMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.gcp.compute.RegionSslPolicy::class == javaResource::class
override fun map(javaResource: Resource): RegionSslPolicy = RegionSslPolicy(
javaResource as
com.pulumi.gcp.compute.RegionSslPolicy,
)
}
/**
* @see [RegionSslPolicy].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [RegionSslPolicy].
*/
public suspend fun regionSslPolicy(
name: String,
block: suspend RegionSslPolicyResourceBuilder.() -> Unit,
): RegionSslPolicy {
val builder = RegionSslPolicyResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [RegionSslPolicy].
* @param name The _unique_ name of the resulting resource.
*/
public fun regionSslPolicy(name: String): RegionSslPolicy {
val builder = RegionSslPolicyResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy