![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.paloalto.kotlin.LocalRulestackCertificateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.paloalto.kotlin
import com.pulumi.azure.paloalto.LocalRulestackCertificateArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a Palo Alto Networks Rulestack Certificate.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "rg-example",
* location: "West Europe",
* });
* const exampleLocalRulestack = new azure.paloalto.LocalRulestack("example", {
* name: "example",
* resourceGroupName: example.name,
* location: example.location,
* });
* const exampleLocalRulestackCertificate = new azure.paloalto.LocalRulestackCertificate("example", {
* name: "example",
* rulestackId: exampleLocalRulestack.id,
* selfSigned: true,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="rg-example",
* location="West Europe")
* example_local_rulestack = azure.paloalto.LocalRulestack("example",
* name="example",
* resource_group_name=example.name,
* location=example.location)
* example_local_rulestack_certificate = azure.paloalto.LocalRulestackCertificate("example",
* name="example",
* rulestack_id=example_local_rulestack.id,
* self_signed=True)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "rg-example",
* Location = "West Europe",
* });
* var exampleLocalRulestack = new Azure.PaloAlto.LocalRulestack("example", new()
* {
* Name = "example",
* ResourceGroupName = example.Name,
* Location = example.Location,
* });
* var exampleLocalRulestackCertificate = new Azure.PaloAlto.LocalRulestackCertificate("example", new()
* {
* Name = "example",
* RulestackId = exampleLocalRulestack.Id,
* SelfSigned = true,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/paloalto"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("rg-example"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleLocalRulestack, err := paloalto.NewLocalRulestack(ctx, "example", &paloalto.LocalRulestackArgs{
* Name: pulumi.String("example"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* })
* if err != nil {
* return err
* }
* _, err = paloalto.NewLocalRulestackCertificate(ctx, "example", &paloalto.LocalRulestackCertificateArgs{
* Name: pulumi.String("example"),
* RulestackId: exampleLocalRulestack.ID(),
* SelfSigned: pulumi.Bool(true),
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.paloalto.LocalRulestack;
* import com.pulumi.azure.paloalto.LocalRulestackArgs;
* import com.pulumi.azure.paloalto.LocalRulestackCertificate;
* import com.pulumi.azure.paloalto.LocalRulestackCertificateArgs;
* 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 ResourceGroup("example", ResourceGroupArgs.builder()
* .name("rg-example")
* .location("West Europe")
* .build());
* var exampleLocalRulestack = new LocalRulestack("exampleLocalRulestack", LocalRulestackArgs.builder()
* .name("example")
* .resourceGroupName(example.name())
* .location(example.location())
* .build());
* var exampleLocalRulestackCertificate = new LocalRulestackCertificate("exampleLocalRulestackCertificate", LocalRulestackCertificateArgs.builder()
* .name("example")
* .rulestackId(exampleLocalRulestack.id())
* .selfSigned(true)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: rg-example
* location: West Europe
* exampleLocalRulestack:
* type: azure:paloalto:LocalRulestack
* name: example
* properties:
* name: example
* resourceGroupName: ${example.name}
* location: ${example.location}
* exampleLocalRulestackCertificate:
* type: azure:paloalto:LocalRulestackCertificate
* name: example
* properties:
* name: example
* rulestackId: ${exampleLocalRulestack.id}
* selfSigned: true
* ```
*
* ## Import
* Palo Alto Networks Rulestack Certificates can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:paloalto/localRulestackCertificate:LocalRulestackCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/myLocalRulestack/certificates/myCertificate
* ```
* @property auditComment The comment for Audit purposes.
* @property description The description for the Certificate.
* @property keyVaultCertificateId The `versionles_id` of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
* @property name The name which should be used for this Palo Alto Networks Rulestack Certificate.
* @property rulestackId The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
* @property selfSigned Should a Self Signed Certificate be used. Defaults to `false`. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
* > **Note:** One and only one of `self_signed` or `key_vault_certificate_id` must be specified.
*/
public data class LocalRulestackCertificateArgs(
public val auditComment: Output? = null,
public val description: Output? = null,
public val keyVaultCertificateId: Output? = null,
public val name: Output? = null,
public val rulestackId: Output? = null,
public val selfSigned: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.paloalto.LocalRulestackCertificateArgs =
com.pulumi.azure.paloalto.LocalRulestackCertificateArgs.builder()
.auditComment(auditComment?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.keyVaultCertificateId(keyVaultCertificateId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.rulestackId(rulestackId?.applyValue({ args0 -> args0 }))
.selfSigned(selfSigned?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LocalRulestackCertificateArgs].
*/
@PulumiTagMarker
public class LocalRulestackCertificateArgsBuilder internal constructor() {
private var auditComment: Output? = null
private var description: Output? = null
private var keyVaultCertificateId: Output? = null
private var name: Output? = null
private var rulestackId: Output? = null
private var selfSigned: Output? = null
/**
* @param value The comment for Audit purposes.
*/
@JvmName("hmydvffhynkjejtc")
public suspend fun auditComment(`value`: Output) {
this.auditComment = value
}
/**
* @param value The description for the Certificate.
*/
@JvmName("whaypcccgthubjrk")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The `versionles_id` of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
*/
@JvmName("ibxiabrcjckfsoqu")
public suspend fun keyVaultCertificateId(`value`: Output) {
this.keyVaultCertificateId = value
}
/**
* @param value The name which should be used for this Palo Alto Networks Rulestack Certificate.
*/
@JvmName("wxmbkowilflbxbkx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
*/
@JvmName("iwvolehnckhyhykf")
public suspend fun rulestackId(`value`: Output) {
this.rulestackId = value
}
/**
* @param value Should a Self Signed Certificate be used. Defaults to `false`. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
* > **Note:** One and only one of `self_signed` or `key_vault_certificate_id` must be specified.
*/
@JvmName("wotvgkilaphgctvx")
public suspend fun selfSigned(`value`: Output) {
this.selfSigned = value
}
/**
* @param value The comment for Audit purposes.
*/
@JvmName("nosyvcukigbvnyxx")
public suspend fun auditComment(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.auditComment = mapped
}
/**
* @param value The description for the Certificate.
*/
@JvmName("hdpoqqxknkycxaam")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The `versionles_id` of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
*/
@JvmName("hojaqrkyxfmavdta")
public suspend fun keyVaultCertificateId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyVaultCertificateId = mapped
}
/**
* @param value The name which should be used for this Palo Alto Networks Rulestack Certificate.
*/
@JvmName("ummamiucqxphsrrh")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
*/
@JvmName("cqafhuxglqwsvwdk")
public suspend fun rulestackId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rulestackId = mapped
}
/**
* @param value Should a Self Signed Certificate be used. Defaults to `false`. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
* > **Note:** One and only one of `self_signed` or `key_vault_certificate_id` must be specified.
*/
@JvmName("cgcwioihdhqgnxvx")
public suspend fun selfSigned(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.selfSigned = mapped
}
internal fun build(): LocalRulestackCertificateArgs = LocalRulestackCertificateArgs(
auditComment = auditComment,
description = description,
keyVaultCertificateId = keyVaultCertificateId,
name = name,
rulestackId = rulestackId,
selfSigned = selfSigned,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy