azure-native.azurestackhci.SecuritySetting
Explore with Pulumi AI
Security settings proxy resource Azure REST API version: 2023-11-01-preview.
Other available API versions: 2024-01-01, 2024-02-15-preview, 2024-04-01, 2024-09-01-preview.
Example Usage
Create Security Settings
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var securitySetting = new AzureNative.AzureStackHCI.SecuritySetting("securitySetting", new()
{
ClusterName = "myCluster",
ResourceGroupName = "test-rg",
SecuredCoreComplianceAssignment = AzureNative.AzureStackHCI.ComplianceAssignmentType.Audit,
SecuritySettingsName = "default",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewSecuritySetting(ctx, "securitySetting", &azurestackhci.SecuritySettingArgs{
ClusterName: pulumi.String("myCluster"),
ResourceGroupName: pulumi.String("test-rg"),
SecuredCoreComplianceAssignment: pulumi.String(azurestackhci.ComplianceAssignmentTypeAudit),
SecuritySettingsName: pulumi.String("default"),
})
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.azurestackhci.SecuritySetting;
import com.pulumi.azurenative.azurestackhci.SecuritySettingArgs;
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 securitySetting = new SecuritySetting("securitySetting", SecuritySettingArgs.builder()
.clusterName("myCluster")
.resourceGroupName("test-rg")
.securedCoreComplianceAssignment("Audit")
.securitySettingsName("default")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
security_setting = azure_native.azurestackhci.SecuritySetting("securitySetting",
cluster_name="myCluster",
resource_group_name="test-rg",
secured_core_compliance_assignment=azure_native.azurestackhci.ComplianceAssignmentType.AUDIT,
security_settings_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const securitySetting = new azure_native.azurestackhci.SecuritySetting("securitySetting", {
clusterName: "myCluster",
resourceGroupName: "test-rg",
securedCoreComplianceAssignment: azure_native.azurestackhci.ComplianceAssignmentType.Audit,
securitySettingsName: "default",
});
resources:
securitySetting:
type: azure-native:azurestackhci:SecuritySetting
properties:
clusterName: myCluster
resourceGroupName: test-rg
securedCoreComplianceAssignment: Audit
securitySettingsName: default
Create SecuritySetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecuritySetting(name: string, args: SecuritySettingArgs, opts?: CustomResourceOptions);
@overload
def SecuritySetting(resource_name: str,
args: SecuritySettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecuritySetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
secured_core_compliance_assignment: Optional[Union[str, ComplianceAssignmentType]] = None,
security_settings_name: Optional[str] = None)
func NewSecuritySetting(ctx *Context, name string, args SecuritySettingArgs, opts ...ResourceOption) (*SecuritySetting, error)
public SecuritySetting(string name, SecuritySettingArgs args, CustomResourceOptions? opts = null)
public SecuritySetting(String name, SecuritySettingArgs args)
public SecuritySetting(String name, SecuritySettingArgs args, CustomResourceOptions options)
type: azure-native:azurestackhci:SecuritySetting
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 SecuritySettingArgs
- 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 SecuritySettingArgs
- 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 SecuritySettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecuritySettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecuritySettingArgs
- 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 securitySettingResource = new AzureNative.AzureStackHCI.SecuritySetting("securitySettingResource", new()
{
ClusterName = "string",
ResourceGroupName = "string",
SecuredCoreComplianceAssignment = "string",
SecuritySettingsName = "string",
});
example, err := azurestackhci.NewSecuritySetting(ctx, "securitySettingResource", &azurestackhci.SecuritySettingArgs{
ClusterName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
SecuredCoreComplianceAssignment: pulumi.String("string"),
SecuritySettingsName: pulumi.String("string"),
})
var securitySettingResource = new SecuritySetting("securitySettingResource", SecuritySettingArgs.builder()
.clusterName("string")
.resourceGroupName("string")
.securedCoreComplianceAssignment("string")
.securitySettingsName("string")
.build());
security_setting_resource = azure_native.azurestackhci.SecuritySetting("securitySettingResource",
cluster_name="string",
resource_group_name="string",
secured_core_compliance_assignment="string",
security_settings_name="string")
const securitySettingResource = new azure_native.azurestackhci.SecuritySetting("securitySettingResource", {
clusterName: "string",
resourceGroupName: "string",
securedCoreComplianceAssignment: "string",
securitySettingsName: "string",
});
type: azure-native:azurestackhci:SecuritySetting
properties:
clusterName: string
resourceGroupName: string
securedCoreComplianceAssignment: string
securitySettingsName: string
SecuritySetting 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 SecuritySetting resource accepts the following input properties:
- Cluster
Name string - The name of the cluster.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Secured
Core string | Pulumi.Compliance Assignment Azure Native. Azure Stack HCI. Compliance Assignment Type - Secured Core Compliance Assignment
- Security
Settings stringName - Name of security setting
- Cluster
Name string - The name of the cluster.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Secured
Core string | ComplianceCompliance Assignment Assignment Type - Secured Core Compliance Assignment
- Security
Settings stringName - Name of security setting
- cluster
Name String - The name of the cluster.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- secured
Core String | ComplianceCompliance Assignment Assignment Type - Secured Core Compliance Assignment
- security
Settings StringName - Name of security setting
- cluster
Name string - The name of the cluster.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- secured
Core string | ComplianceCompliance Assignment Assignment Type - Secured Core Compliance Assignment
- security
Settings stringName - Name of security setting
- cluster_
name str - The name of the cluster.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- secured_
core_ str | Compliancecompliance_ assignment Assignment Type - Secured Core Compliance Assignment
- security_
settings_ strname - Name of security setting
- cluster
Name String - The name of the cluster.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- secured
Core String | "Audit" | "ApplyCompliance Assignment And Auto Correct" - Secured Core Compliance Assignment
- security
Settings StringName - Name of security setting
Outputs
All input properties are implicitly available as output properties. Additionally, the SecuritySetting resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The status of the last operation.
- Security
Compliance Pulumi.Status Azure Native. Azure Stack HCI. Outputs. Security Compliance Status Response - Security Compliance Status
- System
Data Pulumi.Azure Native. Azure Stack HCI. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The status of the last operation.
- Security
Compliance SecurityStatus Compliance Status Response - Security Compliance Status
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The status of the last operation.
- security
Compliance SecurityStatus Compliance Status Response - Security Compliance Status
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The status of the last operation.
- security
Compliance SecurityStatus Compliance Status Response - Security Compliance Status
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The status of the last operation.
- security_
compliance_ Securitystatus Compliance Status Response - Security Compliance Status
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The status of the last operation.
- security
Compliance Property MapStatus - Security Compliance Status
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ComplianceAssignmentType, ComplianceAssignmentTypeArgs
- Audit
- AuditReport on the state of the machine, but don't make changes.
- Apply
And Auto Correct - ApplyAndAutoCorrectApplied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation.
- Compliance
Assignment Type Audit - AuditReport on the state of the machine, but don't make changes.
- Compliance
Assignment Type Apply And Auto Correct - ApplyAndAutoCorrectApplied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation.
- Audit
- AuditReport on the state of the machine, but don't make changes.
- Apply
And Auto Correct - ApplyAndAutoCorrectApplied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation.
- Audit
- AuditReport on the state of the machine, but don't make changes.
- Apply
And Auto Correct - ApplyAndAutoCorrectApplied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation.
- AUDIT
- AuditReport on the state of the machine, but don't make changes.
- APPLY_AND_AUTO_CORRECT
- ApplyAndAutoCorrectApplied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation.
- "Audit"
- AuditReport on the state of the machine, but don't make changes.
- "Apply
And Auto Correct" - ApplyAndAutoCorrectApplied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation.
SecurityComplianceStatusResponse, SecurityComplianceStatusResponseArgs
- Data
At stringRest Encrypted - Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes.
- Data
In stringTransit Protected - Indicates whether HCI cluster has data in-transit protection.
- Last
Updated string - Time in UTC when compliance status was last updated.
- Secured
Core stringCompliance - Indicates whether HCI hosts meets secured-core server requirements.
- Wdac
Compliance string - Indicates whether HCI hosts have enforced consistent Windows Defender Application Control.
- Data
At stringRest Encrypted - Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes.
- Data
In stringTransit Protected - Indicates whether HCI cluster has data in-transit protection.
- Last
Updated string - Time in UTC when compliance status was last updated.
- Secured
Core stringCompliance - Indicates whether HCI hosts meets secured-core server requirements.
- Wdac
Compliance string - Indicates whether HCI hosts have enforced consistent Windows Defender Application Control.
- data
At StringRest Encrypted - Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes.
- data
In StringTransit Protected - Indicates whether HCI cluster has data in-transit protection.
- last
Updated String - Time in UTC when compliance status was last updated.
- secured
Core StringCompliance - Indicates whether HCI hosts meets secured-core server requirements.
- wdac
Compliance String - Indicates whether HCI hosts have enforced consistent Windows Defender Application Control.
- data
At stringRest Encrypted - Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes.
- data
In stringTransit Protected - Indicates whether HCI cluster has data in-transit protection.
- last
Updated string - Time in UTC when compliance status was last updated.
- secured
Core stringCompliance - Indicates whether HCI hosts meets secured-core server requirements.
- wdac
Compliance string - Indicates whether HCI hosts have enforced consistent Windows Defender Application Control.
- data_
at_ strrest_ encrypted - Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes.
- data_
in_ strtransit_ protected - Indicates whether HCI cluster has data in-transit protection.
- last_
updated str - Time in UTC when compliance status was last updated.
- secured_
core_ strcompliance - Indicates whether HCI hosts meets secured-core server requirements.
- wdac_
compliance str - Indicates whether HCI hosts have enforced consistent Windows Defender Application Control.
- data
At StringRest Encrypted - Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes.
- data
In StringTransit Protected - Indicates whether HCI cluster has data in-transit protection.
- last
Updated String - Time in UTC when compliance status was last updated.
- secured
Core StringCompliance - Indicates whether HCI hosts meets secured-core server requirements.
- wdac
Compliance String - Indicates whether HCI hosts have enforced consistent Windows Defender Application Control.
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:azurestackhci:SecuritySetting myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/securitySettings/{securitySettingsName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0