@distilled.cloud/stackit 1.0.0-rc.17 → 1.0.0-rc.19
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/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/alb.d.ts +134 -132
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +27 -26
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +51 -51
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +32 -31
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +15 -15
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +47 -46
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +24 -1
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +129 -129
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +30 -29
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +40 -40
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +15 -15
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +218 -161
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -38
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +49 -34
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -1
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +21 -21
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +28 -1
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +104 -101
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +27 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +120 -29
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +38 -33
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +430 -415
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +180 -179
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +204 -0
- package/lib/services/identity.d.ts.map +1 -0
- package/lib/services/identity.js +2 -0
- package/lib/services/identity.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/intake.d.ts +58 -58
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +28 -27
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +13 -13
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +40 -39
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +14 -14
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -1
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +128 -126
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +28 -27
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +96 -45
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +35 -31
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +78 -24
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -32
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mailout.d.ts +476 -0
- package/lib/services/mailout.d.ts.map +1 -0
- package/lib/services/mailout.js +33 -0
- package/lib/services/mailout.js.map +1 -0
- package/lib/services/mariadb.d.ts +81 -30
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +36 -32
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +33 -33
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +25 -25
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +142 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +41 -40
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +6 -6
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +37 -36
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +362 -362
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +158 -157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +87 -36
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +36 -32
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +334 -278
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +30 -29
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +59 -55
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -45
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +36 -36
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +36 -35
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +92 -41
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +37 -33
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +26 -22
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +56 -56
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +35 -34
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +42 -42
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +349 -213
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +32 -23
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +24 -24
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +39 -38
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -21
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +41 -40
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +31 -31
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +28 -27
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +17 -17
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +30 -30
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +29 -28
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +22 -21
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +151 -141
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -44
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +121 -110
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +25 -24
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +47 -47
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +45 -44
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +39 -39
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +25 -24
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +80 -38
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -32
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +116 -41
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +31 -27
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +55 -54
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +94 -43
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +36 -32
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +150 -142
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +42 -41
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +65 -65
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +26 -25
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/alb_waf.js +1 -1
- package/lib/services.lazy/automation.js +4 -1
- package/lib/services.lazy/cdn.js +1 -1
- package/lib/services.lazy/dns.js +2 -2
- package/lib/services.lazy/edge.js +4 -1
- package/lib/services.lazy/functions.js +3 -1
- package/lib/services.lazy/git.js +2 -2
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/identity.js +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/intake.js +1 -1
- package/lib/services.lazy/kms.js +1 -1
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +2 -2
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mailout.js +4 -0
- package/lib/services.lazy/mariadb.js +2 -2
- package/lib/services.lazy/mongodb_flex.js +1 -1
- package/lib/services.lazy/object_storage.js +1 -1
- package/lib/services.lazy/observability.js +1 -1
- package/lib/services.lazy/opensearch.js +2 -2
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/pubsub.js +1 -1
- package/lib/services.lazy/rabbitmq.js +2 -2
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/sca.js +2 -2
- package/lib/services.lazy/scf.js +1 -1
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/server_backup.js +1 -1
- package/lib/services.lazy/service_account.js +1 -1
- package/lib/services.lazy/sfs.js +2 -2
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/sqlserverflex.js +1 -1
- package/lib/services.lazy/stackit_marketplace.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +2 -2
- package/lib/services.lazy/valkey.js +2 -2
- package/lib/services.lazy/vpn.js +1 -1
- package/lib/services.lazy/workflows.js +1 -1
- package/package.json +6 -5
- package/src/credentials.ts +1 -2
- package/src/index.ts +3 -3
- package/src/pagination.ts +7 -3
- package/src/protocol.ts +22 -20
- package/src/services/alb.ts +174 -132
- package/src/services/alb_waf.ts +96 -51
- package/src/services/authorization.ts +50 -15
- package/src/services/automation.ts +86 -49
- package/src/services/cdn.ts +172 -129
- package/src/services/certificates.ts +63 -40
- package/src/services/cost.ts +34 -15
- package/src/services/dns.ts +552 -269
- package/src/services/dremio.ts +187 -118
- package/src/services/edge.ts +62 -21
- package/src/services/functions.ts +217 -170
- package/src/services/git.ts +407 -108
- package/src/services/iaas.ts +723 -415
- package/src/services/identity.ts +625 -0
- package/src/services/index.ts +2 -0
- package/src/services/intake.ts +101 -58
- package/src/services/kms.ts +76 -13
- package/src/services/lb_ip_lists.ts +37 -14
- package/src/services/load_balancer.ts +168 -126
- package/src/services/logme.ts +345 -122
- package/src/services/logs.ts +172 -72
- package/src/services/mailout.ts +1277 -0
- package/src/services/mariadb.ts +328 -105
- package/src/services/model_experiments.ts +66 -33
- package/src/services/model_serving.ts +54 -25
- package/src/services/mongodb_flex.ts +205 -137
- package/src/services/object_storage.ts +61 -6
- package/src/services/observability.ts +594 -362
- package/src/services/opensearch.ts +337 -114
- package/src/services/pim.ts +403 -278
- package/src/services/postgres_flex.ts +258 -179
- package/src/services/pubsub.ts +85 -36
- package/src/services/rabbitmq.ts +348 -125
- package/src/services/registry.ts +55 -26
- package/src/services/resource_manager.ts +102 -57
- package/src/services/run_command.ts +65 -42
- package/src/services/sca.ts +769 -371
- package/src/services/scf.ts +83 -24
- package/src/services/secrets_manager.ts +87 -22
- package/src/services/server_backup.ts +76 -31
- package/src/services/server_update.ts +54 -17
- package/src/services/service_account.ts +75 -30
- package/src/services/service_enablement.ts +49 -24
- package/src/services/sfs.ts +469 -395
- package/src/services/ske.ts +299 -228
- package/src/services/sqlserverflex.ts +116 -47
- package/src/services/stackit_marketplace.ts +78 -39
- package/src/services/telemetry_link.ts +191 -81
- package/src/services/telemetry_router.ts +326 -94
- package/src/services/ufw.ts +85 -54
- package/src/services/valkey.ts +341 -118
- package/src/services/vpn.ts +213 -142
- package/src/services/workflows.ts +106 -65
package/lib/services/cdn.d.ts
CHANGED
|
@@ -46,9 +46,9 @@ export type HttpBackendCreateOriginRequestHeadersMap = {
|
|
|
46
46
|
export type HttpBackendCreateType = "http";
|
|
47
47
|
export interface HttpBackendCreate {
|
|
48
48
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
49
|
-
geofencing?: HttpBackendCreateGeofencingMap;
|
|
49
|
+
geofencing?: HttpBackendCreateGeofencingMap | undefined;
|
|
50
50
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
51
|
-
originRequestHeaders?: HttpBackendCreateOriginRequestHeadersMap;
|
|
51
|
+
originRequestHeaders?: HttpBackendCreateOriginRequestHeadersMap | undefined;
|
|
52
52
|
/** The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` */
|
|
53
53
|
originUrl: string;
|
|
54
54
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
@@ -82,11 +82,11 @@ export type CacheConfigCreateQueryStringVaryParametersList = Array<string>;
|
|
|
82
82
|
/** Groups the cache options that influence how the CDN builds its cache key on distribution creation. **Cache cardinality warning:** enabling query-string vary produces one cache entry per unique query-string combination (**unbounded** when `queryStringVaryParameters` is empty). Each entry in `cacheKeyHeaders` multiplies the number of cache variants by the number of distinct values observed for that header. Use these settings sparingly. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled` so that this feature can be toggled on and off without losing the configured allowlist. Only `queryStringVaryEnabled` gates whether the parameter allowlist actually varies the cache. **Optimizer interaction:** when the Optimizer is enabled, the CDN automatically enables query-string vary for image responses regardless of this setting. */
|
|
83
83
|
export interface CacheConfigCreate {
|
|
84
84
|
/** HTTP request header names whose values participate in the cache key. Each entry multiplies the number of cache variants by the number of distinct values observed for that header. */
|
|
85
|
-
cacheKeyHeaders?: CacheConfigCreateCacheKeyHeadersList;
|
|
85
|
+
cacheKeyHeaders?: CacheConfigCreateCacheKeyHeadersList | undefined;
|
|
86
86
|
/** When true, the CDN varies its cache by the request query string. If `queryStringVaryParameters` is empty, every unique query-string combination produces its own cache entry; if non-empty, only the listed parameters influence the cache key. */
|
|
87
|
-
queryStringVaryEnabled?: boolean;
|
|
87
|
+
queryStringVaryEnabled?: boolean | undefined;
|
|
88
88
|
/** Allowlist of query-string parameter names that participate in the cache key when `queryStringVaryEnabled` is true. Ignored while `queryStringVaryEnabled` is false, but still stored so it can be re-activated without losing the list. */
|
|
89
|
-
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList;
|
|
89
|
+
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList | undefined;
|
|
90
90
|
}
|
|
91
91
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
92
92
|
export type CreateDistributionRequestLabelsMap = {
|
|
@@ -152,7 +152,7 @@ export type MatchCondition = "ANY" | "ALL" | "NONE";
|
|
|
152
152
|
export type MatcherValuesList = Array<string>;
|
|
153
153
|
/** A matcher containing a list of string values to compare against the request path. */
|
|
154
154
|
export interface Matcher {
|
|
155
|
-
valueMatchCondition?: MatchCondition | (string & {});
|
|
155
|
+
valueMatchCondition?: MatchCondition | (string & {}) | undefined;
|
|
156
156
|
/** A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/*" or "*\/img/*" */
|
|
157
157
|
values: MatcherValuesList;
|
|
158
158
|
}
|
|
@@ -163,12 +163,12 @@ export type RedirectRuleStatusCode = 301 | 302 | 303 | 307 | 308;
|
|
|
163
163
|
/** A single redirect rule defining a source pattern and a target URL. */
|
|
164
164
|
export interface RedirectRule {
|
|
165
165
|
/** An optional description for the redirect rule. */
|
|
166
|
-
description?: string;
|
|
166
|
+
description?: string | undefined;
|
|
167
167
|
/** A toggle to enable or disable the redirect rule. */
|
|
168
|
-
enabled?: boolean;
|
|
168
|
+
enabled?: boolean | undefined;
|
|
169
169
|
/** A list of matchers that define when this rule should apply. At least one matcher is required. */
|
|
170
170
|
matchers: RedirectRuleMatchersList;
|
|
171
|
-
ruleMatchCondition?: MatchCondition | (string & {});
|
|
171
|
+
ruleMatchCondition?: MatchCondition | (string & {}) | undefined;
|
|
172
172
|
/** The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308. */
|
|
173
173
|
statusCode: RedirectRuleStatusCode | (number & {});
|
|
174
174
|
/** The target URL to redirect to. Must be a valid URI. */
|
|
@@ -179,7 +179,7 @@ export type RedirectConfigRulesList = Array<RedirectRule>;
|
|
|
179
179
|
/** A wrapper for a list of redirect rules that allows for redirect settings on a distribution. */
|
|
180
180
|
export interface RedirectConfig {
|
|
181
181
|
/** A list of redirect rules. The order of rules matters for evaluation. */
|
|
182
|
-
rules?: RedirectConfigRulesList;
|
|
182
|
+
rules?: RedirectConfigRulesList | undefined;
|
|
183
183
|
}
|
|
184
184
|
/** The following regions exist: - `EU` - Europe - `US` - United States / North America - `AF` - Africa - `SA` - South America - `ASIA` - Asia and Oceania */
|
|
185
185
|
export type Region = "EU" | "US" | "AF" | "SA" | "ASIA";
|
|
@@ -224,30 +224,30 @@ export type WafType = "FREE" | "PREMIUM";
|
|
|
224
224
|
/** Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. */
|
|
225
225
|
export interface WafConfig {
|
|
226
226
|
/** This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards */
|
|
227
|
-
allowedHttpMethods?: WafConfigAllowedHttpMethodsList;
|
|
228
|
-
allowedHttpVersions?: WafConfigAllowedHttpVersionsList;
|
|
227
|
+
allowedHttpMethods?: WafConfigAllowedHttpMethodsList | undefined;
|
|
228
|
+
allowedHttpVersions?: WafConfigAllowedHttpVersionsList | undefined;
|
|
229
229
|
/** This allow list restricts which Content-Type headers are accepted in request bodies. Format: Must be `type/subtype` with no spaces. Common content types: - `application/json` - `application/x-www-form-urlencoded` - `multipart/form-data` - `text/html` - `text/plain` - `application/xml` */
|
|
230
|
-
allowedRequestContentTypes?: WafConfigAllowedRequestContentTypesList;
|
|
230
|
+
allowedRequestContentTypes?: WafConfigAllowedRequestContentTypesList | undefined;
|
|
231
231
|
/** Ids of WAF Collections to mark as disabled */
|
|
232
|
-
disabledRuleCollectionIds?: WafConfigDisabledRuleCollectionIdsList;
|
|
232
|
+
disabledRuleCollectionIds?: WafConfigDisabledRuleCollectionIdsList | undefined;
|
|
233
233
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
234
|
-
disabledRuleGroupIds?: WafConfigDisabledRuleGroupIdsList;
|
|
234
|
+
disabledRuleGroupIds?: WafConfigDisabledRuleGroupIdsList | undefined;
|
|
235
235
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
236
|
-
disabledRuleIds?: WafConfigDisabledRuleIdsList;
|
|
236
|
+
disabledRuleIds?: WafConfigDisabledRuleIdsList | undefined;
|
|
237
237
|
/** Ids of WAF Collections to mark as enabled */
|
|
238
|
-
enabledRuleCollectionIds?: WafConfigEnabledRuleCollectionIdsList;
|
|
238
|
+
enabledRuleCollectionIds?: WafConfigEnabledRuleCollectionIdsList | undefined;
|
|
239
239
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
240
|
-
enabledRuleGroupIds?: WafConfigEnabledRuleGroupIdsList;
|
|
240
|
+
enabledRuleGroupIds?: WafConfigEnabledRuleGroupIdsList | undefined;
|
|
241
241
|
/** Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. */
|
|
242
242
|
enabledRuleIds: WafConfigEnabledRuleIdsList;
|
|
243
243
|
/** Ids of WAF Collections to mark as log Only. */
|
|
244
|
-
logOnlyRuleCollectionIds?: WafConfigLogOnlyRuleCollectionIdsList;
|
|
244
|
+
logOnlyRuleCollectionIds?: WafConfigLogOnlyRuleCollectionIdsList | undefined;
|
|
245
245
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
246
|
-
logOnlyRuleGroupIds?: WafConfigLogOnlyRuleGroupIdsList;
|
|
246
|
+
logOnlyRuleGroupIds?: WafConfigLogOnlyRuleGroupIdsList | undefined;
|
|
247
247
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
248
|
-
logOnlyRuleIds?: WafConfigLogOnlyRuleIdsList;
|
|
248
|
+
logOnlyRuleIds?: WafConfigLogOnlyRuleIdsList | undefined;
|
|
249
249
|
mode: WafMode | (string & {});
|
|
250
|
-
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
250
|
+
paranoiaLevel?: WafParanoiaLevel | (string & {}) | undefined;
|
|
251
251
|
type: WafType | (string & {});
|
|
252
252
|
}
|
|
253
253
|
export interface CreateDistributionRequest {
|
|
@@ -256,29 +256,29 @@ export interface CreateDistributionRequest {
|
|
|
256
256
|
/** Configuration for the content origin backend. */
|
|
257
257
|
backend: CreateDistributionRequestBackend;
|
|
258
258
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
259
|
-
blockedCountries?: CreateDistributionRequestBlockedCountriesList;
|
|
259
|
+
blockedCountries?: CreateDistributionRequestBlockedCountriesList | undefined;
|
|
260
260
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
261
|
-
blockedIps?: CreateDistributionRequestBlockedIpsList;
|
|
262
|
-
cacheConfig?: CacheConfigCreate;
|
|
261
|
+
blockedIps?: CreateDistributionRequestBlockedIpsList | undefined;
|
|
262
|
+
cacheConfig?: CacheConfigCreate | undefined;
|
|
263
263
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
264
|
-
defaultCacheDuration?: string;
|
|
264
|
+
defaultCacheDuration?: string | undefined;
|
|
265
265
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
266
|
-
forwardHostHeader?: boolean;
|
|
266
|
+
forwardHostHeader?: boolean | undefined;
|
|
267
267
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
268
|
-
intentId?: string;
|
|
268
|
+
intentId?: string | undefined;
|
|
269
269
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
270
|
-
labels?: CreateDistributionRequestLabelsMap;
|
|
271
|
-
logSink?: CreateDistributionRequestLogSink;
|
|
270
|
+
labels?: CreateDistributionRequestLabelsMap | undefined;
|
|
271
|
+
logSink?: CreateDistributionRequestLogSink | undefined;
|
|
272
272
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
273
|
-
monthlyLimitBytes?: number;
|
|
274
|
-
optimizer?: Optimizer;
|
|
275
|
-
redirects?: RedirectConfig;
|
|
273
|
+
monthlyLimitBytes?: number | undefined;
|
|
274
|
+
optimizer?: Optimizer | undefined;
|
|
275
|
+
redirects?: RedirectConfig | undefined;
|
|
276
276
|
/** Define in which regions you would like your content to be cached. */
|
|
277
277
|
regions: CreateDistributionRequestRegionsList;
|
|
278
278
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
279
|
-
stripResponseCookies?: boolean;
|
|
280
|
-
tls?: TlsConfig;
|
|
281
|
-
waf?: WafConfig;
|
|
279
|
+
stripResponseCookies?: boolean | undefined;
|
|
280
|
+
tls?: TlsConfig | undefined;
|
|
281
|
+
waf?: WafConfig | undefined;
|
|
282
282
|
}
|
|
283
283
|
export type HttpBackendGeofencingValueList = Array<string>;
|
|
284
284
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
@@ -359,16 +359,16 @@ export interface Config {
|
|
|
359
359
|
blockedIps: ConfigBlockedIpsList;
|
|
360
360
|
cacheConfig: CacheConfig;
|
|
361
361
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
362
|
-
defaultCacheDuration?: string | null;
|
|
362
|
+
defaultCacheDuration?: string | null | undefined;
|
|
363
363
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
364
364
|
forwardHostHeader: boolean;
|
|
365
365
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
366
|
-
labels?: ConfigLabelsMap;
|
|
367
|
-
logSink?: ConfigLogSink;
|
|
366
|
+
labels?: ConfigLabelsMap | undefined;
|
|
367
|
+
logSink?: ConfigLogSink | undefined;
|
|
368
368
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
369
|
-
monthlyLimitBytes?: number | null;
|
|
370
|
-
optimizer?: Optimizer;
|
|
371
|
-
redirects?: RedirectConfig;
|
|
369
|
+
monthlyLimitBytes?: number | null | undefined;
|
|
370
|
+
optimizer?: Optimizer | undefined;
|
|
371
|
+
redirects?: RedirectConfig | undefined;
|
|
372
372
|
regions: ConfigRegionsList;
|
|
373
373
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
374
374
|
stripResponseCookies: boolean;
|
|
@@ -380,7 +380,7 @@ export type DomainCertificateType = "managed" | "custom";
|
|
|
380
380
|
export type StatusErrorKey = "UNKNOWN" | "CUSTOM_DOMAIN_CNAME_MISSING" | "CUSTOM_DOMAIN_ALREADY_IN_USE" | "PUBLIC_BETA_QUOTA_REACHED" | "LOG_SINK_INSTANCE_UNAVAILABLE" | "EXTERNAL_QUOTA_REACHED";
|
|
381
381
|
export interface StatusError {
|
|
382
382
|
/** A german translation string corresponding to the error key. Note that we do not guarantee german translations are present. */
|
|
383
|
-
de?: string;
|
|
383
|
+
de?: string | undefined;
|
|
384
384
|
/** An english translation string corresponding to the error key. An english translation key is always present. */
|
|
385
385
|
en: string;
|
|
386
386
|
/** An enum value that describes a Status Error. */
|
|
@@ -396,7 +396,7 @@ export type DomainType = "managed" | "custom";
|
|
|
396
396
|
export interface Domain {
|
|
397
397
|
certificateType: DomainCertificateType;
|
|
398
398
|
/** This object is present if the custom domain has errors. */
|
|
399
|
-
errors?: DomainErrorsList;
|
|
399
|
+
errors?: DomainErrorsList | undefined;
|
|
400
400
|
/** The domain. If this is a custom domain, you can call the GetCustomDomain Endpoint */
|
|
401
401
|
name: string;
|
|
402
402
|
status: DomainStatus;
|
|
@@ -459,7 +459,7 @@ export interface Distribution {
|
|
|
459
459
|
createdAt: string;
|
|
460
460
|
domains: DistributionDomainsList;
|
|
461
461
|
/** This object may be present if, and only if the distribution has encountered an error state. */
|
|
462
|
-
errors?: DistributionErrorsList;
|
|
462
|
+
errors?: DistributionErrorsList | undefined;
|
|
463
463
|
id: string;
|
|
464
464
|
projectId: string;
|
|
465
465
|
/** - `CREATING`: The distribution was just created. All the relevant resources are created in the background. Once fully reconciled, this switches to `ACTIVE`. If there are any issues, the status changes to `ERROR`. You can look at the `errors` array to get more infos. - `ACTIVE`: The usual state. The desired configuration is synced, there are no errors - `UPDATING`: The state when there is a discrepancy between the desired and actual configuration state. This occurs right after an update. Will switch to `ACTIVE` or `ERROR`, depending on if synchronizing succeeds or not. - `DELETING`: The state right after a delete request was received. The distribution will stay in this status until all resources have been successfully removed, or until we encounter an `ERROR` state. **NOTE:** You can keep fetching the distribution while it is deleting. After successful deletion, trying to get a distribution will return a 404 Not Found response - `ERROR`: The error state. Look at the `errors` array for more info. */
|
|
@@ -467,7 +467,7 @@ export interface Distribution {
|
|
|
467
467
|
/** RFC3339 string which returns the last time the distribution configuration was modified. */
|
|
468
468
|
updatedAt: string;
|
|
469
469
|
/** For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** */
|
|
470
|
-
waf?: DistributionWaf;
|
|
470
|
+
waf?: DistributionWaf | undefined;
|
|
471
471
|
}
|
|
472
472
|
export interface CreateDistributionResponse {
|
|
473
473
|
distribution: Distribution;
|
|
@@ -477,31 +477,31 @@ export interface DeleteCustomDomainRequest {
|
|
|
477
477
|
projectId: string;
|
|
478
478
|
distributionId: string;
|
|
479
479
|
domain: string;
|
|
480
|
-
intentId?: string;
|
|
480
|
+
intentId?: string | undefined;
|
|
481
481
|
}
|
|
482
482
|
/** This object is present if the custom domain has errors. */
|
|
483
483
|
export type CustomDomainErrorsList = Array<StatusError>;
|
|
484
484
|
/** Definition of a custom domain */
|
|
485
485
|
export interface CustomDomain {
|
|
486
486
|
/** This object is present if the custom domain has errors. */
|
|
487
|
-
errors?: CustomDomainErrorsList;
|
|
487
|
+
errors?: CustomDomainErrorsList | undefined;
|
|
488
488
|
/** The domain. Can be used as input for the GetCustomDomain endpoint */
|
|
489
489
|
name: string;
|
|
490
490
|
status: DomainStatus;
|
|
491
491
|
}
|
|
492
492
|
/** Returns the custom domain that was deleted while the deletion has not completed yet. After the deletion was successful the response will be empty. */
|
|
493
493
|
export interface DeleteCustomDomainResponse {
|
|
494
|
-
customDomain?: CustomDomain;
|
|
494
|
+
customDomain?: CustomDomain | undefined;
|
|
495
495
|
}
|
|
496
496
|
export interface DeleteDistributionRequest {
|
|
497
497
|
/** Your STACKIT Project Id */
|
|
498
498
|
projectId: string;
|
|
499
499
|
distributionId: string;
|
|
500
500
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. */
|
|
501
|
-
intentId?: string;
|
|
501
|
+
intentId?: string | undefined;
|
|
502
502
|
}
|
|
503
503
|
export interface DeleteDistributionResponse {
|
|
504
|
-
distribution?: Distribution;
|
|
504
|
+
distribution?: Distribution | undefined;
|
|
505
505
|
}
|
|
506
506
|
export interface FindCachePathsRequest {
|
|
507
507
|
/** Your STACKIT Project Id */
|
|
@@ -522,7 +522,7 @@ export interface GetCacheInfoRequest {
|
|
|
522
522
|
/** Your STACKIT Project Id */
|
|
523
523
|
projectId: string;
|
|
524
524
|
distributionId: string;
|
|
525
|
-
purgePath?: string;
|
|
525
|
+
purgePath?: string | undefined;
|
|
526
526
|
}
|
|
527
527
|
export type GetCacheInfoResponseHistoryEntryType = "full" | "granular";
|
|
528
528
|
export interface GetCacheInfoResponseHistoryEntry {
|
|
@@ -563,7 +563,7 @@ export interface GetDistributionRequest {
|
|
|
563
563
|
projectId: string;
|
|
564
564
|
distributionId: string;
|
|
565
565
|
/** If set, the top level of a distribution contains a `waf` property, which defines the status of the waf. This includes a list of all resolved rules. */
|
|
566
|
-
withWafStatus?: boolean;
|
|
566
|
+
withWafStatus?: boolean | undefined;
|
|
567
567
|
}
|
|
568
568
|
export interface GetDistributionResponse {
|
|
569
569
|
distribution: Distribution;
|
|
@@ -578,26 +578,26 @@ export interface GetLogsRequest {
|
|
|
578
578
|
/** Your CDN distribution Id */
|
|
579
579
|
distributionId: string;
|
|
580
580
|
/** the start of the time range for which logs should be returned */
|
|
581
|
-
from?: string;
|
|
581
|
+
from?: string | undefined;
|
|
582
582
|
/** the end of the time range for which logs should be returned. If not specified, "now" is used. */
|
|
583
|
-
to?: string;
|
|
583
|
+
to?: string | undefined;
|
|
584
584
|
/** Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) */
|
|
585
|
-
pageSize?: number;
|
|
585
|
+
pageSize?: number | undefined;
|
|
586
586
|
/** Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get "pushed" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. */
|
|
587
|
-
pageIdentifier?: string;
|
|
587
|
+
pageIdentifier?: string | undefined;
|
|
588
588
|
/** Sorts the log messages by a specific field. Defaults to `timestamp`. Supported sort options: - `timestamp` - `dataCenterRegion` - `requestCountryCode` - `statusCode` - `cacheHit` - `size` - `path` - `host` */
|
|
589
|
-
sortBy?: GetLogsRequestSortBy | (string & {});
|
|
590
|
-
sortOrder?: GetLogsRequestSortOrder | (string & {});
|
|
589
|
+
sortBy?: GetLogsRequestSortBy | (string & {}) | undefined;
|
|
590
|
+
sortOrder?: GetLogsRequestSortOrder | (string & {}) | undefined;
|
|
591
591
|
/** If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked */
|
|
592
|
-
wafAction?: WAFRuleAction | (string & {});
|
|
592
|
+
wafAction?: WAFRuleAction | (string & {}) | undefined;
|
|
593
593
|
/** Filters by the CDN data center region that served the request. Can be combined with other filters */
|
|
594
|
-
dataCenterRegion?: string;
|
|
594
|
+
dataCenterRegion?: string | undefined;
|
|
595
595
|
/** Filters by the originating country of the user request. Can be combined with other filters */
|
|
596
|
-
requestCountryCode?: string;
|
|
596
|
+
requestCountryCode?: string | undefined;
|
|
597
597
|
/** Filters by the HTTP status code returned to the client. Can be combined with other filters */
|
|
598
|
-
statusCode?: number;
|
|
598
|
+
statusCode?: number | undefined;
|
|
599
599
|
/** Filters based on whether the request was served from the CDN cache. Can be combined with other filters */
|
|
600
|
-
cacheHit?: boolean;
|
|
600
|
+
cacheHit?: boolean | undefined;
|
|
601
601
|
}
|
|
602
602
|
export type WAFViolationRequestHeadersMap = {
|
|
603
603
|
[key: string]: string | undefined;
|
|
@@ -626,12 +626,12 @@ export interface DistributionLogsRecord {
|
|
|
626
626
|
size: number;
|
|
627
627
|
statusCode: number;
|
|
628
628
|
timestamp: string;
|
|
629
|
-
wafViolation?: WAFViolation;
|
|
629
|
+
wafViolation?: WAFViolation | undefined;
|
|
630
630
|
}
|
|
631
631
|
export type GetLogsResponseLogsList = Array<DistributionLogsRecord>;
|
|
632
632
|
export interface GetLogsResponse {
|
|
633
633
|
logs: GetLogsResponseLogsList;
|
|
634
|
-
nextPageIdentifier?: string;
|
|
634
|
+
nextPageIdentifier?: string | undefined;
|
|
635
635
|
}
|
|
636
636
|
export interface GetLogsSearchFiltersRequest {
|
|
637
637
|
/** Your STACKIT Project ID. */
|
|
@@ -639,7 +639,7 @@ export interface GetLogsSearchFiltersRequest {
|
|
|
639
639
|
/** Your CDN distribution ID. */
|
|
640
640
|
distributionId: string;
|
|
641
641
|
/** Optional search string. Will search the **values** for the text input. */
|
|
642
|
-
filter?: string;
|
|
642
|
+
filter?: string | undefined;
|
|
643
643
|
}
|
|
644
644
|
export type GetLogsSearchFiltersResponseCacheItem = "HIT" | "MISS";
|
|
645
645
|
export type GetLogsSearchFiltersResponseCacheList = Array<GetLogsSearchFiltersResponseCacheItem>;
|
|
@@ -681,9 +681,9 @@ export interface GetStatisticsRequest {
|
|
|
681
681
|
/** the start of the time range for which statistics should be returned */
|
|
682
682
|
from: string;
|
|
683
683
|
/** the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. */
|
|
684
|
-
to?: string;
|
|
684
|
+
to?: string | undefined;
|
|
685
685
|
/** Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` */
|
|
686
|
-
interval?: GetStatisticsRequestInterval | (string & {});
|
|
686
|
+
interval?: GetStatisticsRequestInterval | (string & {}) | undefined;
|
|
687
687
|
}
|
|
688
688
|
export interface DistributionStatisticsRecordEntry {
|
|
689
689
|
/** Number of cached requests that were served */
|
|
@@ -725,19 +725,19 @@ export interface ListDistributionsRequest {
|
|
|
725
725
|
/** Your STACKIT Project Id */
|
|
726
726
|
projectId: string;
|
|
727
727
|
/** Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) */
|
|
728
|
-
pageSize?: number;
|
|
728
|
+
pageSize?: number | undefined;
|
|
729
729
|
/** If set, the top level of a distribution contains a `waf` property, which defines the status of the waf. This includes a list of all resolved rules. */
|
|
730
|
-
withWafStatus?: boolean;
|
|
730
|
+
withWafStatus?: boolean | undefined;
|
|
731
731
|
/** Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get "pushed" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. */
|
|
732
|
-
pageIdentifier?: string;
|
|
732
|
+
pageIdentifier?: string | undefined;
|
|
733
733
|
/** The following sort options exist. We default to `createdAt` - `id` - Sort by distribution Id using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originUrl using String comparison - `status` - Sort by distribution status, using String comparison - `originUrlRelated` - The originUrl is segmented and reversed before sorting. E.g. `www.example.com` is converted to `com.example.www` for sorting. This way, distributions pointing to the same domain trees are grouped next to each other. */
|
|
734
|
-
sortBy?: ListDistributionsRequestSortBy | (string & {});
|
|
735
|
-
sortOrder?: ListDistributionsRequestSortOrder | (string & {});
|
|
734
|
+
sortBy?: ListDistributionsRequestSortBy | (string & {}) | undefined;
|
|
735
|
+
sortOrder?: ListDistributionsRequestSortOrder | (string & {}) | undefined;
|
|
736
736
|
}
|
|
737
737
|
export type ListDistributionsResponseDistributionsList = Array<Distribution>;
|
|
738
738
|
export interface ListDistributionsResponse {
|
|
739
739
|
distributions: ListDistributionsResponseDistributionsList;
|
|
740
|
-
nextPageIdentifier?: string;
|
|
740
|
+
nextPageIdentifier?: string | undefined;
|
|
741
741
|
}
|
|
742
742
|
export interface ListWafCollectionsRequest {
|
|
743
743
|
/** Your STACKIT Project Id */
|
|
@@ -749,7 +749,7 @@ export type LocalizedString = {
|
|
|
749
749
|
};
|
|
750
750
|
export interface WafRule {
|
|
751
751
|
/** Optional CoreRuleSet rule Id in case this is a CRS rule */
|
|
752
|
-
code?: string;
|
|
752
|
+
code?: string | undefined;
|
|
753
753
|
description: LocalizedString;
|
|
754
754
|
id: string;
|
|
755
755
|
}
|
|
@@ -783,11 +783,11 @@ export type HttpBackendPatchType = "http";
|
|
|
783
783
|
/** A partial HTTP Backend */
|
|
784
784
|
export interface HttpBackendPatch {
|
|
785
785
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
786
|
-
geofencing?: HttpBackendPatchGeofencingMap;
|
|
786
|
+
geofencing?: HttpBackendPatchGeofencingMap | undefined;
|
|
787
787
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
788
|
-
originRequestHeaders?: HttpBackendPatchOriginRequestHeadersMap;
|
|
788
|
+
originRequestHeaders?: HttpBackendPatchOriginRequestHeadersMap | undefined;
|
|
789
789
|
/** The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` */
|
|
790
|
-
originUrl?: string;
|
|
790
|
+
originUrl?: string | undefined;
|
|
791
791
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
792
792
|
type: HttpBackendPatchType;
|
|
793
793
|
}
|
|
@@ -795,10 +795,10 @@ export interface HttpBackendPatch {
|
|
|
795
795
|
export type BucketBackendPatchType = "bucket";
|
|
796
796
|
export interface BucketBackendPatch {
|
|
797
797
|
/** The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`). */
|
|
798
|
-
bucketUrl?: string;
|
|
799
|
-
credentials?: BucketCredentials;
|
|
798
|
+
bucketUrl?: string | undefined;
|
|
799
|
+
credentials?: BucketCredentials | undefined;
|
|
800
800
|
/** The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT). */
|
|
801
|
-
region?: string;
|
|
801
|
+
region?: string | undefined;
|
|
802
802
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
803
803
|
type: BucketBackendPatchType;
|
|
804
804
|
}
|
|
@@ -814,11 +814,11 @@ export type CacheConfigPatchQueryStringVaryParametersList = Array<string>;
|
|
|
814
814
|
/** PATCH variant of `CacheConfig`. Follows the standard PATCH conventions for this API: - Field omitted from the request: current value is left unchanged. - Array field sent as `[]`: current list is cleared. - `queryStringVaryEnabled` is a plain boolean (non-nullable); omit it to leave unchanged. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled`. Sending a non-empty `queryStringVaryParameters` together with `queryStringVaryEnabled=false` is accepted: the list is persisted for later re-activation but does not affect the cache while the flag is false. */
|
|
815
815
|
export interface CacheConfigPatch {
|
|
816
816
|
/** HTTP request header names that participate in the cache key. Omit to leave unchanged; send `[]` to clear. */
|
|
817
|
-
cacheKeyHeaders?: CacheConfigPatchCacheKeyHeadersList;
|
|
817
|
+
cacheKeyHeaders?: CacheConfigPatchCacheKeyHeadersList | undefined;
|
|
818
818
|
/** When true, the CDN varies its cache by the request query string. Omit to leave unchanged. */
|
|
819
|
-
queryStringVaryEnabled?: boolean;
|
|
819
|
+
queryStringVaryEnabled?: boolean | undefined;
|
|
820
820
|
/** Allowlist of query-string parameter names. Omit to leave unchanged; send `[]` to clear. */
|
|
821
|
-
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList;
|
|
821
|
+
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList | undefined;
|
|
822
822
|
}
|
|
823
823
|
/** Labels are key-value string pairs that can be attached to a distribution. JSON Merge Patch is supported, meaning setting a key to null will remove it. */
|
|
824
824
|
export type ConfigPatchLabelsMap = {
|
|
@@ -827,9 +827,9 @@ export type ConfigPatchLabelsMap = {
|
|
|
827
827
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
828
828
|
export type LokiLogSinkPatchType = "loki";
|
|
829
829
|
export interface LokiLogSinkPatch {
|
|
830
|
-
credentials?: LokiLogSinkCredentials;
|
|
830
|
+
credentials?: LokiLogSinkCredentials | undefined;
|
|
831
831
|
/** The fully qualified URL where the CDN should push logs to your Loki instance (for example, `https://loki.example.com/loki/api/v1/push`). */
|
|
832
|
-
pushUrl?: string;
|
|
832
|
+
pushUrl?: string | undefined;
|
|
833
833
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
834
834
|
type: LokiLogSinkPatchType;
|
|
835
835
|
}
|
|
@@ -839,23 +839,23 @@ export type OtlpLogSinkPatchCredentials = OtlpLogSinkBearerCredentials | OtlpLog
|
|
|
839
839
|
export type OtlpLogSinkPatchType = "otlp";
|
|
840
840
|
export interface OtlpLogSinkPatch {
|
|
841
841
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
842
|
-
credentials?: OtlpLogSinkPatchCredentials;
|
|
842
|
+
credentials?: OtlpLogSinkPatchCredentials | undefined;
|
|
843
843
|
/** The fully qualified URL where the CDN should push logs to your OTLP endpoint (for example, `https://otlp.example.com/otlp/v1/logs`). */
|
|
844
|
-
pushUrl?: string;
|
|
844
|
+
pushUrl?: string | undefined;
|
|
845
845
|
/** Defines the type of the log sink. */
|
|
846
846
|
type: OtlpLogSinkPatchType;
|
|
847
847
|
}
|
|
848
848
|
export type ConfigPatchLogSink = LokiLogSinkPatch | OtlpLogSinkPatch;
|
|
849
849
|
export interface OptimizerPatch {
|
|
850
|
-
enabled?: boolean;
|
|
850
|
+
enabled?: boolean | undefined;
|
|
851
851
|
}
|
|
852
852
|
export type ConfigPatchRegionsList = Array<Region | (string & {})>;
|
|
853
853
|
/** Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. */
|
|
854
854
|
export interface TlsConfigPatch {
|
|
855
855
|
/** If set to true, the distribution will accept connections using TLS 1.0. */
|
|
856
|
-
enableTls10?: boolean;
|
|
856
|
+
enableTls10?: boolean | undefined;
|
|
857
857
|
/** If set to true, the distribution will accept connections using TLS 1.1. */
|
|
858
|
-
enableTls11?: boolean;
|
|
858
|
+
enableTls11?: boolean | undefined;
|
|
859
859
|
}
|
|
860
860
|
export type WafConfigPatchAllowedHttpMethodsList = Array<string>;
|
|
861
861
|
export type WafConfigPatchAllowedHttpVersionsList = Array<string>;
|
|
@@ -880,62 +880,62 @@ export type WafConfigPatchLogOnlyRuleGroupIdsList = Array<string>;
|
|
|
880
880
|
export type WafConfigPatchLogOnlyRuleIdsList = Array<string>;
|
|
881
881
|
/** Modify the WAF Configuration ## WAF Rules You can modify the set of enabled, disabled and log-only Rules by modifying these 9 properties: - enabledRuleIds - disabledRuleIds - logOnlyRuleIds - enabledRuleGroupIds - disabledRuleGroupIds - logOnlyRuleGroupIds - enabledRuleCollectionIds - disabledRuleCollectionIds - logOnlyRuleCollectionIds Please inquire the `WafConfig` Description on how the effective configuration is determined. For patching, if an ID is already used in one of the properties, it will be removed (and effectively moved) to the new property. If patching multiple properties with the same ID (e.g. writing `@builtin/crs/response` to `logOnlyRuleCollectionIds` and `enabledRuleCollectionIds`), the request will be rejected with a 400. */
|
|
882
882
|
export interface WafConfigPatch {
|
|
883
|
-
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList;
|
|
884
|
-
allowedHttpVersions?: WafConfigPatchAllowedHttpVersionsList;
|
|
885
|
-
allowedRequestContentTypes?: WafConfigPatchAllowedRequestContentTypesList;
|
|
883
|
+
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList | undefined;
|
|
884
|
+
allowedHttpVersions?: WafConfigPatchAllowedHttpVersionsList | undefined;
|
|
885
|
+
allowedRequestContentTypes?: WafConfigPatchAllowedRequestContentTypesList | undefined;
|
|
886
886
|
/** Ids of WAF Collections to mark as disabled */
|
|
887
|
-
disabledRuleCollectionIds?: WafConfigPatchDisabledRuleCollectionIdsList;
|
|
887
|
+
disabledRuleCollectionIds?: WafConfigPatchDisabledRuleCollectionIdsList | undefined;
|
|
888
888
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
889
|
-
disabledRuleGroupIds?: WafConfigPatchDisabledRuleGroupIdsList;
|
|
889
|
+
disabledRuleGroupIds?: WafConfigPatchDisabledRuleGroupIdsList | undefined;
|
|
890
890
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
891
|
-
disabledRuleIds?: WafConfigPatchDisabledRuleIdsList;
|
|
891
|
+
disabledRuleIds?: WafConfigPatchDisabledRuleIdsList | undefined;
|
|
892
892
|
/** Ids of WAF Collections to mark as enabled */
|
|
893
|
-
enabledRuleCollectionIds?: WafConfigPatchEnabledRuleCollectionIdsList;
|
|
893
|
+
enabledRuleCollectionIds?: WafConfigPatchEnabledRuleCollectionIdsList | undefined;
|
|
894
894
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
895
|
-
enabledRuleGroupIds?: WafConfigPatchEnabledRuleGroupIdsList;
|
|
895
|
+
enabledRuleGroupIds?: WafConfigPatchEnabledRuleGroupIdsList | undefined;
|
|
896
896
|
/** Ids of WAF Rules that are **explicitly** enabled for this distribution. */
|
|
897
|
-
enabledRuleIds?: WafConfigPatchEnabledRuleIdsList;
|
|
897
|
+
enabledRuleIds?: WafConfigPatchEnabledRuleIdsList | undefined;
|
|
898
898
|
/** Ids of WAF Collections to mark as log Only. */
|
|
899
|
-
logOnlyRuleCollectionIds?: WafConfigPatchLogOnlyRuleCollectionIdsList;
|
|
899
|
+
logOnlyRuleCollectionIds?: WafConfigPatchLogOnlyRuleCollectionIdsList | undefined;
|
|
900
900
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
901
|
-
logOnlyRuleGroupIds?: WafConfigPatchLogOnlyRuleGroupIdsList;
|
|
901
|
+
logOnlyRuleGroupIds?: WafConfigPatchLogOnlyRuleGroupIdsList | undefined;
|
|
902
902
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
903
|
-
logOnlyRuleIds?: WafConfigPatchLogOnlyRuleIdsList;
|
|
904
|
-
mode?: WafMode | (string & {});
|
|
905
|
-
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
906
|
-
type?: WafType | (string & {});
|
|
903
|
+
logOnlyRuleIds?: WafConfigPatchLogOnlyRuleIdsList | undefined;
|
|
904
|
+
mode?: WafMode | (string & {}) | undefined;
|
|
905
|
+
paranoiaLevel?: WafParanoiaLevel | (string & {}) | undefined;
|
|
906
|
+
type?: WafType | (string & {}) | undefined;
|
|
907
907
|
}
|
|
908
908
|
export interface ConfigPatch {
|
|
909
|
-
backend?: ConfigPatchBackend;
|
|
909
|
+
backend?: ConfigPatchBackend | undefined;
|
|
910
910
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
911
|
-
blockedCountries?: ConfigPatchBlockedCountriesList;
|
|
911
|
+
blockedCountries?: ConfigPatchBlockedCountriesList | undefined;
|
|
912
912
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
913
|
-
blockedIps?: ConfigPatchBlockedIpsList;
|
|
914
|
-
cacheConfig?: CacheConfigPatch;
|
|
913
|
+
blockedIps?: ConfigPatchBlockedIpsList | undefined;
|
|
914
|
+
cacheConfig?: CacheConfigPatch | undefined;
|
|
915
915
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
916
|
-
defaultCacheDuration?: string | null;
|
|
916
|
+
defaultCacheDuration?: string | null | undefined;
|
|
917
917
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
918
|
-
forwardHostHeader?: boolean;
|
|
918
|
+
forwardHostHeader?: boolean | undefined;
|
|
919
919
|
/** Labels are key-value string pairs that can be attached to a distribution. JSON Merge Patch is supported, meaning setting a key to null will remove it. */
|
|
920
|
-
labels?: ConfigPatchLabelsMap;
|
|
921
|
-
logSink?: ConfigPatchLogSink | null;
|
|
920
|
+
labels?: ConfigPatchLabelsMap | undefined;
|
|
921
|
+
logSink?: ConfigPatchLogSink | null | undefined;
|
|
922
922
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
923
|
-
monthlyLimitBytes?: number | null;
|
|
924
|
-
optimizer?: OptimizerPatch;
|
|
925
|
-
redirects?: RedirectConfig;
|
|
926
|
-
regions?: ConfigPatchRegionsList;
|
|
923
|
+
monthlyLimitBytes?: number | null | undefined;
|
|
924
|
+
optimizer?: OptimizerPatch | undefined;
|
|
925
|
+
redirects?: RedirectConfig | undefined;
|
|
926
|
+
regions?: ConfigPatchRegionsList | undefined;
|
|
927
927
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
928
|
-
stripResponseCookies?: boolean;
|
|
929
|
-
tls?: TlsConfigPatch;
|
|
930
|
-
waf?: WafConfigPatch;
|
|
928
|
+
stripResponseCookies?: boolean | undefined;
|
|
929
|
+
tls?: TlsConfigPatch | undefined;
|
|
930
|
+
waf?: WafConfigPatch | undefined;
|
|
931
931
|
}
|
|
932
932
|
export interface PatchDistributionRequest {
|
|
933
933
|
/** Your STACKIT Project Id */
|
|
934
934
|
projectId: string;
|
|
935
935
|
distributionId: string;
|
|
936
|
-
config?: ConfigPatch;
|
|
936
|
+
config?: ConfigPatch | undefined;
|
|
937
937
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
938
|
-
intentId?: string;
|
|
938
|
+
intentId?: string | undefined;
|
|
939
939
|
}
|
|
940
940
|
export interface PatchDistributionResponse {
|
|
941
941
|
distribution: Distribution;
|
|
@@ -945,7 +945,7 @@ export interface PurgeCacheRequest {
|
|
|
945
945
|
projectId: string;
|
|
946
946
|
distributionId: string;
|
|
947
947
|
/** Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. */
|
|
948
|
-
path?: string;
|
|
948
|
+
path?: string | undefined;
|
|
949
949
|
}
|
|
950
950
|
export type PurgeCacheResponse2 = unknown;
|
|
951
951
|
/** This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you */
|
|
@@ -957,7 +957,7 @@ export interface PutCustomDomainCustomCertificate {
|
|
|
957
957
|
/** base64-encoded PEM encoded key */
|
|
958
958
|
key: string;
|
|
959
959
|
/** When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. */
|
|
960
|
-
skipDnsCheck?: boolean;
|
|
960
|
+
skipDnsCheck?: boolean | undefined;
|
|
961
961
|
type: string;
|
|
962
962
|
}
|
|
963
963
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
@@ -968,15 +968,15 @@ export interface PutCustomDomainRequest {
|
|
|
968
968
|
distributionId: string;
|
|
969
969
|
domain: string;
|
|
970
970
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
971
|
-
certificate?: PutCustomDomainRequestCertificate;
|
|
971
|
+
certificate?: PutCustomDomainRequestCertificate | undefined;
|
|
972
972
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
973
|
-
intentId?: string;
|
|
973
|
+
intentId?: string | undefined;
|
|
974
974
|
}
|
|
975
975
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
976
976
|
export type PutCustomDomainResponseCertificate = GetCustomDomainManagedCertificate | GetCustomDomainCustomCertificate;
|
|
977
977
|
export interface PutCustomDomainResponse {
|
|
978
978
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
979
|
-
certificate?: PutCustomDomainResponseCertificate;
|
|
979
|
+
certificate?: PutCustomDomainResponseCertificate | undefined;
|
|
980
980
|
customDomain: CustomDomain;
|
|
981
981
|
}
|
|
982
982
|
export type CreateDistributionError = BadRequest | UnprocessableEntity | StackitOpError;
|