1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. Standard
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.security.Standard

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    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

    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 pulumi
    import pulumi_azure_native as azure_native
    
    standard = azure_native.security.Standard("standard",
        category="SecurityCenter",
        components=[
            azure_native.security.StandardComponentPropertiesArgs(
                key="1195afff-c881-495e-9bc5-1486211ae03f",
            ),
            azure_native.security.StandardComponentPropertiesArgs(
                key="dbd0cb49-b563-45e7-9724-889e799fa648",
            ),
        ],
        description="description of Azure Test Security Standard 1",
        display_name="Azure Test Security Standard 1",
        resource_group_name="myResourceGroup",
        standard_id="8bb8be0a-6010-4789-812f-e4d661c4ed0e",
        supported_clouds=[azure_native.security.StandardSupportedClouds.GCP])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const standard = new azure_native.security.Standard("standard", {
        category: "SecurityCenter",
        components: [
            {
                key: "1195afff-c881-495e-9bc5-1486211ae03f",
            },
            {
                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: [azure_native.security.StandardSupportedClouds.GCP],
    });
    
    resources:
      standard:
        type: azure-native:security:Standard
        properties:
          category: SecurityCenter
          components:
            - key: 1195afff-c881-495e-9bc5-1486211ae03f
            - 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:
            - GCP
    

    Create Standard Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Standard(name: string, args: StandardArgs, opts?: CustomResourceOptions);
    @overload
    def Standard(resource_name: str,
                 args: StandardArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Standard(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 resource_group_name: Optional[str] = None,
                 category: Optional[str] = None,
                 components: Optional[Sequence[StandardComponentPropertiesArgs]] = None,
                 description: Optional[str] = None,
                 display_name: Optional[str] = None,
                 kind: Optional[str] = None,
                 location: Optional[str] = None,
                 standard_id: Optional[str] = None,
                 supported_clouds: Optional[Sequence[StandardSupportedClouds]] = None,
                 tags: Optional[Mapping[str, str]] = None)
    func NewStandard(ctx *Context, name string, args StandardArgs, opts ...ResourceOption) (*Standard, error)
    public Standard(string name, StandardArgs args, CustomResourceOptions? opts = null)
    public Standard(String name, StandardArgs args)
    public Standard(String name, StandardArgs args, CustomResourceOptions options)
    
    type: azure-native:security:Standard
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StandardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StandardArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StandardArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StandardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StandardArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var standardResource = new AzureNative.Security.Standard("standardResource", new()
    {
        ResourceGroupName = "string",
        Category = "string",
        Components = new[]
        {
            new AzureNative.Security.Inputs.StandardComponentPropertiesArgs
            {
                Key = "string",
            },
        },
        Description = "string",
        DisplayName = "string",
        Kind = "string",
        Location = "string",
        StandardId = "string",
        SupportedClouds = new[]
        {
            AzureNative.Security.StandardSupportedClouds.AWS,
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := security.NewStandard(ctx, "standardResource", &security.StandardArgs{
    ResourceGroupName: pulumi.String("string"),
    Category: pulumi.String("string"),
    Components: security.StandardComponentPropertiesArray{
    &security.StandardComponentPropertiesArgs{
    Key: pulumi.String("string"),
    },
    },
    Description: pulumi.String("string"),
    DisplayName: pulumi.String("string"),
    Kind: pulumi.String("string"),
    Location: pulumi.String("string"),
    StandardId: pulumi.String("string"),
    SupportedClouds: security.StandardSupportedCloudsArray{
    security.StandardSupportedCloudsAWS,
    },
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var standardResource = new Standard("standardResource", StandardArgs.builder()
        .resourceGroupName("string")
        .category("string")
        .components(StandardComponentPropertiesArgs.builder()
            .key("string")
            .build())
        .description("string")
        .displayName("string")
        .kind("string")
        .location("string")
        .standardId("string")
        .supportedClouds("AWS")
        .tags(Map.of("string", "string"))
        .build());
    
    standard_resource = azure_native.security.Standard("standardResource",
        resource_group_name="string",
        category="string",
        components=[azure_native.security.StandardComponentPropertiesArgs(
            key="string",
        )],
        description="string",
        display_name="string",
        kind="string",
        location="string",
        standard_id="string",
        supported_clouds=[azure_native.security.StandardSupportedClouds.AWS],
        tags={
            "string": "string",
        })
    
    const standardResource = new azure_native.security.Standard("standardResource", {
        resourceGroupName: "string",
        category: "string",
        components: [{
            key: "string",
        }],
        description: "string",
        displayName: "string",
        kind: "string",
        location: "string",
        standardId: "string",
        supportedClouds: [azure_native.security.StandardSupportedClouds.AWS],
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:security:Standard
    properties:
        category: string
        components:
            - key: string
        description: string
        displayName: string
        kind: string
        location: string
        resourceGroupName: string
        standardId: string
        supportedClouds:
            - AWS
        tags:
            string: string
    

    Standard Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Standard resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    Category string
    category of the standard provided
    Components List<Pulumi.AzureNative.Security.Inputs.StandardComponentProperties>
    List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
    Description string
    description of the standard
    DisplayName string
    display name of the standard, equivalent to the standardId
    Kind string
    Kind of the resource
    Location string
    Location where the resource is stored
    StandardId string
    The Security Standard key - unique key for the standard type
    SupportedClouds List<Pulumi.AzureNative.Security.StandardSupportedClouds>
    List of all standard supported clouds.
    Tags Dictionary<string, string>
    A list of key value pairs that describe the resource.
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    Category string
    category of the standard provided
    Components []StandardComponentPropertiesArgs
    List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
    Description string
    description of the standard
    DisplayName string
    display name of the standard, equivalent to the standardId
    Kind string
    Kind of the resource
    Location string
    Location where the resource is stored
    StandardId string
    The Security Standard key - unique key for the standard type
    SupportedClouds []StandardSupportedClouds
    List of all standard supported clouds.
    Tags map[string]string
    A list of key value pairs that describe the resource.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    category String
    category of the standard provided
    components List<StandardComponentProperties>
    List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
    description String
    description of the standard
    displayName String
    display name of the standard, equivalent to the standardId
    kind String
    Kind of the resource
    location String
    Location where the resource is stored
    standardId String
    The Security Standard key - unique key for the standard type
    supportedClouds List<StandardSupportedClouds>
    List of all standard supported clouds.
    tags Map<String,String>
    A list of key value pairs that describe the resource.
    resourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    category string
    category of the standard provided
    components StandardComponentProperties[]
    List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
    description string
    description of the standard
    displayName string
    display name of the standard, equivalent to the standardId
    kind string
    Kind of the resource
    location string
    Location where the resource is stored
    standardId string
    The Security Standard key - unique key for the standard type
    supportedClouds StandardSupportedClouds[]
    List of all standard supported clouds.
    tags {[key: string]: string}
    A list of key value pairs that describe the resource.
    resource_group_name str
    The name of the resource group within the user's subscription. The name is case insensitive.
    category str
    category of the standard provided
    components Sequence[StandardComponentPropertiesArgs]
    List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
    description str
    description of the standard
    display_name str
    display name of the standard, equivalent to the standardId
    kind str
    Kind of the resource
    location str
    Location where the resource is stored
    standard_id str
    The Security Standard key - unique key for the standard type
    supported_clouds Sequence[StandardSupportedClouds]
    List of all standard supported clouds.
    tags Mapping[str, str]
    A list of key value pairs that describe the resource.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    category String
    category of the standard provided
    components List<Property Map>
    List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
    description String
    description of the standard
    displayName String
    display name of the standard, equivalent to the standardId
    kind String
    Kind of the resource
    location String
    Location where the resource is stored
    standardId String
    The Security Standard key - unique key for the standard type
    supportedClouds List<"AWS" | "GCP">
    List of all standard supported clouds.
    tags Map<String>
    A list of key value pairs that describe the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Standard resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    StandardType string
    standard type (Custom or BuiltIn only currently)
    SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    Resource type
    Etag string
    Entity tag is used for comparing two or more entities from the same requested resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    StandardType string
    standard type (Custom or BuiltIn only currently)
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    Resource type
    Etag string
    Entity tag is used for comparing two or more entities from the same requested resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    standardType String
    standard type (Custom or BuiltIn only currently)
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    Resource type
    etag String
    Entity tag is used for comparing two or more entities from the same requested resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name
    standardType string
    standard type (Custom or BuiltIn only currently)
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    Resource type
    etag string
    Entity tag is used for comparing two or more entities from the same requested resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name
    standard_type str
    standard type (Custom or BuiltIn only currently)
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    Resource type
    etag str
    Entity tag is used for comparing two or more entities from the same requested resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    standardType String
    standard type (Custom or BuiltIn only currently)
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    Resource type
    etag String
    Entity tag is used for comparing two or more entities from the same requested resource.

    Supporting Types

    StandardComponentProperties, StandardComponentPropertiesArgs

    Key string
    Component Key matching componentMetadata
    Key string
    Component Key matching componentMetadata
    key String
    Component Key matching componentMetadata
    key string
    Component Key matching componentMetadata
    key str
    Component Key matching componentMetadata
    key String
    Component Key matching componentMetadata

    StandardComponentPropertiesResponse, StandardComponentPropertiesResponseArgs

    Key string
    Component Key matching componentMetadata
    Key string
    Component Key matching componentMetadata
    key String
    Component Key matching componentMetadata
    key string
    Component Key matching componentMetadata
    key str
    Component Key matching componentMetadata
    key String
    Component Key matching componentMetadata

    StandardSupportedClouds, StandardSupportedCloudsArgs

    AWS
    AWS
    GCP
    GCP
    StandardSupportedCloudsAWS
    AWS
    StandardSupportedCloudsGCP
    GCP
    AWS
    AWS
    GCP
    GCP
    AWS
    AWS
    GCP
    GCP
    AWS
    AWS
    GCP
    GCP
    "AWS"
    AWS
    "GCP"
    GCP

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi