CustomAssessmentAutomationArgs

data class CustomAssessmentAutomationArgs(val compressedQuery: Output<String>? = null, val customAssessmentAutomationName: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val remediationDescription: Output<String>? = null, val resourceGroupName: Output<String>? = null, val severity: Output<Either<String, SeverityEnum>>? = null, val supportedCloud: Output<Either<String, SupportedCloudEnum>>? = null) : ConvertibleToJava<CustomAssessmentAutomationArgs>

Custom Assessment Automation Uses Azure REST API version 2021-07-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-07-01-preview.

Example Usage

Create a Custom Assessment Automation

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customAssessmentAutomation = new AzureNative.Security.CustomAssessmentAutomation("customAssessmentAutomation", new()
{
CompressedQuery = "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
CustomAssessmentAutomationName = "MyCustomAssessmentAutomation",
Description = "Data should be encrypted",
DisplayName = "Password Policy",
RemediationDescription = "Encrypt store by...",
ResourceGroupName = "TestResourceGroup",
Severity = AzureNative.Security.SeverityEnum.Medium,
SupportedCloud = AzureNative.Security.SupportedCloudEnum.AWS,
});
});
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/security/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := security.NewCustomAssessmentAutomation(ctx, "customAssessmentAutomation", &security.CustomAssessmentAutomationArgs{
CompressedQuery: pulumi.String("DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA="),
CustomAssessmentAutomationName: pulumi.String("MyCustomAssessmentAutomation"),
Description: pulumi.String("Data should be encrypted"),
DisplayName: pulumi.String("Password Policy"),
RemediationDescription: pulumi.String("Encrypt store by..."),
ResourceGroupName: pulumi.String("TestResourceGroup"),
Severity: pulumi.String(security.SeverityEnumMedium),
SupportedCloud: pulumi.String(security.SupportedCloudEnumAWS),
})
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.azurenative.security.CustomAssessmentAutomation;
import com.pulumi.azurenative.security.CustomAssessmentAutomationArgs;
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 customAssessmentAutomation = new CustomAssessmentAutomation("customAssessmentAutomation", CustomAssessmentAutomationArgs.builder()
.compressedQuery("DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=")
.customAssessmentAutomationName("MyCustomAssessmentAutomation")
.description("Data should be encrypted")
.displayName("Password Policy")
.remediationDescription("Encrypt store by...")
.resourceGroupName("TestResourceGroup")
.severity("Medium")
.supportedCloud("AWS")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:security:CustomAssessmentAutomation 33e7cc6e-a139-4723-a0e5-76993aee0771 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}

Constructors

Link copied to clipboard
constructor(compressedQuery: Output<String>? = null, customAssessmentAutomationName: Output<String>? = null, description: Output<String>? = null, displayName: Output<String>? = null, remediationDescription: Output<String>? = null, resourceGroupName: Output<String>? = null, severity: Output<Either<String, SeverityEnum>>? = null, supportedCloud: Output<Either<String, SupportedCloudEnum>>? = null)

Properties

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

Base 64 encoded KQL query representing the assessment automation results required.

Link copied to clipboard

Name of the Custom Assessment Automation.

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

The description to relate to the assessments generated by this assessment automation.

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

The display name of the assessments generated by this assessment automation.

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

The remediation description to relate to the assessments generated by this assessment automation.

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

The name of the resource group within the user's subscription. The name is case insensitive.

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

The severity to relate to the assessments generated by this assessment automation.

Link copied to clipboard
val supportedCloud: Output<Either<String, SupportedCloudEnum>>? = null

Relevant cloud for the custom assessment automation.

Functions

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