// *** 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"; /** * A DNS provider connection Dokploy uses to create records for domains automatically. * * `config` is a JSON object whose shape depends on `providerType`: */ export class DnsProvider extends pulumi.CustomResource { /** * Get an existing DnsProvider 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, state?: DnsProviderState, opts?: pulumi.CustomResourceOptions): DnsProvider { return new DnsProvider(name, state, { ...opts, id: id }); } /** @internal */ public static readonly __pulumiType = 'dokploy:index/dnsProvider:DnsProvider'; /** * Returns true if the given object is an instance of DnsProvider. 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 DnsProvider { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === DnsProvider.__pulumiType; } /** * Provider credentials as a JSON object, including the `providerType` discriminator. */ declare public readonly config: pulumi.Output; /** * RFC 3339 timestamp of when the connection was created. */ declare public /*out*/ readonly createdAt: pulumi.Output; /** * Name of the connection. Must be unique within the organization and may contain only letters, digits, `-` and `_`. */ declare public readonly name: pulumi.Output; /** * Organization that owns the connection. */ declare public /*out*/ readonly organizationId: pulumi.Output; /** * Provider kind derived from `config`: `cloudflare` or `route53`. */ declare public /*out*/ readonly providerType: pulumi.Output; /** * Create a DnsProvider 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: DnsProviderArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: DnsProviderArgs | DnsProviderState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState as DnsProviderState | undefined; resourceInputs["config"] = state?.config; resourceInputs["createdAt"] = state?.createdAt; resourceInputs["name"] = state?.name; resourceInputs["organizationId"] = state?.organizationId; resourceInputs["providerType"] = state?.providerType; } else { const args = argsOrState as DnsProviderArgs | undefined; if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } resourceInputs["config"] = args?.config ? pulumi.secret(args.config) : undefined; resourceInputs["name"] = args?.name; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["organizationId"] = undefined /*out*/; resourceInputs["providerType"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["config"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(DnsProvider.__pulumiType, name, resourceInputs, opts); } } /** * Input properties used for looking up and filtering DnsProvider resources. */ export interface DnsProviderState { /** * Provider credentials as a JSON object, including the `providerType` discriminator. */ config?: pulumi.Input; /** * RFC 3339 timestamp of when the connection was created. */ createdAt?: pulumi.Input; /** * Name of the connection. Must be unique within the organization and may contain only letters, digits, `-` and `_`. */ name?: pulumi.Input; /** * Organization that owns the connection. */ organizationId?: pulumi.Input; /** * Provider kind derived from `config`: `cloudflare` or `route53`. */ providerType?: pulumi.Input; } /** * The set of arguments for constructing a DnsProvider resource. */ export interface DnsProviderArgs { /** * Provider credentials as a JSON object, including the `providerType` discriminator. */ config: pulumi.Input; /** * Name of the connection. Must be unique within the organization and may contain only letters, digits, `-` and `_`. */ name?: pulumi.Input; }