-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAzureAppConfigurationOptions.ts
More file actions
69 lines (59 loc) · 2.16 KB
/
AzureAppConfigurationOptions.ts
File metadata and controls
69 lines (59 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { AppConfigurationClientOptions } from "@azure/app-configuration";
import { KeyVaultOptions } from "./keyvault/KeyVaultOptions.js";
import { RefreshOptions } from "./refresh/refreshOptions.js";
import { SettingSelector } from "./types.js";
import { FeatureFlagOptions } from "./featureManagement/FeatureFlagOptions.js";
import { StartupOptions } from "./StartupOptions.js";
export interface AzureAppConfigurationOptions {
/**
* Specifies what key-values to include in the configuration provider.
*
* @remarks
* If no selectors are specified then all key-values with no label will be included.
*/
selectors?: SettingSelector[];
/**
* Specifies prefixes to be trimmed from the keys of all key-values retrieved from Azure App Configuration.
*
* @remarks
* This is useful when you want to remove a common prefix from all keys to avoid repetition.
* The provided prefixes will be sorted in descending order and the longest matching prefix will be trimmed first.
*/
trimKeyPrefixes?: string[];
/**
* Specifies custom options to be used when creating the AppConfigurationClient.
*/
clientOptions?: AppConfigurationClientOptions;
/**
* Specifies options used to resolve Vey Vault references.
*/
keyVaultOptions?: KeyVaultOptions;
/**
* Specifies options for dynamic refresh key-values.
*/
refreshOptions?: RefreshOptions;
/**
* Specifies options used to configure feature flags.
*/
featureFlagOptions?: FeatureFlagOptions;
/**
* Specifies options used to configure provider startup.
*/
startupOptions?: StartupOptions;
/**
* Specifies whether to enable replica discovery or not.
*
* @remarks
* If not specified, the default value is true.
*/
replicaDiscoveryEnabled?: boolean;
/**
* Specifies whether to enable load balance or not.
*
* @remarks
* If not specified, the default value is false.
*/
loadBalancingEnabled?: boolean;
}