@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
133 lines • 4.52 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceSetting = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ServiceSetting resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const serviceSettings = new scm.ServiceSetting("service_settings", {
* folder: "All",
* services: {
* dnsSetting: {
* servers: {
* primary: "10.10.10.10",
* secondary: "10.10.10.11",
* },
* },
* fqdnRefreshTime: 15,
* fqdnStaleEntryTimeout: 1440,
* ntpServers: {
* primaryNtpServer: {
* ntpServerAddress: "10.10.10.10",
* authenticationType: {
* autokey: {},
* },
* },
* secondaryNtpServer: {
* ntpServerAddress: "11.11.11.11",
* authenticationType: {
* none: {},
* },
* },
* },
* updateServer: "updates.paloaltonetworks.com",
* serverVerification: true,
* secureProxyServer: "test_proxy_server",
* secureProxyPort: 90,
* secureProxyUser: "test_proxy_user",
* secureProxyPassword: "test_password",
* lcaasUseProxy: true,
* inlineCloudProxy: false,
* },
* });
* ```
*
* ## Import
*
* The following command can be used to import a resource not managed by Terraform:
*
* bash
*
* ```sh
* $ pulumi import scm:index/serviceSetting:ServiceSetting example folder:::id
* ```
*
* or
*
* bash
*
* ```sh
* $ pulumi import scm:index/serviceSetting:ServiceSetting example :snippet::id
* ```
*
* or
*
* bash
*
* ```sh
* $ pulumi import scm:index/serviceSetting:ServiceSetting example ::device:id
* ```
*/
class ServiceSetting extends pulumi.CustomResource {
/**
* Get an existing ServiceSetting 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, id, state, opts) {
return new ServiceSetting(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ServiceSetting. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ServiceSetting.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["device"] = state?.device;
resourceInputs["encryptedValues"] = state?.encryptedValues;
resourceInputs["folder"] = state?.folder;
resourceInputs["services"] = state?.services;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tfid"] = state?.tfid;
}
else {
const args = argsOrState;
resourceInputs["device"] = args?.device;
resourceInputs["folder"] = args?.folder;
resourceInputs["services"] = args?.services;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["encryptedValues"] = undefined /*out*/;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["encryptedValues"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(ServiceSetting.__pulumiType, name, resourceInputs, opts);
}
}
exports.ServiceSetting = ServiceSetting;
/** @internal */
ServiceSetting.__pulumiType = 'scm:index/serviceSetting:ServiceSetting';
//# sourceMappingURL=serviceSetting.js.map