"use strict";
// *** 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.AndroidMAMPolicyByName = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Android Policy entity for Intune MAM.
 *
 * Uses Azure REST API version 2015-01-14-preview. In version 2.x of the Azure Native provider, it used API version 2015-01-14-preview.
 */
class AndroidMAMPolicyByName extends pulumi.CustomResource {
    /**
     * Get an existing AndroidMAMPolicyByName 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new AndroidMAMPolicyByName(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of AndroidMAMPolicyByName.  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'] === AndroidMAMPolicyByName.__pulumiType;
    }
    /**
     * Create a AndroidMAMPolicyByName 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, args, opts) {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if ((!args || args.friendlyName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'friendlyName'");
            }
            if ((!args || args.hostName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'hostName'");
            }
            resourceInputs["accessRecheckOfflineTimeout"] = args ? args.accessRecheckOfflineTimeout : undefined;
            resourceInputs["accessRecheckOnlineTimeout"] = args ? args.accessRecheckOnlineTimeout : undefined;
            resourceInputs["appSharingFromLevel"] = (_a = (args ? args.appSharingFromLevel : undefined)) !== null && _a !== void 0 ? _a : "none";
            resourceInputs["appSharingToLevel"] = (_b = (args ? args.appSharingToLevel : undefined)) !== null && _b !== void 0 ? _b : "none";
            resourceInputs["authentication"] = (_c = (args ? args.authentication : undefined)) !== null && _c !== void 0 ? _c : "required";
            resourceInputs["clipboardSharingLevel"] = (_d = (args ? args.clipboardSharingLevel : undefined)) !== null && _d !== void 0 ? _d : "blocked";
            resourceInputs["dataBackup"] = (_e = (args ? args.dataBackup : undefined)) !== null && _e !== void 0 ? _e : "allow";
            resourceInputs["description"] = args ? args.description : undefined;
            resourceInputs["deviceCompliance"] = (_f = (args ? args.deviceCompliance : undefined)) !== null && _f !== void 0 ? _f : "enable";
            resourceInputs["fileEncryption"] = (_g = (args ? args.fileEncryption : undefined)) !== null && _g !== void 0 ? _g : "required";
            resourceInputs["fileSharingSaveAs"] = (_h = (args ? args.fileSharingSaveAs : undefined)) !== null && _h !== void 0 ? _h : "allow";
            resourceInputs["friendlyName"] = args ? args.friendlyName : undefined;
            resourceInputs["hostName"] = args ? args.hostName : undefined;
            resourceInputs["location"] = args ? args.location : undefined;
            resourceInputs["managedBrowser"] = (_j = (args ? args.managedBrowser : undefined)) !== null && _j !== void 0 ? _j : "required";
            resourceInputs["offlineWipeTimeout"] = args ? args.offlineWipeTimeout : undefined;
            resourceInputs["pin"] = (_k = (args ? args.pin : undefined)) !== null && _k !== void 0 ? _k : "required";
            resourceInputs["pinNumRetry"] = args ? args.pinNumRetry : undefined;
            resourceInputs["policyName"] = args ? args.policyName : undefined;
            resourceInputs["screenCapture"] = (_l = (args ? args.screenCapture : undefined)) !== null && _l !== void 0 ? _l : "allow";
            resourceInputs["tags"] = args ? args.tags : undefined;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["groupStatus"] = undefined /*out*/;
            resourceInputs["lastModifiedTime"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["numOfApps"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["accessRecheckOfflineTimeout"] = undefined /*out*/;
            resourceInputs["accessRecheckOnlineTimeout"] = undefined /*out*/;
            resourceInputs["appSharingFromLevel"] = undefined /*out*/;
            resourceInputs["appSharingToLevel"] = undefined /*out*/;
            resourceInputs["authentication"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["clipboardSharingLevel"] = undefined /*out*/;
            resourceInputs["dataBackup"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["deviceCompliance"] = undefined /*out*/;
            resourceInputs["fileEncryption"] = undefined /*out*/;
            resourceInputs["fileSharingSaveAs"] = undefined /*out*/;
            resourceInputs["friendlyName"] = undefined /*out*/;
            resourceInputs["groupStatus"] = undefined /*out*/;
            resourceInputs["lastModifiedTime"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["managedBrowser"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["numOfApps"] = undefined /*out*/;
            resourceInputs["offlineWipeTimeout"] = undefined /*out*/;
            resourceInputs["pin"] = undefined /*out*/;
            resourceInputs["pinNumRetry"] = undefined /*out*/;
            resourceInputs["screenCapture"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:intune/v20150114preview:AndroidMAMPolicyByName" }, { type: "azure-native:intune/v20150114privatepreview:AndroidMAMPolicyByName" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(AndroidMAMPolicyByName.__pulumiType, name, resourceInputs, opts);
    }
}
exports.AndroidMAMPolicyByName = AndroidMAMPolicyByName;
/** @internal */
AndroidMAMPolicyByName.__pulumiType = 'azure-native:intune:AndroidMAMPolicyByName';
//# sourceMappingURL=data:application/json;base64, 