azure-native.security.CustomAssessmentAutomation
Explore with Pulumi AI
Custom Assessment Automation Azure REST API version: 2021-07-01-preview. Prior API version in Azure Native 1.x: 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/v2"
"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 pulumi
import pulumi_azure_native as azure_native
custom_assessment_automation = azure_native.security.CustomAssessmentAutomation("customAssessmentAutomation",
compressed_query="DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
custom_assessment_automation_name="MyCustomAssessmentAutomation",
description="Data should be encrypted",
display_name="Password Policy",
remediation_description="Encrypt store by...",
resource_group_name="TestResourceGroup",
severity=azure_native.security.SeverityEnum.MEDIUM,
supported_cloud=azure_native.security.SupportedCloudEnum.AWS)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const customAssessmentAutomation = new azure_native.security.CustomAssessmentAutomation("customAssessmentAutomation", {
compressedQuery: "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
customAssessmentAutomationName: "MyCustomAssessmentAutomation",
description: "Data should be encrypted",
displayName: "Password Policy",
remediationDescription: "Encrypt store by...",
resourceGroupName: "TestResourceGroup",
severity: azure_native.security.SeverityEnum.Medium,
supportedCloud: azure_native.security.SupportedCloudEnum.AWS,
});
resources:
customAssessmentAutomation:
type: azure-native:security:CustomAssessmentAutomation
properties:
compressedQuery: DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=
customAssessmentAutomationName: MyCustomAssessmentAutomation
description: Data should be encrypted
displayName: Password Policy
remediationDescription: Encrypt store by...
resourceGroupName: TestResourceGroup
severity: Medium
supportedCloud: AWS
Create CustomAssessmentAutomation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomAssessmentAutomation(name: string, args: CustomAssessmentAutomationArgs, opts?: CustomResourceOptions);
@overload
def CustomAssessmentAutomation(resource_name: str,
args: CustomAssessmentAutomationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomAssessmentAutomation(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
compressed_query: Optional[str] = None,
custom_assessment_automation_name: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
remediation_description: Optional[str] = None,
severity: Optional[Union[str, SeverityEnum]] = None,
supported_cloud: Optional[Union[str, SupportedCloudEnum]] = None)
func NewCustomAssessmentAutomation(ctx *Context, name string, args CustomAssessmentAutomationArgs, opts ...ResourceOption) (*CustomAssessmentAutomation, error)
public CustomAssessmentAutomation(string name, CustomAssessmentAutomationArgs args, CustomResourceOptions? opts = null)
public CustomAssessmentAutomation(String name, CustomAssessmentAutomationArgs args)
public CustomAssessmentAutomation(String name, CustomAssessmentAutomationArgs args, CustomResourceOptions options)
type: azure-native:security:CustomAssessmentAutomation
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 CustomAssessmentAutomationArgs
- 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 CustomAssessmentAutomationArgs
- 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 CustomAssessmentAutomationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomAssessmentAutomationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomAssessmentAutomationArgs
- 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 customAssessmentAutomationResource = new AzureNative.Security.CustomAssessmentAutomation("customAssessmentAutomationResource", new()
{
ResourceGroupName = "string",
CompressedQuery = "string",
CustomAssessmentAutomationName = "string",
Description = "string",
DisplayName = "string",
RemediationDescription = "string",
Severity = "string",
SupportedCloud = "string",
});
example, err := security.NewCustomAssessmentAutomation(ctx, "customAssessmentAutomationResource", &security.CustomAssessmentAutomationArgs{
ResourceGroupName: pulumi.String("string"),
CompressedQuery: pulumi.String("string"),
CustomAssessmentAutomationName: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
RemediationDescription: pulumi.String("string"),
Severity: pulumi.String("string"),
SupportedCloud: pulumi.String("string"),
})
var customAssessmentAutomationResource = new CustomAssessmentAutomation("customAssessmentAutomationResource", CustomAssessmentAutomationArgs.builder()
.resourceGroupName("string")
.compressedQuery("string")
.customAssessmentAutomationName("string")
.description("string")
.displayName("string")
.remediationDescription("string")
.severity("string")
.supportedCloud("string")
.build());
custom_assessment_automation_resource = azure_native.security.CustomAssessmentAutomation("customAssessmentAutomationResource",
resource_group_name="string",
compressed_query="string",
custom_assessment_automation_name="string",
description="string",
display_name="string",
remediation_description="string",
severity="string",
supported_cloud="string")
const customAssessmentAutomationResource = new azure_native.security.CustomAssessmentAutomation("customAssessmentAutomationResource", {
resourceGroupName: "string",
compressedQuery: "string",
customAssessmentAutomationName: "string",
description: "string",
displayName: "string",
remediationDescription: "string",
severity: "string",
supportedCloud: "string",
});
type: azure-native:security:CustomAssessmentAutomation
properties:
compressedQuery: string
customAssessmentAutomationName: string
description: string
displayName: string
remediationDescription: string
resourceGroupName: string
severity: string
supportedCloud: string
CustomAssessmentAutomation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomAssessmentAutomation 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.
- Compressed
Query string - Base 64 encoded KQL query representing the assessment automation results required.
- Custom
Assessment stringAutomation Name - Name of the Custom Assessment Automation.
- Description string
- The description to relate to the assessments generated by this assessment automation.
- Display
Name string - The display name of the assessments generated by this assessment automation.
- Remediation
Description string - The remediation description to relate to the assessments generated by this assessment automation.
- Severity
string | Pulumi.
Azure Native. Security. Severity Enum - The severity to relate to the assessments generated by this assessment automation.
- Supported
Cloud string | Pulumi.Azure Native. Security. Supported Cloud Enum - Relevant cloud for the custom assessment automation.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Compressed
Query string - Base 64 encoded KQL query representing the assessment automation results required.
- Custom
Assessment stringAutomation Name - Name of the Custom Assessment Automation.
- Description string
- The description to relate to the assessments generated by this assessment automation.
- Display
Name string - The display name of the assessments generated by this assessment automation.
- Remediation
Description string - The remediation description to relate to the assessments generated by this assessment automation.
- Severity
string | Severity
Enum - The severity to relate to the assessments generated by this assessment automation.
- Supported
Cloud string | SupportedCloud Enum - Relevant cloud for the custom assessment automation.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- compressed
Query String - Base 64 encoded KQL query representing the assessment automation results required.
- custom
Assessment StringAutomation Name - Name of the Custom Assessment Automation.
- description String
- The description to relate to the assessments generated by this assessment automation.
- display
Name String - The display name of the assessments generated by this assessment automation.
- remediation
Description String - The remediation description to relate to the assessments generated by this assessment automation.
- severity
String | Severity
Enum - The severity to relate to the assessments generated by this assessment automation.
- supported
Cloud String | SupportedCloud Enum - Relevant cloud for the custom assessment automation.
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- compressed
Query string - Base 64 encoded KQL query representing the assessment automation results required.
- custom
Assessment stringAutomation Name - Name of the Custom Assessment Automation.
- description string
- The description to relate to the assessments generated by this assessment automation.
- display
Name string - The display name of the assessments generated by this assessment automation.
- remediation
Description string - The remediation description to relate to the assessments generated by this assessment automation.
- severity
string | Severity
Enum - The severity to relate to the assessments generated by this assessment automation.
- supported
Cloud string | SupportedCloud Enum - Relevant cloud for the custom assessment automation.
- resource_
group_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- compressed_
query str - Base 64 encoded KQL query representing the assessment automation results required.
- custom_
assessment_ strautomation_ name - Name of the Custom Assessment Automation.
- description str
- The description to relate to the assessments generated by this assessment automation.
- display_
name str - The display name of the assessments generated by this assessment automation.
- remediation_
description str - The remediation description to relate to the assessments generated by this assessment automation.
- severity
str | Severity
Enum - The severity to relate to the assessments generated by this assessment automation.
- supported_
cloud str | SupportedCloud Enum - Relevant cloud for the custom assessment automation.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- compressed
Query String - Base 64 encoded KQL query representing the assessment automation results required.
- custom
Assessment StringAutomation Name - Name of the Custom Assessment Automation.
- description String
- The description to relate to the assessments generated by this assessment automation.
- display
Name String - The display name of the assessments generated by this assessment automation.
- remediation
Description String - The remediation description to relate to the assessments generated by this assessment automation.
- severity String | "High" | "Medium" | "Low"
- The severity to relate to the assessments generated by this assessment automation.
- supported
Cloud String | "AWS" | "GCP" - Relevant cloud for the custom assessment automation.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomAssessmentAutomation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- System
Data Pulumi.Azure Native. Security. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type
- Assessment
Key string - The assessment metadata key used when an assessment is generated for this assessment automation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type
- Assessment
Key string - The assessment metadata key used when an assessment is generated for this assessment automation.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type
- assessment
Key String - The assessment metadata key used when an assessment is generated for this assessment automation.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Resource type
- assessment
Key string - The assessment metadata key used when an assessment is generated for this assessment automation.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Resource type
- assessment_
key str - The assessment metadata key used when an assessment is generated for this assessment automation.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type
- assessment
Key String - The assessment metadata key used when an assessment is generated for this assessment automation.
Supporting Types
SeverityEnum, SeverityEnumArgs
- High
- High
- Medium
- Medium
- Low
- Low
- Severity
Enum High - High
- Severity
Enum Medium - Medium
- Severity
Enum Low - Low
- High
- High
- Medium
- Medium
- Low
- Low
- High
- High
- Medium
- Medium
- Low
- Low
- HIGH
- High
- MEDIUM
- Medium
- LOW
- Low
- "High"
- High
- "Medium"
- Medium
- "Low"
- Low
SupportedCloudEnum, SupportedCloudEnumArgs
- AWS
- AWS
- GCP
- GCP
- Supported
Cloud Enum AWS - AWS
- Supported
Cloud Enum 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:CustomAssessmentAutomation 33e7cc6e-a139-4723-a0e5-76993aee0771 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0