@pulumi/digitalocean 4.7.0-alpha.1633346817
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/LICENSE +202 -0
- package/README.md +68 -0
- package/app.d.ts +203 -0
- package/app.js +174 -0
- package/app.js.map +1 -0
- package/cdn.d.ts +169 -0
- package/cdn.js +116 -0
- package/cdn.js.map +1 -0
- package/certificate.d.ts +225 -0
- package/certificate.js +137 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +10 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +20 -0
- package/config/vars.js +28 -0
- package/config/vars.js.map +1 -0
- package/containerRegistry.d.ts +88 -0
- package/containerRegistry.js +83 -0
- package/containerRegistry.js.map +1 -0
- package/containerRegistryDockerCredentials.d.ts +108 -0
- package/containerRegistryDockerCredentials.js +93 -0
- package/containerRegistryDockerCredentials.js.map +1 -0
- package/customImage.d.ts +155 -0
- package/customImage.js +113 -0
- package/customImage.js.map +1 -0
- package/databaseCluster.d.ts +306 -0
- package/databaseCluster.js +165 -0
- package/databaseCluster.js.map +1 -0
- package/databaseConnectionPool.d.ts +189 -0
- package/databaseConnectionPool.js +120 -0
- package/databaseConnectionPool.js.map +1 -0
- package/databaseDb.d.ts +87 -0
- package/databaseDb.js +82 -0
- package/databaseDb.js.map +1 -0
- package/databaseFirewall.d.ts +129 -0
- package/databaseFirewall.js +126 -0
- package/databaseFirewall.js.map +1 -0
- package/databaseReplica.d.ts +204 -0
- package/databaseReplica.js +110 -0
- package/databaseReplica.js.map +1 -0
- package/databaseUser.d.ts +117 -0
- package/databaseUser.js +90 -0
- package/databaseUser.js.map +1 -0
- package/dnsRecord.d.ts +200 -0
- package/dnsRecord.js +114 -0
- package/dnsRecord.js.map +1 -0
- package/domain.d.ts +103 -0
- package/domain.js +83 -0
- package/domain.js.map +1 -0
- package/droplet.d.ts +386 -0
- package/droplet.js +137 -0
- package/droplet.js.map +1 -0
- package/dropletSnapshot.d.ts +117 -0
- package/dropletSnapshot.js +88 -0
- package/dropletSnapshot.js.map +1 -0
- package/firewall.d.ts +226 -0
- package/firewall.js +150 -0
- package/firewall.js.map +1 -0
- package/floatingIp.d.ts +112 -0
- package/floatingIp.js +91 -0
- package/floatingIp.js.map +1 -0
- package/floatingIpAssignment.d.ts +85 -0
- package/floatingIpAssignment.js +83 -0
- package/floatingIpAssignment.js.map +1 -0
- package/getAccount.d.ts +32 -0
- package/getAccount.js +31 -0
- package/getAccount.js.map +1 -0
- package/getApp.d.ts +63 -0
- package/getApp.js +36 -0
- package/getApp.js.map +1 -0
- package/getCertificate.d.ts +48 -0
- package/getCertificate.js +40 -0
- package/getCertificate.js.map +1 -0
- package/getContainerRegistry.d.ts +54 -0
- package/getContainerRegistry.js +41 -0
- package/getContainerRegistry.js.map +1 -0
- package/getDatabaseCluster.d.ts +103 -0
- package/getDatabaseCluster.js +35 -0
- package/getDatabaseCluster.js.map +1 -0
- package/getDatabaseReplica.d.ts +87 -0
- package/getDatabaseReplica.js +40 -0
- package/getDatabaseReplica.js.map +1 -0
- package/getDomain.d.ts +37 -0
- package/getDomain.js +28 -0
- package/getDomain.js.map +1 -0
- package/getDomains.d.ts +61 -0
- package/getDomains.js +49 -0
- package/getDomains.js.map +1 -0
- package/getDroplet.d.ts +161 -0
- package/getDroplet.js +67 -0
- package/getDroplet.js.map +1 -0
- package/getDropletSnapshot.d.ts +76 -0
- package/getDropletSnapshot.js +43 -0
- package/getDropletSnapshot.js.map +1 -0
- package/getDroplets.d.ts +85 -0
- package/getDroplets.js +73 -0
- package/getDroplets.js.map +1 -0
- package/getFirewall.d.ts +83 -0
- package/getFirewall.js +40 -0
- package/getFirewall.js.map +1 -0
- package/getFloatingIp.d.ts +48 -0
- package/getFloatingIp.js +43 -0
- package/getFloatingIp.js.map +1 -0
- package/getImage.d.ts +110 -0
- package/getImage.js +71 -0
- package/getImage.js.map +1 -0
- package/getImages.d.ts +90 -0
- package/getImages.js +74 -0
- package/getImages.js.map +1 -0
- package/getKubernetesCluster.d.ts +95 -0
- package/getKubernetesCluster.js +23 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getKubernetesVersions.d.ts +79 -0
- package/getKubernetesVersions.js +70 -0
- package/getKubernetesVersions.js.map +1 -0
- package/getLoadBalancer.d.ts +59 -0
- package/getLoadBalancer.js +41 -0
- package/getLoadBalancer.js.map +1 -0
- package/getProject.d.ts +72 -0
- package/getProject.js +37 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +85 -0
- package/getProjects.js +72 -0
- package/getProjects.js.map +1 -0
- package/getRecord.d.ts +42 -0
- package/getRecord.js +28 -0
- package/getRecord.js.map +1 -0
- package/getRecords.d.ts +39 -0
- package/getRecords.js +25 -0
- package/getRecords.js.map +1 -0
- package/getRegion.d.ts +56 -0
- package/getRegion.js +35 -0
- package/getRegion.js.map +1 -0
- package/getRegions.d.ts +82 -0
- package/getRegions.js +70 -0
- package/getRegions.js.map +1 -0
- package/getSizes.d.ts +35 -0
- package/getSizes.js +26 -0
- package/getSizes.js.map +1 -0
- package/getSpacesBucket.d.ts +59 -0
- package/getSpacesBucket.js +39 -0
- package/getSpacesBucket.js.map +1 -0
- package/getSpacesBucketObject.d.ts +125 -0
- package/getSpacesBucketObject.js +53 -0
- package/getSpacesBucketObject.js.map +1 -0
- package/getSpacesBucketObjects.d.ts +83 -0
- package/getSpacesBucketObjects.js +49 -0
- package/getSpacesBucketObjects.js.map +1 -0
- package/getSpacesBuckets.d.ts +75 -0
- package/getSpacesBuckets.js +63 -0
- package/getSpacesBuckets.js.map +1 -0
- package/getSshKey.d.ts +47 -0
- package/getSshKey.js +46 -0
- package/getSshKey.js.map +1 -0
- package/getSshKeys.d.ts +58 -0
- package/getSshKeys.js +46 -0
- package/getSshKeys.js.map +1 -0
- package/getTag.d.ts +71 -0
- package/getTag.js +45 -0
- package/getTag.js.map +1 -0
- package/getTags.d.ts +50 -0
- package/getTags.js +41 -0
- package/getTags.js.map +1 -0
- package/getVolume.d.ts +98 -0
- package/getVolume.js +64 -0
- package/getVolume.js.map +1 -0
- package/getVolumeSnapshot.d.ts +98 -0
- package/getVolumeSnapshot.js +61 -0
- package/getVolumeSnapshot.js.map +1 -0
- package/getVpc.d.ts +95 -0
- package/getVpc.js +61 -0
- package/getVpc.js.map +1 -0
- package/index.d.ts +74 -0
- package/index.js +240 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +220 -0
- package/kubernetesCluster.js +102 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodePool.d.ts +242 -0
- package/kubernetesNodePool.js +141 -0
- package/kubernetesNodePool.js.map +1 -0
- package/loadBalancer.d.ts +307 -0
- package/loadBalancer.js +161 -0
- package/loadBalancer.js.map +1 -0
- package/monitorAlert.d.ts +193 -0
- package/monitorAlert.js +99 -0
- package/monitorAlert.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +27 -0
- package/package.json.dev +27 -0
- package/project.d.ts +191 -0
- package/project.js +129 -0
- package/project.js.map +1 -0
- package/projectResources.d.ts +100 -0
- package/projectResources.js +98 -0
- package/projectResources.js.map +1 -0
- package/provider.d.ts +67 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/spacesBucket.d.ts +210 -0
- package/spacesBucket.js +139 -0
- package/spacesBucket.js.map +1 -0
- package/spacesBucketObject.d.ts +293 -0
- package/spacesBucketObject.js +139 -0
- package/spacesBucketObject.js.map +1 -0
- package/sshKey.d.ts +103 -0
- package/sshKey.js +89 -0
- package/sshKey.js.map +1 -0
- package/tag.d.ts +127 -0
- package/tag.js +93 -0
- package/tag.js.map +1 -0
- package/types/enums/index.d.ts +151 -0
- package/types/enums/index.js +148 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +12 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1584 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2730 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -0
- package/utilities.js.map +1 -0
- package/volume.d.ts +225 -0
- package/volume.js +128 -0
- package/volume.js.map +1 -0
- package/volumeAttachment.d.ts +88 -0
- package/volumeAttachment.js +86 -0
- package/volumeAttachment.js.map +1 -0
- package/volumeSnapshot.d.ts +129 -0
- package/volumeSnapshot.js +90 -0
- package/volumeSnapshot.js.map +1 -0
- package/vpc.d.ts +152 -0
- package/vpc.js +109 -0
- package/vpc.js.map +1 -0
package/types/input.d.ts
ADDED
|
@@ -0,0 +1,1584 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs } from "../types";
|
|
3
|
+
export interface AppSpec {
|
|
4
|
+
databases?: pulumi.Input<pulumi.Input<inputs.AppSpecDatabase>[]>;
|
|
5
|
+
/**
|
|
6
|
+
* Describes a domain where the application will be made available.
|
|
7
|
+
*/
|
|
8
|
+
domainNames?: pulumi.Input<pulumi.Input<inputs.AppSpecDomainName>[]>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This attribute has been replaced by `domain` which supports additional functionality.
|
|
11
|
+
*/
|
|
12
|
+
domains?: pulumi.Input<pulumi.Input<string>[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Describes an environment variable made available to an app competent.
|
|
15
|
+
*/
|
|
16
|
+
envs?: pulumi.Input<pulumi.Input<inputs.AppSpecEnv>[]>;
|
|
17
|
+
jobs?: pulumi.Input<pulumi.Input<inputs.AppSpecJob>[]>;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the component.
|
|
20
|
+
*/
|
|
21
|
+
name: pulumi.Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* The slug for the DigitalOcean data center region hosting the app.
|
|
24
|
+
*/
|
|
25
|
+
region?: pulumi.Input<string>;
|
|
26
|
+
services?: pulumi.Input<pulumi.Input<inputs.AppSpecService>[]>;
|
|
27
|
+
staticSites?: pulumi.Input<pulumi.Input<inputs.AppSpecStaticSite>[]>;
|
|
28
|
+
workers?: pulumi.Input<pulumi.Input<inputs.AppSpecWorker>[]>;
|
|
29
|
+
}
|
|
30
|
+
export interface AppSpecDatabase {
|
|
31
|
+
/**
|
|
32
|
+
* The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `clusterName` is not set, a new cluster will be provisioned.
|
|
33
|
+
*/
|
|
34
|
+
clusterName?: pulumi.Input<string>;
|
|
35
|
+
/**
|
|
36
|
+
* The name of the MySQL or PostgreSQL database to configure.
|
|
37
|
+
*/
|
|
38
|
+
dbName?: pulumi.Input<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the MySQL or PostgreSQL user to configure.
|
|
41
|
+
*/
|
|
42
|
+
dbUser?: pulumi.Input<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The database engine to use (`MYSQL`, `PG`, or `REDIS`).
|
|
45
|
+
*/
|
|
46
|
+
engine?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the component.
|
|
49
|
+
*/
|
|
50
|
+
name?: pulumi.Input<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Whether this is a production or dev database.
|
|
53
|
+
*/
|
|
54
|
+
production?: pulumi.Input<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* The version of the database engine.
|
|
57
|
+
*/
|
|
58
|
+
version?: pulumi.Input<string>;
|
|
59
|
+
}
|
|
60
|
+
export interface AppSpecDomainName {
|
|
61
|
+
/**
|
|
62
|
+
* The name of the component.
|
|
63
|
+
*/
|
|
64
|
+
name: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The type of the environment variable, `GENERAL` or `SECRET`.
|
|
67
|
+
*/
|
|
68
|
+
type?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* A boolean indicating whether the domain includes all sub-domains, in addition to the given domain.
|
|
71
|
+
*/
|
|
72
|
+
wildcard?: pulumi.Input<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* If the domain uses DigitalOcean DNS and you would like App Platform to automatically manage it for you, set this to the name of the domain on your account.
|
|
75
|
+
*/
|
|
76
|
+
zone?: pulumi.Input<string>;
|
|
77
|
+
}
|
|
78
|
+
export interface AppSpecEnv {
|
|
79
|
+
/**
|
|
80
|
+
* The name of the environment variable.
|
|
81
|
+
*/
|
|
82
|
+
key?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
|
|
85
|
+
*/
|
|
86
|
+
scope?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The type of the environment variable, `GENERAL` or `SECRET`.
|
|
89
|
+
*/
|
|
90
|
+
type?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The value of the environment variable.
|
|
93
|
+
*/
|
|
94
|
+
value?: pulumi.Input<string>;
|
|
95
|
+
}
|
|
96
|
+
export interface AppSpecJob {
|
|
97
|
+
/**
|
|
98
|
+
* An optional build command to run while building this component from source.
|
|
99
|
+
*/
|
|
100
|
+
buildCommand?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.
|
|
103
|
+
*/
|
|
104
|
+
dockerfilePath?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* An environment slug describing the type of this app.
|
|
107
|
+
*/
|
|
108
|
+
environmentSlug?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Describes an environment variable made available to an app competent.
|
|
111
|
+
*/
|
|
112
|
+
envs?: pulumi.Input<pulumi.Input<inputs.AppSpecJobEnv>[]>;
|
|
113
|
+
/**
|
|
114
|
+
* A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of `git`, `github` or `gitlab` may be set
|
|
115
|
+
*/
|
|
116
|
+
git?: pulumi.Input<inputs.AppSpecJobGit>;
|
|
117
|
+
/**
|
|
118
|
+
* A GitHub repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/github/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
119
|
+
*/
|
|
120
|
+
github?: pulumi.Input<inputs.AppSpecJobGithub>;
|
|
121
|
+
/**
|
|
122
|
+
* A Gitlab repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/gitlab/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
123
|
+
*/
|
|
124
|
+
gitlab?: pulumi.Input<inputs.AppSpecJobGitlab>;
|
|
125
|
+
/**
|
|
126
|
+
* An image to use as the component's source. Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
127
|
+
*/
|
|
128
|
+
image?: pulumi.Input<inputs.AppSpecJobImage>;
|
|
129
|
+
/**
|
|
130
|
+
* The amount of instances that this component should be scaled to.
|
|
131
|
+
*/
|
|
132
|
+
instanceCount?: pulumi.Input<number>;
|
|
133
|
+
/**
|
|
134
|
+
* The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs`
|
|
135
|
+
*/
|
|
136
|
+
instanceSizeSlug?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The type of job and when it will be run during the deployment process. It may be one of:
|
|
139
|
+
* - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind.
|
|
140
|
+
* - `PRE_DEPLOY`: Indicates a job that runs before an app deployment.
|
|
141
|
+
* - `POST_DEPLOY`: Indicates a job that runs after an app deployment.
|
|
142
|
+
* - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy.
|
|
143
|
+
*/
|
|
144
|
+
kind?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The name of the component.
|
|
147
|
+
*/
|
|
148
|
+
name: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* An optional run command to override the component's default.
|
|
151
|
+
*/
|
|
152
|
+
runCommand?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* An optional path to the working directory to use for the build.
|
|
155
|
+
*/
|
|
156
|
+
sourceDir?: pulumi.Input<string>;
|
|
157
|
+
}
|
|
158
|
+
export interface AppSpecJobEnv {
|
|
159
|
+
/**
|
|
160
|
+
* The name of the environment variable.
|
|
161
|
+
*/
|
|
162
|
+
key?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
|
|
165
|
+
*/
|
|
166
|
+
scope?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* The type of the environment variable, `GENERAL` or `SECRET`.
|
|
169
|
+
*/
|
|
170
|
+
type?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* The value of the environment variable.
|
|
173
|
+
*/
|
|
174
|
+
value?: pulumi.Input<string>;
|
|
175
|
+
}
|
|
176
|
+
export interface AppSpecJobGit {
|
|
177
|
+
/**
|
|
178
|
+
* The name of the branch to use.
|
|
179
|
+
*/
|
|
180
|
+
branch?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* The clone URL of the repo.
|
|
183
|
+
*/
|
|
184
|
+
repoCloneUrl?: pulumi.Input<string>;
|
|
185
|
+
}
|
|
186
|
+
export interface AppSpecJobGithub {
|
|
187
|
+
/**
|
|
188
|
+
* The name of the branch to use.
|
|
189
|
+
*/
|
|
190
|
+
branch?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
193
|
+
*/
|
|
194
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
195
|
+
/**
|
|
196
|
+
* The name of the repo in the format `owner/repo`.
|
|
197
|
+
*/
|
|
198
|
+
repo?: pulumi.Input<string>;
|
|
199
|
+
}
|
|
200
|
+
export interface AppSpecJobGitlab {
|
|
201
|
+
/**
|
|
202
|
+
* The name of the branch to use.
|
|
203
|
+
*/
|
|
204
|
+
branch?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
207
|
+
*/
|
|
208
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
209
|
+
/**
|
|
210
|
+
* The name of the repo in the format `owner/repo`.
|
|
211
|
+
*/
|
|
212
|
+
repo?: pulumi.Input<string>;
|
|
213
|
+
}
|
|
214
|
+
export interface AppSpecJobImage {
|
|
215
|
+
/**
|
|
216
|
+
* The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type.
|
|
217
|
+
*/
|
|
218
|
+
registry?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`.
|
|
221
|
+
*/
|
|
222
|
+
registryType: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* The repository name.
|
|
225
|
+
*/
|
|
226
|
+
repository: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* The repository tag. Defaults to `latest` if not provided.
|
|
229
|
+
*/
|
|
230
|
+
tag?: pulumi.Input<string>;
|
|
231
|
+
}
|
|
232
|
+
export interface AppSpecService {
|
|
233
|
+
/**
|
|
234
|
+
* An optional build command to run while building this component from source.
|
|
235
|
+
*/
|
|
236
|
+
buildCommand?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app.
|
|
239
|
+
*/
|
|
240
|
+
cors?: pulumi.Input<inputs.AppSpecServiceCors>;
|
|
241
|
+
/**
|
|
242
|
+
* The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.
|
|
243
|
+
*/
|
|
244
|
+
dockerfilePath?: pulumi.Input<string>;
|
|
245
|
+
/**
|
|
246
|
+
* An environment slug describing the type of this app.
|
|
247
|
+
*/
|
|
248
|
+
environmentSlug?: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* Describes an environment variable made available to an app competent.
|
|
251
|
+
*/
|
|
252
|
+
envs?: pulumi.Input<pulumi.Input<inputs.AppSpecServiceEnv>[]>;
|
|
253
|
+
/**
|
|
254
|
+
* A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of `git`, `github` or `gitlab` may be set
|
|
255
|
+
*/
|
|
256
|
+
git?: pulumi.Input<inputs.AppSpecServiceGit>;
|
|
257
|
+
/**
|
|
258
|
+
* A GitHub repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/github/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
259
|
+
*/
|
|
260
|
+
github?: pulumi.Input<inputs.AppSpecServiceGithub>;
|
|
261
|
+
/**
|
|
262
|
+
* A Gitlab repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/gitlab/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
263
|
+
*/
|
|
264
|
+
gitlab?: pulumi.Input<inputs.AppSpecServiceGitlab>;
|
|
265
|
+
/**
|
|
266
|
+
* A health check to determine the availability of this component.
|
|
267
|
+
*/
|
|
268
|
+
healthCheck?: pulumi.Input<inputs.AppSpecServiceHealthCheck>;
|
|
269
|
+
/**
|
|
270
|
+
* The internal port on which this service's run command will listen.
|
|
271
|
+
*/
|
|
272
|
+
httpPort?: pulumi.Input<number>;
|
|
273
|
+
/**
|
|
274
|
+
* An image to use as the component's source. Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
275
|
+
*/
|
|
276
|
+
image?: pulumi.Input<inputs.AppSpecServiceImage>;
|
|
277
|
+
/**
|
|
278
|
+
* The amount of instances that this component should be scaled to.
|
|
279
|
+
*/
|
|
280
|
+
instanceCount?: pulumi.Input<number>;
|
|
281
|
+
/**
|
|
282
|
+
* The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs`
|
|
283
|
+
*/
|
|
284
|
+
instanceSizeSlug?: pulumi.Input<string>;
|
|
285
|
+
/**
|
|
286
|
+
* A list of ports on which this service will listen for internal traffic.
|
|
287
|
+
*/
|
|
288
|
+
internalPorts?: pulumi.Input<pulumi.Input<number>[]>;
|
|
289
|
+
/**
|
|
290
|
+
* The name of the component.
|
|
291
|
+
*/
|
|
292
|
+
name: pulumi.Input<string>;
|
|
293
|
+
routes?: pulumi.Input<pulumi.Input<inputs.AppSpecServiceRoute>[]>;
|
|
294
|
+
/**
|
|
295
|
+
* An optional run command to override the component's default.
|
|
296
|
+
*/
|
|
297
|
+
runCommand?: pulumi.Input<string>;
|
|
298
|
+
/**
|
|
299
|
+
* An optional path to the working directory to use for the build.
|
|
300
|
+
*/
|
|
301
|
+
sourceDir?: pulumi.Input<string>;
|
|
302
|
+
}
|
|
303
|
+
export interface AppSpecServiceCors {
|
|
304
|
+
/**
|
|
305
|
+
* Whether browsers should expose the response to the client-side JavaScript code when the request's credentials mode is `include`. This configures the `Access-Control-Allow-Credentials` header.
|
|
306
|
+
*/
|
|
307
|
+
allowCredentials?: pulumi.Input<boolean>;
|
|
308
|
+
/**
|
|
309
|
+
* The set of allowed HTTP request headers. This configures the `Access-Control-Allow-Headers` header.
|
|
310
|
+
*/
|
|
311
|
+
allowHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
312
|
+
/**
|
|
313
|
+
* The set of allowed HTTP methods. This configures the `Access-Control-Allow-Methods` header.
|
|
314
|
+
*/
|
|
315
|
+
allowMethods?: pulumi.Input<pulumi.Input<string>[]>;
|
|
316
|
+
/**
|
|
317
|
+
* The `Access-Control-Allow-Origin` can be
|
|
318
|
+
*/
|
|
319
|
+
allowOrigins?: pulumi.Input<inputs.AppSpecServiceCorsAllowOrigins>;
|
|
320
|
+
/**
|
|
321
|
+
* The set of HTTP response headers that browsers are allowed to access. This configures the `Access-Control-Expose-Headers` header.
|
|
322
|
+
*/
|
|
323
|
+
exposeHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
324
|
+
/**
|
|
325
|
+
* An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: `5h30m`.
|
|
326
|
+
*/
|
|
327
|
+
maxAge?: pulumi.Input<string>;
|
|
328
|
+
}
|
|
329
|
+
export interface AppSpecServiceCorsAllowOrigins {
|
|
330
|
+
/**
|
|
331
|
+
* The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide.
|
|
332
|
+
*/
|
|
333
|
+
exact?: pulumi.Input<string>;
|
|
334
|
+
/**
|
|
335
|
+
* The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide.
|
|
336
|
+
*/
|
|
337
|
+
prefix?: pulumi.Input<string>;
|
|
338
|
+
/**
|
|
339
|
+
* The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax).
|
|
340
|
+
*/
|
|
341
|
+
regex?: pulumi.Input<string>;
|
|
342
|
+
}
|
|
343
|
+
export interface AppSpecServiceEnv {
|
|
344
|
+
/**
|
|
345
|
+
* The name of the environment variable.
|
|
346
|
+
*/
|
|
347
|
+
key?: pulumi.Input<string>;
|
|
348
|
+
/**
|
|
349
|
+
* The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
|
|
350
|
+
*/
|
|
351
|
+
scope?: pulumi.Input<string>;
|
|
352
|
+
/**
|
|
353
|
+
* The type of the environment variable, `GENERAL` or `SECRET`.
|
|
354
|
+
*/
|
|
355
|
+
type?: pulumi.Input<string>;
|
|
356
|
+
/**
|
|
357
|
+
* The value of the environment variable.
|
|
358
|
+
*/
|
|
359
|
+
value?: pulumi.Input<string>;
|
|
360
|
+
}
|
|
361
|
+
export interface AppSpecServiceGit {
|
|
362
|
+
/**
|
|
363
|
+
* The name of the branch to use.
|
|
364
|
+
*/
|
|
365
|
+
branch?: pulumi.Input<string>;
|
|
366
|
+
/**
|
|
367
|
+
* The clone URL of the repo.
|
|
368
|
+
*/
|
|
369
|
+
repoCloneUrl?: pulumi.Input<string>;
|
|
370
|
+
}
|
|
371
|
+
export interface AppSpecServiceGithub {
|
|
372
|
+
/**
|
|
373
|
+
* The name of the branch to use.
|
|
374
|
+
*/
|
|
375
|
+
branch?: pulumi.Input<string>;
|
|
376
|
+
/**
|
|
377
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
378
|
+
*/
|
|
379
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
380
|
+
/**
|
|
381
|
+
* The name of the repo in the format `owner/repo`.
|
|
382
|
+
*/
|
|
383
|
+
repo?: pulumi.Input<string>;
|
|
384
|
+
}
|
|
385
|
+
export interface AppSpecServiceGitlab {
|
|
386
|
+
/**
|
|
387
|
+
* The name of the branch to use.
|
|
388
|
+
*/
|
|
389
|
+
branch?: pulumi.Input<string>;
|
|
390
|
+
/**
|
|
391
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
392
|
+
*/
|
|
393
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
394
|
+
/**
|
|
395
|
+
* The name of the repo in the format `owner/repo`.
|
|
396
|
+
*/
|
|
397
|
+
repo?: pulumi.Input<string>;
|
|
398
|
+
}
|
|
399
|
+
export interface AppSpecServiceHealthCheck {
|
|
400
|
+
/**
|
|
401
|
+
* The number of failed health checks before considered unhealthy.
|
|
402
|
+
*/
|
|
403
|
+
failureThreshold?: pulumi.Input<number>;
|
|
404
|
+
/**
|
|
405
|
+
* The route path used for the HTTP health check ping.
|
|
406
|
+
*/
|
|
407
|
+
httpPath?: pulumi.Input<string>;
|
|
408
|
+
/**
|
|
409
|
+
* The number of seconds to wait before beginning health checks.
|
|
410
|
+
*/
|
|
411
|
+
initialDelaySeconds?: pulumi.Input<number>;
|
|
412
|
+
/**
|
|
413
|
+
* The number of seconds to wait between health checks.
|
|
414
|
+
*/
|
|
415
|
+
periodSeconds?: pulumi.Input<number>;
|
|
416
|
+
/**
|
|
417
|
+
* The number of successful health checks before considered healthy.
|
|
418
|
+
*/
|
|
419
|
+
successThreshold?: pulumi.Input<number>;
|
|
420
|
+
/**
|
|
421
|
+
* The number of seconds after which the check times out.
|
|
422
|
+
*/
|
|
423
|
+
timeoutSeconds?: pulumi.Input<number>;
|
|
424
|
+
}
|
|
425
|
+
export interface AppSpecServiceImage {
|
|
426
|
+
/**
|
|
427
|
+
* The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type.
|
|
428
|
+
*/
|
|
429
|
+
registry?: pulumi.Input<string>;
|
|
430
|
+
/**
|
|
431
|
+
* The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`.
|
|
432
|
+
*/
|
|
433
|
+
registryType: pulumi.Input<string>;
|
|
434
|
+
/**
|
|
435
|
+
* The repository name.
|
|
436
|
+
*/
|
|
437
|
+
repository: pulumi.Input<string>;
|
|
438
|
+
/**
|
|
439
|
+
* The repository tag. Defaults to `latest` if not provided.
|
|
440
|
+
*/
|
|
441
|
+
tag?: pulumi.Input<string>;
|
|
442
|
+
}
|
|
443
|
+
export interface AppSpecServiceRoute {
|
|
444
|
+
/**
|
|
445
|
+
* Paths must start with `/` and must be unique within the app.
|
|
446
|
+
*/
|
|
447
|
+
path?: pulumi.Input<string>;
|
|
448
|
+
}
|
|
449
|
+
export interface AppSpecStaticSite {
|
|
450
|
+
/**
|
|
451
|
+
* An optional build command to run while building this component from source.
|
|
452
|
+
*/
|
|
453
|
+
buildCommand?: pulumi.Input<string>;
|
|
454
|
+
/**
|
|
455
|
+
* The name of the document to use as the fallback for any requests to documents that are not found when serving this static site.
|
|
456
|
+
*/
|
|
457
|
+
catchallDocument?: pulumi.Input<string>;
|
|
458
|
+
/**
|
|
459
|
+
* The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app.
|
|
460
|
+
*/
|
|
461
|
+
cors?: pulumi.Input<inputs.AppSpecStaticSiteCors>;
|
|
462
|
+
/**
|
|
463
|
+
* The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.
|
|
464
|
+
*/
|
|
465
|
+
dockerfilePath?: pulumi.Input<string>;
|
|
466
|
+
/**
|
|
467
|
+
* An environment slug describing the type of this app.
|
|
468
|
+
*/
|
|
469
|
+
environmentSlug?: pulumi.Input<string>;
|
|
470
|
+
/**
|
|
471
|
+
* Describes an environment variable made available to an app competent.
|
|
472
|
+
*/
|
|
473
|
+
envs?: pulumi.Input<pulumi.Input<inputs.AppSpecStaticSiteEnv>[]>;
|
|
474
|
+
/**
|
|
475
|
+
* The name of the error document to use when serving this static site.
|
|
476
|
+
*/
|
|
477
|
+
errorDocument?: pulumi.Input<string>;
|
|
478
|
+
/**
|
|
479
|
+
* A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of `git`, `github` or `gitlab` may be set
|
|
480
|
+
*/
|
|
481
|
+
git?: pulumi.Input<inputs.AppSpecStaticSiteGit>;
|
|
482
|
+
/**
|
|
483
|
+
* A GitHub repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/github/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
484
|
+
*/
|
|
485
|
+
github?: pulumi.Input<inputs.AppSpecStaticSiteGithub>;
|
|
486
|
+
/**
|
|
487
|
+
* A Gitlab repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/gitlab/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
488
|
+
*/
|
|
489
|
+
gitlab?: pulumi.Input<inputs.AppSpecStaticSiteGitlab>;
|
|
490
|
+
/**
|
|
491
|
+
* The name of the index document to use when serving this static site.
|
|
492
|
+
*/
|
|
493
|
+
indexDocument?: pulumi.Input<string>;
|
|
494
|
+
/**
|
|
495
|
+
* The name of the component.
|
|
496
|
+
*/
|
|
497
|
+
name: pulumi.Input<string>;
|
|
498
|
+
/**
|
|
499
|
+
* An optional path to where the built assets will be located, relative to the build context. If not set, App Platform will automatically scan for these directory names: `_static`, `dist`, `public`.
|
|
500
|
+
*/
|
|
501
|
+
outputDir?: pulumi.Input<string>;
|
|
502
|
+
routes?: pulumi.Input<pulumi.Input<inputs.AppSpecStaticSiteRoute>[]>;
|
|
503
|
+
/**
|
|
504
|
+
* An optional path to the working directory to use for the build.
|
|
505
|
+
*/
|
|
506
|
+
sourceDir?: pulumi.Input<string>;
|
|
507
|
+
}
|
|
508
|
+
export interface AppSpecStaticSiteCors {
|
|
509
|
+
/**
|
|
510
|
+
* Whether browsers should expose the response to the client-side JavaScript code when the request's credentials mode is `include`. This configures the `Access-Control-Allow-Credentials` header.
|
|
511
|
+
*/
|
|
512
|
+
allowCredentials?: pulumi.Input<boolean>;
|
|
513
|
+
/**
|
|
514
|
+
* The set of allowed HTTP request headers. This configures the `Access-Control-Allow-Headers` header.
|
|
515
|
+
*/
|
|
516
|
+
allowHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
517
|
+
/**
|
|
518
|
+
* The set of allowed HTTP methods. This configures the `Access-Control-Allow-Methods` header.
|
|
519
|
+
*/
|
|
520
|
+
allowMethods?: pulumi.Input<pulumi.Input<string>[]>;
|
|
521
|
+
/**
|
|
522
|
+
* The `Access-Control-Allow-Origin` can be
|
|
523
|
+
*/
|
|
524
|
+
allowOrigins?: pulumi.Input<inputs.AppSpecStaticSiteCorsAllowOrigins>;
|
|
525
|
+
/**
|
|
526
|
+
* The set of HTTP response headers that browsers are allowed to access. This configures the `Access-Control-Expose-Headers` header.
|
|
527
|
+
*/
|
|
528
|
+
exposeHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
529
|
+
/**
|
|
530
|
+
* An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: `5h30m`.
|
|
531
|
+
*/
|
|
532
|
+
maxAge?: pulumi.Input<string>;
|
|
533
|
+
}
|
|
534
|
+
export interface AppSpecStaticSiteCorsAllowOrigins {
|
|
535
|
+
/**
|
|
536
|
+
* The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide.
|
|
537
|
+
*/
|
|
538
|
+
exact?: pulumi.Input<string>;
|
|
539
|
+
/**
|
|
540
|
+
* The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide.
|
|
541
|
+
*/
|
|
542
|
+
prefix?: pulumi.Input<string>;
|
|
543
|
+
/**
|
|
544
|
+
* The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax).
|
|
545
|
+
*/
|
|
546
|
+
regex?: pulumi.Input<string>;
|
|
547
|
+
}
|
|
548
|
+
export interface AppSpecStaticSiteEnv {
|
|
549
|
+
/**
|
|
550
|
+
* The name of the environment variable.
|
|
551
|
+
*/
|
|
552
|
+
key?: pulumi.Input<string>;
|
|
553
|
+
/**
|
|
554
|
+
* The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
|
|
555
|
+
*/
|
|
556
|
+
scope?: pulumi.Input<string>;
|
|
557
|
+
/**
|
|
558
|
+
* The type of the environment variable, `GENERAL` or `SECRET`.
|
|
559
|
+
*/
|
|
560
|
+
type?: pulumi.Input<string>;
|
|
561
|
+
/**
|
|
562
|
+
* The value of the environment variable.
|
|
563
|
+
*/
|
|
564
|
+
value?: pulumi.Input<string>;
|
|
565
|
+
}
|
|
566
|
+
export interface AppSpecStaticSiteGit {
|
|
567
|
+
/**
|
|
568
|
+
* The name of the branch to use.
|
|
569
|
+
*/
|
|
570
|
+
branch?: pulumi.Input<string>;
|
|
571
|
+
/**
|
|
572
|
+
* The clone URL of the repo.
|
|
573
|
+
*/
|
|
574
|
+
repoCloneUrl?: pulumi.Input<string>;
|
|
575
|
+
}
|
|
576
|
+
export interface AppSpecStaticSiteGithub {
|
|
577
|
+
/**
|
|
578
|
+
* The name of the branch to use.
|
|
579
|
+
*/
|
|
580
|
+
branch?: pulumi.Input<string>;
|
|
581
|
+
/**
|
|
582
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
583
|
+
*/
|
|
584
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
585
|
+
/**
|
|
586
|
+
* The name of the repo in the format `owner/repo`.
|
|
587
|
+
*/
|
|
588
|
+
repo?: pulumi.Input<string>;
|
|
589
|
+
}
|
|
590
|
+
export interface AppSpecStaticSiteGitlab {
|
|
591
|
+
/**
|
|
592
|
+
* The name of the branch to use.
|
|
593
|
+
*/
|
|
594
|
+
branch?: pulumi.Input<string>;
|
|
595
|
+
/**
|
|
596
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
597
|
+
*/
|
|
598
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
599
|
+
/**
|
|
600
|
+
* The name of the repo in the format `owner/repo`.
|
|
601
|
+
*/
|
|
602
|
+
repo?: pulumi.Input<string>;
|
|
603
|
+
}
|
|
604
|
+
export interface AppSpecStaticSiteRoute {
|
|
605
|
+
/**
|
|
606
|
+
* Paths must start with `/` and must be unique within the app.
|
|
607
|
+
*/
|
|
608
|
+
path?: pulumi.Input<string>;
|
|
609
|
+
}
|
|
610
|
+
export interface AppSpecWorker {
|
|
611
|
+
/**
|
|
612
|
+
* An optional build command to run while building this component from source.
|
|
613
|
+
*/
|
|
614
|
+
buildCommand?: pulumi.Input<string>;
|
|
615
|
+
/**
|
|
616
|
+
* The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.
|
|
617
|
+
*/
|
|
618
|
+
dockerfilePath?: pulumi.Input<string>;
|
|
619
|
+
/**
|
|
620
|
+
* An environment slug describing the type of this app.
|
|
621
|
+
*/
|
|
622
|
+
environmentSlug?: pulumi.Input<string>;
|
|
623
|
+
/**
|
|
624
|
+
* Describes an environment variable made available to an app competent.
|
|
625
|
+
*/
|
|
626
|
+
envs?: pulumi.Input<pulumi.Input<inputs.AppSpecWorkerEnv>[]>;
|
|
627
|
+
/**
|
|
628
|
+
* A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of `git`, `github` or `gitlab` may be set
|
|
629
|
+
*/
|
|
630
|
+
git?: pulumi.Input<inputs.AppSpecWorkerGit>;
|
|
631
|
+
/**
|
|
632
|
+
* A GitHub repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/github/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
633
|
+
*/
|
|
634
|
+
github?: pulumi.Input<inputs.AppSpecWorkerGithub>;
|
|
635
|
+
/**
|
|
636
|
+
* A Gitlab repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/gitlab/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
637
|
+
*/
|
|
638
|
+
gitlab?: pulumi.Input<inputs.AppSpecWorkerGitlab>;
|
|
639
|
+
/**
|
|
640
|
+
* An image to use as the component's source. Only one of `git`, `github`, `gitlab`, or `image` may be set.
|
|
641
|
+
*/
|
|
642
|
+
image?: pulumi.Input<inputs.AppSpecWorkerImage>;
|
|
643
|
+
/**
|
|
644
|
+
* The amount of instances that this component should be scaled to.
|
|
645
|
+
*/
|
|
646
|
+
instanceCount?: pulumi.Input<number>;
|
|
647
|
+
/**
|
|
648
|
+
* The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs`
|
|
649
|
+
*/
|
|
650
|
+
instanceSizeSlug?: pulumi.Input<string>;
|
|
651
|
+
/**
|
|
652
|
+
* The name of the component.
|
|
653
|
+
*/
|
|
654
|
+
name: pulumi.Input<string>;
|
|
655
|
+
/**
|
|
656
|
+
* An optional run command to override the component's default.
|
|
657
|
+
*/
|
|
658
|
+
runCommand?: pulumi.Input<string>;
|
|
659
|
+
/**
|
|
660
|
+
* An optional path to the working directory to use for the build.
|
|
661
|
+
*/
|
|
662
|
+
sourceDir?: pulumi.Input<string>;
|
|
663
|
+
}
|
|
664
|
+
export interface AppSpecWorkerEnv {
|
|
665
|
+
/**
|
|
666
|
+
* The name of the environment variable.
|
|
667
|
+
*/
|
|
668
|
+
key?: pulumi.Input<string>;
|
|
669
|
+
/**
|
|
670
|
+
* The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
|
|
671
|
+
*/
|
|
672
|
+
scope?: pulumi.Input<string>;
|
|
673
|
+
/**
|
|
674
|
+
* The type of the environment variable, `GENERAL` or `SECRET`.
|
|
675
|
+
*/
|
|
676
|
+
type?: pulumi.Input<string>;
|
|
677
|
+
/**
|
|
678
|
+
* The value of the environment variable.
|
|
679
|
+
*/
|
|
680
|
+
value?: pulumi.Input<string>;
|
|
681
|
+
}
|
|
682
|
+
export interface AppSpecWorkerGit {
|
|
683
|
+
/**
|
|
684
|
+
* The name of the branch to use.
|
|
685
|
+
*/
|
|
686
|
+
branch?: pulumi.Input<string>;
|
|
687
|
+
/**
|
|
688
|
+
* The clone URL of the repo.
|
|
689
|
+
*/
|
|
690
|
+
repoCloneUrl?: pulumi.Input<string>;
|
|
691
|
+
}
|
|
692
|
+
export interface AppSpecWorkerGithub {
|
|
693
|
+
/**
|
|
694
|
+
* The name of the branch to use.
|
|
695
|
+
*/
|
|
696
|
+
branch?: pulumi.Input<string>;
|
|
697
|
+
/**
|
|
698
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
699
|
+
*/
|
|
700
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
701
|
+
/**
|
|
702
|
+
* The name of the repo in the format `owner/repo`.
|
|
703
|
+
*/
|
|
704
|
+
repo?: pulumi.Input<string>;
|
|
705
|
+
}
|
|
706
|
+
export interface AppSpecWorkerGitlab {
|
|
707
|
+
/**
|
|
708
|
+
* The name of the branch to use.
|
|
709
|
+
*/
|
|
710
|
+
branch?: pulumi.Input<string>;
|
|
711
|
+
/**
|
|
712
|
+
* Whether to automatically deploy new commits made to the repo.
|
|
713
|
+
*/
|
|
714
|
+
deployOnPush?: pulumi.Input<boolean>;
|
|
715
|
+
/**
|
|
716
|
+
* The name of the repo in the format `owner/repo`.
|
|
717
|
+
*/
|
|
718
|
+
repo?: pulumi.Input<string>;
|
|
719
|
+
}
|
|
720
|
+
export interface AppSpecWorkerImage {
|
|
721
|
+
/**
|
|
722
|
+
* The registry name. Must be left empty for the `DOCR` registry type. Required for the `DOCKER_HUB` registry type.
|
|
723
|
+
*/
|
|
724
|
+
registry?: pulumi.Input<string>;
|
|
725
|
+
/**
|
|
726
|
+
* The registry type. One of `DOCR` (DigitalOcean container registry) or `DOCKER_HUB`.
|
|
727
|
+
*/
|
|
728
|
+
registryType: pulumi.Input<string>;
|
|
729
|
+
/**
|
|
730
|
+
* The repository name.
|
|
731
|
+
*/
|
|
732
|
+
repository: pulumi.Input<string>;
|
|
733
|
+
/**
|
|
734
|
+
* The repository tag. Defaults to `latest` if not provided.
|
|
735
|
+
*/
|
|
736
|
+
tag?: pulumi.Input<string>;
|
|
737
|
+
}
|
|
738
|
+
export interface DatabaseClusterMaintenanceWindow {
|
|
739
|
+
/**
|
|
740
|
+
* The day of the week on which to apply maintenance updates.
|
|
741
|
+
*/
|
|
742
|
+
day: pulumi.Input<string>;
|
|
743
|
+
/**
|
|
744
|
+
* The hour in UTC at which maintenance updates will be applied in 24 hour format.
|
|
745
|
+
*/
|
|
746
|
+
hour: pulumi.Input<string>;
|
|
747
|
+
}
|
|
748
|
+
export interface DatabaseFirewallRule {
|
|
749
|
+
/**
|
|
750
|
+
* The date and time when the firewall rule was created.
|
|
751
|
+
*/
|
|
752
|
+
createdAt?: pulumi.Input<string>;
|
|
753
|
+
/**
|
|
754
|
+
* The type of resource that the firewall rule allows to access the database cluster. The possible values are: `droplet`, `k8s`, `ipAddr`, `tag`, or `app`.
|
|
755
|
+
*/
|
|
756
|
+
type: pulumi.Input<string>;
|
|
757
|
+
/**
|
|
758
|
+
* A unique identifier for the firewall rule.
|
|
759
|
+
*/
|
|
760
|
+
uuid?: pulumi.Input<string>;
|
|
761
|
+
/**
|
|
762
|
+
* The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.
|
|
763
|
+
*/
|
|
764
|
+
value: pulumi.Input<string>;
|
|
765
|
+
}
|
|
766
|
+
export interface FirewallInboundRule {
|
|
767
|
+
/**
|
|
768
|
+
* The ports on which traffic will be allowed
|
|
769
|
+
* specified as a string containing a single port, a range (e.g. "8000-9000"),
|
|
770
|
+
* or "1-65535" to open all ports for a protocol. Required for when protocol is
|
|
771
|
+
* `tcp` or `udp`.
|
|
772
|
+
*/
|
|
773
|
+
portRange?: pulumi.Input<string>;
|
|
774
|
+
/**
|
|
775
|
+
* The type of traffic to be allowed.
|
|
776
|
+
* This may be one of "tcp", "udp", or "icmp".
|
|
777
|
+
*/
|
|
778
|
+
protocol: pulumi.Input<string>;
|
|
779
|
+
/**
|
|
780
|
+
* An array of strings containing the IPv4
|
|
781
|
+
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs from which the
|
|
782
|
+
* inbound traffic will be accepted.
|
|
783
|
+
*/
|
|
784
|
+
sourceAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
785
|
+
/**
|
|
786
|
+
* An array containing the IDs of
|
|
787
|
+
* the Droplets from which the inbound traffic will be accepted.
|
|
788
|
+
*/
|
|
789
|
+
sourceDropletIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
790
|
+
/**
|
|
791
|
+
* An array containing the IDs
|
|
792
|
+
* of the Load Balancers from which the inbound traffic will be accepted.
|
|
793
|
+
*/
|
|
794
|
+
sourceLoadBalancerUids?: pulumi.Input<pulumi.Input<string>[]>;
|
|
795
|
+
/**
|
|
796
|
+
* An array containing the names of Tags
|
|
797
|
+
* corresponding to groups of Droplets from which the inbound traffic
|
|
798
|
+
* will be accepted.
|
|
799
|
+
*/
|
|
800
|
+
sourceTags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
801
|
+
}
|
|
802
|
+
export interface FirewallOutboundRule {
|
|
803
|
+
/**
|
|
804
|
+
* An array of strings containing the IPv4
|
|
805
|
+
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the
|
|
806
|
+
* outbound traffic will be allowed.
|
|
807
|
+
*/
|
|
808
|
+
destinationAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
809
|
+
/**
|
|
810
|
+
* An array containing the IDs of
|
|
811
|
+
* the Droplets to which the outbound traffic will be allowed.
|
|
812
|
+
*/
|
|
813
|
+
destinationDropletIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
814
|
+
/**
|
|
815
|
+
* An array containing the IDs
|
|
816
|
+
* of the Load Balancers to which the outbound traffic will be allowed.
|
|
817
|
+
*/
|
|
818
|
+
destinationLoadBalancerUids?: pulumi.Input<pulumi.Input<string>[]>;
|
|
819
|
+
/**
|
|
820
|
+
* An array containing the names of Tags
|
|
821
|
+
* corresponding to groups of Droplets to which the outbound traffic will
|
|
822
|
+
* be allowed.
|
|
823
|
+
* traffic.
|
|
824
|
+
*/
|
|
825
|
+
destinationTags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
826
|
+
/**
|
|
827
|
+
* The ports on which traffic will be allowed
|
|
828
|
+
* specified as a string containing a single port, a range (e.g. "8000-9000"),
|
|
829
|
+
* or "1-65535" to open all ports for a protocol. Required for when protocol is
|
|
830
|
+
* `tcp` or `udp`.
|
|
831
|
+
*/
|
|
832
|
+
portRange?: pulumi.Input<string>;
|
|
833
|
+
/**
|
|
834
|
+
* The type of traffic to be allowed.
|
|
835
|
+
* This may be one of "tcp", "udp", or "icmp".
|
|
836
|
+
*/
|
|
837
|
+
protocol: pulumi.Input<string>;
|
|
838
|
+
}
|
|
839
|
+
export interface FirewallPendingChange {
|
|
840
|
+
dropletId?: pulumi.Input<number>;
|
|
841
|
+
removing?: pulumi.Input<boolean>;
|
|
842
|
+
/**
|
|
843
|
+
* A status string indicating the current state of the Firewall.
|
|
844
|
+
* This can be "waiting", "succeeded", or "failed".
|
|
845
|
+
*/
|
|
846
|
+
status?: pulumi.Input<string>;
|
|
847
|
+
}
|
|
848
|
+
export interface GetDomainsFilter {
|
|
849
|
+
/**
|
|
850
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
851
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
852
|
+
* that all of the `values` are present in the list or set.
|
|
853
|
+
*/
|
|
854
|
+
all?: boolean;
|
|
855
|
+
/**
|
|
856
|
+
* Filter the domains by this key. This may be one of `name`, `urn`, and `ttl`.
|
|
857
|
+
*/
|
|
858
|
+
key: string;
|
|
859
|
+
/**
|
|
860
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
861
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
862
|
+
* substrings to find within the string field.
|
|
863
|
+
*/
|
|
864
|
+
matchBy?: string;
|
|
865
|
+
/**
|
|
866
|
+
* A list of values to match against the `key` field. Only retrieves domains
|
|
867
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
868
|
+
*/
|
|
869
|
+
values: string[];
|
|
870
|
+
}
|
|
871
|
+
export interface GetDomainsSort {
|
|
872
|
+
/**
|
|
873
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
874
|
+
*/
|
|
875
|
+
direction?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Sort the domains by this key. This may be one of `name`, `urn`, and `ttl`.
|
|
878
|
+
*/
|
|
879
|
+
key: string;
|
|
880
|
+
}
|
|
881
|
+
export interface GetDropletsFilter {
|
|
882
|
+
/**
|
|
883
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
884
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
885
|
+
* that all of the `values` are present in the list or set.
|
|
886
|
+
*/
|
|
887
|
+
all?: boolean;
|
|
888
|
+
/**
|
|
889
|
+
* Filter the Droplets by this key. This may be one of `backups`, `createdAt`, `disk`, `id`,
|
|
890
|
+
* `image`, `ipv4Address`, `ipv4AddressPrivate`, `ipv6`, `ipv6Address`, `ipv6AddressPrivate`, `locked`,
|
|
891
|
+
* `memory`, `monitoring`, `name`, `priceHourly`, `priceMonthly`, `privateNetworking`, `region`, `size`,
|
|
892
|
+
* `status`, `tags`, `urn`, `vcpus`, `volumeIds`, or `vpcUuid`.
|
|
893
|
+
*/
|
|
894
|
+
key: string;
|
|
895
|
+
/**
|
|
896
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
897
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
898
|
+
* substrings to find within the string field.
|
|
899
|
+
*/
|
|
900
|
+
matchBy?: string;
|
|
901
|
+
/**
|
|
902
|
+
* A list of values to match against the `key` field. Only retrieves Droplets
|
|
903
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
904
|
+
*/
|
|
905
|
+
values: string[];
|
|
906
|
+
}
|
|
907
|
+
export interface GetDropletsSort {
|
|
908
|
+
/**
|
|
909
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
910
|
+
*/
|
|
911
|
+
direction?: string;
|
|
912
|
+
/**
|
|
913
|
+
* Sort the Droplets by this key. This may be one of `backups`, `createdAt`, `disk`, `id`,
|
|
914
|
+
* `image`, `ipv4Address`, `ipv4AddressPrivate`, `ipv6`, `ipv6Address`, `ipv6AddressPrivate`, `locked`,
|
|
915
|
+
* `memory`, `monitoring`, `name`, `priceHourly`, `priceMonthly`, `privateNetworking`, `region`, `size`,
|
|
916
|
+
* `status`, `urn`, `vcpus`, or `vpcUuid`.
|
|
917
|
+
*/
|
|
918
|
+
key: string;
|
|
919
|
+
}
|
|
920
|
+
export interface GetFirewallInboundRule {
|
|
921
|
+
/**
|
|
922
|
+
* The ports on which traffic will be allowed
|
|
923
|
+
* specified as a string containing a single port, a range (e.g. "8000-9000"),
|
|
924
|
+
* or "1-65535" to open all ports for a protocol. Required for when protocol is
|
|
925
|
+
* `tcp` or `udp`.
|
|
926
|
+
*/
|
|
927
|
+
portRange?: string;
|
|
928
|
+
/**
|
|
929
|
+
* The type of traffic to be allowed.
|
|
930
|
+
* This may be one of "tcp", "udp", or "icmp".
|
|
931
|
+
*/
|
|
932
|
+
protocol: string;
|
|
933
|
+
/**
|
|
934
|
+
* An array of strings containing the IPv4
|
|
935
|
+
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs from which the
|
|
936
|
+
* inbound traffic will be accepted.
|
|
937
|
+
*/
|
|
938
|
+
sourceAddresses?: string[];
|
|
939
|
+
/**
|
|
940
|
+
* An array containing the IDs of
|
|
941
|
+
* the Droplets from which the inbound traffic will be accepted.
|
|
942
|
+
*/
|
|
943
|
+
sourceDropletIds?: number[];
|
|
944
|
+
/**
|
|
945
|
+
* An array containing the IDs
|
|
946
|
+
* of the Load Balancers from which the inbound traffic will be accepted.
|
|
947
|
+
*/
|
|
948
|
+
sourceLoadBalancerUids?: string[];
|
|
949
|
+
/**
|
|
950
|
+
* A set of names of Tags corresponding to group of
|
|
951
|
+
* Droplets from which the inbound traffic will be accepted.
|
|
952
|
+
*/
|
|
953
|
+
sourceTags?: string[];
|
|
954
|
+
}
|
|
955
|
+
export interface GetFirewallOutboundRule {
|
|
956
|
+
/**
|
|
957
|
+
* An array of strings containing the IPv4
|
|
958
|
+
* addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the
|
|
959
|
+
* outbound traffic will be allowed.
|
|
960
|
+
*/
|
|
961
|
+
destinationAddresses?: string[];
|
|
962
|
+
/**
|
|
963
|
+
* An array containing the IDs of
|
|
964
|
+
* the Droplets to which the outbound traffic will be allowed.
|
|
965
|
+
*/
|
|
966
|
+
destinationDropletIds?: number[];
|
|
967
|
+
/**
|
|
968
|
+
* An array containing the IDs
|
|
969
|
+
* of the Load Balancers to which the outbound traffic will be allowed.
|
|
970
|
+
*/
|
|
971
|
+
destinationLoadBalancerUids?: string[];
|
|
972
|
+
/**
|
|
973
|
+
* An array containing the names of Tags
|
|
974
|
+
* corresponding to groups of Droplets to which the outbound traffic will
|
|
975
|
+
* be allowed.
|
|
976
|
+
* traffic.
|
|
977
|
+
*/
|
|
978
|
+
destinationTags?: string[];
|
|
979
|
+
/**
|
|
980
|
+
* The ports on which traffic will be allowed
|
|
981
|
+
* specified as a string containing a single port, a range (e.g. "8000-9000"),
|
|
982
|
+
* or "1-65535" to open all ports for a protocol. Required for when protocol is
|
|
983
|
+
* `tcp` or `udp`.
|
|
984
|
+
*/
|
|
985
|
+
portRange?: string;
|
|
986
|
+
/**
|
|
987
|
+
* The type of traffic to be allowed.
|
|
988
|
+
* This may be one of "tcp", "udp", or "icmp".
|
|
989
|
+
*/
|
|
990
|
+
protocol: string;
|
|
991
|
+
}
|
|
992
|
+
export interface GetImagesFilter {
|
|
993
|
+
/**
|
|
994
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
995
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
996
|
+
* that all of the `values` are present in the list or set.
|
|
997
|
+
*/
|
|
998
|
+
all?: boolean;
|
|
999
|
+
/**
|
|
1000
|
+
* Filter the images by this key. This may be one of `distribution`, `errorMessage`,
|
|
1001
|
+
* `id`, `image`, `minDiskSize`, `name`, `private`, `regions`, `sizeGigabytes`, `slug`, `status`,
|
|
1002
|
+
* `tags`, or `type`.
|
|
1003
|
+
*/
|
|
1004
|
+
key: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1007
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1008
|
+
* substrings to find within the string field.
|
|
1009
|
+
*/
|
|
1010
|
+
matchBy?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* A list of values to match against the `key` field. Only retrieves images
|
|
1013
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
1014
|
+
*/
|
|
1015
|
+
values: string[];
|
|
1016
|
+
}
|
|
1017
|
+
export interface GetImagesSort {
|
|
1018
|
+
/**
|
|
1019
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1020
|
+
*/
|
|
1021
|
+
direction?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Sort the images by this key. This may be one of `distribution`, `errorMessage`, `id`,
|
|
1024
|
+
* `image`, `minDiskSize`, `name`, `private`, `sizeGigabytes`, `slug`, `status`, or `type`.
|
|
1025
|
+
*/
|
|
1026
|
+
key: string;
|
|
1027
|
+
}
|
|
1028
|
+
export interface GetProjectsFilter {
|
|
1029
|
+
/**
|
|
1030
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
1031
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
1032
|
+
* that all of the `values` are present in the list or set.
|
|
1033
|
+
*/
|
|
1034
|
+
all?: boolean;
|
|
1035
|
+
/**
|
|
1036
|
+
* Filter the projects by this key. This may be one of `name`,
|
|
1037
|
+
* `purpose`, `description`, `environment`, or `isDefault`.
|
|
1038
|
+
*/
|
|
1039
|
+
key: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1042
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1043
|
+
* substrings to find within the string field.
|
|
1044
|
+
*/
|
|
1045
|
+
matchBy?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* A list of values to match against the `key` field. Only retrieves projects
|
|
1048
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
1049
|
+
*/
|
|
1050
|
+
values: string[];
|
|
1051
|
+
}
|
|
1052
|
+
export interface GetProjectsSort {
|
|
1053
|
+
/**
|
|
1054
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1055
|
+
*/
|
|
1056
|
+
direction?: string;
|
|
1057
|
+
/**
|
|
1058
|
+
* Sort the projects by this key. This may be one of `name`,
|
|
1059
|
+
* `purpose`, `description`, or `environment`.
|
|
1060
|
+
*/
|
|
1061
|
+
key: string;
|
|
1062
|
+
}
|
|
1063
|
+
export interface GetRecordsFilter {
|
|
1064
|
+
/**
|
|
1065
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
1066
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
1067
|
+
* that all of the `values` are present in the list or set.
|
|
1068
|
+
*/
|
|
1069
|
+
all?: boolean;
|
|
1070
|
+
/**
|
|
1071
|
+
* Filter the DNS records by this key. This may be one of `domain`, `flags`, `name`, `port`,
|
|
1072
|
+
* `priority`, `tag`, `ttl`, `type`, `value`, or `weight`.
|
|
1073
|
+
*/
|
|
1074
|
+
key: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1077
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1078
|
+
* substrings to find within the string field.
|
|
1079
|
+
*/
|
|
1080
|
+
matchBy?: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* A list of values to match against the `key` field. Only retrieves DNS records
|
|
1083
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
1084
|
+
*/
|
|
1085
|
+
values: string[];
|
|
1086
|
+
}
|
|
1087
|
+
export interface GetRecordsSort {
|
|
1088
|
+
/**
|
|
1089
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1090
|
+
*/
|
|
1091
|
+
direction?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* Sort the DNS records by this key. This may be one of `domain`, `flags`, `name`, `port`,
|
|
1094
|
+
* `priority`, `tag`, `ttl`, `type`, `value`, or `weight`.
|
|
1095
|
+
*/
|
|
1096
|
+
key: string;
|
|
1097
|
+
}
|
|
1098
|
+
export interface GetRegionsFilter {
|
|
1099
|
+
/**
|
|
1100
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
1101
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
1102
|
+
* that all of the `values` are present in the list or set.
|
|
1103
|
+
*/
|
|
1104
|
+
all?: boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* Filter the regions by this key. This may be one of `slug`,
|
|
1107
|
+
* `name`, `available`, `features`, or `sizes`.
|
|
1108
|
+
*/
|
|
1109
|
+
key: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1112
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1113
|
+
* substrings to find within the string field.
|
|
1114
|
+
*/
|
|
1115
|
+
matchBy?: string;
|
|
1116
|
+
/**
|
|
1117
|
+
* A list of values to match against the `key` field. Only retrieves regions
|
|
1118
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
1119
|
+
*/
|
|
1120
|
+
values: string[];
|
|
1121
|
+
}
|
|
1122
|
+
export interface GetRegionsSort {
|
|
1123
|
+
/**
|
|
1124
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1125
|
+
*/
|
|
1126
|
+
direction?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* Sort the regions by this key. This may be one of `slug`,
|
|
1129
|
+
* `name`, or `available`.
|
|
1130
|
+
*/
|
|
1131
|
+
key: string;
|
|
1132
|
+
}
|
|
1133
|
+
export interface GetSizesFilter {
|
|
1134
|
+
/**
|
|
1135
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
1136
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
1137
|
+
* that all of the `values` are present in the list or set.
|
|
1138
|
+
*/
|
|
1139
|
+
all?: boolean;
|
|
1140
|
+
/**
|
|
1141
|
+
* Filter the sizes by this key. This may be one of `slug`,
|
|
1142
|
+
* `regions`, `memory`, `vcpus`, `disk`, `transfer`, `priceMonthly`,
|
|
1143
|
+
* `priceHourly`, or `available`.
|
|
1144
|
+
*/
|
|
1145
|
+
key: string;
|
|
1146
|
+
/**
|
|
1147
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1148
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1149
|
+
* substrings to find within the string field.
|
|
1150
|
+
*/
|
|
1151
|
+
matchBy?: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* Only retrieves sizes which keys has value that matches
|
|
1154
|
+
* one of the values provided here.
|
|
1155
|
+
*/
|
|
1156
|
+
values: string[];
|
|
1157
|
+
}
|
|
1158
|
+
export interface GetSizesSort {
|
|
1159
|
+
/**
|
|
1160
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1161
|
+
*/
|
|
1162
|
+
direction?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* Sort the sizes by this key. This may be one of `slug`,
|
|
1165
|
+
* `memory`, `vcpus`, `disk`, `transfer`, `priceMonthly`, or `priceHourly`.
|
|
1166
|
+
*/
|
|
1167
|
+
key: string;
|
|
1168
|
+
}
|
|
1169
|
+
export interface GetSpacesBucketsFilter {
|
|
1170
|
+
/**
|
|
1171
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
1172
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
1173
|
+
* that all of the `values` are present in the list or set.
|
|
1174
|
+
*/
|
|
1175
|
+
all?: boolean;
|
|
1176
|
+
/**
|
|
1177
|
+
* Filter the images by this key. This may be one of `bucketDomainName`, `name`, `region`, or `urn`.
|
|
1178
|
+
*/
|
|
1179
|
+
key: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1182
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1183
|
+
* substrings to find within the string field.
|
|
1184
|
+
*/
|
|
1185
|
+
matchBy?: string;
|
|
1186
|
+
/**
|
|
1187
|
+
* A list of values to match against the `key` field. Only retrieves Spaces buckets
|
|
1188
|
+
* where the `key` field takes on one or more of the values provided here.
|
|
1189
|
+
*/
|
|
1190
|
+
values: string[];
|
|
1191
|
+
}
|
|
1192
|
+
export interface GetSpacesBucketsSort {
|
|
1193
|
+
/**
|
|
1194
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1195
|
+
*/
|
|
1196
|
+
direction?: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* Sort the images by this key. This may be one of `bucketDomainName`, `name`, `region`, or `urn`.
|
|
1199
|
+
*/
|
|
1200
|
+
key: string;
|
|
1201
|
+
}
|
|
1202
|
+
export interface GetSshKeysFilter {
|
|
1203
|
+
all?: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* Filter the SSH Keys by this key. This may be one of `name`, `publicKey`, or `fingerprint`.
|
|
1206
|
+
*/
|
|
1207
|
+
key: string;
|
|
1208
|
+
matchBy?: string;
|
|
1209
|
+
values: string[];
|
|
1210
|
+
}
|
|
1211
|
+
export interface GetSshKeysSort {
|
|
1212
|
+
/**
|
|
1213
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1214
|
+
*/
|
|
1215
|
+
direction?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Sort the SSH Keys by this key. This may be one of `name`, `publicKey`, or `fingerprint`.
|
|
1218
|
+
*/
|
|
1219
|
+
key: string;
|
|
1220
|
+
}
|
|
1221
|
+
export interface GetTagsFilter {
|
|
1222
|
+
/**
|
|
1223
|
+
* Set to `true` to require that a field match all of the `values` instead of just one or more of
|
|
1224
|
+
* them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure
|
|
1225
|
+
* that all of the `values` are present in the list or set.
|
|
1226
|
+
*/
|
|
1227
|
+
all?: boolean;
|
|
1228
|
+
/**
|
|
1229
|
+
* Filter the tags by this key. This may be one of `name`, `totalResourceCount`, `dropletsCount`, `imagesCount`, `volumesCount`, `volumeSnapshotsCount`, or `databasesCount`.
|
|
1230
|
+
*/
|
|
1231
|
+
key: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* One of `exact` (default), `re`, or `substring`. For string-typed fields, specify `re` to
|
|
1234
|
+
* match by using the `values` as regular expressions, or specify `substring` to match by treating the `values` as
|
|
1235
|
+
* substrings to find within the string field.
|
|
1236
|
+
*/
|
|
1237
|
+
matchBy?: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* Only retrieves tags which keys has value that matches
|
|
1240
|
+
* one of the values provided here.
|
|
1241
|
+
*/
|
|
1242
|
+
values: string[];
|
|
1243
|
+
}
|
|
1244
|
+
export interface GetTagsSort {
|
|
1245
|
+
/**
|
|
1246
|
+
* The sort direction. This may be either `asc` or `desc`.
|
|
1247
|
+
*/
|
|
1248
|
+
direction?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* Sort the tags by this key. This may be one of `name`, `totalResourceCount`, `dropletsCount`, `imagesCount`, `volumesCount`, `volumeSnapshotsCount`, or `databasesCount`.
|
|
1251
|
+
*/
|
|
1252
|
+
key: string;
|
|
1253
|
+
}
|
|
1254
|
+
export interface KubernetesClusterKubeConfig {
|
|
1255
|
+
/**
|
|
1256
|
+
* The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster.
|
|
1257
|
+
*/
|
|
1258
|
+
clientCertificate?: pulumi.Input<string>;
|
|
1259
|
+
/**
|
|
1260
|
+
* The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster.
|
|
1261
|
+
*/
|
|
1262
|
+
clientKey?: pulumi.Input<string>;
|
|
1263
|
+
/**
|
|
1264
|
+
* The base64 encoded public certificate for the cluster's certificate authority.
|
|
1265
|
+
*/
|
|
1266
|
+
clusterCaCertificate?: pulumi.Input<string>;
|
|
1267
|
+
/**
|
|
1268
|
+
* The date and time when the credentials will expire and need to be regenerated.
|
|
1269
|
+
*/
|
|
1270
|
+
expiresAt?: pulumi.Input<string>;
|
|
1271
|
+
/**
|
|
1272
|
+
* The URL of the API server on the Kubernetes master node.
|
|
1273
|
+
*/
|
|
1274
|
+
host?: pulumi.Input<string>;
|
|
1275
|
+
/**
|
|
1276
|
+
* The full contents of the Kubernetes cluster's kubeconfig file.
|
|
1277
|
+
*/
|
|
1278
|
+
rawConfig?: pulumi.Input<string>;
|
|
1279
|
+
/**
|
|
1280
|
+
* The DigitalOcean API access token used by clients to access the cluster.
|
|
1281
|
+
*/
|
|
1282
|
+
token?: pulumi.Input<string>;
|
|
1283
|
+
}
|
|
1284
|
+
export interface KubernetesClusterMaintenancePolicy {
|
|
1285
|
+
/**
|
|
1286
|
+
* The day of the maintenance window policy. May be one of "monday" through "sunday", or "any" to indicate an arbitrary week day.
|
|
1287
|
+
*/
|
|
1288
|
+
day?: pulumi.Input<string>;
|
|
1289
|
+
duration?: pulumi.Input<string>;
|
|
1290
|
+
/**
|
|
1291
|
+
* The start time in UTC of the maintenance window policy in 24-hour clock format / HH:MM notation (e.g., 15:00).
|
|
1292
|
+
*/
|
|
1293
|
+
startTime?: pulumi.Input<string>;
|
|
1294
|
+
}
|
|
1295
|
+
export interface KubernetesClusterNodePool {
|
|
1296
|
+
/**
|
|
1297
|
+
* A computed field representing the actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled.
|
|
1298
|
+
*/
|
|
1299
|
+
actualNodeCount?: pulumi.Input<number>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Enable auto-scaling of the number of nodes in the node pool within the given min/max range.
|
|
1302
|
+
*/
|
|
1303
|
+
autoScale?: pulumi.Input<boolean>;
|
|
1304
|
+
/**
|
|
1305
|
+
* A unique ID that can be used to identify and reference the node.
|
|
1306
|
+
*/
|
|
1307
|
+
id?: pulumi.Input<string>;
|
|
1308
|
+
/**
|
|
1309
|
+
* A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding [Node resources](https://kubernetes.io/docs/concepts/architecture/nodes/).
|
|
1310
|
+
*/
|
|
1311
|
+
labels?: pulumi.Input<{
|
|
1312
|
+
[key: string]: pulumi.Input<string>;
|
|
1313
|
+
}>;
|
|
1314
|
+
/**
|
|
1315
|
+
* If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to.
|
|
1316
|
+
*/
|
|
1317
|
+
maxNodes?: pulumi.Input<number>;
|
|
1318
|
+
/**
|
|
1319
|
+
* If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to.
|
|
1320
|
+
*/
|
|
1321
|
+
minNodes?: pulumi.Input<number>;
|
|
1322
|
+
/**
|
|
1323
|
+
* A name for the node pool.
|
|
1324
|
+
*/
|
|
1325
|
+
name: pulumi.Input<string>;
|
|
1326
|
+
/**
|
|
1327
|
+
* The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value.
|
|
1328
|
+
*/
|
|
1329
|
+
nodeCount?: pulumi.Input<number>;
|
|
1330
|
+
/**
|
|
1331
|
+
* A list of nodes in the pool. Each node exports the following attributes:
|
|
1332
|
+
*/
|
|
1333
|
+
nodes?: pulumi.Input<pulumi.Input<inputs.KubernetesClusterNodePoolNode>[]>;
|
|
1334
|
+
/**
|
|
1335
|
+
* The slug identifier for the type of Droplet to be used as workers in the node pool.
|
|
1336
|
+
*/
|
|
1337
|
+
size: pulumi.Input<string>;
|
|
1338
|
+
/**
|
|
1339
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
1340
|
+
*/
|
|
1341
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1342
|
+
/**
|
|
1343
|
+
* A block representing a taint applied to all nodes in the pool. Each taint exports the following attributes (taints must be unique by key and effect pair):
|
|
1344
|
+
*/
|
|
1345
|
+
taints?: pulumi.Input<pulumi.Input<inputs.KubernetesClusterNodePoolTaint>[]>;
|
|
1346
|
+
}
|
|
1347
|
+
export interface KubernetesClusterNodePoolNode {
|
|
1348
|
+
/**
|
|
1349
|
+
* The date and time when the node was created.
|
|
1350
|
+
*/
|
|
1351
|
+
createdAt?: pulumi.Input<string>;
|
|
1352
|
+
/**
|
|
1353
|
+
* The id of the node's droplet
|
|
1354
|
+
*/
|
|
1355
|
+
dropletId?: pulumi.Input<string>;
|
|
1356
|
+
/**
|
|
1357
|
+
* A unique ID that can be used to identify and reference the node.
|
|
1358
|
+
*/
|
|
1359
|
+
id?: pulumi.Input<string>;
|
|
1360
|
+
/**
|
|
1361
|
+
* A name for the node pool.
|
|
1362
|
+
*/
|
|
1363
|
+
name?: pulumi.Input<string>;
|
|
1364
|
+
/**
|
|
1365
|
+
* A string indicating the current status of the individual node.
|
|
1366
|
+
*/
|
|
1367
|
+
status?: pulumi.Input<string>;
|
|
1368
|
+
/**
|
|
1369
|
+
* The date and time when the node was last updated.
|
|
1370
|
+
*/
|
|
1371
|
+
updatedAt?: pulumi.Input<string>;
|
|
1372
|
+
}
|
|
1373
|
+
export interface KubernetesClusterNodePoolTaint {
|
|
1374
|
+
/**
|
|
1375
|
+
* How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
|
|
1376
|
+
*/
|
|
1377
|
+
effect: pulumi.Input<string>;
|
|
1378
|
+
/**
|
|
1379
|
+
* An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
|
|
1380
|
+
*/
|
|
1381
|
+
key: pulumi.Input<string>;
|
|
1382
|
+
/**
|
|
1383
|
+
* An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
|
|
1384
|
+
*/
|
|
1385
|
+
value: pulumi.Input<string>;
|
|
1386
|
+
}
|
|
1387
|
+
export interface KubernetesNodePoolNode {
|
|
1388
|
+
/**
|
|
1389
|
+
* The date and time when the node was created.
|
|
1390
|
+
*/
|
|
1391
|
+
createdAt?: pulumi.Input<string>;
|
|
1392
|
+
/**
|
|
1393
|
+
* The id of the node's droplet
|
|
1394
|
+
*/
|
|
1395
|
+
dropletId?: pulumi.Input<string>;
|
|
1396
|
+
/**
|
|
1397
|
+
* A unique ID that can be used to identify and reference the node.
|
|
1398
|
+
*/
|
|
1399
|
+
id?: pulumi.Input<string>;
|
|
1400
|
+
/**
|
|
1401
|
+
* A name for the node pool.
|
|
1402
|
+
*/
|
|
1403
|
+
name?: pulumi.Input<string>;
|
|
1404
|
+
/**
|
|
1405
|
+
* A string indicating the current status of the individual node.
|
|
1406
|
+
*/
|
|
1407
|
+
status?: pulumi.Input<string>;
|
|
1408
|
+
/**
|
|
1409
|
+
* The date and time when the node was last updated.
|
|
1410
|
+
*/
|
|
1411
|
+
updatedAt?: pulumi.Input<string>;
|
|
1412
|
+
}
|
|
1413
|
+
export interface KubernetesNodePoolTaint {
|
|
1414
|
+
/**
|
|
1415
|
+
* How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
|
|
1416
|
+
*/
|
|
1417
|
+
effect: pulumi.Input<string>;
|
|
1418
|
+
/**
|
|
1419
|
+
* An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
|
|
1420
|
+
*/
|
|
1421
|
+
key: pulumi.Input<string>;
|
|
1422
|
+
/**
|
|
1423
|
+
* An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
|
|
1424
|
+
*/
|
|
1425
|
+
value: pulumi.Input<string>;
|
|
1426
|
+
}
|
|
1427
|
+
export interface LoadBalancerForwardingRule {
|
|
1428
|
+
/**
|
|
1429
|
+
* **Deprecated** The ID of the TLS certificate to be used for SSL termination.
|
|
1430
|
+
*
|
|
1431
|
+
* @deprecated Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.
|
|
1432
|
+
*/
|
|
1433
|
+
certificateId?: pulumi.Input<string>;
|
|
1434
|
+
/**
|
|
1435
|
+
* The unique name of the TLS certificate to be used for SSL termination.
|
|
1436
|
+
*/
|
|
1437
|
+
certificateName?: pulumi.Input<string>;
|
|
1438
|
+
/**
|
|
1439
|
+
* An integer representing the port on which the Load Balancer instance will listen.
|
|
1440
|
+
*/
|
|
1441
|
+
entryPort: pulumi.Input<number>;
|
|
1442
|
+
/**
|
|
1443
|
+
* The protocol used for traffic to the Load Balancer. The possible values are: `http`, `https`, `http2` or `tcp`.
|
|
1444
|
+
*/
|
|
1445
|
+
entryProtocol: pulumi.Input<string>;
|
|
1446
|
+
/**
|
|
1447
|
+
* An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
|
|
1448
|
+
*/
|
|
1449
|
+
targetPort: pulumi.Input<number>;
|
|
1450
|
+
/**
|
|
1451
|
+
* The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: `http`, `https`, `http2` or `tcp`.
|
|
1452
|
+
*/
|
|
1453
|
+
targetProtocol: pulumi.Input<string>;
|
|
1454
|
+
/**
|
|
1455
|
+
* A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is `false`.
|
|
1456
|
+
*/
|
|
1457
|
+
tlsPassthrough?: pulumi.Input<boolean>;
|
|
1458
|
+
}
|
|
1459
|
+
export interface LoadBalancerHealthcheck {
|
|
1460
|
+
/**
|
|
1461
|
+
* The number of seconds between between two consecutive health checks. If not specified, the default value is `10`.
|
|
1462
|
+
*/
|
|
1463
|
+
checkIntervalSeconds?: pulumi.Input<number>;
|
|
1464
|
+
/**
|
|
1465
|
+
* The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is `5`.
|
|
1466
|
+
*/
|
|
1467
|
+
healthyThreshold?: pulumi.Input<number>;
|
|
1468
|
+
/**
|
|
1469
|
+
* The path on the backend Droplets to which the Load Balancer instance will send a request.
|
|
1470
|
+
*/
|
|
1471
|
+
path?: pulumi.Input<string>;
|
|
1472
|
+
/**
|
|
1473
|
+
* An integer representing the port on the backend Droplets on which the health check will attempt a connection.
|
|
1474
|
+
*/
|
|
1475
|
+
port: pulumi.Input<number>;
|
|
1476
|
+
/**
|
|
1477
|
+
* The protocol used for health checks sent to the backend Droplets. The possible values are `http`, `https` or `tcp`.
|
|
1478
|
+
*/
|
|
1479
|
+
protocol: pulumi.Input<string>;
|
|
1480
|
+
/**
|
|
1481
|
+
* The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is `5`.
|
|
1482
|
+
*/
|
|
1483
|
+
responseTimeoutSeconds?: pulumi.Input<number>;
|
|
1484
|
+
/**
|
|
1485
|
+
* The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is `3`.
|
|
1486
|
+
*/
|
|
1487
|
+
unhealthyThreshold?: pulumi.Input<number>;
|
|
1488
|
+
}
|
|
1489
|
+
export interface LoadBalancerStickySessions {
|
|
1490
|
+
/**
|
|
1491
|
+
* The name to be used for the cookie sent to the client. This attribute is required when using `cookies` for the sticky sessions type.
|
|
1492
|
+
*/
|
|
1493
|
+
cookieName?: pulumi.Input<string>;
|
|
1494
|
+
/**
|
|
1495
|
+
* The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using `cookies` for the sticky sessions type.
|
|
1496
|
+
*/
|
|
1497
|
+
cookieTtlSeconds?: pulumi.Input<number>;
|
|
1498
|
+
/**
|
|
1499
|
+
* An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are `cookies` or `none`. If not specified, the default value is `none`.
|
|
1500
|
+
*/
|
|
1501
|
+
type?: pulumi.Input<string>;
|
|
1502
|
+
}
|
|
1503
|
+
export interface MonitorAlertAlerts {
|
|
1504
|
+
emails?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1505
|
+
slacks?: pulumi.Input<pulumi.Input<inputs.MonitorAlertAlertsSlack>[]>;
|
|
1506
|
+
}
|
|
1507
|
+
export interface MonitorAlertAlertsSlack {
|
|
1508
|
+
channel: pulumi.Input<string>;
|
|
1509
|
+
url: pulumi.Input<string>;
|
|
1510
|
+
}
|
|
1511
|
+
export interface SpacesBucketCorsRule {
|
|
1512
|
+
/**
|
|
1513
|
+
* A list of headers that will be included in the CORS preflight request's `Access-Control-Request-Headers`. A header may contain one wildcard (e.g. `x-amz-*`).
|
|
1514
|
+
*/
|
|
1515
|
+
allowedHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1516
|
+
/**
|
|
1517
|
+
* A list of HTTP methods (e.g. `GET`) which are allowed from the specified origin.
|
|
1518
|
+
*/
|
|
1519
|
+
allowedMethods: pulumi.Input<pulumi.Input<string>[]>;
|
|
1520
|
+
/**
|
|
1521
|
+
* A list of hosts from which requests using the specified methods are allowed. A host may contain one wildcard (e.g. http://*.example.com).
|
|
1522
|
+
*/
|
|
1523
|
+
allowedOrigins: pulumi.Input<pulumi.Input<string>[]>;
|
|
1524
|
+
/**
|
|
1525
|
+
* The time in seconds that browser can cache the response for a preflight request.
|
|
1526
|
+
*/
|
|
1527
|
+
maxAgeSeconds?: pulumi.Input<number>;
|
|
1528
|
+
}
|
|
1529
|
+
export interface SpacesBucketLifecycleRule {
|
|
1530
|
+
/**
|
|
1531
|
+
* Specifies the number of days after initiating a multipart
|
|
1532
|
+
* upload when the multipart upload must be completed or else Spaces will abort the upload.
|
|
1533
|
+
*/
|
|
1534
|
+
abortIncompleteMultipartUploadDays?: pulumi.Input<number>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Specifies lifecycle rule status.
|
|
1537
|
+
*/
|
|
1538
|
+
enabled: pulumi.Input<boolean>;
|
|
1539
|
+
/**
|
|
1540
|
+
* Specifies a time period after which applicable objects expire (documented below).
|
|
1541
|
+
*/
|
|
1542
|
+
expiration?: pulumi.Input<inputs.SpacesBucketLifecycleRuleExpiration>;
|
|
1543
|
+
/**
|
|
1544
|
+
* Unique identifier for the rule.
|
|
1545
|
+
*/
|
|
1546
|
+
id?: pulumi.Input<string>;
|
|
1547
|
+
/**
|
|
1548
|
+
* Specifies when non-current object versions expire (documented below).
|
|
1549
|
+
*/
|
|
1550
|
+
noncurrentVersionExpiration?: pulumi.Input<inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpiration>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Object key prefix identifying one or more objects to which the rule applies.
|
|
1553
|
+
*/
|
|
1554
|
+
prefix?: pulumi.Input<string>;
|
|
1555
|
+
}
|
|
1556
|
+
export interface SpacesBucketLifecycleRuleExpiration {
|
|
1557
|
+
/**
|
|
1558
|
+
* Specifies the date/time after which you want applicable objects to expire. The argument uses
|
|
1559
|
+
* RFC3339 format, e.g. "2020-03-22T15:03:55Z" or parts thereof e.g. "2019-02-28".
|
|
1560
|
+
*/
|
|
1561
|
+
date?: pulumi.Input<string>;
|
|
1562
|
+
/**
|
|
1563
|
+
* Specifies the number of days after object creation when the applicable objects will expire.
|
|
1564
|
+
*/
|
|
1565
|
+
days?: pulumi.Input<number>;
|
|
1566
|
+
/**
|
|
1567
|
+
* On a versioned bucket (versioning-enabled or versioning-suspended
|
|
1568
|
+
* bucket), setting this to true directs Spaces to delete expired object delete markers.
|
|
1569
|
+
*/
|
|
1570
|
+
expiredObjectDeleteMarker?: pulumi.Input<boolean>;
|
|
1571
|
+
}
|
|
1572
|
+
export interface SpacesBucketLifecycleRuleNoncurrentVersionExpiration {
|
|
1573
|
+
/**
|
|
1574
|
+
* Specifies the number of days after which an object's non-current versions expire.
|
|
1575
|
+
*/
|
|
1576
|
+
days?: pulumi.Input<number>;
|
|
1577
|
+
}
|
|
1578
|
+
export interface SpacesBucketVersioning {
|
|
1579
|
+
/**
|
|
1580
|
+
* Enable versioning. Once you version-enable a bucket, it can never return to an unversioned
|
|
1581
|
+
* state. You can, however, suspend versioning on that bucket.
|
|
1582
|
+
*/
|
|
1583
|
+
enabled?: pulumi.Input<boolean>;
|
|
1584
|
+
}
|