@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.
737 lines (736 loc) • 39.6 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.Webhook = exports.Watcher = exports.Variable = exports.SourceControl = exports.SoftwareUpdateConfigurationByName = exports.Schedule = exports.RuntimeEnvironment = exports.Runbook = exports.Python3Package = exports.Python2Package = exports.PrivateEndpointConnection = exports.Package = exports.Module = exports.JobSchedule = exports.HybridRunbookWorkerGroup = exports.HybridRunbookWorker = exports.DscNodeConfiguration = exports.DscConfiguration = exports.Credential = exports.ConnectionType = exports.Connection = exports.Certificate = exports.AutomationAccount = void 0;
const policy_1 = require("@pulumi/policy");
const compliance_policy_manager_1 = require("@pulumi/compliance-policy-manager");
const v20230515preview_1 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_2 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_3 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_4 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_5 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_6 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_7 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_8 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_9 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_10 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_11 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_12 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_13 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_14 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_15 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_16 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_17 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_18 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_19 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_20 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_21 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_22 = require("@pulumi/azure-native/automation/v20230515preview");
const v20230515preview_23 = require("@pulumi/azure-native/automation/v20230515preview");
var AutomationAccount;
(function (AutomationAccount) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.AutomationAccount).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
AutomationAccount.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-automationaccount-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.AutomationAccount).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_1.AutomationAccount, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure AutomationAccount shouldn't use an unstable API (automation.v20230515preview.AutomationAccount). A compatible replacement can be found at 'automation.AutomationAccount'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(AutomationAccount || (AutomationAccount = {}));
exports.AutomationAccount = AutomationAccount;
var Certificate;
(function (Certificate) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Certificate).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Certificate.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-certificate-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Certificate).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_2.Certificate, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Certificate shouldn't use an unstable API (automation.v20230515preview.Certificate). A compatible replacement can be found at 'automation.Certificate'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Certificate || (Certificate = {}));
exports.Certificate = Certificate;
var Connection;
(function (Connection) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Connection).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Connection.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-connection-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Connection).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_3.Connection, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Connection shouldn't use an unstable API (automation.v20230515preview.Connection). A compatible replacement can be found at 'automation.Connection'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Connection || (Connection = {}));
exports.Connection = Connection;
var ConnectionType;
(function (ConnectionType) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.ConnectionType).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
ConnectionType.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-connectiontype-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.ConnectionType).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_4.ConnectionType, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure ConnectionType shouldn't use an unstable API (automation.v20230515preview.ConnectionType). A compatible replacement can be found at 'automation.ConnectionType'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(ConnectionType || (ConnectionType = {}));
exports.ConnectionType = ConnectionType;
var Credential;
(function (Credential) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Credential).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Credential.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-credential-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Credential).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_5.Credential, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Credential shouldn't use an unstable API (automation.v20230515preview.Credential). A compatible replacement can be found at 'automation.Credential'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Credential || (Credential = {}));
exports.Credential = Credential;
var DscConfiguration;
(function (DscConfiguration) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.DscConfiguration).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
DscConfiguration.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-dscconfiguration-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.DscConfiguration).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_6.DscConfiguration, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure DscConfiguration shouldn't use an unstable API (automation.v20230515preview.DscConfiguration). A compatible replacement can be found at 'automation.DscConfiguration'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(DscConfiguration || (DscConfiguration = {}));
exports.DscConfiguration = DscConfiguration;
var DscNodeConfiguration;
(function (DscNodeConfiguration) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.DscNodeConfiguration).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
DscNodeConfiguration.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-dscnodeconfiguration-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.DscNodeConfiguration).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_7.DscNodeConfiguration, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure DscNodeConfiguration shouldn't use an unstable API (automation.v20230515preview.DscNodeConfiguration). A compatible replacement can be found at 'automation.DscNodeConfiguration'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(DscNodeConfiguration || (DscNodeConfiguration = {}));
exports.DscNodeConfiguration = DscNodeConfiguration;
var HybridRunbookWorker;
(function (HybridRunbookWorker) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.HybridRunbookWorker).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
HybridRunbookWorker.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-hybridrunbookworker-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.HybridRunbookWorker).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_8.HybridRunbookWorker, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure HybridRunbookWorker shouldn't use an unstable API (automation.v20230515preview.HybridRunbookWorker). A compatible replacement can be found at 'automation.HybridRunbookWorker'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(HybridRunbookWorker || (HybridRunbookWorker = {}));
exports.HybridRunbookWorker = HybridRunbookWorker;
var HybridRunbookWorkerGroup;
(function (HybridRunbookWorkerGroup) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.HybridRunbookWorkerGroup).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
HybridRunbookWorkerGroup.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-hybridrunbookworkergroup-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.HybridRunbookWorkerGroup).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_9.HybridRunbookWorkerGroup, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure HybridRunbookWorkerGroup shouldn't use an unstable API (automation.v20230515preview.HybridRunbookWorkerGroup). A compatible replacement can be found at 'automation.HybridRunbookWorkerGroup'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(HybridRunbookWorkerGroup || (HybridRunbookWorkerGroup = {}));
exports.HybridRunbookWorkerGroup = HybridRunbookWorkerGroup;
var JobSchedule;
(function (JobSchedule) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.JobSchedule).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
JobSchedule.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-jobschedule-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.JobSchedule).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_10.JobSchedule, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure JobSchedule shouldn't use an unstable API (automation.v20230515preview.JobSchedule). A compatible replacement can be found at 'automation.JobSchedule'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(JobSchedule || (JobSchedule = {}));
exports.JobSchedule = JobSchedule;
var Module;
(function (Module) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Module).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Module.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-module-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Module).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_11.Module, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Module shouldn't use an unstable API (automation.v20230515preview.Module). A compatible replacement can be found at 'automation.Module'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Module || (Module = {}));
exports.Module = Module;
var Package;
(function (Package) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Package).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Package.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-package-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Package).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_12.Package, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Package shouldn't use an unstable API (automation.v20230515preview.Package). A compatible replacement can be found at 'automation.Package'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Package || (Package = {}));
exports.Package = Package;
var PrivateEndpointConnection;
(function (PrivateEndpointConnection) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.PrivateEndpointConnection).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
PrivateEndpointConnection.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-privateendpointconnection-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.PrivateEndpointConnection).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_13.PrivateEndpointConnection, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure PrivateEndpointConnection shouldn't use an unstable API (automation.v20230515preview.PrivateEndpointConnection). A compatible replacement can be found at 'automation.PrivateEndpointConnection'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(PrivateEndpointConnection || (PrivateEndpointConnection = {}));
exports.PrivateEndpointConnection = PrivateEndpointConnection;
var Python2Package;
(function (Python2Package) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Python2Package).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Python2Package.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-python2package-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Python2Package).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_14.Python2Package, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Python2Package shouldn't use an unstable API (automation.v20230515preview.Python2Package). A compatible replacement can be found at 'automation.Python2Package'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Python2Package || (Python2Package = {}));
exports.Python2Package = Python2Package;
var Python3Package;
(function (Python3Package) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Python3Package).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Python3Package.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-python3package-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Python3Package).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_15.Python3Package, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Python3Package shouldn't use an unstable API (automation.v20230515preview.Python3Package). A compatible replacement can be found at 'automation.Python3Package'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Python3Package || (Python3Package = {}));
exports.Python3Package = Python3Package;
var Runbook;
(function (Runbook) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Runbook).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Runbook.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-runbook-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Runbook).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_16.Runbook, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Runbook shouldn't use an unstable API (automation.v20230515preview.Runbook). A compatible replacement can be found at 'automation.Runbook'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Runbook || (Runbook = {}));
exports.Runbook = Runbook;
var RuntimeEnvironment;
(function (RuntimeEnvironment) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.RuntimeEnvironment).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
RuntimeEnvironment.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-runtimeenvironment-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.RuntimeEnvironment).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_17.RuntimeEnvironment, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure RuntimeEnvironment shouldn't use an unstable API (automation.v20230515preview.RuntimeEnvironment). A compatible replacement can be found at 'automation.RuntimeEnvironment'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(RuntimeEnvironment || (RuntimeEnvironment = {}));
exports.RuntimeEnvironment = RuntimeEnvironment;
var Schedule;
(function (Schedule) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Schedule).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Schedule.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-schedule-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Schedule).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_18.Schedule, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Schedule shouldn't use an unstable API (automation.v20230515preview.Schedule). A compatible replacement can be found at 'automation.Schedule'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Schedule || (Schedule = {}));
exports.Schedule = Schedule;
var SoftwareUpdateConfigurationByName;
(function (SoftwareUpdateConfigurationByName) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.SoftwareUpdateConfigurationByName).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
SoftwareUpdateConfigurationByName.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-softwareupdateconfigurationbyname-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.SoftwareUpdateConfigurationByName).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_19.SoftwareUpdateConfigurationByName, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure SoftwareUpdateConfigurationByName shouldn't use an unstable API (automation.v20230515preview.SoftwareUpdateConfigurationByName). A compatible replacement can be found at 'automation.SoftwareUpdateConfigurationByName'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(SoftwareUpdateConfigurationByName || (SoftwareUpdateConfigurationByName = {}));
exports.SoftwareUpdateConfigurationByName = SoftwareUpdateConfigurationByName;
var SourceControl;
(function (SourceControl) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.SourceControl).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
SourceControl.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-sourcecontrol-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.SourceControl).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_20.SourceControl, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure SourceControl shouldn't use an unstable API (automation.v20230515preview.SourceControl). A compatible replacement can be found at 'automation.SourceControl'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(SourceControl || (SourceControl = {}));
exports.SourceControl = SourceControl;
var Variable;
(function (Variable) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Variable).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Variable.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-variable-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Variable).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_21.Variable, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Variable shouldn't use an unstable API (automation.v20230515preview.Variable). A compatible replacement can be found at 'automation.Variable'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Variable || (Variable = {}));
exports.Variable = Variable;
var Watcher;
(function (Watcher) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Watcher).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Watcher.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-watcher-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Watcher).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_22.Watcher, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Watcher shouldn't use an unstable API (automation.v20230515preview.Watcher). A compatible replacement can be found at 'automation.Watcher'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Watcher || (Watcher = {}));
exports.Watcher = Watcher;
var Webhook;
(function (Webhook) {
/**
* Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Webhook).
*
* @severity medium
* @frameworks none
* @topics api, preview, unstable
* @link https://learn.microsoft.com/en-us/rest/api/azure/
*/
Webhook.disallowPreviewResource = compliance_policy_manager_1.policyManager.registerPolicy({
resourceValidationPolicy: {
name: "azurenative-automation-v20230515preview-webhook-disallow-preview-resource",
description: "Disallow the use of non-stable (Preview) Azure resouces (automation.v20230515preview.Webhook).",
configSchema: compliance_policy_manager_1.policyManager.policyConfigSchema,
enforcementLevel: "advisory",
validateResource: (0, policy_1.validateResourceOfType)(v20230515preview_23.Webhook, (_, args, reportViolation) => {
if (!compliance_policy_manager_1.policyManager.shouldEvalPolicy(args)) {
return;
}
reportViolation("Azure Webhook shouldn't use an unstable API (automation.v20230515preview.Webhook). A compatible replacement can be found at 'automation.Webhook'.");
}),
},
vendors: ["azure"],
services: ["automation"],
severity: "medium",
topics: ["api", "unstable", "preview"],
});
})(Webhook || (Webhook = {}));
exports.Webhook = Webhook;