@pulumi/digitalocean 4.0.0-alpha.1750975083 → 4.0.0-alpha.1768023697
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.d.ts +39 -0
- package/app.js +43 -14
- package/app.js.map +1 -1
- package/byoipPrefix.d.ts +148 -0
- package/byoipPrefix.js +101 -0
- package/byoipPrefix.js.map +1 -0
- package/cdn.js +14 -14
- package/cdn.js.map +1 -1
- package/certificate.js +17 -17
- package/certificate.js.map +1 -1
- package/config/vars.js +2 -4
- package/config/vars.js.map +1 -1
- package/containerRegistries.d.ts +53 -0
- package/containerRegistries.js +64 -0
- package/containerRegistries.js.map +1 -0
- package/containerRegistry.js +12 -12
- package/containerRegistry.js.map +1 -1
- package/containerRegistryDockerCredentials.d.ts +3 -3
- package/containerRegistryDockerCredentials.js +13 -13
- package/containerRegistryDockerCredentials.js.map +1 -1
- package/customImage.js +23 -23
- package/customImage.js.map +1 -1
- package/databaseCluster.d.ts +8 -0
- package/databaseCluster.js +50 -48
- package/databaseCluster.js.map +1 -1
- package/databaseConnectionPool.js +23 -23
- package/databaseConnectionPool.js.map +1 -1
- package/databaseDb.js +6 -6
- package/databaseDb.js.map +1 -1
- package/databaseFirewall.js +7 -7
- package/databaseFirewall.js.map +1 -1
- package/databaseKafkaConfig.js +38 -38
- package/databaseKafkaConfig.js.map +1 -1
- package/databaseKafkaSchemaRegistry.d.ts +121 -0
- package/databaseKafkaSchemaRegistry.js +104 -0
- package/databaseKafkaSchemaRegistry.js.map +1 -0
- package/databaseKafkaTopic.js +13 -13
- package/databaseKafkaTopic.js.map +1 -1
- package/databaseLogsinkOpensearch.d.ts +246 -0
- package/databaseLogsinkOpensearch.js +192 -0
- package/databaseLogsinkOpensearch.js.map +1 -0
- package/databaseLogsinkRsyslog.d.ts +286 -0
- package/databaseLogsinkRsyslog.js +192 -0
- package/databaseLogsinkRsyslog.js.map +1 -0
- package/databaseMongodbConfig.js +14 -14
- package/databaseMongodbConfig.js.map +1 -1
- package/databaseMysqlConfig.js +58 -58
- package/databaseMysqlConfig.js.map +1 -1
- package/databaseOnlineMigration.d.ts +164 -0
- package/databaseOnlineMigration.js +127 -0
- package/databaseOnlineMigration.js.map +1 -0
- package/databaseOpensearchConfig.js +80 -80
- package/databaseOpensearchConfig.js.map +1 -1
- package/databasePostgresqlConfig.js +106 -106
- package/databasePostgresqlConfig.js.map +1 -1
- package/databaseRedisConfig.d.ts +2 -0
- package/databaseRedisConfig.js +28 -26
- package/databaseRedisConfig.js.map +1 -1
- package/databaseReplica.js +25 -25
- package/databaseReplica.js.map +1 -1
- package/databaseUser.js +14 -14
- package/databaseUser.js.map +1 -1
- package/databaseValkeyConfig.d.ts +227 -0
- package/databaseValkeyConfig.js +111 -0
- package/databaseValkeyConfig.js.map +1 -0
- package/dnsRecord.js +25 -25
- package/dnsRecord.js.map +1 -1
- package/domain.js +8 -8
- package/domain.js.map +1 -1
- package/droplet.js +50 -50
- package/droplet.js.map +1 -1
- package/dropletAutoscale.js +13 -13
- package/dropletAutoscale.js.map +1 -1
- package/dropletSnapshot.js +10 -10
- package/dropletSnapshot.js.map +1 -1
- package/firewall.js +14 -14
- package/firewall.js.map +1 -1
- package/floatingIp.js +9 -9
- package/floatingIp.js.map +1 -1
- package/floatingIpAssignment.js +7 -7
- package/floatingIpAssignment.js.map +1 -1
- package/genaiAgent.d.ts +498 -0
- package/genaiAgent.js +137 -0
- package/genaiAgent.js.map +1 -0
- package/genaiAgentKnowledgeBaseAttachment.d.ts +60 -0
- package/genaiAgentKnowledgeBaseAttachment.js +57 -0
- package/genaiAgentKnowledgeBaseAttachment.js.map +1 -0
- package/genaiAgentRoute.d.ts +95 -0
- package/genaiAgentRoute.js +65 -0
- package/genaiAgentRoute.js.map +1 -0
- package/genaiFunction.d.ts +128 -0
- package/genaiFunction.js +78 -0
- package/genaiFunction.js.map +1 -0
- package/genaiIndexingJobCancel.d.ts +160 -0
- package/genaiIndexingJobCancel.js +80 -0
- package/genaiIndexingJobCancel.js.map +1 -0
- package/genaiKnowledgeBase.d.ts +160 -0
- package/genaiKnowledgeBase.js +83 -0
- package/genaiKnowledgeBase.js.map +1 -0
- package/genaiKnowledgeBaseDataSource.d.ts +56 -0
- package/genaiKnowledgeBaseDataSource.js +56 -0
- package/genaiKnowledgeBaseDataSource.js.map +1 -0
- package/genaiOpenaiApiKey.d.ts +114 -0
- package/genaiOpenaiApiKey.js +66 -0
- package/genaiOpenaiApiKey.js.map +1 -0
- package/getByoipPrefix.d.ts +122 -0
- package/getByoipPrefix.js +90 -0
- package/getByoipPrefix.js.map +1 -0
- package/getByoipPrefixResources.d.ts +94 -0
- package/getByoipPrefixResources.js +80 -0
- package/getByoipPrefixResources.js.map +1 -0
- package/getContainerRegistries.d.ts +31 -0
- package/getContainerRegistries.js +22 -0
- package/getContainerRegistries.js.map +1 -0
- package/getDatabaseCluster.d.ts +4 -0
- package/getDatabaseCluster.js.map +1 -1
- package/getDatabaseMetricsCredentials.d.ts +48 -0
- package/getDatabaseMetricsCredentials.js +46 -0
- package/getDatabaseMetricsCredentials.js.map +1 -0
- package/getGenaiAgent.d.ts +112 -0
- package/getGenaiAgent.js +72 -0
- package/getGenaiAgent.js.map +1 -0
- package/getGenaiAgentVersions.d.ts +34 -0
- package/getGenaiAgentVersions.js +26 -0
- package/getGenaiAgentVersions.js.map +1 -0
- package/getGenaiAgents.d.ts +34 -0
- package/getGenaiAgents.js +28 -0
- package/getGenaiAgents.js.map +1 -0
- package/getGenaiAgentsByOpenaiApiKey.d.ts +27 -0
- package/getGenaiAgentsByOpenaiApiKey.js +22 -0
- package/getGenaiAgentsByOpenaiApiKey.js.map +1 -0
- package/getGenaiIndexingJob.d.ts +39 -0
- package/getGenaiIndexingJob.js +22 -0
- package/getGenaiIndexingJob.js.map +1 -0
- package/getGenaiIndexingJobDataSources.d.ts +27 -0
- package/getGenaiIndexingJobDataSources.js +22 -0
- package/getGenaiIndexingJobDataSources.js.map +1 -0
- package/getGenaiKnowledgeBase.d.ts +59 -0
- package/getGenaiKnowledgeBase.js +44 -0
- package/getGenaiKnowledgeBase.js.map +1 -0
- package/getGenaiKnowledgeBaseDataSources.d.ts +27 -0
- package/getGenaiKnowledgeBaseDataSources.js +22 -0
- package/getGenaiKnowledgeBaseDataSources.js.map +1 -0
- package/getGenaiKnowledgeBaseIndexingJobs.d.ts +28 -0
- package/getGenaiKnowledgeBaseIndexingJobs.js +22 -0
- package/getGenaiKnowledgeBaseIndexingJobs.js.map +1 -0
- package/getGenaiKnowledgeBases.d.ts +31 -0
- package/getGenaiKnowledgeBases.js +26 -0
- package/getGenaiKnowledgeBases.js.map +1 -0
- package/getGenaiModels.d.ts +31 -0
- package/getGenaiModels.js +26 -0
- package/getGenaiModels.js.map +1 -0
- package/getGenaiOpenaiApiKey.d.ts +32 -0
- package/getGenaiOpenaiApiKey.js +22 -0
- package/getGenaiOpenaiApiKey.js.map +1 -0
- package/getGenaiOpenaiApiKeys.d.ts +31 -0
- package/getGenaiOpenaiApiKeys.js +26 -0
- package/getGenaiOpenaiApiKeys.js.map +1 -0
- package/getGenaiRegions.d.ts +31 -0
- package/getGenaiRegions.js +26 -0
- package/getGenaiRegions.js.map +1 -0
- package/getKubernetesCluster.d.ts +12 -0
- package/getKubernetesCluster.js +8 -0
- package/getKubernetesCluster.js.map +1 -1
- package/getNfs.d.ts +97 -0
- package/getNfs.js +58 -0
- package/getNfs.js.map +1 -0
- package/getNfsSnapshot.d.ts +58 -0
- package/getNfsSnapshot.js +42 -0
- package/getNfsSnapshot.js.map +1 -0
- package/getPartnerAttachment.d.ts +2 -0
- package/getPartnerAttachment.js.map +1 -1
- package/getPartnerAttachmentServiceKey.d.ts +28 -0
- package/getPartnerAttachmentServiceKey.js +22 -0
- package/getPartnerAttachmentServiceKey.js.map +1 -0
- package/getSizes.d.ts +150 -0
- package/getSizes.js +150 -0
- package/getSizes.js.map +1 -1
- package/getVpcNatGateway.d.ts +1 -0
- package/getVpcNatGateway.js.map +1 -1
- package/index.d.ts +117 -0
- package/index.js +158 -3
- package/index.js.map +1 -1
- package/kubernetesCluster.d.ts +39 -0
- package/kubernetesCluster.js +55 -47
- package/kubernetesCluster.js.map +1 -1
- package/kubernetesNodePool.js +25 -25
- package/kubernetesNodePool.js.map +1 -1
- package/loadBalancer.js +55 -55
- package/loadBalancer.js.map +1 -1
- package/monitorAlert.js +26 -26
- package/monitorAlert.js.map +1 -1
- package/nfs.d.ts +142 -0
- package/nfs.js +103 -0
- package/nfs.js.map +1 -0
- package/nfsAttachment.d.ts +96 -0
- package/nfsAttachment.js +95 -0
- package/nfsAttachment.js.map +1 -0
- package/nfsSnapshot.d.ts +124 -0
- package/nfsSnapshot.js +99 -0
- package/nfsSnapshot.js.map +1 -0
- package/package.json +2 -2
- package/partnerAttachment.d.ts +22 -2
- package/partnerAttachment.js +25 -21
- package/partnerAttachment.js.map +1 -1
- package/project.js +17 -17
- package/project.js.map +1 -1
- package/projectResources.js +7 -7
- package/projectResources.js.map +1 -1
- package/provider.js +9 -10
- package/provider.js.map +1 -1
- package/reservedIp.js +9 -9
- package/reservedIp.js.map +1 -1
- package/reservedIpAssignment.js +7 -7
- package/reservedIpAssignment.js.map +1 -1
- package/reservedIpv6.js +9 -9
- package/reservedIpv6.js.map +1 -1
- package/reservedIpv6Assignment.js +7 -7
- package/reservedIpv6Assignment.js.map +1 -1
- package/spacesBucket.js +18 -18
- package/spacesBucket.js.map +1 -1
- package/spacesBucketCorsConfiguration.js +10 -10
- package/spacesBucketCorsConfiguration.js.map +1 -1
- package/spacesBucketLogging.js +13 -13
- package/spacesBucketLogging.js.map +1 -1
- package/spacesBucketObject.js +37 -37
- package/spacesBucketObject.js.map +1 -1
- package/spacesBucketPolicy.js +10 -10
- package/spacesBucketPolicy.js.map +1 -1
- package/spacesKey.js +8 -8
- package/spacesKey.js.map +1 -1
- package/sshKey.js +7 -7
- package/sshKey.js.map +1 -1
- package/tag.js +9 -9
- package/tag.js.map +1 -1
- package/types/input.d.ts +3179 -203
- package/types/output.d.ts +6934 -1159
- package/uptimeAlert.js +18 -18
- package/uptimeAlert.js.map +1 -1
- package/uptimeCheck.js +12 -12
- package/uptimeCheck.js.map +1 -1
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/volume.js +24 -24
- package/volume.js.map +1 -1
- package/volumeAttachment.js +7 -7
- package/volumeAttachment.js.map +1 -1
- package/volumeSnapshot.js +12 -12
- package/volumeSnapshot.js.map +1 -1
- package/vpc.js +13 -13
- package/vpc.js.map +1 -1
- package/vpcNatGateway.d.ts +12 -0
- package/vpcNatGateway.js +27 -25
- package/vpcNatGateway.js.map +1 -1
- package/vpcPeering.d.ts +0 -2
- package/vpcPeering.js +8 -10
- package/vpcPeering.js.map +1 -1
package/app.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ import * as outputs from "./types/output";
|
|
|
50
50
|
* }});
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
|
+
* ### Multiple Components Example
|
|
54
|
+
*
|
|
53
55
|
* ### Log Destination Example with Opensearch
|
|
54
56
|
*
|
|
55
57
|
* ```typescript
|
|
@@ -105,6 +107,31 @@ import * as outputs from "./types/output";
|
|
|
105
107
|
* }});
|
|
106
108
|
* ```
|
|
107
109
|
*
|
|
110
|
+
* ### Maintenance Example
|
|
111
|
+
*
|
|
112
|
+
* ```typescript
|
|
113
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
114
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
115
|
+
*
|
|
116
|
+
* const maintenance_example = new digitalocean.App("maintenance-example", {spec: {
|
|
117
|
+
* name: "maintenance-example",
|
|
118
|
+
* region: "ams",
|
|
119
|
+
* maintenance: {
|
|
120
|
+
* enabled: true,
|
|
121
|
+
* offlinePageUrl: "https://example.com/maintenance.html",
|
|
122
|
+
* },
|
|
123
|
+
* services: [{
|
|
124
|
+
* name: "go-service",
|
|
125
|
+
* instanceCount: 1,
|
|
126
|
+
* instanceSizeSlug: "apps-s-1vcpu-1gb",
|
|
127
|
+
* git: {
|
|
128
|
+
* repoCloneUrl: "https://github.com/digitalocean/sample-golang.git",
|
|
129
|
+
* branch: "main",
|
|
130
|
+
* },
|
|
131
|
+
* }],
|
|
132
|
+
* }});
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
108
135
|
* ## Import
|
|
109
136
|
*
|
|
110
137
|
* An app can be imported using its `id`, e.g.
|
|
@@ -149,6 +176,10 @@ export declare class App extends pulumi.CustomResource {
|
|
|
149
176
|
* The default URL to access the app.
|
|
150
177
|
*/
|
|
151
178
|
readonly defaultIngress: pulumi.Output<string>;
|
|
179
|
+
/**
|
|
180
|
+
* (Optional) Controls how many deployments are requested per API page when listing deployments during create/update waits. Defaults to `20`. Reduce this value (for example `5`) if you experience API timeouts when listing deployments.
|
|
181
|
+
*/
|
|
182
|
+
readonly deploymentPerPage: pulumi.Output<number | undefined>;
|
|
152
183
|
/**
|
|
153
184
|
* The live domain of the app.
|
|
154
185
|
*/
|
|
@@ -206,6 +237,10 @@ export interface AppState {
|
|
|
206
237
|
* The default URL to access the app.
|
|
207
238
|
*/
|
|
208
239
|
defaultIngress?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* (Optional) Controls how many deployments are requested per API page when listing deployments during create/update waits. Defaults to `20`. Reduce this value (for example `5`) if you experience API timeouts when listing deployments.
|
|
242
|
+
*/
|
|
243
|
+
deploymentPerPage?: pulumi.Input<number>;
|
|
209
244
|
/**
|
|
210
245
|
* The live domain of the app.
|
|
211
246
|
*/
|
|
@@ -239,6 +274,10 @@ export interface AppArgs {
|
|
|
239
274
|
* The dedicated egress IP addresses associated with the app.
|
|
240
275
|
*/
|
|
241
276
|
dedicatedIps?: pulumi.Input<pulumi.Input<inputs.AppDedicatedIp>[]>;
|
|
277
|
+
/**
|
|
278
|
+
* (Optional) Controls how many deployments are requested per API page when listing deployments during create/update waits. Defaults to `20`. Reduce this value (for example `5`) if you experience API timeouts when listing deployments.
|
|
279
|
+
*/
|
|
280
|
+
deploymentPerPage?: pulumi.Input<number>;
|
|
242
281
|
/**
|
|
243
282
|
* The ID of the project that the app is assigned to.
|
|
244
283
|
*
|
package/app.js
CHANGED
|
@@ -54,6 +54,8 @@ const utilities = require("./utilities");
|
|
|
54
54
|
* }});
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
|
+
* ### Multiple Components Example
|
|
58
|
+
*
|
|
57
59
|
* ### Log Destination Example with Opensearch
|
|
58
60
|
*
|
|
59
61
|
* ```typescript
|
|
@@ -109,6 +111,31 @@ const utilities = require("./utilities");
|
|
|
109
111
|
* }});
|
|
110
112
|
* ```
|
|
111
113
|
*
|
|
114
|
+
* ### Maintenance Example
|
|
115
|
+
*
|
|
116
|
+
* ```typescript
|
|
117
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
118
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
119
|
+
*
|
|
120
|
+
* const maintenance_example = new digitalocean.App("maintenance-example", {spec: {
|
|
121
|
+
* name: "maintenance-example",
|
|
122
|
+
* region: "ams",
|
|
123
|
+
* maintenance: {
|
|
124
|
+
* enabled: true,
|
|
125
|
+
* offlinePageUrl: "https://example.com/maintenance.html",
|
|
126
|
+
* },
|
|
127
|
+
* services: [{
|
|
128
|
+
* name: "go-service",
|
|
129
|
+
* instanceCount: 1,
|
|
130
|
+
* instanceSizeSlug: "apps-s-1vcpu-1gb",
|
|
131
|
+
* git: {
|
|
132
|
+
* repoCloneUrl: "https://github.com/digitalocean/sample-golang.git",
|
|
133
|
+
* branch: "main",
|
|
134
|
+
* },
|
|
135
|
+
* }],
|
|
136
|
+
* }});
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
112
139
|
* ## Import
|
|
113
140
|
*
|
|
114
141
|
* An app can be imported using its `id`, e.g.
|
|
@@ -128,7 +155,7 @@ class App extends pulumi.CustomResource {
|
|
|
128
155
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
129
156
|
*/
|
|
130
157
|
static get(name, id, state, opts) {
|
|
131
|
-
return new App(name, state,
|
|
158
|
+
return new App(name, state, { ...opts, id: id });
|
|
132
159
|
}
|
|
133
160
|
/**
|
|
134
161
|
* Returns true if the given object is an instance of App. This is designed to work even
|
|
@@ -145,22 +172,24 @@ class App extends pulumi.CustomResource {
|
|
|
145
172
|
opts = opts || {};
|
|
146
173
|
if (opts.id) {
|
|
147
174
|
const state = argsOrState;
|
|
148
|
-
resourceInputs["activeDeploymentId"] = state
|
|
149
|
-
resourceInputs["appUrn"] = state
|
|
150
|
-
resourceInputs["createdAt"] = state
|
|
151
|
-
resourceInputs["dedicatedIps"] = state
|
|
152
|
-
resourceInputs["defaultIngress"] = state
|
|
153
|
-
resourceInputs["
|
|
154
|
-
resourceInputs["
|
|
155
|
-
resourceInputs["
|
|
156
|
-
resourceInputs["
|
|
157
|
-
resourceInputs["
|
|
175
|
+
resourceInputs["activeDeploymentId"] = state?.activeDeploymentId;
|
|
176
|
+
resourceInputs["appUrn"] = state?.appUrn;
|
|
177
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
178
|
+
resourceInputs["dedicatedIps"] = state?.dedicatedIps;
|
|
179
|
+
resourceInputs["defaultIngress"] = state?.defaultIngress;
|
|
180
|
+
resourceInputs["deploymentPerPage"] = state?.deploymentPerPage;
|
|
181
|
+
resourceInputs["liveDomain"] = state?.liveDomain;
|
|
182
|
+
resourceInputs["liveUrl"] = state?.liveUrl;
|
|
183
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
184
|
+
resourceInputs["spec"] = state?.spec;
|
|
185
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
158
186
|
}
|
|
159
187
|
else {
|
|
160
188
|
const args = argsOrState;
|
|
161
|
-
resourceInputs["dedicatedIps"] = args
|
|
162
|
-
resourceInputs["
|
|
163
|
-
resourceInputs["
|
|
189
|
+
resourceInputs["dedicatedIps"] = args?.dedicatedIps;
|
|
190
|
+
resourceInputs["deploymentPerPage"] = args?.deploymentPerPage;
|
|
191
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
192
|
+
resourceInputs["spec"] = args?.spec;
|
|
164
193
|
resourceInputs["activeDeploymentId"] = undefined /*out*/;
|
|
165
194
|
resourceInputs["appUrn"] = undefined /*out*/;
|
|
166
195
|
resourceInputs["createdAt"] = undefined /*out*/;
|
package/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0IG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IA2DD,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EA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AAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AArHL,kBAsHC;AAxGG,gBAAgB;AACO,gBAAY,GAAG,4BAA4B,CAAC"}
|
package/byoipPrefix.d.ts
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a DigitalOcean BYOIP (Bring Your Own IP) prefix resource. This can be used to
|
|
4
|
+
* create, modify, and delete BYOIP prefixes.
|
|
5
|
+
*
|
|
6
|
+
* BYOIP prefixes allow you to bring your own IP address space to DigitalOcean. You can
|
|
7
|
+
* use this feature to maintain your IP reputation or meet specific compliance requirements.
|
|
8
|
+
*
|
|
9
|
+
* BYOIP prefix provisioning documentation: https://docs.digitalocean.com/products/networking/reserved-ips/how-to/provision-byoip/
|
|
10
|
+
*
|
|
11
|
+
* Note: By default, newly provisioned BYOIP prefixes are not advertised to the internet. After the initial `pulumi up`, BYOIP provisioning request is initiated and DigitalOcean provisions the prefix, the prefix status changes to Active. At this point, you can initiate advertising prefix to the internet by setting field `advertised = true` and apply the configuration to make your prefix fully usable and accessible from the internet.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
18
|
+
*
|
|
19
|
+
* // Create a new BYOIP prefix
|
|
20
|
+
* const example = new digitalocean.ByoipPrefix("example", {
|
|
21
|
+
* prefix: "192.0.2.0/24",
|
|
22
|
+
* signature: prefixSignature,
|
|
23
|
+
* region: "nyc3",
|
|
24
|
+
* advertised: false,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* BYOIP prefixes can be imported using the prefix `uuid`, e.g.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import digitalocean:index/byoipPrefix:ByoipPrefix example 506f78a4-e098-11e5-ad9f-000f53306ae1
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class ByoipPrefix extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing ByoipPrefix resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ByoipPrefixState, opts?: pulumi.CustomResourceOptions): ByoipPrefix;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of ByoipPrefix. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj: any): obj is ByoipPrefix;
|
|
52
|
+
/**
|
|
53
|
+
* A boolean indicating whether the prefix should be advertised.
|
|
54
|
+
* Defaults to `false`.
|
|
55
|
+
*/
|
|
56
|
+
readonly advertised: pulumi.Output<boolean | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The reason for failure if the status is "failed".
|
|
59
|
+
*/
|
|
60
|
+
readonly failureReason: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The CIDR notation of the prefix (e.g., "192.0.2.0/24").
|
|
63
|
+
*/
|
|
64
|
+
readonly prefix: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The DigitalOcean region where the prefix will be deployed.
|
|
67
|
+
*/
|
|
68
|
+
readonly region: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The cryptographic signature proving ownership of the prefix.
|
|
71
|
+
* This is required during creation but can be omitted in subsequent updates.
|
|
72
|
+
*/
|
|
73
|
+
readonly signature: pulumi.Output<string | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* The current status of the BYOIP prefix (e.g., "verified", "pending", "failed").
|
|
76
|
+
*/
|
|
77
|
+
readonly status: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The UUID of the BYOIP prefix.
|
|
80
|
+
*/
|
|
81
|
+
readonly uuid: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a ByoipPrefix resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name: string, args: ByoipPrefixArgs, opts?: pulumi.CustomResourceOptions);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Input properties used for looking up and filtering ByoipPrefix resources.
|
|
93
|
+
*/
|
|
94
|
+
export interface ByoipPrefixState {
|
|
95
|
+
/**
|
|
96
|
+
* A boolean indicating whether the prefix should be advertised.
|
|
97
|
+
* Defaults to `false`.
|
|
98
|
+
*/
|
|
99
|
+
advertised?: pulumi.Input<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* The reason for failure if the status is "failed".
|
|
102
|
+
*/
|
|
103
|
+
failureReason?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The CIDR notation of the prefix (e.g., "192.0.2.0/24").
|
|
106
|
+
*/
|
|
107
|
+
prefix?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The DigitalOcean region where the prefix will be deployed.
|
|
110
|
+
*/
|
|
111
|
+
region?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The cryptographic signature proving ownership of the prefix.
|
|
114
|
+
* This is required during creation but can be omitted in subsequent updates.
|
|
115
|
+
*/
|
|
116
|
+
signature?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The current status of the BYOIP prefix (e.g., "verified", "pending", "failed").
|
|
119
|
+
*/
|
|
120
|
+
status?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The UUID of the BYOIP prefix.
|
|
123
|
+
*/
|
|
124
|
+
uuid?: pulumi.Input<string>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The set of arguments for constructing a ByoipPrefix resource.
|
|
128
|
+
*/
|
|
129
|
+
export interface ByoipPrefixArgs {
|
|
130
|
+
/**
|
|
131
|
+
* A boolean indicating whether the prefix should be advertised.
|
|
132
|
+
* Defaults to `false`.
|
|
133
|
+
*/
|
|
134
|
+
advertised?: pulumi.Input<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* The CIDR notation of the prefix (e.g., "192.0.2.0/24").
|
|
137
|
+
*/
|
|
138
|
+
prefix: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The DigitalOcean region where the prefix will be deployed.
|
|
141
|
+
*/
|
|
142
|
+
region: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The cryptographic signature proving ownership of the prefix.
|
|
145
|
+
* This is required during creation but can be omitted in subsequent updates.
|
|
146
|
+
*/
|
|
147
|
+
signature?: pulumi.Input<string>;
|
|
148
|
+
}
|
package/byoipPrefix.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ByoipPrefix = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a DigitalOcean BYOIP (Bring Your Own IP) prefix resource. This can be used to
|
|
10
|
+
* create, modify, and delete BYOIP prefixes.
|
|
11
|
+
*
|
|
12
|
+
* BYOIP prefixes allow you to bring your own IP address space to DigitalOcean. You can
|
|
13
|
+
* use this feature to maintain your IP reputation or meet specific compliance requirements.
|
|
14
|
+
*
|
|
15
|
+
* BYOIP prefix provisioning documentation: https://docs.digitalocean.com/products/networking/reserved-ips/how-to/provision-byoip/
|
|
16
|
+
*
|
|
17
|
+
* Note: By default, newly provisioned BYOIP prefixes are not advertised to the internet. After the initial `pulumi up`, BYOIP provisioning request is initiated and DigitalOcean provisions the prefix, the prefix status changes to Active. At this point, you can initiate advertising prefix to the internet by setting field `advertised = true` and apply the configuration to make your prefix fully usable and accessible from the internet.
|
|
18
|
+
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
24
|
+
*
|
|
25
|
+
* // Create a new BYOIP prefix
|
|
26
|
+
* const example = new digitalocean.ByoipPrefix("example", {
|
|
27
|
+
* prefix: "192.0.2.0/24",
|
|
28
|
+
* signature: prefixSignature,
|
|
29
|
+
* region: "nyc3",
|
|
30
|
+
* advertised: false,
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* BYOIP prefixes can be imported using the prefix `uuid`, e.g.
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import digitalocean:index/byoipPrefix:ByoipPrefix example 506f78a4-e098-11e5-ad9f-000f53306ae1
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class ByoipPrefix extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing ByoipPrefix resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new ByoipPrefix(name, state, { ...opts, id: id });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of ByoipPrefix. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === ByoipPrefix.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["advertised"] = state?.advertised;
|
|
71
|
+
resourceInputs["failureReason"] = state?.failureReason;
|
|
72
|
+
resourceInputs["prefix"] = state?.prefix;
|
|
73
|
+
resourceInputs["region"] = state?.region;
|
|
74
|
+
resourceInputs["signature"] = state?.signature;
|
|
75
|
+
resourceInputs["status"] = state?.status;
|
|
76
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
const args = argsOrState;
|
|
80
|
+
if (args?.prefix === undefined && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'prefix'");
|
|
82
|
+
}
|
|
83
|
+
if (args?.region === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'region'");
|
|
85
|
+
}
|
|
86
|
+
resourceInputs["advertised"] = args?.advertised;
|
|
87
|
+
resourceInputs["prefix"] = args?.prefix;
|
|
88
|
+
resourceInputs["region"] = args?.region;
|
|
89
|
+
resourceInputs["signature"] = args?.signature;
|
|
90
|
+
resourceInputs["failureReason"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
93
|
+
}
|
|
94
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
95
|
+
super(ByoipPrefix.__pulumiType, name, resourceInputs, opts);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.ByoipPrefix = ByoipPrefix;
|
|
99
|
+
/** @internal */
|
|
100
|
+
ByoipPrefix.__pulumiType = 'digitalocean:index/byoipPrefix:ByoipPrefix';
|
|
101
|
+
//# sourceMappingURL=byoipPrefix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byoipPrefix.js","sourceRoot":"","sources":["../byoipPrefix.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,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AoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAjGL,kCAkGC;AApFG,gBAAgB;AACO,wBAAY,GAAG,4CAA4C,CAAC"}
|
package/cdn.js
CHANGED
|
@@ -72,7 +72,7 @@ class Cdn extends pulumi.CustomResource {
|
|
|
72
72
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
73
|
*/
|
|
74
74
|
static get(name, id, state, opts) {
|
|
75
|
-
return new Cdn(name, state,
|
|
75
|
+
return new Cdn(name, state, { ...opts, id: id });
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Returns true if the given object is an instance of Cdn. This is designed to work even
|
|
@@ -89,24 +89,24 @@ class Cdn extends pulumi.CustomResource {
|
|
|
89
89
|
opts = opts || {};
|
|
90
90
|
if (opts.id) {
|
|
91
91
|
const state = argsOrState;
|
|
92
|
-
resourceInputs["certificateId"] = state
|
|
93
|
-
resourceInputs["certificateName"] = state
|
|
94
|
-
resourceInputs["createdAt"] = state
|
|
95
|
-
resourceInputs["customDomain"] = state
|
|
96
|
-
resourceInputs["endpoint"] = state
|
|
97
|
-
resourceInputs["origin"] = state
|
|
98
|
-
resourceInputs["ttl"] = state
|
|
92
|
+
resourceInputs["certificateId"] = state?.certificateId;
|
|
93
|
+
resourceInputs["certificateName"] = state?.certificateName;
|
|
94
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
95
|
+
resourceInputs["customDomain"] = state?.customDomain;
|
|
96
|
+
resourceInputs["endpoint"] = state?.endpoint;
|
|
97
|
+
resourceInputs["origin"] = state?.origin;
|
|
98
|
+
resourceInputs["ttl"] = state?.ttl;
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
101
|
const args = argsOrState;
|
|
102
|
-
if (
|
|
102
|
+
if (args?.origin === undefined && !opts.urn) {
|
|
103
103
|
throw new Error("Missing required property 'origin'");
|
|
104
104
|
}
|
|
105
|
-
resourceInputs["certificateId"] = args
|
|
106
|
-
resourceInputs["certificateName"] = args
|
|
107
|
-
resourceInputs["customDomain"] = args
|
|
108
|
-
resourceInputs["origin"] = args
|
|
109
|
-
resourceInputs["ttl"] = args
|
|
105
|
+
resourceInputs["certificateId"] = args?.certificateId;
|
|
106
|
+
resourceInputs["certificateName"] = args?.certificateName;
|
|
107
|
+
resourceInputs["customDomain"] = args?.customDomain;
|
|
108
|
+
resourceInputs["origin"] = args?.origin;
|
|
109
|
+
resourceInputs["ttl"] = args?.ttl;
|
|
110
110
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
111
111
|
resourceInputs["endpoint"] = undefined /*out*/;
|
|
112
112
|
}
|
package/cdn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.js","sourceRoot":"","sources":["../cdn.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAA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settings to control the behavior of the CustomResource.
|
|
99
99
|
*/
|
|
100
100
|
static get(name, id, state, opts) {
|
|
101
|
-
return new Certificate(name, state,
|
|
101
|
+
return new Certificate(name, state, { ...opts, id: id });
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* Returns true if the given object is an instance of Certificate. This is designed to work even
|
|
@@ -115,25 +115,25 @@ class Certificate extends pulumi.CustomResource {
|
|
|
115
115
|
opts = opts || {};
|
|
116
116
|
if (opts.id) {
|
|
117
117
|
const state = argsOrState;
|
|
118
|
-
resourceInputs["certificateChain"] = state
|
|
119
|
-
resourceInputs["domains"] = state
|
|
120
|
-
resourceInputs["leafCertificate"] = state
|
|
121
|
-
resourceInputs["name"] = state
|
|
122
|
-
resourceInputs["notAfter"] = state
|
|
123
|
-
resourceInputs["privateKey"] = state
|
|
124
|
-
resourceInputs["sha1Fingerprint"] = state
|
|
125
|
-
resourceInputs["state"] = state
|
|
126
|
-
resourceInputs["type"] = state
|
|
127
|
-
resourceInputs["uuid"] = state
|
|
118
|
+
resourceInputs["certificateChain"] = state?.certificateChain;
|
|
119
|
+
resourceInputs["domains"] = state?.domains;
|
|
120
|
+
resourceInputs["leafCertificate"] = state?.leafCertificate;
|
|
121
|
+
resourceInputs["name"] = state?.name;
|
|
122
|
+
resourceInputs["notAfter"] = state?.notAfter;
|
|
123
|
+
resourceInputs["privateKey"] = state?.privateKey;
|
|
124
|
+
resourceInputs["sha1Fingerprint"] = state?.sha1Fingerprint;
|
|
125
|
+
resourceInputs["state"] = state?.state;
|
|
126
|
+
resourceInputs["type"] = state?.type;
|
|
127
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
130
|
const args = argsOrState;
|
|
131
|
-
resourceInputs["certificateChain"] = args
|
|
132
|
-
resourceInputs["domains"] = args
|
|
133
|
-
resourceInputs["leafCertificate"] = args
|
|
134
|
-
resourceInputs["name"] = args
|
|
135
|
-
resourceInputs["privateKey"] =
|
|
136
|
-
resourceInputs["type"] = args
|
|
131
|
+
resourceInputs["certificateChain"] = args?.certificateChain;
|
|
132
|
+
resourceInputs["domains"] = args?.domains;
|
|
133
|
+
resourceInputs["leafCertificate"] = args?.leafCertificate;
|
|
134
|
+
resourceInputs["name"] = args?.name;
|
|
135
|
+
resourceInputs["privateKey"] = args?.privateKey ? pulumi.secret(args.privateKey) : undefined;
|
|
136
|
+
resourceInputs["type"] = args?.type;
|
|
137
137
|
resourceInputs["notAfter"] = undefined /*out*/;
|
|
138
138
|
resourceInputs["sha1Fingerprint"] = undefined /*out*/;
|
|
139
139
|
resourceInputs["state"] = undefined /*out*/;
|
package/certificate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiFG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiFG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,K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ineProperty(exports, "apiEndpoint", {
|
|
9
9
|
get() {
|
|
10
|
-
|
|
11
|
-
return (_a = __config.get("apiEndpoint")) !== null && _a !== void 0 ? _a : (utilities.getEnv("DIGITALOCEAN_API_URL") || "https://api.digitalocean.com");
|
|
10
|
+
return __config.get("apiEndpoint") ?? (utilities.getEnv("DIGITALOCEAN_API_URL") || "https://api.digitalocean.com");
|
|
12
11
|
},
|
|
13
12
|
enumerable: true,
|
|
14
13
|
});
|
|
@@ -44,8 +43,7 @@ Object.defineProperty(exports, "spacesAccessId", {
|
|
|
44
43
|
});
|
|
45
44
|
Object.defineProperty(exports, "spacesEndpoint", {
|
|
46
45
|
get() {
|
|
47
|
-
|
|
48
|
-
return (_a = __config.get("spacesEndpoint")) !== null && _a !== void 0 ? _a : utilities.getEnv("SPACES_ENDPOINT_URL");
|
|
46
|
+
return __config.get("spacesEndpoint") ?? utilities.getEnv("SPACES_ENDPOINT_URL");
|
|
49
47
|
},
|
|
50
48
|
enumerable: true,
|
|
51
49
|
});
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAMnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAMnD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;QACC,OAA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