@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
406 lines (405 loc) • 11.6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* HipObject resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // This resource creates a comprehensive HIP Object with many criteria enabled.
* // This showcases the use of nested objects and lists of objects that the
* // corrected provider schema now supports.
* const scmHipObject1 = new scm.HipObject("scm_hip_object_1", {
* folder: "Shared",
* name: "scm_hip_object_1",
* description: "HIP object with multiple advanced criteria configured",
* antiMalware: {
* criteria: {
* isInstalled: true,
* realTimeProtection: "yes",
* virdefVersion: {
* notWithin: {
* days: 10,
* },
* },
* },
* vendors: [{
* name: "Microsoft",
* product: ["Microsoft Defender"],
* }],
* },
* dataLossPrevention: {
* criteria: {
* isInstalled: true,
* isEnabled: "yes",
* },
* vendors: [{
* name: "Symantec",
* }],
* },
* diskBackup: {
* criteria: {
* isInstalled: true,
* lastBackupTime: {
* within: {
* days: 7,
* },
* },
* },
* vendors: [{
* name: "Veeam",
* }],
* },
* diskEncryption: {
* criteria: {
* isInstalled: true,
* encryptedLocations: [
* {
* name: "C:\\",
* encryptionState: {
* is: "encrypted",
* },
* },
* {
* name: "D:\\Users\\",
* encryptionState: {
* isNot: "unencrypted",
* },
* },
* ],
* },
* vendors: [{
* name: "BitLocker",
* }],
* },
* firewall: {
* criteria: {
* isInstalled: true,
* isEnabled: "yes",
* },
* vendors: [{
* name: "Microsoft",
* }],
* },
* hostInfo: {
* criteria: {
* os: {
* contains: {
* microsoft: "Microsoft Windows 11",
* },
* },
* domain: {
* is: "corp.example.com",
* },
* },
* },
* mobileDevice: {
* criteria: {
* jailbroken: false,
* passcodeSet: true,
* applications: {
* hasUnmanagedApp: false,
* hasMalware: {
* no: {},
* },
* },
* },
* },
* networkInfo: {
* criteria: {
* network: {
* is: {
* wifi: {
* ssid: "Corporate-WLAN",
* },
* },
* },
* },
* },
* patchManagement: {
* criteria: {
* isInstalled: true,
* missingPatches: {
* check: "has-none",
* patches: [
* "KB4012212",
* "KB4012213",
* ],
* severity: {
* greaterThan: 5,
* },
* },
* },
* vendors: [{
* name: "Microsoft",
* }],
* },
* customChecks: {
* criteria: {
* processLists: [
* {
* name: "evil_process.exe",
* running: false,
* },
* {
* name: "corp_security_agent.exe",
* running: true,
* },
* ],
* registryKeys: [{
* name: "HKEY_LOCAL_MACHINE\\Software\\PaloAltoNetworks",
* registryValue: [{
* name: "AllowRemoteAccess",
* valueData: "false",
* }],
* }],
* },
* },
* });
* ```
*/
export declare class HipObject extends pulumi.CustomResource {
/**
* Get an existing HipObject resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: HipObjectState, opts?: pulumi.CustomResourceOptions): HipObject;
/**
* Returns true if the given object is an instance of HipObject. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is HipObject;
/**
* Anti malware
*/
readonly antiMalware: pulumi.Output<outputs.HipObjectAntiMalware>;
/**
* Certificate
*/
readonly certificate: pulumi.Output<outputs.HipObjectCertificate | undefined>;
/**
* Custom checks
*/
readonly customChecks: pulumi.Output<outputs.HipObjectCustomChecks | undefined>;
/**
* Data loss prevention
*/
readonly dataLossPrevention: pulumi.Output<outputs.HipObjectDataLossPrevention>;
/**
* Description
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The device in which the resource is defined
*/
readonly device: pulumi.Output<string | undefined>;
/**
* Disk backup
*/
readonly diskBackup: pulumi.Output<outputs.HipObjectDiskBackup>;
/**
* Disk encryption
*/
readonly diskEncryption: pulumi.Output<outputs.HipObjectDiskEncryption>;
/**
* Firewall
*/
readonly firewall: pulumi.Output<outputs.HipObjectFirewall>;
/**
* The folder in which the resource is defined
*
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
readonly folder: pulumi.Output<string | undefined>;
/**
* Host info
*/
readonly hostInfo: pulumi.Output<outputs.HipObjectHostInfo | undefined>;
/**
* Mobile device
*/
readonly mobileDevice: pulumi.Output<outputs.HipObjectMobileDevice | undefined>;
/**
* The name of the HIP object
*/
readonly name: pulumi.Output<string>;
/**
* Network info
*/
readonly networkInfo: pulumi.Output<outputs.HipObjectNetworkInfo | undefined>;
/**
* Patch management
*/
readonly patchManagement: pulumi.Output<outputs.HipObjectPatchManagement>;
/**
* The snippet in which the resource is defined
*
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
readonly snippet: pulumi.Output<string | undefined>;
readonly tfid: pulumi.Output<string>;
/**
* Create a HipObject resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: HipObjectArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering HipObject resources.
*/
export interface HipObjectState {
/**
* Anti malware
*/
antiMalware?: pulumi.Input<inputs.HipObjectAntiMalware>;
/**
* Certificate
*/
certificate?: pulumi.Input<inputs.HipObjectCertificate>;
/**
* Custom checks
*/
customChecks?: pulumi.Input<inputs.HipObjectCustomChecks>;
/**
* Data loss prevention
*/
dataLossPrevention?: pulumi.Input<inputs.HipObjectDataLossPrevention>;
/**
* Description
*/
description?: pulumi.Input<string>;
/**
* The device in which the resource is defined
*/
device?: pulumi.Input<string>;
/**
* Disk backup
*/
diskBackup?: pulumi.Input<inputs.HipObjectDiskBackup>;
/**
* Disk encryption
*/
diskEncryption?: pulumi.Input<inputs.HipObjectDiskEncryption>;
/**
* Firewall
*/
firewall?: pulumi.Input<inputs.HipObjectFirewall>;
/**
* The folder in which the resource is defined
*
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
folder?: pulumi.Input<string>;
/**
* Host info
*/
hostInfo?: pulumi.Input<inputs.HipObjectHostInfo>;
/**
* Mobile device
*/
mobileDevice?: pulumi.Input<inputs.HipObjectMobileDevice>;
/**
* The name of the HIP object
*/
name?: pulumi.Input<string>;
/**
* Network info
*/
networkInfo?: pulumi.Input<inputs.HipObjectNetworkInfo>;
/**
* Patch management
*/
patchManagement?: pulumi.Input<inputs.HipObjectPatchManagement>;
/**
* The snippet in which the resource is defined
*
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
snippet?: pulumi.Input<string>;
tfid?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a HipObject resource.
*/
export interface HipObjectArgs {
/**
* Anti malware
*/
antiMalware?: pulumi.Input<inputs.HipObjectAntiMalware>;
/**
* Certificate
*/
certificate?: pulumi.Input<inputs.HipObjectCertificate>;
/**
* Custom checks
*/
customChecks?: pulumi.Input<inputs.HipObjectCustomChecks>;
/**
* Data loss prevention
*/
dataLossPrevention?: pulumi.Input<inputs.HipObjectDataLossPrevention>;
/**
* Description
*/
description?: pulumi.Input<string>;
/**
* The device in which the resource is defined
*/
device?: pulumi.Input<string>;
/**
* Disk backup
*/
diskBackup?: pulumi.Input<inputs.HipObjectDiskBackup>;
/**
* Disk encryption
*/
diskEncryption?: pulumi.Input<inputs.HipObjectDiskEncryption>;
/**
* Firewall
*/
firewall?: pulumi.Input<inputs.HipObjectFirewall>;
/**
* The folder in which the resource is defined
*
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
folder?: pulumi.Input<string>;
/**
* Host info
*/
hostInfo?: pulumi.Input<inputs.HipObjectHostInfo>;
/**
* Mobile device
*/
mobileDevice?: pulumi.Input<inputs.HipObjectMobileDevice>;
/**
* The name of the HIP object
*/
name?: pulumi.Input<string>;
/**
* Network info
*/
networkInfo?: pulumi.Input<inputs.HipObjectNetworkInfo>;
/**
* Patch management
*/
patchManagement?: pulumi.Input<inputs.HipObjectPatchManagement>;
/**
* The snippet in which the resource is defined
*
* > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`.
*/
snippet?: pulumi.Input<string>;
}