UNPKG

@rugal/pulumi-istio

Version:
63 lines 2.79 kB
"use strict"; // *** WARNING: this file was generated by crd2pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthorizationPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); class AuthorizationPolicy extends pulumi.CustomResource { /** * Create a AuthorizationPolicy 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) { let inputs = {}; opts = opts || {}; if (!opts.id) { inputs["apiVersion"] = "security.istio.io/v1beta1"; inputs["kind"] = "AuthorizationPolicy"; inputs["metadata"] = args ? args.metadata : undefined; inputs["spec"] = args ? args.spec : undefined; inputs["status"] = args ? args.status : undefined; } else { inputs["apiVersion"] = undefined /*out*/; inputs["kind"] = undefined /*out*/; inputs["metadata"] = undefined /*out*/; inputs["spec"] = undefined /*out*/; inputs["status"] = undefined /*out*/; } if (!opts.version) { opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() }); } super(AuthorizationPolicy.__pulumiType, name, inputs, opts); } /** * Get an existing AuthorizationPolicy 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 AuthorizationPolicy(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of AuthorizationPolicy. 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'] === AuthorizationPolicy.__pulumiType; } } exports.AuthorizationPolicy = AuthorizationPolicy; /** @internal */ AuthorizationPolicy.__pulumiType = 'kubernetes:security.istio.io/v1beta1:AuthorizationPolicy'; //# sourceMappingURL=authorizationPolicy.js.map