AssessmentPolicyArgs

data class AssessmentPolicyArgs(val categories: Output<List<String>>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val implementationEffort: Output<String>? = null, val remediationDescription: Output<String>? = null, val severity: Output<String>? = null, val threats: Output<List<String>>? = null, val userImpact: Output<String>? = null) : ConvertibleToJava<AssessmentPolicyArgs>

Manages the Security Center Assessment Metadata for Azure Security Center.

Example Usage

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",
});
import pulumi
import pulumi_azure as azure
example = azure.securitycenter.AssessmentPolicy("example",
display_name="Test Display Name",
severity="Medium",
description="Test Description")
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",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/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
})
}
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());
}
}
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.

$ pulumi import azure:securitycenter/assessmentPolicy:AssessmentPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/assessmentMetadata/metadata1

Constructors

Link copied to clipboard
constructor(categories: Output<List<String>>? = null, description: Output<String>? = null, displayName: Output<String>? = null, implementationEffort: Output<String>? = null, remediationDescription: Output<String>? = null, severity: Output<String>? = null, threats: Output<List<String>>? = null, userImpact: Output<String>? = null)

Properties

Link copied to clipboard
val categories: Output<List<String>>? = null

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.

Link copied to clipboard
val description: Output<String>? = null

The description of the Security Center Assessment.

Link copied to clipboard
val displayName: Output<String>? = null

The user-friendly display name of the Security Center Assessment.

Link copied to clipboard
val implementationEffort: Output<String>? = null

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

Link copied to clipboard
val remediationDescription: Output<String>? = null

The description which is used to mitigate the security issue.

Link copied to clipboard
val severity: Output<String>? = null

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

Link copied to clipboard
val threats: Output<List<String>>? = null

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

Link copied to clipboard
val userImpact: Output<String>? = null

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

Functions

Link copied to clipboard
open override fun toJava(): AssessmentPolicyArgs