@osmit-gmbh/pulumi-authentik
Version:
A Pulumi package for creating and managing authentik cloud resources.
87 lines • 3.79 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceConnectionDocker = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@osmit-gmbh/pulumi-authentik";
*
* // Create a local docker connection
* const local = new authentik.ServiceConnectionDocker("local", {
* name: "local",
* local: true,
* });
* // Create a remote docker connection
* const tls_auth = new authentik.CertificateKeyPair("tls-auth", {
* name: "docker-tls-auth",
* certificateData: "...",
* keyData: "...",
* });
* const tls_verification = new authentik.CertificateKeyPair("tls-verification", {
* name: "docker-tls-verification",
* certificateData: "...",
* });
* const remote_host = new authentik.ServiceConnectionDocker("remote-host", {
* name: "remote-host",
* url: "http://1.2.3.4:2368",
* tlsVerification: tls_auth.id,
* tlsAuthentication: tls_verification.id,
* });
* ```
*/
class ServiceConnectionDocker extends pulumi.CustomResource {
/**
* Get an existing ServiceConnectionDocker 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 ServiceConnectionDocker(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ServiceConnectionDocker. 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'] === ServiceConnectionDocker.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["local"] = state ? state.local : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["tlsAuthentication"] = state ? state.tlsAuthentication : undefined;
resourceInputs["tlsVerification"] = state ? state.tlsVerification : undefined;
resourceInputs["url"] = state ? state.url : undefined;
}
else {
const args = argsOrState;
resourceInputs["local"] = args ? args.local : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["tlsAuthentication"] = args ? args.tlsAuthentication : undefined;
resourceInputs["tlsVerification"] = args ? args.tlsVerification : undefined;
resourceInputs["url"] = args ? args.url : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ServiceConnectionDocker.__pulumiType, name, resourceInputs, opts);
}
}
exports.ServiceConnectionDocker = ServiceConnectionDocker;
/** @internal */
ServiceConnectionDocker.__pulumiType = 'authentik:index/serviceConnectionDocker:ServiceConnectionDocker';
//# sourceMappingURL=serviceConnectionDocker.js.map