All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.securitycenter.kotlin.AssessmentPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.securitycenter.kotlin

import com.pulumi.azure.securitycenter.AssessmentPolicyArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Manages the Security Center Assessment Metadata for Azure Security Center.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.securitycenter.AssessmentPolicy("example", {
 *     displayName: "Test Display Name",
 *     severity: "Medium",
 *     description: "Test Description",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.securitycenter.AssessmentPolicy("example",
 *     display_name="Test Display Name",
 *     severity="Medium",
 *     description="Test Description")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.SecurityCenter.AssessmentPolicy("example", new()
 *     {
 *         DisplayName = "Test Display Name",
 *         Severity = "Medium",
 *         Description = "Test Description",
 *     });
 * });
 * ```
 * ```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.NewAssessmentPolicy(ctx, "example", &securitycenter.AssessmentPolicyArgs{
 * 			DisplayName: pulumi.String("Test Display Name"),
 * 			Severity:    pulumi.String("Medium"),
 * 			Description: pulumi.String("Test Description"),
 * 		})
 * 		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.AssessmentPolicy;
 * import com.pulumi.azure.securitycenter.AssessmentPolicyArgs;
 * 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 AssessmentPolicy("example", AssessmentPolicyArgs.builder()
 *             .displayName("Test Display Name")
 *             .severity("Medium")
 *             .description("Test Description")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:securitycenter:AssessmentPolicy
 *     properties:
 *       displayName: Test Display Name
 *       severity: Medium
 *       description: Test Description
 * ```
 * 
 * ## Import
 * Security Assessments Policy can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:securitycenter/assessmentPolicy:AssessmentPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/assessmentMetadata/metadata1
 * ```
 * @property categories A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are `Unknown`, `Compute`, `Data`, `IdentityAndAccess`, `IoT` and `Networking`.
 * @property description The description of the Security Center Assessment.
 * @property displayName The user-friendly display name of the Security Center Assessment.
 * @property implementationEffort The implementation effort which is used to remediate the Security Center Assessment. Possible values are `Low`, `Moderate` and `High`.
 * @property remediationDescription The description which is used to mitigate the security issue.
 * @property severity The severity level of the Security Center Assessment. Possible values are `Low`, `Medium` and `High`. Defaults to `Medium`.
 * @property threats A list of the threat impacts for the Security Center Assessment. Possible values are `AccountBreach`, `DataExfiltration`, `DataSpillage`, `DenialOfService`, `ElevationOfPrivilege`, `MaliciousInsider`, `MissingCoverage` and `ThreatResistance`.
 * @property userImpact The user impact of the Security Center Assessment. Possible values are `Low`, `Moderate` and `High`.
 */
public data class AssessmentPolicyArgs(
    public val categories: Output>? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val implementationEffort: Output? = null,
    public val remediationDescription: Output? = null,
    public val severity: Output? = null,
    public val threats: Output>? = null,
    public val userImpact: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.securitycenter.AssessmentPolicyArgs =
        com.pulumi.azure.securitycenter.AssessmentPolicyArgs.builder()
            .categories(categories?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .implementationEffort(implementationEffort?.applyValue({ args0 -> args0 }))
            .remediationDescription(remediationDescription?.applyValue({ args0 -> args0 }))
            .severity(severity?.applyValue({ args0 -> args0 }))
            .threats(threats?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .userImpact(userImpact?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AssessmentPolicyArgs].
 */
@PulumiTagMarker
public class AssessmentPolicyArgsBuilder internal constructor() {
    private var categories: Output>? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var implementationEffort: Output? = null

    private var remediationDescription: Output? = null

    private var severity: Output? = null

    private var threats: Output>? = null

    private var userImpact: Output? = null

    /**
     * @param value A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are `Unknown`, `Compute`, `Data`, `IdentityAndAccess`, `IoT` and `Networking`.
     */
    @JvmName("nbpcvyygobuysner")
    public suspend fun categories(`value`: Output>) {
        this.categories = value
    }

    @JvmName("qbtclrvkubtdrwhs")
    public suspend fun categories(vararg values: Output) {
        this.categories = Output.all(values.asList())
    }

    /**
     * @param values A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are `Unknown`, `Compute`, `Data`, `IdentityAndAccess`, `IoT` and `Networking`.
     */
    @JvmName("dqgskduvlewenmxq")
    public suspend fun categories(values: List>) {
        this.categories = Output.all(values)
    }

    /**
     * @param value The description of the Security Center Assessment.
     */
    @JvmName("yrghfjusyllmpuok")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The user-friendly display name of the Security Center Assessment.
     */
    @JvmName("msxgxjkyxmsoroxv")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The implementation effort which is used to remediate the Security Center Assessment. Possible values are `Low`, `Moderate` and `High`.
     */
    @JvmName("fiimxntkkrmvtxke")
    public suspend fun implementationEffort(`value`: Output) {
        this.implementationEffort = value
    }

    /**
     * @param value The description which is used to mitigate the security issue.
     */
    @JvmName("bjgiykndqswptorn")
    public suspend fun remediationDescription(`value`: Output) {
        this.remediationDescription = value
    }

    /**
     * @param value The severity level of the Security Center Assessment. Possible values are `Low`, `Medium` and `High`. Defaults to `Medium`.
     */
    @JvmName("feqmpegvierbbqwv")
    public suspend fun severity(`value`: Output) {
        this.severity = value
    }

    /**
     * @param value A list of the threat impacts for the Security Center Assessment. Possible values are `AccountBreach`, `DataExfiltration`, `DataSpillage`, `DenialOfService`, `ElevationOfPrivilege`, `MaliciousInsider`, `MissingCoverage` and `ThreatResistance`.
     */
    @JvmName("vsakawlltybeqvjy")
    public suspend fun threats(`value`: Output>) {
        this.threats = value
    }

    @JvmName("hysegieecjhxbsux")
    public suspend fun threats(vararg values: Output) {
        this.threats = Output.all(values.asList())
    }

    /**
     * @param values A list of the threat impacts for the Security Center Assessment. Possible values are `AccountBreach`, `DataExfiltration`, `DataSpillage`, `DenialOfService`, `ElevationOfPrivilege`, `MaliciousInsider`, `MissingCoverage` and `ThreatResistance`.
     */
    @JvmName("eydkpgcpipqdctxv")
    public suspend fun threats(values: List>) {
        this.threats = Output.all(values)
    }

    /**
     * @param value The user impact of the Security Center Assessment. Possible values are `Low`, `Moderate` and `High`.
     */
    @JvmName("oxtjjdlvxwigfgbv")
    public suspend fun userImpact(`value`: Output) {
        this.userImpact = value
    }

    /**
     * @param value A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are `Unknown`, `Compute`, `Data`, `IdentityAndAccess`, `IoT` and `Networking`.
     */
    @JvmName("ogxvouunkbsymjcd")
    public suspend fun categories(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.categories = mapped
    }

    /**
     * @param values A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are `Unknown`, `Compute`, `Data`, `IdentityAndAccess`, `IoT` and `Networking`.
     */
    @JvmName("eqnciwdyqmdntxhw")
    public suspend fun categories(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.categories = mapped
    }

    /**
     * @param value The description of the Security Center Assessment.
     */
    @JvmName("ugvhoptrtgxbebaw")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The user-friendly display name of the Security Center Assessment.
     */
    @JvmName("lyyubbegmweswkyj")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The implementation effort which is used to remediate the Security Center Assessment. Possible values are `Low`, `Moderate` and `High`.
     */
    @JvmName("fhtnqaonxuexkkxj")
    public suspend fun implementationEffort(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.implementationEffort = mapped
    }

    /**
     * @param value The description which is used to mitigate the security issue.
     */
    @JvmName("qvsuhjkvntnrqssr")
    public suspend fun remediationDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remediationDescription = mapped
    }

    /**
     * @param value The severity level of the Security Center Assessment. Possible values are `Low`, `Medium` and `High`. Defaults to `Medium`.
     */
    @JvmName("liypqfdcbhbudcdx")
    public suspend fun severity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.severity = mapped
    }

    /**
     * @param value A list of the threat impacts for the Security Center Assessment. Possible values are `AccountBreach`, `DataExfiltration`, `DataSpillage`, `DenialOfService`, `ElevationOfPrivilege`, `MaliciousInsider`, `MissingCoverage` and `ThreatResistance`.
     */
    @JvmName("oflraccvveyljcps")
    public suspend fun threats(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.threats = mapped
    }

    /**
     * @param values A list of the threat impacts for the Security Center Assessment. Possible values are `AccountBreach`, `DataExfiltration`, `DataSpillage`, `DenialOfService`, `ElevationOfPrivilege`, `MaliciousInsider`, `MissingCoverage` and `ThreatResistance`.
     */
    @JvmName("rlmeetbgladyaxhc")
    public suspend fun threats(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.threats = mapped
    }

    /**
     * @param value The user impact of the Security Center Assessment. Possible values are `Low`, `Moderate` and `High`.
     */
    @JvmName("oldutueepchxgcsc")
    public suspend fun userImpact(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userImpact = mapped
    }

    internal fun build(): AssessmentPolicyArgs = AssessmentPolicyArgs(
        categories = categories,
        description = description,
        displayName = displayName,
        implementationEffort = implementationEffort,
        remediationDescription = remediationDescription,
        severity = severity,
        threats = threats,
        userImpact = userImpact,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy