Files
pulumi-dokploy/sdk/nodejs/destination.ts
T
max-voitcov 73386ba0ff
build / build (push) Failing after 11m22s
release / plugin (push) Failing after 31m35s
release / sdks (push) Has been skipped
Bridge what Dokploy v0.30 added, and let the docs through
Six new resources from terraform-provider-dokploy v0.2.0 -- Network,
DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new
properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`,
`icon`) and Application. Verified with `pulumi up` against a live v0.30.2
instance: create, preview-clean, and destroy.

The upstream provider also now refuses a volume Mount with no `volumeName`,
which Dokploy would otherwise turn into an anonymous Docker volume recreated
on every deploy. That surfaces here at preview time, before anything exists.

Two things made that fix nearly invisible to Pulumi users, so this commit
fixes the second one: the bridge resolves the upstream `docs/` through the Go
module cache, where a locally `replace`d dependency never lands, so tfgen was
emitting every resource with no description at all. UpstreamRepoPath now
points at the checkout and all 445 inputs carry documentation -- with names
rendered per language, so Python readers see `volume_name` where TypeScript
readers see `volumeName`.
2026-08-26 00:46:32 +03:00

226 lines
8.2 KiB
TypeScript
Generated

// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* An S3-compatible bucket that Dokploy writes database and volume backups to.
*
* > The secret access key is stored in Terraform state. Use a state backend with encryption at rest.
*/
export class Destination extends pulumi.CustomResource {
/**
* Get an existing Destination 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.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DestinationState, opts?: pulumi.CustomResourceOptions): Destination {
return new Destination(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'dokploy:index/destination:Destination';
/**
* Returns true if the given object is an instance of Destination. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is Destination {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Destination.__pulumiType;
}
/**
* S3 access key ID.
*/
declare public readonly accessKey: pulumi.Output<string>;
/**
* Extra flags passed to the underlying `rclone` invocation.
*/
declare public readonly additionalFlags: pulumi.Output<string[]>;
/**
* Bucket name.
*/
declare public readonly bucket: pulumi.Output<string>;
/**
* Timestamp of when the destination was created.
*/
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
/**
* S3 endpoint URL.
*/
declare public readonly endpoint: pulumi.Output<string>;
/**
* Display name of the destination.
*/
declare public readonly name: pulumi.Output<string>;
/**
* Provider label, for example `s3` or `cloudflare`. Named `providerName` because `provider` is reserved by Terraform.
*/
declare public readonly providerName: pulumi.Output<string | undefined>;
/**
* Bucket region, for example `us-east-1`.
*/
declare public readonly region: pulumi.Output<string>;
/**
* S3 secret access key.
*/
declare public readonly secretAccessKey: pulumi.Output<string>;
/**
* Server this destination is scoped to.
*/
declare public readonly serverId: pulumi.Output<string | undefined>;
/**
* Create a Destination 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: string, args: DestinationArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: DestinationArgs | DestinationState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as DestinationState | undefined;
resourceInputs["accessKey"] = state?.accessKey;
resourceInputs["additionalFlags"] = state?.additionalFlags;
resourceInputs["bucket"] = state?.bucket;
resourceInputs["createdAt"] = state?.createdAt;
resourceInputs["endpoint"] = state?.endpoint;
resourceInputs["name"] = state?.name;
resourceInputs["providerName"] = state?.providerName;
resourceInputs["region"] = state?.region;
resourceInputs["secretAccessKey"] = state?.secretAccessKey;
resourceInputs["serverId"] = state?.serverId;
} else {
const args = argsOrState as DestinationArgs | undefined;
if (args?.accessKey === undefined && !opts.urn) {
throw new Error("Missing required property 'accessKey'");
}
if (args?.bucket === undefined && !opts.urn) {
throw new Error("Missing required property 'bucket'");
}
if (args?.endpoint === undefined && !opts.urn) {
throw new Error("Missing required property 'endpoint'");
}
if (args?.region === undefined && !opts.urn) {
throw new Error("Missing required property 'region'");
}
if (args?.secretAccessKey === undefined && !opts.urn) {
throw new Error("Missing required property 'secretAccessKey'");
}
resourceInputs["accessKey"] = args?.accessKey;
resourceInputs["additionalFlags"] = args?.additionalFlags;
resourceInputs["bucket"] = args?.bucket;
resourceInputs["endpoint"] = args?.endpoint;
resourceInputs["name"] = args?.name;
resourceInputs["providerName"] = args?.providerName;
resourceInputs["region"] = args?.region;
resourceInputs["secretAccessKey"] = args?.secretAccessKey ? pulumi.secret(args.secretAccessKey) : undefined;
resourceInputs["serverId"] = args?.serverId;
resourceInputs["createdAt"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["secretAccessKey"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Destination.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering Destination resources.
*/
export interface DestinationState {
/**
* S3 access key ID.
*/
accessKey?: pulumi.Input<string | undefined>;
/**
* Extra flags passed to the underlying `rclone` invocation.
*/
additionalFlags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* Bucket name.
*/
bucket?: pulumi.Input<string | undefined>;
/**
* Timestamp of when the destination was created.
*/
createdAt?: pulumi.Input<string | undefined>;
/**
* S3 endpoint URL.
*/
endpoint?: pulumi.Input<string | undefined>;
/**
* Display name of the destination.
*/
name?: pulumi.Input<string | undefined>;
/**
* Provider label, for example `s3` or `cloudflare`. Named `providerName` because `provider` is reserved by Terraform.
*/
providerName?: pulumi.Input<string | undefined>;
/**
* Bucket region, for example `us-east-1`.
*/
region?: pulumi.Input<string | undefined>;
/**
* S3 secret access key.
*/
secretAccessKey?: pulumi.Input<string | undefined>;
/**
* Server this destination is scoped to.
*/
serverId?: pulumi.Input<string | undefined>;
}
/**
* The set of arguments for constructing a Destination resource.
*/
export interface DestinationArgs {
/**
* S3 access key ID.
*/
accessKey: pulumi.Input<string>;
/**
* Extra flags passed to the underlying `rclone` invocation.
*/
additionalFlags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* Bucket name.
*/
bucket: pulumi.Input<string>;
/**
* S3 endpoint URL.
*/
endpoint: pulumi.Input<string>;
/**
* Display name of the destination.
*/
name?: pulumi.Input<string | undefined>;
/**
* Provider label, for example `s3` or `cloudflare`. Named `providerName` because `provider` is reserved by Terraform.
*/
providerName?: pulumi.Input<string | undefined>;
/**
* Bucket region, for example `us-east-1`.
*/
region: pulumi.Input<string>;
/**
* S3 secret access key.
*/
secretAccessKey: pulumi.Input<string>;
/**
* Server this destination is scoped to.
*/
serverId?: pulumi.Input<string | undefined>;
}