@pulumi/azure-compliance-policies
Version:
This repository contains a growing set of Compliance Policies to validate your infrastructure using Pulumi's Crossguard Policy-as-Code framework.
334 lines (333 loc) • 17.7 kB
JavaScript
"use strict";
// Copyright 2016-2024, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ------------------------------- WARNING -------------------------------------
// This file was programmatically generated. Do not edit unless you know what
// you're doing.
// ------------------------------- WARNING -------------------------------------
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateSummary = exports.UpdateRun = exports.Update = exports.SecuritySetting = exports.HciEdgeDeviceJob = exports.HciEdgeDevice = exports.Extension = exports.DeploymentSetting = exports.Cluster = exports.ArcSetting = void 0;
const policy_1 = require("@pulumi/policy");
const compliance_policy_manager_1 = require("@pulumi/compliance-policy-manager");
const v20240901preview_1 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_2 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_3 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_4 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_5 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_6 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_7 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_8 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_9 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
const v20240901preview_10 = require("@pulumi/azure-native/azurestackhci/v20240901preview");
var ArcSetting;
(function (ArcSetting) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.ArcSetting).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
ArcSetting.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-arcsetting-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.ArcSetting).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_1.ArcSetting, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure ArcSetting shouldn't use an unstable API (azurestackhci.v20240901preview.ArcSetting). A compatible replacement can be found at 'azurestackhci.ArcSetting'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(ArcSetting || (ArcSetting = {}));
exports.ArcSetting = ArcSetting;
var Cluster;
(function (Cluster) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.Cluster).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Cluster.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-cluster-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.Cluster).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_2.Cluster, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Cluster shouldn't use an unstable API (azurestackhci.v20240901preview.Cluster). A compatible replacement can be found at 'azurestackhci.Cluster'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Cluster || (Cluster = {}));
exports.Cluster = Cluster;
var DeploymentSetting;
(function (DeploymentSetting) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.DeploymentSetting).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
DeploymentSetting.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-deploymentsetting-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.DeploymentSetting).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_3.DeploymentSetting, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure DeploymentSetting shouldn't use an unstable API (azurestackhci.v20240901preview.DeploymentSetting). A compatible replacement can be found at 'azurestackhci.DeploymentSetting'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(DeploymentSetting || (DeploymentSetting = {}));
exports.DeploymentSetting = DeploymentSetting;
var Extension;
(function (Extension) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.Extension).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Extension.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-extension-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.Extension).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_4.Extension, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Extension shouldn't use an unstable API (azurestackhci.v20240901preview.Extension). A compatible replacement can be found at 'azurestackhci.Extension'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Extension || (Extension = {}));
exports.Extension = Extension;
var HciEdgeDevice;
(function (HciEdgeDevice) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.HciEdgeDevice).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
HciEdgeDevice.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-hciedgedevice-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.HciEdgeDevice).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_5.HciEdgeDevice, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure HciEdgeDevice shouldn't use an unstable API (azurestackhci.v20240901preview.HciEdgeDevice). A compatible replacement can be found at 'azurestackhci.HciEdgeDevice'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(HciEdgeDevice || (HciEdgeDevice = {}));
exports.HciEdgeDevice = HciEdgeDevice;
var HciEdgeDeviceJob;
(function (HciEdgeDeviceJob) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.HciEdgeDeviceJob).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
HciEdgeDeviceJob.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-hciedgedevicejob-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.HciEdgeDeviceJob).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_6.HciEdgeDeviceJob, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure HciEdgeDeviceJob shouldn't use an unstable API (azurestackhci.v20240901preview.HciEdgeDeviceJob). A compatible replacement can be found at 'azurestackhci.HciEdgeDeviceJob'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(HciEdgeDeviceJob || (HciEdgeDeviceJob = {}));
exports.HciEdgeDeviceJob = HciEdgeDeviceJob;
var SecuritySetting;
(function (SecuritySetting) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.SecuritySetting).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
SecuritySetting.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-securitysetting-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.SecuritySetting).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_7.SecuritySetting, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure SecuritySetting shouldn't use an unstable API (azurestackhci.v20240901preview.SecuritySetting). A compatible replacement can be found at 'azurestackhci.SecuritySetting'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(SecuritySetting || (SecuritySetting = {}));
exports.SecuritySetting = SecuritySetting;
var Update;
(function (Update) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.Update).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Update.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-update-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.Update).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_8.Update, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Update shouldn't use an unstable API (azurestackhci.v20240901preview.Update). A compatible replacement can be found at 'azurestackhci.Update'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Update || (Update = {}));
exports.Update = Update;
var UpdateRun;
(function (UpdateRun) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.UpdateRun).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
UpdateRun.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-updaterun-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.UpdateRun).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_9.UpdateRun, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure UpdateRun shouldn't use an unstable API (azurestackhci.v20240901preview.UpdateRun). A compatible replacement can be found at 'azurestackhci.UpdateRun'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(UpdateRun || (UpdateRun = {}));
exports.UpdateRun = UpdateRun;
var UpdateSummary;
(function (UpdateSummary) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.UpdateSummary).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
UpdateSummary.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-azurestackhci-v20240901preview-updatesummary-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (azurestackhci.v20240901preview.UpdateSummary).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20240901preview_10.UpdateSummary, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure UpdateSummary shouldn't use an unstable API (azurestackhci.v20240901preview.UpdateSummary). A compatible replacement can be found at 'azurestackhci.UpdateSummary'.");
}),
},
vendors: ["azure"],
services: ["azurestackhci"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(UpdateSummary || (UpdateSummary = {}));
exports.UpdateSummary = UpdateSummary;