@aws-sdk/client-appconfig 3.774.0 → 3.777.0
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-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/AppConfigClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/CreateApplicationCommand.d.ts +8 -8
- package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +12 -12
- package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +14 -14
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +9 -9
- package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +1 -0
- package/dist-types/commands/CreateExtensionCommand.d.ts +1 -0
- package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +12 -12
- package/dist-types/commands/DeleteApplicationCommand.d.ts +8 -5
- package/dist-types/commands/DeleteConfigurationProfileCommand.d.ts +8 -5
- package/dist-types/commands/DeleteDeploymentStrategyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +8 -5
- package/dist-types/commands/DeleteExtensionAssociationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteExtensionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteHostedConfigurationVersionCommand.d.ts +9 -6
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +1 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +6 -6
- package/dist-types/commands/GetConfigurationCommand.d.ts +9 -9
- package/dist-types/commands/GetConfigurationProfileCommand.d.ts +10 -10
- package/dist-types/commands/GetDeploymentCommand.d.ts +1 -77
- package/dist-types/commands/GetDeploymentStrategyCommand.d.ts +11 -11
- package/dist-types/commands/GetEnvironmentCommand.d.ts +9 -9
- package/dist-types/commands/GetExtensionAssociationCommand.d.ts +1 -0
- package/dist-types/commands/GetExtensionCommand.d.ts +1 -0
- package/dist-types/commands/GetHostedConfigurationVersionCommand.d.ts +10 -10
- package/dist-types/commands/ListApplicationsCommand.d.ts +10 -10
- package/dist-types/commands/ListConfigurationProfilesCommand.d.ts +9 -9
- package/dist-types/commands/ListDeploymentStrategiesCommand.d.ts +12 -12
- package/dist-types/commands/ListDeploymentsCommand.d.ts +1 -31
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +9 -9
- package/dist-types/commands/ListExtensionAssociationsCommand.d.ts +1 -0
- package/dist-types/commands/ListExtensionsCommand.d.ts +1 -0
- package/dist-types/commands/ListHostedConfigurationVersionsCommand.d.ts +10 -10
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -6
- package/dist-types/commands/StartDeploymentCommand.d.ts +1 -44
- package/dist-types/commands/StopDeploymentCommand.d.ts +11 -11
- package/dist-types/commands/TagResourceCommand.d.ts +9 -6
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +9 -9
- package/dist-types/commands/UpdateConfigurationProfileCommand.d.ts +12 -12
- package/dist-types/commands/UpdateDeploymentStrategyCommand.d.ts +13 -13
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +11 -11
- package/dist-types/commands/UpdateExtensionAssociationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateExtensionCommand.d.ts +1 -0
- package/dist-types/commands/ValidateConfigurationCommand.d.ts +9 -6
- package/package.json +34 -34
|
@@ -40,8 +40,6 @@ const defaultAppConfigHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultAppConfigHttpAuthSchemeProvider = defaultAppConfigHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -121,12 +121,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
121
121
|
|
|
122
122
|
// src/endpoint/EndpointParameters.ts
|
|
123
123
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
124
|
-
return {
|
|
125
|
-
...options,
|
|
124
|
+
return Object.assign(options, {
|
|
126
125
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
127
126
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
128
127
|
defaultSigningName: "appconfig"
|
|
129
|
-
};
|
|
128
|
+
});
|
|
130
129
|
}, "resolveClientEndpointParameters");
|
|
131
130
|
var commonParams = {
|
|
132
131
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -183,22 +182,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
183
182
|
}, "resolveHttpAuthRuntimeConfig");
|
|
184
183
|
|
|
185
184
|
// src/runtimeExtensions.ts
|
|
186
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
187
185
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
188
|
-
const extensionConfiguration =
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
186
|
+
const extensionConfiguration = Object.assign(
|
|
187
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
188
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
189
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
190
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
191
|
+
);
|
|
194
192
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
195
|
-
return
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
193
|
+
return Object.assign(
|
|
194
|
+
runtimeConfig,
|
|
195
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
196
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
197
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
198
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
199
|
+
);
|
|
202
200
|
}, "resolveRuntimeExtensions");
|
|
203
201
|
|
|
204
202
|
// src/AppConfigClient.ts
|
|
@@ -212,6 +210,8 @@ var AppConfigClient = class extends import_smithy_client.Client {
|
|
|
212
210
|
config;
|
|
213
211
|
constructor(...[configuration]) {
|
|
214
212
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
213
|
+
super(_config_0);
|
|
214
|
+
this.initConfig = _config_0;
|
|
215
215
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
216
216
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
217
217
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -220,7 +220,6 @@ var AppConfigClient = class extends import_smithy_client.Client {
|
|
|
220
220
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
221
221
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
222
222
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
223
|
-
super(_config_8);
|
|
224
223
|
this.config = _config_8;
|
|
225
224
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
226
225
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class AppConfigClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class AppConfigClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultAppConfigHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "appconfig",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -81,26 +81,26 @@ declare const CreateApplicationCommand_base: {
|
|
|
81
81
|
* @throws {@link AppConfigServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
83
83
|
*
|
|
84
|
-
*
|
|
84
|
+
*
|
|
85
85
|
* @example To create an application
|
|
86
86
|
* ```javascript
|
|
87
87
|
* // The following create-application example creates an application in AWS AppConfig.
|
|
88
88
|
* const input = {
|
|
89
|
-
*
|
|
90
|
-
*
|
|
89
|
+
* Description: "An application used for creating an example.",
|
|
90
|
+
* Name: "example-application"
|
|
91
91
|
* };
|
|
92
92
|
* const command = new CreateApplicationCommand(input);
|
|
93
93
|
* const response = await client.send(command);
|
|
94
|
-
* /* response
|
|
94
|
+
* /* response is
|
|
95
95
|
* {
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
96
|
+
* Description: "An application used for creating an example.",
|
|
97
|
+
* Id: "339ohji",
|
|
98
|
+
* Name: "example-application"
|
|
99
99
|
* }
|
|
100
100
|
* *\/
|
|
101
|
-
* // example id: to-create-an-application-1632264511615
|
|
102
101
|
* ```
|
|
103
102
|
*
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
105
|
export declare class CreateApplicationCommand extends CreateApplicationCommand_base {
|
|
106
106
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -142,30 +142,30 @@ declare const CreateConfigurationProfileCommand_base: {
|
|
|
142
142
|
* @throws {@link AppConfigServiceException}
|
|
143
143
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
144
144
|
*
|
|
145
|
-
*
|
|
145
|
+
*
|
|
146
146
|
* @example To create a configuration profile
|
|
147
147
|
* ```javascript
|
|
148
148
|
* // The following create-configuration-profile example creates a configuration profile using a configuration stored in Parameter Store, a capability of Systems Manager.
|
|
149
149
|
* const input = {
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
150
|
+
* ApplicationId: "339ohji",
|
|
151
|
+
* LocationUri: "ssm-parameter://Example-Parameter",
|
|
152
|
+
* Name: "Example-Configuration-Profile",
|
|
153
|
+
* RetrievalRoleArn: "arn:aws:iam::111122223333:role/Example-App-Config-Role"
|
|
154
154
|
* };
|
|
155
155
|
* const command = new CreateConfigurationProfileCommand(input);
|
|
156
156
|
* const response = await client.send(command);
|
|
157
|
-
* /* response
|
|
157
|
+
* /* response is
|
|
158
158
|
* {
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
159
|
+
* ApplicationId: "339ohji",
|
|
160
|
+
* Id: "ur8hx2f",
|
|
161
|
+
* LocationUri: "ssm-parameter://Example-Parameter",
|
|
162
|
+
* Name: "Example-Configuration-Profile",
|
|
163
|
+
* RetrievalRoleArn: "arn:aws:iam::111122223333:role/Example-App-Config-Role"
|
|
164
164
|
* }
|
|
165
165
|
* *\/
|
|
166
|
-
* // example id: to-create-a-configuration-profile-1632264580336
|
|
167
166
|
* ```
|
|
168
167
|
*
|
|
168
|
+
* @public
|
|
169
169
|
*/
|
|
170
170
|
export declare class CreateConfigurationProfileCommand extends CreateConfigurationProfileCommand_base {
|
|
171
171
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -90,32 +90,32 @@ declare const CreateDeploymentStrategyCommand_base: {
|
|
|
90
90
|
* @throws {@link AppConfigServiceException}
|
|
91
91
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
92
92
|
*
|
|
93
|
-
*
|
|
93
|
+
*
|
|
94
94
|
* @example To create a deployment strategy
|
|
95
95
|
* ```javascript
|
|
96
96
|
* // The following create-deployment-strategy example creates a deployment strategy called Example-Deployment that takes 15 minutes and deploys the configuration to 25% of the application at a time. The strategy is also copied to an SSM Document.
|
|
97
97
|
* const input = {
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
98
|
+
* DeploymentDurationInMinutes: 15,
|
|
99
|
+
* GrowthFactor: 25,
|
|
100
|
+
* Name: "Example-Deployment",
|
|
101
|
+
* ReplicateTo: "SSM_DOCUMENT"
|
|
102
102
|
* };
|
|
103
103
|
* const command = new CreateDeploymentStrategyCommand(input);
|
|
104
104
|
* const response = await client.send(command);
|
|
105
|
-
* /* response
|
|
105
|
+
* /* response is
|
|
106
106
|
* {
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
107
|
+
* DeploymentDurationInMinutes: 15,
|
|
108
|
+
* FinalBakeTimeInMinutes: 0,
|
|
109
|
+
* GrowthFactor: 25,
|
|
110
|
+
* GrowthType: "LINEAR",
|
|
111
|
+
* Id: "1225qzk",
|
|
112
|
+
* Name: "Example-Deployment",
|
|
113
|
+
* ReplicateTo: "SSM_DOCUMENT"
|
|
114
114
|
* }
|
|
115
115
|
* *\/
|
|
116
|
-
* // example id: to-create-a-deployment-strategy-1632264783812
|
|
117
116
|
* ```
|
|
118
117
|
*
|
|
118
|
+
* @public
|
|
119
119
|
*/
|
|
120
120
|
export declare class CreateDeploymentStrategyCommand extends CreateDeploymentStrategyCommand_base {
|
|
121
121
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -102,27 +102,27 @@ declare const CreateEnvironmentCommand_base: {
|
|
|
102
102
|
* @throws {@link AppConfigServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
104
104
|
*
|
|
105
|
-
*
|
|
105
|
+
*
|
|
106
106
|
* @example To create an environment
|
|
107
107
|
* ```javascript
|
|
108
108
|
* // The following create-environment example creates an AWS AppConfig environment named Example-Environment using the application you created using create-application
|
|
109
109
|
* const input = {
|
|
110
|
-
*
|
|
111
|
-
*
|
|
110
|
+
* ApplicationId: "339ohji",
|
|
111
|
+
* Name: "Example-Environment"
|
|
112
112
|
* };
|
|
113
113
|
* const command = new CreateEnvironmentCommand(input);
|
|
114
114
|
* const response = await client.send(command);
|
|
115
|
-
* /* response
|
|
115
|
+
* /* response is
|
|
116
116
|
* {
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
117
|
+
* ApplicationId: "339ohji",
|
|
118
|
+
* Id: "54j1r29",
|
|
119
|
+
* Name: "Example-Environment",
|
|
120
|
+
* State: "READY_FOR_DEPLOYMENT"
|
|
121
121
|
* }
|
|
122
122
|
* *\/
|
|
123
|
-
* // example id: to-create-an-environment-1632265124975
|
|
124
123
|
* ```
|
|
125
124
|
*
|
|
125
|
+
* @public
|
|
126
126
|
*/
|
|
127
127
|
export declare class CreateEnvironmentCommand extends CreateEnvironmentCommand_base {
|
|
128
128
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -100,6 +100,7 @@ declare const CreateExtensionAssociationCommand_base: {
|
|
|
100
100
|
* @throws {@link AppConfigServiceException}
|
|
101
101
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
102
102
|
*
|
|
103
|
+
*
|
|
103
104
|
* @public
|
|
104
105
|
*/
|
|
105
106
|
export declare class CreateExtensionAssociationCommand extends CreateExtensionAssociationCommand_base {
|
|
@@ -141,6 +141,7 @@ declare const CreateExtensionCommand_base: {
|
|
|
141
141
|
* @throws {@link AppConfigServiceException}
|
|
142
142
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
143
143
|
*
|
|
144
|
+
*
|
|
144
145
|
* @public
|
|
145
146
|
*/
|
|
146
147
|
export declare class CreateExtensionCommand extends CreateExtensionCommand_base {
|
|
@@ -110,30 +110,30 @@ declare const CreateHostedConfigurationVersionCommand_base: {
|
|
|
110
110
|
* @throws {@link AppConfigServiceException}
|
|
111
111
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
112
112
|
*
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
114
|
* @example To create a hosted configuration version
|
|
115
115
|
* ```javascript
|
|
116
116
|
* // The following create-hosted-configuration-version example creates a new configuration in the AWS AppConfig configuration store.
|
|
117
117
|
* const input = {
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
118
|
+
* ApplicationId: "339ohji",
|
|
119
|
+
* ConfigurationProfileId: "ur8hx2f",
|
|
120
|
+
* Content: "eyAiTmFtZSI6ICJFeGFtcGxlQXBwbGljYXRpb24iLCAiSWQiOiBFeGFtcGxlSUQsICJSYW5rIjogNyB9",
|
|
121
|
+
* ContentType: "text",
|
|
122
|
+
* LatestVersionNumber: 1
|
|
123
123
|
* };
|
|
124
124
|
* const command = new CreateHostedConfigurationVersionCommand(input);
|
|
125
125
|
* const response = await client.send(command);
|
|
126
|
-
* /* response
|
|
126
|
+
* /* response is
|
|
127
127
|
* {
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
128
|
+
* ApplicationId: "339ohji",
|
|
129
|
+
* ConfigurationProfileId: "ur8hx2f",
|
|
130
|
+
* ContentType: "text",
|
|
131
|
+
* VersionNumber: 1
|
|
132
132
|
* }
|
|
133
133
|
* *\/
|
|
134
|
-
* // example id: to-create-a-hosted-configuration-version-1632265196980
|
|
135
134
|
* ```
|
|
136
135
|
*
|
|
136
|
+
* @public
|
|
137
137
|
*/
|
|
138
138
|
export declare class CreateHostedConfigurationVersionCommand extends CreateHostedConfigurationVersionCommand_base {
|
|
139
139
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -61,19 +61,22 @@ declare const DeleteApplicationCommand_base: {
|
|
|
61
61
|
* @throws {@link AppConfigServiceException}
|
|
62
62
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
63
63
|
*
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
65
|
* @example To delete an application
|
|
66
66
|
* ```javascript
|
|
67
67
|
* // The following delete-application example deletes the specified application.
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* const input = {
|
|
70
|
-
*
|
|
70
|
+
* ApplicationId: "339ohji"
|
|
71
71
|
* };
|
|
72
72
|
* const command = new DeleteApplicationCommand(input);
|
|
73
|
-
* await client.send(command);
|
|
74
|
-
*
|
|
73
|
+
* const response = await client.send(command);
|
|
74
|
+
* /* response is
|
|
75
|
+
* { /* metadata only *\/ }
|
|
76
|
+
* *\/
|
|
75
77
|
* ```
|
|
76
78
|
*
|
|
79
|
+
* @public
|
|
77
80
|
*/
|
|
78
81
|
export declare class DeleteApplicationCommand extends DeleteApplicationCommand_base {
|
|
79
82
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -70,19 +70,22 @@ declare const DeleteConfigurationProfileCommand_base: {
|
|
|
70
70
|
* @throws {@link AppConfigServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
72
72
|
*
|
|
73
|
-
*
|
|
73
|
+
*
|
|
74
74
|
* @example To delete a configuration profile
|
|
75
75
|
* ```javascript
|
|
76
76
|
* // The following delete-configuration-profile example deletes the specified configuration profile.
|
|
77
77
|
* const input = {
|
|
78
|
-
*
|
|
79
|
-
*
|
|
78
|
+
* ApplicationId: "339ohji",
|
|
79
|
+
* ConfigurationProfileId: "ur8hx2f"
|
|
80
80
|
* };
|
|
81
81
|
* const command = new DeleteConfigurationProfileCommand(input);
|
|
82
|
-
* await client.send(command);
|
|
83
|
-
*
|
|
82
|
+
* const response = await client.send(command);
|
|
83
|
+
* /* response is
|
|
84
|
+
* { /* metadata only *\/ }
|
|
85
|
+
* *\/
|
|
84
86
|
* ```
|
|
85
87
|
*
|
|
88
|
+
* @public
|
|
86
89
|
*/
|
|
87
90
|
export declare class DeleteConfigurationProfileCommand extends DeleteConfigurationProfileCommand_base {
|
|
88
91
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -61,18 +61,21 @@ declare const DeleteDeploymentStrategyCommand_base: {
|
|
|
61
61
|
* @throws {@link AppConfigServiceException}
|
|
62
62
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
63
63
|
*
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
65
|
* @example To delete a deployment strategy
|
|
66
66
|
* ```javascript
|
|
67
67
|
* // The following delete-deployment-strategy example deletes the specified deployment strategy.
|
|
68
68
|
* const input = {
|
|
69
|
-
*
|
|
69
|
+
* DeploymentStrategyId: "1225qzk"
|
|
70
70
|
* };
|
|
71
71
|
* const command = new DeleteDeploymentStrategyCommand(input);
|
|
72
|
-
* await client.send(command);
|
|
73
|
-
*
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* /* response is
|
|
74
|
+
* { /* metadata only *\/ }
|
|
75
|
+
* *\/
|
|
74
76
|
* ```
|
|
75
77
|
*
|
|
78
|
+
* @public
|
|
76
79
|
*/
|
|
77
80
|
export declare class DeleteDeploymentStrategyCommand extends DeleteDeploymentStrategyCommand_base {
|
|
78
81
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -69,19 +69,22 @@ declare const DeleteEnvironmentCommand_base: {
|
|
|
69
69
|
* @throws {@link AppConfigServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
71
71
|
*
|
|
72
|
-
*
|
|
72
|
+
*
|
|
73
73
|
* @example To delete an environment
|
|
74
74
|
* ```javascript
|
|
75
75
|
* // The following delete-environment example deletes the specified application environment.
|
|
76
76
|
* const input = {
|
|
77
|
-
*
|
|
78
|
-
*
|
|
77
|
+
* ApplicationId: "339ohji",
|
|
78
|
+
* EnvironmentId: "54j1r29"
|
|
79
79
|
* };
|
|
80
80
|
* const command = new DeleteEnvironmentCommand(input);
|
|
81
|
-
* await client.send(command);
|
|
82
|
-
*
|
|
81
|
+
* const response = await client.send(command);
|
|
82
|
+
* /* response is
|
|
83
|
+
* { /* metadata only *\/ }
|
|
84
|
+
* *\/
|
|
83
85
|
* ```
|
|
84
86
|
*
|
|
87
|
+
* @public
|
|
85
88
|
*/
|
|
86
89
|
export declare class DeleteEnvironmentCommand extends DeleteEnvironmentCommand_base {
|
|
87
90
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -62,6 +62,7 @@ declare const DeleteExtensionAssociationCommand_base: {
|
|
|
62
62
|
* @throws {@link AppConfigServiceException}
|
|
63
63
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
64
64
|
*
|
|
65
|
+
*
|
|
65
66
|
* @public
|
|
66
67
|
*/
|
|
67
68
|
export declare class DeleteExtensionAssociationCommand extends DeleteExtensionAssociationCommand_base {
|
|
@@ -63,6 +63,7 @@ declare const DeleteExtensionCommand_base: {
|
|
|
63
63
|
* @throws {@link AppConfigServiceException}
|
|
64
64
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
65
65
|
*
|
|
66
|
+
*
|
|
66
67
|
* @public
|
|
67
68
|
*/
|
|
68
69
|
export declare class DeleteExtensionCommand extends DeleteExtensionCommand_base {
|
|
@@ -64,20 +64,23 @@ declare const DeleteHostedConfigurationVersionCommand_base: {
|
|
|
64
64
|
* @throws {@link AppConfigServiceException}
|
|
65
65
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
66
66
|
*
|
|
67
|
-
*
|
|
67
|
+
*
|
|
68
68
|
* @example To delete a hosted configuration version
|
|
69
69
|
* ```javascript
|
|
70
70
|
* // The following delete-hosted-configuration-version example deletes a configuration version hosted in the AWS AppConfig configuration store.
|
|
71
71
|
* const input = {
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
72
|
+
* ApplicationId: "339ohji",
|
|
73
|
+
* ConfigurationProfileId: "ur8hx2f",
|
|
74
|
+
* VersionNumber: 1
|
|
75
75
|
* };
|
|
76
76
|
* const command = new DeleteHostedConfigurationVersionCommand(input);
|
|
77
|
-
* await client.send(command);
|
|
78
|
-
*
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* metadata only *\/ }
|
|
80
|
+
* *\/
|
|
79
81
|
* ```
|
|
80
82
|
*
|
|
83
|
+
* @public
|
|
81
84
|
*/
|
|
82
85
|
export declare class DeleteHostedConfigurationVersionCommand extends DeleteHostedConfigurationVersionCommand_base {
|
|
83
86
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -62,6 +62,7 @@ declare const GetAccountSettingsCommand_base: {
|
|
|
62
62
|
* @throws {@link AppConfigServiceException}
|
|
63
63
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
64
64
|
*
|
|
65
|
+
*
|
|
65
66
|
* @public
|
|
66
67
|
*/
|
|
67
68
|
export declare class GetAccountSettingsCommand extends GetAccountSettingsCommand_base {
|
|
@@ -65,24 +65,24 @@ declare const GetApplicationCommand_base: {
|
|
|
65
65
|
* @throws {@link AppConfigServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example To list details of an application
|
|
70
70
|
* ```javascript
|
|
71
71
|
* // The following get-application example lists the details of the specified application.
|
|
72
72
|
* const input = {
|
|
73
|
-
*
|
|
73
|
+
* ApplicationId: "339ohji"
|
|
74
74
|
* };
|
|
75
75
|
* const command = new GetApplicationCommand(input);
|
|
76
76
|
* const response = await client.send(command);
|
|
77
|
-
* /* response
|
|
77
|
+
* /* response is
|
|
78
78
|
* {
|
|
79
|
-
*
|
|
80
|
-
*
|
|
79
|
+
* Id: "339ohji",
|
|
80
|
+
* Name: "example-application"
|
|
81
81
|
* }
|
|
82
82
|
* *\/
|
|
83
|
-
* // example id: to-list-details-of-an-application-1632265864702
|
|
84
83
|
* ```
|
|
85
84
|
*
|
|
85
|
+
* @public
|
|
86
86
|
*/
|
|
87
87
|
export declare class GetApplicationCommand extends GetApplicationCommand_base {
|
|
88
88
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -92,27 +92,27 @@ declare const GetConfigurationCommand_base: {
|
|
|
92
92
|
* @throws {@link AppConfigServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
94
94
|
*
|
|
95
|
-
*
|
|
95
|
+
*
|
|
96
96
|
* @example To retrieve configuration details
|
|
97
97
|
* ```javascript
|
|
98
98
|
* // The following get-configuration example returns the configuration details of the example application. On subsequent calls to get-configuration, use the client-configuration-version parameter to only update the configuration of your application if the version has changed. Only updating the configuration when the version has changed avoids excess charges incurred by calling get-configuration.
|
|
99
99
|
* const input = {
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
100
|
+
* Application: "example-application",
|
|
101
|
+
* ClientId: "example-id",
|
|
102
|
+
* Configuration: "Example-Configuration-Profile",
|
|
103
|
+
* Environment: "Example-Environment"
|
|
104
104
|
* };
|
|
105
105
|
* const command = new GetConfigurationCommand(input);
|
|
106
106
|
* const response = await client.send(command);
|
|
107
|
-
* /* response
|
|
107
|
+
* /* response is
|
|
108
108
|
* {
|
|
109
|
-
*
|
|
110
|
-
*
|
|
109
|
+
* ConfigurationVersion: "1",
|
|
110
|
+
* ContentType: "application/octet-stream"
|
|
111
111
|
* }
|
|
112
112
|
* *\/
|
|
113
|
-
* // example id: to-retrieve-configuration-details-1632265954314
|
|
114
113
|
* ```
|
|
115
114
|
*
|
|
115
|
+
* @public
|
|
116
116
|
*/
|
|
117
117
|
export declare class GetConfigurationCommand extends GetConfigurationCommand_base {
|
|
118
118
|
/** @internal type navigation helper, not in runtime. */
|