![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.securitycenter.kotlin.AssessmentPolicyArgs.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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy