Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.azurenative.security.kotlin
import com.pulumi.azurenative.security.StandardArgs.builder
import com.pulumi.azurenative.security.kotlin.enums.StandardSupportedClouds
import com.pulumi.azurenative.security.kotlin.inputs.StandardComponentPropertiesArgs
import com.pulumi.azurenative.security.kotlin.inputs.StandardComponentPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Security Standard on a resource
* Azure REST API version: 2021-08-01-preview. Prior API version in Azure Native 1.x: 2021-08-01-preview.
* ## Example Usage
* ### Create a security standard on a specified scope
* ```csharp
* 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,
* },
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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.
* ```sh
* $ pulumi import azure-native:security:Standard 8bb8be0a-6010-4789-812f-e4d661c4ed0e /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards/{standardId}
* ```
* @property category category of the standard provided
* @property components List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
* @property description description of the standard
* @property displayName display name of the standard, equivalent to the standardId
* @property kind Kind of the resource
* @property location Location where the resource is stored
* @property resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
* @property standardId The Security Standard key - unique key for the standard type
* @property supportedClouds List of all standard supported clouds.
* @property tags A list of key value pairs that describe the resource.
*/
public data class StandardArgs(
public val category: Output? = null,
public val components: Output>? = null,
public val description: Output? = null,
public val displayName: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val standardId: Output? = null,
public val supportedClouds: Output>? = null,
public val tags: Output