azure-native.security.Standard
Explore with Pulumi AI
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:
- Resource
Group stringName - 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.
Azure Native. Security. Inputs. Standard Component Properties> - 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
- Display
Name string - display name of the standard, equivalent to the standardId
- Kind string
- Kind of the resource
- Location string
- Location where the resource is stored
- Standard
Id string - The Security Standard key - unique key for the standard type
- Supported
Clouds List<Pulumi.Azure Native. Security. Standard Supported Clouds> - List of all standard supported clouds.
- Dictionary<string, string>
- A list of key value pairs that describe the resource.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Category string
- category of the standard provided
- Components
[]Standard
Component Properties Args - 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
- Display
Name string - display name of the standard, equivalent to the standardId
- Kind string
- Kind of the resource
- Location string
- Location where the resource is stored
- Standard
Id string - The Security Standard key - unique key for the standard type
- Supported
Clouds []StandardSupported Clouds - List of all standard supported clouds.
- map[string]string
- A list of key value pairs that describe the resource.
- resource
Group StringName - 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<Standard
Component Properties> - 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
- display
Name String - display name of the standard, equivalent to the standardId
- kind String
- Kind of the resource
- location String
- Location where the resource is stored
- standard
Id String - The Security Standard key - unique key for the standard type
- supported
Clouds List<StandardSupported Clouds> - List of all standard supported clouds.
- Map<String,String>
- A list of key value pairs that describe the resource.
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- category string
- category of the standard provided
- components
Standard
Component Properties[] - 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
- display
Name string - display name of the standard, equivalent to the standardId
- kind string
- Kind of the resource
- location string
- Location where the resource is stored
- standard
Id string - The Security Standard key - unique key for the standard type
- supported
Clouds StandardSupported Clouds[] - List of all standard supported clouds.
- {[key: string]: string}
- A list of key value pairs that describe the resource.
- resource_
group_ strname - 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[Standard
Component Properties Args] - 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[StandardSupported Clouds] - List of all standard supported clouds.
- Mapping[str, str]
- A list of key value pairs that describe the resource.
- resource
Group StringName - 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
- display
Name String - display name of the standard, equivalent to the standardId
- kind String
- Kind of the resource
- location String
- Location where the resource is stored
- standard
Id String - The Security Standard key - unique key for the standard type
- supported
Clouds List<"AWS" | "GCP"> - List of all standard supported clouds.
- 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
- Standard
Type string - standard type (Custom or BuiltIn only currently)
- System
Data Pulumi.Azure Native. Security. Outputs. System Data Response - 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
- Standard
Type string - standard type (Custom or BuiltIn only currently)
- System
Data SystemData Response - 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
- standard
Type String - standard type (Custom or BuiltIn only currently)
- system
Data SystemData Response - 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
- standard
Type string - standard type (Custom or BuiltIn only currently)
- system
Data SystemData Response - 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 SystemData Response - 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
- standard
Type String - standard type (Custom or BuiltIn only currently)
- system
Data 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
- Standard
Supported Clouds AWS - AWS
- Standard
Supported Clouds GCP - GCP
- AWS
- AWS
- GCP
- GCP
- AWS
- AWS
- GCP
- GCP
- AWS
- AWS
- GCP
- GCP
- "AWS"
- AWS
- "GCP"
- GCP
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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