@rugal/pulumi-istio
Version:
63 lines • 2.81 kB
JavaScript
;
// *** 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.RequestAuthentication = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../../utilities");
class RequestAuthentication extends pulumi.CustomResource {
/**
* Create a RequestAuthentication 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"] = "RequestAuthentication";
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(RequestAuthentication.__pulumiType, name, inputs, opts);
}
/**
* Get an existing RequestAuthentication 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 RequestAuthentication(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of RequestAuthentication. 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'] === RequestAuthentication.__pulumiType;
}
}
exports.RequestAuthentication = RequestAuthentication;
/** @internal */
RequestAuthentication.__pulumiType = 'kubernetes:security.istio.io/v1beta1:RequestAuthentication';
//# sourceMappingURL=requestAuthentication.js.map