@grafana/aws-sdk 0.3.5 → 0.4.1
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/dist/esm/components/ConnectionConfig.js +35 -56
- package/dist/esm/components/ConnectionConfig.js.map +1 -1
- package/dist/esm/regions.js +9 -0
- package/dist/esm/regions.js.map +1 -1
- package/dist/esm/sql/ConfigEditor/ConfigSelect.js +0 -1
- package/dist/esm/sql/ConfigEditor/ConfigSelect.js.map +1 -1
- package/dist/esm/sql/ConfigEditor/InlineInput.js.map +1 -1
- package/dist/esm/sql/QueryEditor/FillValueSelect.js +4 -37
- package/dist/esm/sql/QueryEditor/FillValueSelect.js.map +1 -1
- package/dist/esm/sql/QueryEditor/FormatSelect.js +3 -13
- package/dist/esm/sql/QueryEditor/FormatSelect.js.map +1 -1
- package/dist/esm/sql/QueryEditor/QueryEditorHeader.js +3 -1
- package/dist/esm/sql/QueryEditor/QueryEditorHeader.js.map +1 -1
- package/dist/esm/sql/ResourceSelector.js +3 -26
- package/dist/esm/sql/ResourceSelector.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/index.d.ts +13 -19
- package/dist/index.js +53 -320
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/dist/esm/components/NewConnectionConfig.js +0 -200
- package/dist/esm/components/NewConnectionConfig.js.map +0 -1
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Field, Select, Input, ButtonGroup, ToolbarButton, Collapse } from '@grafana/ui';
|
|
3
|
-
import { onUpdateDatasourceJsonDataOptionSelect, onUpdateDatasourceJsonDataOption, onUpdateDatasourceResetOption, onUpdateDatasourceSecureJsonDataOption } from '@grafana/data';
|
|
4
|
-
import { AwsAuthType } from '../types.js';
|
|
5
|
-
import { awsAuthProviderOptions } from '../providers.js';
|
|
6
|
-
import { ConfigSection, ConfigSubSection } from '@grafana/experimental';
|
|
7
|
-
import { assumeRoleInstructionsStyle } from './ConnectionConfig.styles.js';
|
|
8
|
-
|
|
9
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
-
var __objRest = (source, exclude) => {
|
|
13
|
-
var target = {};
|
|
14
|
-
for (var prop in source)
|
|
15
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16
|
-
target[prop] = source[prop];
|
|
17
|
-
if (source != null && __getOwnPropSymbols)
|
|
18
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
19
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
20
|
-
target[prop] = source[prop];
|
|
21
|
-
}
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
const NewConnectionConfig = (_a) => {
|
|
25
|
-
var _b = _a, {
|
|
26
|
-
isARNInstructionsOpen,
|
|
27
|
-
setIsARNInstructionsOpen,
|
|
28
|
-
awsAssumeRoleEnabled,
|
|
29
|
-
currentProvider,
|
|
30
|
-
awsAllowedAuthProviders,
|
|
31
|
-
skipHeader,
|
|
32
|
-
regions
|
|
33
|
-
} = _b, props = __objRest(_b, [
|
|
34
|
-
"isARNInstructionsOpen",
|
|
35
|
-
"setIsARNInstructionsOpen",
|
|
36
|
-
"awsAssumeRoleEnabled",
|
|
37
|
-
"currentProvider",
|
|
38
|
-
"awsAllowedAuthProviders",
|
|
39
|
-
"skipHeader",
|
|
40
|
-
"regions"
|
|
41
|
-
]);
|
|
42
|
-
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
43
|
-
const options = props.options;
|
|
44
|
-
return /* @__PURE__ */ React.createElement("div", { "data-testid": "connection-config" }, /* @__PURE__ */ React.createElement(ConfigSection, { title: skipHeader ? "" : "Connection Details", "data-testid": "connection-config" }, /* @__PURE__ */ React.createElement(ConfigSubSection, { title: "Authentication" }, /* @__PURE__ */ React.createElement(
|
|
45
|
-
Field,
|
|
46
|
-
{
|
|
47
|
-
label: "Authentication Provider",
|
|
48
|
-
description: "Specify which AWS credentials chain to use.",
|
|
49
|
-
htmlFor: "authProvider"
|
|
50
|
-
},
|
|
51
|
-
/* @__PURE__ */ React.createElement(
|
|
52
|
-
Select,
|
|
53
|
-
{
|
|
54
|
-
inputId: "authProvider",
|
|
55
|
-
value: currentProvider,
|
|
56
|
-
options: awsAuthProviderOptions.filter((opt) => awsAllowedAuthProviders.includes(opt.value)),
|
|
57
|
-
defaultValue: options.jsonData.authType,
|
|
58
|
-
onChange: (option) => {
|
|
59
|
-
onUpdateDatasourceJsonDataOptionSelect(props, "authType")(option);
|
|
60
|
-
},
|
|
61
|
-
menuShouldPortal: true
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
), options.jsonData.authType === "credentials" && /* @__PURE__ */ React.createElement(
|
|
65
|
-
Field,
|
|
66
|
-
{
|
|
67
|
-
label: "Credentials Profile Name",
|
|
68
|
-
description: "Credentials profile name, as specified in ~/.aws/credentials, leave blank for default.",
|
|
69
|
-
htmlFor: "credentialsProfileName"
|
|
70
|
-
},
|
|
71
|
-
/* @__PURE__ */ React.createElement(
|
|
72
|
-
Input,
|
|
73
|
-
{
|
|
74
|
-
id: "credentialsProfileName",
|
|
75
|
-
placeholder: "default",
|
|
76
|
-
value: options.jsonData.profile,
|
|
77
|
-
onChange: onUpdateDatasourceJsonDataOption(props, "profile")
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
), options.jsonData.authType === "keys" && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Field, { label: "Access Key ID", htmlFor: "accessKeyId" }, ((_a2 = props.options.secureJsonFields) == null ? void 0 : _a2.accessKey) ? /* @__PURE__ */ React.createElement(ButtonGroup, null, /* @__PURE__ */ React.createElement(Input, { disabled: true, placeholder: "Configured", id: "accessKeyId" }), /* @__PURE__ */ React.createElement(
|
|
81
|
-
ToolbarButton,
|
|
82
|
-
{
|
|
83
|
-
icon: "edit",
|
|
84
|
-
tooltip: "Edit Access Key ID",
|
|
85
|
-
type: "button",
|
|
86
|
-
onClick: onUpdateDatasourceResetOption(props, "accessKey")
|
|
87
|
-
}
|
|
88
|
-
)) : /* @__PURE__ */ React.createElement(
|
|
89
|
-
Input,
|
|
90
|
-
{
|
|
91
|
-
id: "accessKeyId",
|
|
92
|
-
value: (_c = (_b2 = options.secureJsonData) == null ? void 0 : _b2.accessKey) != null ? _c : "",
|
|
93
|
-
onChange: onUpdateDatasourceSecureJsonDataOption(props, "accessKey")
|
|
94
|
-
}
|
|
95
|
-
)), /* @__PURE__ */ React.createElement(Field, { label: "Secret Access Key", htmlFor: "secretKey" }, ((_d = props.options.secureJsonFields) == null ? void 0 : _d.secretKey) ? /* @__PURE__ */ React.createElement(ButtonGroup, null, /* @__PURE__ */ React.createElement(Input, { disabled: true, placeholder: "Configured" }), /* @__PURE__ */ React.createElement(
|
|
96
|
-
ToolbarButton,
|
|
97
|
-
{
|
|
98
|
-
id: "secretKey",
|
|
99
|
-
icon: "edit",
|
|
100
|
-
type: "button",
|
|
101
|
-
tooltip: "Edit Secret Access Key",
|
|
102
|
-
onClick: onUpdateDatasourceResetOption(props, "secretKey")
|
|
103
|
-
}
|
|
104
|
-
)) : /* @__PURE__ */ React.createElement(
|
|
105
|
-
Input,
|
|
106
|
-
{
|
|
107
|
-
id: "secretKey",
|
|
108
|
-
value: (_f = (_e = options.secureJsonData) == null ? void 0 : _e.secretKey) != null ? _f : "",
|
|
109
|
-
onChange: onUpdateDatasourceSecureJsonDataOption(props, "secretKey")
|
|
110
|
-
}
|
|
111
|
-
)))), /* @__PURE__ */ React.createElement(ConfigSubSection, { title: "Assume Role" }, options.jsonData.authType === AwsAuthType.GrafanaAssumeRole && /* @__PURE__ */ React.createElement("div", { className: assumeRoleInstructionsStyle }, /* @__PURE__ */ React.createElement(
|
|
112
|
-
Collapse,
|
|
113
|
-
{
|
|
114
|
-
label: "How to create an IAM role for grafana to assume:",
|
|
115
|
-
collapsible: true,
|
|
116
|
-
isOpen: isARNInstructionsOpen,
|
|
117
|
-
onToggle: () => setIsARNInstructionsOpen(!isARNInstructionsOpen)
|
|
118
|
-
},
|
|
119
|
-
/* @__PURE__ */ React.createElement("ol", null, /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("p", null, "1. Create a new IAM role in the AWS console, and select ", /* @__PURE__ */ React.createElement("code", null, "Another AWS account"), " as the", " ", /* @__PURE__ */ React.createElement("code", null, "Trusted entity"), ".")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("p", null, "2. Enter the account ID of the Grafana account that has permission to assume this role:", /* @__PURE__ */ React.createElement("code", null, " 008923505280 "), " and check the ", /* @__PURE__ */ React.createElement("code", null, "Require external ID"), " box.")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("p", null, "3. Enter the following external ID:", " ", /* @__PURE__ */ React.createElement("code", null, props.externalId || "External Id is currently unavailable"), " and click", " ", /* @__PURE__ */ React.createElement("code", null, "Next"), ".")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("p", null, "4. Add any required permissions you would like Grafana to be able to access on your behalf. For more details on our permissions please", " ", /* @__PURE__ */ React.createElement(
|
|
120
|
-
"a",
|
|
121
|
-
{
|
|
122
|
-
href: "https://grafana.com/docs/grafana/latest/datasources/aws-cloudwatch/",
|
|
123
|
-
target: "_blank",
|
|
124
|
-
rel: "noreferrer"
|
|
125
|
-
},
|
|
126
|
-
"read through our documentation"
|
|
127
|
-
), ".")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("p", null, "5. Give the role a name and description, and click ", /* @__PURE__ */ React.createElement("code", null, "Create role"), ".")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("p", null, "6. Copy the ARN of the role you just created and paste it into the ", /* @__PURE__ */ React.createElement("code", null, "Assume Role ARN"), " ", "field below.")))
|
|
128
|
-
)), awsAssumeRoleEnabled && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
129
|
-
Field,
|
|
130
|
-
{
|
|
131
|
-
htmlFor: "assumeRoleArn",
|
|
132
|
-
label: "Assume Role ARN",
|
|
133
|
-
description: "Optional. Specifying the ARN of a role will ensure that the\n selected authentication provider is used to assume the role rather than the\n credentials directly."
|
|
134
|
-
},
|
|
135
|
-
/* @__PURE__ */ React.createElement(
|
|
136
|
-
Input,
|
|
137
|
-
{
|
|
138
|
-
id: "assumeRoleArn",
|
|
139
|
-
placeholder: "arn:aws:iam:*",
|
|
140
|
-
value: options.jsonData.assumeRoleArn || "",
|
|
141
|
-
onChange: onUpdateDatasourceJsonDataOption(props, "assumeRoleArn")
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
), options.jsonData.authType !== AwsAuthType.GrafanaAssumeRole && /* @__PURE__ */ React.createElement(
|
|
145
|
-
Field,
|
|
146
|
-
{
|
|
147
|
-
htmlFor: "externalId",
|
|
148
|
-
label: "External ID",
|
|
149
|
-
description: "If you are assuming a role in another account, that has been created with an external ID, specify the external ID here."
|
|
150
|
-
},
|
|
151
|
-
/* @__PURE__ */ React.createElement(
|
|
152
|
-
Input,
|
|
153
|
-
{
|
|
154
|
-
id: "externalId",
|
|
155
|
-
placeholder: "External ID",
|
|
156
|
-
value: options.jsonData.externalId || "",
|
|
157
|
-
onChange: onUpdateDatasourceJsonDataOption(props, "externalId")
|
|
158
|
-
}
|
|
159
|
-
)
|
|
160
|
-
))), /* @__PURE__ */ React.createElement(ConfigSubSection, { title: "Additional Settings" }, !props.skipEndpoint && options.jsonData.authType !== AwsAuthType.GrafanaAssumeRole && /* @__PURE__ */ React.createElement(
|
|
161
|
-
Field,
|
|
162
|
-
{
|
|
163
|
-
label: "Endpoint",
|
|
164
|
-
description: "Optionally, specify a custom endpoint for the service",
|
|
165
|
-
htmlFor: "endpoint"
|
|
166
|
-
},
|
|
167
|
-
/* @__PURE__ */ React.createElement(
|
|
168
|
-
Input,
|
|
169
|
-
{
|
|
170
|
-
id: "endpoint",
|
|
171
|
-
placeholder: (_g = props.defaultEndpoint) != null ? _g : "https://{service}.{region}.amazonaws.com",
|
|
172
|
-
value: options.jsonData.endpoint || "",
|
|
173
|
-
onChange: onUpdateDatasourceJsonDataOption(props, "endpoint")
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
), /* @__PURE__ */ React.createElement(
|
|
177
|
-
Field,
|
|
178
|
-
{
|
|
179
|
-
label: "Default Region",
|
|
180
|
-
description: "Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.",
|
|
181
|
-
htmlFor: "defaultRegion"
|
|
182
|
-
},
|
|
183
|
-
/* @__PURE__ */ React.createElement(
|
|
184
|
-
Select,
|
|
185
|
-
{
|
|
186
|
-
inputId: "defaultRegion",
|
|
187
|
-
value: regions.find((region) => region.value === options.jsonData.defaultRegion),
|
|
188
|
-
options: regions,
|
|
189
|
-
defaultValue: options.jsonData.defaultRegion,
|
|
190
|
-
allowCustomValue: true,
|
|
191
|
-
onChange: onUpdateDatasourceJsonDataOptionSelect(props, "defaultRegion"),
|
|
192
|
-
formatCreateLabel: (r) => `Use region: ${r}`,
|
|
193
|
-
menuShouldPortal: true
|
|
194
|
-
}
|
|
195
|
-
)
|
|
196
|
-
)), props.children));
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
export { NewConnectionConfig };
|
|
200
|
-
//# sourceMappingURL=NewConnectionConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewConnectionConfig.js","sources":["../../../src/components/NewConnectionConfig.tsx"],"sourcesContent":["import React from 'react';\nimport { Input, Select, ButtonGroup, ToolbarButton, Collapse, Field } from '@grafana/ui';\nimport {\n onUpdateDatasourceJsonDataOptionSelect,\n onUpdateDatasourceResetOption,\n onUpdateDatasourceJsonDataOption,\n onUpdateDatasourceSecureJsonDataOption,\n SelectableValue,\n} from '@grafana/data';\nimport { AwsAuthType, ConnectionConfigProps } from '../types';\nimport { awsAuthProviderOptions } from '../providers';\nimport { ConfigSection, ConfigSubSection } from '@grafana/experimental';\nimport { assumeRoleInstructionsStyle } from './ConnectionConfig.styles';\n\ninterface NewConnectionConfigProps extends ConnectionConfigProps {\n currentProvider?: SelectableValue<AwsAuthType> | undefined;\n awsAllowedAuthProviders: string[];\n isARNInstructionsOpen: boolean;\n setIsARNInstructionsOpen: (isOpen: boolean) => void;\n awsAssumeRoleEnabled: boolean;\n regions: SelectableValue[];\n}\n\nexport const NewConnectionConfig = ({\n isARNInstructionsOpen,\n setIsARNInstructionsOpen,\n awsAssumeRoleEnabled,\n currentProvider,\n awsAllowedAuthProviders,\n skipHeader,\n regions,\n ...props\n}: NewConnectionConfigProps) => {\n const options = props.options;\n return (\n <div data-testid=\"connection-config\">\n <ConfigSection title={skipHeader ? '' : 'Connection Details'} data-testid=\"connection-config\">\n <ConfigSubSection title=\"Authentication\">\n <Field\n label=\"Authentication Provider\"\n description=\"Specify which AWS credentials chain to use.\"\n htmlFor=\"authProvider\"\n >\n <Select\n inputId=\"authProvider\"\n value={currentProvider}\n options={awsAuthProviderOptions.filter((opt) => awsAllowedAuthProviders.includes(opt.value!))}\n defaultValue={options.jsonData.authType}\n onChange={(option) => {\n onUpdateDatasourceJsonDataOptionSelect(props, 'authType')(option);\n }}\n menuShouldPortal={true}\n />\n </Field>\n {options.jsonData.authType === 'credentials' && (\n <Field\n label=\"Credentials Profile Name\"\n description=\"Credentials profile name, as specified in ~/.aws/credentials, leave blank for default.\"\n htmlFor=\"credentialsProfileName\"\n >\n <Input\n id=\"credentialsProfileName\"\n placeholder=\"default\"\n value={options.jsonData.profile}\n onChange={onUpdateDatasourceJsonDataOption(props, 'profile')}\n />\n </Field>\n )}\n {options.jsonData.authType === 'keys' && (\n <>\n <Field label=\"Access Key ID\" htmlFor=\"accessKeyId\">\n {props.options.secureJsonFields?.accessKey ? (\n <ButtonGroup>\n <Input disabled placeholder=\"Configured\" id=\"accessKeyId\" />\n <ToolbarButton\n icon=\"edit\"\n tooltip=\"Edit Access Key ID\"\n type=\"button\"\n onClick={onUpdateDatasourceResetOption(props as any, 'accessKey')}\n />\n </ButtonGroup>\n ) : (\n <Input\n id=\"accessKeyId\"\n value={options.secureJsonData?.accessKey ?? ''}\n onChange={onUpdateDatasourceSecureJsonDataOption(props, 'accessKey')}\n />\n )}\n </Field>\n\n <Field label=\"Secret Access Key\" htmlFor=\"secretKey\">\n {props.options.secureJsonFields?.secretKey ? (\n <ButtonGroup>\n <Input disabled placeholder=\"Configured\" />\n <ToolbarButton\n id=\"secretKey\"\n icon=\"edit\"\n type=\"button\"\n tooltip=\"Edit Secret Access Key\"\n onClick={onUpdateDatasourceResetOption(props as any, 'secretKey')}\n />\n </ButtonGroup>\n ) : (\n <Input\n id=\"secretKey\"\n value={options.secureJsonData?.secretKey ?? ''}\n onChange={onUpdateDatasourceSecureJsonDataOption(props, 'secretKey')}\n />\n )}\n </Field>\n </>\n )}\n </ConfigSubSection>\n\n <ConfigSubSection title=\"Assume Role\">\n {options.jsonData.authType === AwsAuthType.GrafanaAssumeRole && (\n <div className={assumeRoleInstructionsStyle}>\n <Collapse\n label={'How to create an IAM role for grafana to assume:'}\n collapsible={true}\n isOpen={isARNInstructionsOpen}\n onToggle={() => setIsARNInstructionsOpen(!isARNInstructionsOpen)}\n >\n <ol>\n <li>\n <p>\n 1. Create a new IAM role in the AWS console, and select <code>Another AWS account</code> as the{' '}\n <code>Trusted entity</code>.\n </p>\n </li>\n <li>\n <p>\n 2. Enter the account ID of the Grafana account that has permission to assume this role:\n <code> 008923505280 </code> and check the <code>Require external ID</code> box.\n </p>\n </li>\n <li>\n <p>\n 3. Enter the following external ID:{' '}\n <code>{props.externalId || 'External Id is currently unavailable'}</code> and click{' '}\n <code>Next</code>.\n </p>\n </li>\n <li>\n <p>\n 4. Add any required permissions you would like Grafana to be able to access on your behalf. For\n more details on our permissions please{' '}\n <a\n href=\"https://grafana.com/docs/grafana/latest/datasources/aws-cloudwatch/\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n read through our documentation\n </a>\n .\n </p>\n </li>\n <li>\n <p>\n 5. Give the role a name and description, and click <code>Create role</code>.\n </p>\n </li>\n <li>\n <p>\n 6. Copy the ARN of the role you just created and paste it into the <code>Assume Role ARN</code>{' '}\n field below.\n </p>\n </li>\n </ol>\n </Collapse>\n </div>\n )}\n {awsAssumeRoleEnabled && (\n <>\n <Field\n htmlFor=\"assumeRoleArn\"\n label=\"Assume Role ARN\"\n description=\"Optional. Specifying the ARN of a role will ensure that the\n selected authentication provider is used to assume the role rather than the\n credentials directly.\"\n >\n <Input\n id=\"assumeRoleArn\"\n placeholder=\"arn:aws:iam:*\"\n value={options.jsonData.assumeRoleArn || ''}\n onChange={onUpdateDatasourceJsonDataOption(props, 'assumeRoleArn')}\n />\n </Field>\n {options.jsonData.authType !== AwsAuthType.GrafanaAssumeRole && (\n <Field\n htmlFor=\"externalId\"\n label=\"External ID\"\n description=\"If you are assuming a role in another account, that has been created with an external ID, specify the external ID here.\"\n >\n <Input\n id=\"externalId\"\n placeholder=\"External ID\"\n value={options.jsonData.externalId || ''}\n onChange={onUpdateDatasourceJsonDataOption(props, 'externalId')}\n />\n </Field>\n )}\n </>\n )}\n </ConfigSubSection>\n <ConfigSubSection title=\"Additional Settings\">\n {!props.skipEndpoint && options.jsonData.authType !== AwsAuthType.GrafanaAssumeRole && (\n <Field\n label=\"Endpoint\"\n description=\"Optionally, specify a custom endpoint for the service\"\n htmlFor=\"endpoint\"\n >\n <Input\n id=\"endpoint\"\n placeholder={props.defaultEndpoint ?? 'https://{service}.{region}.amazonaws.com'}\n value={options.jsonData.endpoint || ''}\n onChange={onUpdateDatasourceJsonDataOption(props, 'endpoint')}\n />\n </Field>\n )}\n\n <Field\n label=\"Default Region\"\n description=\"Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.\"\n htmlFor=\"defaultRegion\"\n >\n <Select\n inputId=\"defaultRegion\"\n value={regions.find((region) => region.value === options.jsonData.defaultRegion)}\n options={regions}\n defaultValue={options.jsonData.defaultRegion}\n allowCustomValue={true}\n onChange={onUpdateDatasourceJsonDataOptionSelect(props, 'defaultRegion')}\n formatCreateLabel={(r) => `Use region: ${r}`}\n menuShouldPortal={true}\n />\n </Field>\n </ConfigSubSection>\n {props.children}\n </ConfigSection>\n </div>\n );\n};\n"],"names":["_a","_b"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBa,MAAA,mBAAA,GAAsB,CAAC,EASJ,KAAA;AATI,EAClC,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,qBAAA;AAAA,IACA,wBAAA;AAAA,IACA,oBAAA;AAAA,IACA,eAAA;AAAA,IACA,uBAAA;AAAA,IACA,UAAA;AAAA,IACA,OAAA;AAAA,GA9BF,GAuBoC,EAQ/B,EAAA,KAAA,GAAA,SAAA,CAR+B,EAQ/B,EAAA;AAAA,IAPH,uBAAA;AAAA,IACA,0BAAA;AAAA,IACA,sBAAA;AAAA,IACA,iBAAA;AAAA,IACA,yBAAA;AAAA,IACA,YAAA;AAAA,IACA,SAAA;AAAA,GAAA,CAAA,CAAA;AA9BF,EAAA,IAAAA,KAAAC,GAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAiCE,EAAA,MAAM,UAAU,KAAM,CAAA,OAAA,CAAA;AACtB,EAAA,uBACG,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAI,aAAY,EAAA,mBAAA,EAAA,sCACd,aAAc,EAAA,EAAA,KAAA,EAAO,UAAa,GAAA,EAAA,GAAK,sBAAsB,aAAY,EAAA,mBAAA,EAAA,kBACvE,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA,EAAiB,OAAM,gBACtB,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAM,EAAA,yBAAA;AAAA,MACN,WA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