com.pulumi.azure.securitycenter.kotlin.ServerVulnerabilityAssessmentsSettingArgs.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.securitycenter.kotlin
import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages the Server Vulnerability Assesments Setting for Azure Security Center.
* > **NOTE:** This resource requires the `Owner` permission on the Subscription.
* > **NOTE:** Deletion of this resource disables the setting.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.securitycenter.ServerVulnerabilityAssessmentsSetting("example", {vulnerabilityAssessmentProvider: "MdeTvm"});
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.securitycenter.ServerVulnerabilityAssessmentsSetting("example", vulnerability_assessment_provider="MdeTvm")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.SecurityCenter.ServerVulnerabilityAssessmentsSetting("example", new()
* {
* VulnerabilityAssessmentProvider = "MdeTvm",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/securitycenter"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := securitycenter.NewServerVulnerabilityAssessmentsSetting(ctx, "example", &securitycenter.ServerVulnerabilityAssessmentsSettingArgs{
* VulnerabilityAssessmentProvider: pulumi.String("MdeTvm"),
* })
* 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.securitycenter.ServerVulnerabilityAssessmentsSetting;
* import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs;
* 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 ServerVulnerabilityAssessmentsSetting("example", ServerVulnerabilityAssessmentsSettingArgs.builder()
* .vulnerabilityAssessmentProvider("MdeTvm")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
* properties:
* vulnerabilityAssessmentProvider: MdeTvm
* ```
*
* ## Import
* The setting can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/AzureServersSetting
* ```
* @property vulnerabilityAssessmentProvider The vulnerability assesment provider to use. The only possible values is `MdeTvm`.
*/
public data class ServerVulnerabilityAssessmentsSettingArgs(
public val vulnerabilityAssessmentProvider: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs =
com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs.builder()
.vulnerabilityAssessmentProvider(
vulnerabilityAssessmentProvider?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [ServerVulnerabilityAssessmentsSettingArgs].
*/
@PulumiTagMarker
public class ServerVulnerabilityAssessmentsSettingArgsBuilder internal constructor() {
private var vulnerabilityAssessmentProvider: Output? = null
/**
* @param value The vulnerability assesment provider to use. The only possible values is `MdeTvm`.
*/
@JvmName("ccfihwxxiufpmcjq")
public suspend fun vulnerabilityAssessmentProvider(`value`: Output) {
this.vulnerabilityAssessmentProvider = value
}
/**
* @param value The vulnerability assesment provider to use. The only possible values is `MdeTvm`.
*/
@JvmName("gktfvkxodekqjeia")
public suspend fun vulnerabilityAssessmentProvider(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vulnerabilityAssessmentProvider = mapped
}
internal fun build(): ServerVulnerabilityAssessmentsSettingArgs =
ServerVulnerabilityAssessmentsSettingArgs(
vulnerabilityAssessmentProvider = vulnerabilityAssessmentProvider,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy