com.pulumi.cloudflare.kotlin.KeylessCertificateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin
import com.pulumi.cloudflare.KeylessCertificateArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides a resource, that manages Keyless certificates.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudflare from "@pulumi/cloudflare";
* const example = new cloudflare.KeylessCertificate("example", {
* zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
* bundleMethod: "ubiquitous",
* name: "example.com Keyless SSL",
* host: "example.com",
* port: 24008,
* enabled: true,
* certificate: "-----INSERT CERTIFICATE-----",
* });
* ```
* ```python
* import pulumi
* import pulumi_cloudflare as cloudflare
* example = cloudflare.KeylessCertificate("example",
* zone_id="0da42c8d2132a9ddaf714f9e7c920711",
* bundle_method="ubiquitous",
* name="example.com Keyless SSL",
* host="example.com",
* port=24008,
* enabled=True,
* certificate="-----INSERT CERTIFICATE-----")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Cloudflare = Pulumi.Cloudflare;
* return await Deployment.RunAsync(() =>
* {
* var example = new Cloudflare.KeylessCertificate("example", new()
* {
* ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
* BundleMethod = "ubiquitous",
* Name = "example.com Keyless SSL",
* Host = "example.com",
* Port = 24008,
* Enabled = true,
* Certificate = "-----INSERT CERTIFICATE-----",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := cloudflare.NewKeylessCertificate(ctx, "example", &cloudflare.KeylessCertificateArgs{
* ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
* BundleMethod: pulumi.String("ubiquitous"),
* Name: pulumi.String("example.com Keyless SSL"),
* Host: pulumi.String("example.com"),
* Port: pulumi.Int(24008),
* Enabled: pulumi.Bool(true),
* Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.cloudflare.KeylessCertificate;
* import com.pulumi.cloudflare.KeylessCertificateArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new KeylessCertificate("example", KeylessCertificateArgs.builder()
* .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
* .bundleMethod("ubiquitous")
* .name("example.com Keyless SSL")
* .host("example.com")
* .port(24008)
* .enabled(true)
* .certificate("-----INSERT CERTIFICATE-----")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: cloudflare:KeylessCertificate
* properties:
* zoneId: 0da42c8d2132a9ddaf714f9e7c920711
* bundleMethod: ubiquitous
* name: example.com Keyless SSL
* host: example.com
* port: 24008
* enabled: true
* certificate: '-----INSERT CERTIFICATE-----'
* ```
*
* ## Import
* ```sh
* $ pulumi import cloudflare:index/keylessCertificate:KeylessCertificate example /
* ```
* @property bundleMethod A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: `ubiquitous`, `optimal`, `force`. Defaults to `ubiquitous`. **Modifying this attribute will force creation of a new resource.**
* @property certificate The zone's SSL certificate or SSL certificate and intermediate(s). **Modifying this attribute will force creation of a new resource.**
* @property enabled Whether the KeyLess SSL is on.
* @property host The KeyLess SSL host.
* @property name The KeyLess SSL name.
* @property port The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to `24008`.
* @property zoneId The zone identifier to target for the resource.
*/
public data class KeylessCertificateArgs(
public val bundleMethod: Output? = null,
public val certificate: Output? = null,
public val enabled: Output? = null,
public val host: Output? = null,
public val name: Output? = null,
public val port: Output? = null,
public val zoneId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.KeylessCertificateArgs =
com.pulumi.cloudflare.KeylessCertificateArgs.builder()
.bundleMethod(bundleMethod?.applyValue({ args0 -> args0 }))
.certificate(certificate?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.host(host?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KeylessCertificateArgs].
*/
@PulumiTagMarker
public class KeylessCertificateArgsBuilder internal constructor() {
private var bundleMethod: Output? = null
private var certificate: Output? = null
private var enabled: Output? = null
private var host: Output? = null
private var name: Output? = null
private var port: Output? = null
private var zoneId: Output? = null
/**
* @param value A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: `ubiquitous`, `optimal`, `force`. Defaults to `ubiquitous`. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("oppkmtoyyrrwruqi")
public suspend fun bundleMethod(`value`: Output) {
this.bundleMethod = value
}
/**
* @param value The zone's SSL certificate or SSL certificate and intermediate(s). **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("cjatlgxfeafkstfm")
public suspend fun certificate(`value`: Output) {
this.certificate = value
}
/**
* @param value Whether the KeyLess SSL is on.
*/
@JvmName("xphdbpncrhuoqymk")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The KeyLess SSL host.
*/
@JvmName("uyddnmnxpeynxqta")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value The KeyLess SSL name.
*/
@JvmName("rpyixkrlrakrlhyd")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to `24008`.
*/
@JvmName("ebnxbocdcnytgnsu")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The zone identifier to target for the resource.
*/
@JvmName("jthieuscdjblfuko")
public suspend fun zoneId(`value`: Output) {
this.zoneId = value
}
/**
* @param value A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: `ubiquitous`, `optimal`, `force`. Defaults to `ubiquitous`. **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("fyrpvehcmwqtajik")
public suspend fun bundleMethod(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bundleMethod = mapped
}
/**
* @param value The zone's SSL certificate or SSL certificate and intermediate(s). **Modifying this attribute will force creation of a new resource.**
*/
@JvmName("lvxrvsijkwprudrh")
public suspend fun certificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certificate = mapped
}
/**
* @param value Whether the KeyLess SSL is on.
*/
@JvmName("dkytiiisitdktyqw")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The KeyLess SSL host.
*/
@JvmName("whdowbvnyqrucrjh")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value The KeyLess SSL name.
*/
@JvmName("livomqhcycufubaj")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to `24008`.
*/
@JvmName("eygnffnhnoekxcvv")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value The zone identifier to target for the resource.
*/
@JvmName("ewmjbsegifbqvopw")
public suspend fun zoneId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zoneId = mapped
}
internal fun build(): KeylessCertificateArgs = KeylessCertificateArgs(
bundleMethod = bundleMethod,
certificate = certificate,
enabled = enabled,
host = host,
name = name,
port = port,
zoneId = zoneId,
)
}