StandardArgs

data class StandardArgs(val category: Output<String>? = null, val components: Output<List<StandardComponentPropertiesArgs>>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val standardId: Output<String>? = null, val supportedClouds: Output<List<StandardSupportedClouds>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<StandardArgs>

Security Standard on a resource Uses Azure REST API version 2021-08-01-preview. In version 1.x of the Azure Native provider, it used API version 2021-08-01-preview.

Example Usage

Create a security standard on a specified scope

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var standard = new AzureNative.Security.Standard("standard", new()
{
Category = "SecurityCenter",
Components = new[]
{
new AzureNative.Security.Inputs.StandardComponentPropertiesArgs
{
Key = "1195afff-c881-495e-9bc5-1486211ae03f",
},
new AzureNative.Security.Inputs.StandardComponentPropertiesArgs
{
Key = "dbd0cb49-b563-45e7-9724-889e799fa648",
},
},
Description = "description of Azure Test Security Standard 1",
DisplayName = "Azure Test Security Standard 1",
ResourceGroupName = "myResourceGroup",
StandardId = "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
SupportedClouds = new[]
{
AzureNative.Security.StandardSupportedClouds.GCP,
},
});
});
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := security.NewStandard(ctx, "standard", &security.StandardArgs{
Category: pulumi.String("SecurityCenter"),
Components: security.StandardComponentPropertiesArray{
&security.StandardComponentPropertiesArgs{
Key: pulumi.String("1195afff-c881-495e-9bc5-1486211ae03f"),
},
&security.StandardComponentPropertiesArgs{
Key: pulumi.String("dbd0cb49-b563-45e7-9724-889e799fa648"),
},
},
Description: pulumi.String("description of Azure Test Security Standard 1"),
DisplayName: pulumi.String("Azure Test Security Standard 1"),
ResourceGroupName: pulumi.String("myResourceGroup"),
StandardId: pulumi.String("8bb8be0a-6010-4789-812f-e4d661c4ed0e"),
SupportedClouds: security.StandardSupportedCloudsArray{
security.StandardSupportedCloudsGCP,
},
})
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.Standard;
import com.pulumi.azurenative.security.StandardArgs;
import com.pulumi.azurenative.security.inputs.StandardComponentPropertiesArgs;
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 standard = new Standard("standard", StandardArgs.builder()
.category("SecurityCenter")
.components(
StandardComponentPropertiesArgs.builder()
.key("1195afff-c881-495e-9bc5-1486211ae03f")
.build(),
StandardComponentPropertiesArgs.builder()
.key("dbd0cb49-b563-45e7-9724-889e799fa648")
.build())
.description("description of Azure Test Security Standard 1")
.displayName("Azure Test Security Standard 1")
.resourceGroupName("myResourceGroup")
.standardId("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
.supportedClouds("GCP")
.build());
}
}

Import

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

$ pulumi import azure-native:security:Standard 8bb8be0a-6010-4789-812f-e4d661c4ed0e /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards/{standardId}

Constructors

Link copied to clipboard
constructor(category: Output<String>? = null, components: Output<List<StandardComponentPropertiesArgs>>? = null, description: Output<String>? = null, displayName: Output<String>? = null, kind: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, standardId: Output<String>? = null, supportedClouds: Output<List<StandardSupportedClouds>>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

category of the standard provided

Link copied to clipboard

List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.

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

description of the standard

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

display name of the standard, equivalent to the standardId

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

Kind of the resource

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

Location where the resource is stored

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 standardId: Output<String>? = null

The Security Standard key - unique key for the standard type

Link copied to clipboard

List of all standard supported clouds.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A list of key value pairs that describe the resource.

Functions

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