@aws-sdk/client-apprunner 3.414.0 → 3.417.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.
Files changed (44) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/AppRunner.js +4 -0
  3. package/dist-cjs/commands/ListServicesForAutoScalingConfigurationCommand.js +46 -0
  4. package/dist-cjs/commands/UpdateDefaultAutoScalingConfigurationCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/pagination/ListServicesForAutoScalingConfigurationPaginator.js +29 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_json1_0.js +128 -4
  9. package/dist-es/AppRunner.js +4 -0
  10. package/dist-es/commands/ListServicesForAutoScalingConfigurationCommand.js +42 -0
  11. package/dist-es/commands/UpdateDefaultAutoScalingConfigurationCommand.js +42 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/pagination/ListServicesForAutoScalingConfigurationPaginator.js +25 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_json1_0.js +122 -2
  16. package/dist-types/AppRunner.d.ts +14 -0
  17. package/dist-types/AppRunnerClient.d.ts +4 -2
  18. package/dist-types/commands/CreateAutoScalingConfigurationCommand.d.ts +4 -2
  19. package/dist-types/commands/CreateServiceCommand.d.ts +4 -0
  20. package/dist-types/commands/DeleteAutoScalingConfigurationCommand.d.ts +6 -2
  21. package/dist-types/commands/DeleteServiceCommand.d.ts +4 -0
  22. package/dist-types/commands/DescribeAutoScalingConfigurationCommand.d.ts +2 -0
  23. package/dist-types/commands/DescribeServiceCommand.d.ts +4 -0
  24. package/dist-types/commands/ListAutoScalingConfigurationsCommand.d.ts +4 -0
  25. package/dist-types/commands/ListServicesForAutoScalingConfigurationCommand.d.ts +87 -0
  26. package/dist-types/commands/PauseServiceCommand.d.ts +4 -0
  27. package/dist-types/commands/ResumeServiceCommand.d.ts +4 -0
  28. package/dist-types/commands/UpdateDefaultAutoScalingConfigurationCommand.d.ts +96 -0
  29. package/dist-types/commands/UpdateServiceCommand.d.ts +4 -0
  30. package/dist-types/commands/index.d.ts +2 -0
  31. package/dist-types/models/models_0.d.ts +135 -6
  32. package/dist-types/pagination/ListServicesForAutoScalingConfigurationPaginator.d.ts +7 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
  35. package/dist-types/ts3.4/AppRunner.d.ts +46 -0
  36. package/dist-types/ts3.4/AppRunnerClient.d.ts +12 -0
  37. package/dist-types/ts3.4/commands/ListServicesForAutoScalingConfigurationCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/UpdateDefaultAutoScalingConfigurationCommand.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +22 -0
  41. package/dist-types/ts3.4/pagination/ListServicesForAutoScalingConfigurationPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
  44. package/package.json +1 -1
@@ -152,6 +152,12 @@ export const se_ListServicesCommand = async (input, context) => {
152
152
  body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
+ export const se_ListServicesForAutoScalingConfigurationCommand = async (input, context) => {
156
+ const headers = sharedHeaders("ListServicesForAutoScalingConfiguration");
157
+ let body;
158
+ body = JSON.stringify(_json(input));
159
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
+ };
155
161
  export const se_ListTagsForResourceCommand = async (input, context) => {
156
162
  const headers = sharedHeaders("ListTagsForResource");
157
163
  let body;
@@ -200,6 +206,12 @@ export const se_UntagResourceCommand = async (input, context) => {
200
206
  body = JSON.stringify(_json(input));
201
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
208
  };
209
+ export const se_UpdateDefaultAutoScalingConfigurationCommand = async (input, context) => {
210
+ const headers = sharedHeaders("UpdateDefaultAutoScalingConfiguration");
211
+ let body;
212
+ body = JSON.stringify(_json(input));
213
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
+ };
203
215
  export const se_UpdateServiceCommand = async (input, context) => {
204
216
  const headers = sharedHeaders("UpdateService");
205
217
  let body;
@@ -990,7 +1002,7 @@ export const de_ListAutoScalingConfigurationsCommand = async (output, context) =
990
1002
  }
991
1003
  const data = await parseBody(output.body, context);
992
1004
  let contents = {};
993
- contents = _json(data);
1005
+ contents = de_ListAutoScalingConfigurationsResponse(data, context);
994
1006
  const response = {
995
1007
  $metadata: deserializeMetadata(output),
996
1008
  ...contents,
@@ -1162,6 +1174,44 @@ const de_ListServicesCommandError = async (output, context) => {
1162
1174
  });
1163
1175
  }
1164
1176
  };
1177
+ export const de_ListServicesForAutoScalingConfigurationCommand = async (output, context) => {
1178
+ if (output.statusCode >= 300) {
1179
+ return de_ListServicesForAutoScalingConfigurationCommandError(output, context);
1180
+ }
1181
+ const data = await parseBody(output.body, context);
1182
+ let contents = {};
1183
+ contents = _json(data);
1184
+ const response = {
1185
+ $metadata: deserializeMetadata(output),
1186
+ ...contents,
1187
+ };
1188
+ return response;
1189
+ };
1190
+ const de_ListServicesForAutoScalingConfigurationCommandError = async (output, context) => {
1191
+ const parsedOutput = {
1192
+ ...output,
1193
+ body: await parseErrorBody(output.body, context),
1194
+ };
1195
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
+ switch (errorCode) {
1197
+ case "InternalServiceErrorException":
1198
+ case "com.amazonaws.apprunner#InternalServiceErrorException":
1199
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1200
+ case "InvalidRequestException":
1201
+ case "com.amazonaws.apprunner#InvalidRequestException":
1202
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1203
+ case "ResourceNotFoundException":
1204
+ case "com.amazonaws.apprunner#ResourceNotFoundException":
1205
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1206
+ default:
1207
+ const parsedBody = parsedOutput.body;
1208
+ return throwDefaultError({
1209
+ output,
1210
+ parsedBody,
1211
+ errorCode,
1212
+ });
1213
+ }
1214
+ };
1165
1215
  export const de_ListTagsForResourceCommand = async (output, context) => {
1166
1216
  if (output.statusCode >= 300) {
1167
1217
  return de_ListTagsForResourceCommandError(output, context);
@@ -1475,6 +1525,44 @@ const de_UntagResourceCommandError = async (output, context) => {
1475
1525
  });
1476
1526
  }
1477
1527
  };
1528
+ export const de_UpdateDefaultAutoScalingConfigurationCommand = async (output, context) => {
1529
+ if (output.statusCode >= 300) {
1530
+ return de_UpdateDefaultAutoScalingConfigurationCommandError(output, context);
1531
+ }
1532
+ const data = await parseBody(output.body, context);
1533
+ let contents = {};
1534
+ contents = de_UpdateDefaultAutoScalingConfigurationResponse(data, context);
1535
+ const response = {
1536
+ $metadata: deserializeMetadata(output),
1537
+ ...contents,
1538
+ };
1539
+ return response;
1540
+ };
1541
+ const de_UpdateDefaultAutoScalingConfigurationCommandError = async (output, context) => {
1542
+ const parsedOutput = {
1543
+ ...output,
1544
+ body: await parseErrorBody(output.body, context),
1545
+ };
1546
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1547
+ switch (errorCode) {
1548
+ case "InternalServiceErrorException":
1549
+ case "com.amazonaws.apprunner#InternalServiceErrorException":
1550
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1551
+ case "InvalidRequestException":
1552
+ case "com.amazonaws.apprunner#InvalidRequestException":
1553
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1554
+ case "ResourceNotFoundException":
1555
+ case "com.amazonaws.apprunner#ResourceNotFoundException":
1556
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1557
+ default:
1558
+ const parsedBody = parsedOutput.body;
1559
+ return throwDefaultError({
1560
+ output,
1561
+ parsedBody,
1562
+ errorCode,
1563
+ });
1564
+ }
1565
+ };
1478
1566
  export const de_UpdateServiceCommand = async (output, context) => {
1479
1567
  if (output.statusCode >= 300) {
1480
1568
  return de_UpdateServiceCommandError(output, context);
@@ -1609,6 +1697,8 @@ const de_AutoScalingConfiguration = (output, context) => {
1609
1697
  AutoScalingConfigurationRevision: __expectInt32,
1610
1698
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1611
1699
  DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1700
+ HasAssociatedService: __expectBoolean,
1701
+ IsDefault: __expectBoolean,
1612
1702
  Latest: __expectBoolean,
1613
1703
  MaxConcurrency: __expectInt32,
1614
1704
  MaxSize: __expectInt32,
@@ -1616,6 +1706,25 @@ const de_AutoScalingConfiguration = (output, context) => {
1616
1706
  Status: __expectString,
1617
1707
  });
1618
1708
  };
1709
+ const de_AutoScalingConfigurationSummary = (output, context) => {
1710
+ return take(output, {
1711
+ AutoScalingConfigurationArn: __expectString,
1712
+ AutoScalingConfigurationName: __expectString,
1713
+ AutoScalingConfigurationRevision: __expectInt32,
1714
+ CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1715
+ HasAssociatedService: __expectBoolean,
1716
+ IsDefault: __expectBoolean,
1717
+ Status: __expectString,
1718
+ });
1719
+ };
1720
+ const de_AutoScalingConfigurationSummaryList = (output, context) => {
1721
+ const retVal = (output || [])
1722
+ .filter((e) => e != null)
1723
+ .map((entry) => {
1724
+ return de_AutoScalingConfigurationSummary(entry, context);
1725
+ });
1726
+ return retVal;
1727
+ };
1619
1728
  const de_Connection = (output, context) => {
1620
1729
  return take(output, {
1621
1730
  ConnectionArn: __expectString,
@@ -1729,6 +1838,12 @@ const de_DescribeVpcIngressConnectionResponse = (output, context) => {
1729
1838
  VpcIngressConnection: (_) => de_VpcIngressConnection(_, context),
1730
1839
  });
1731
1840
  };
1841
+ const de_ListAutoScalingConfigurationsResponse = (output, context) => {
1842
+ return take(output, {
1843
+ AutoScalingConfigurationSummaryList: (_) => de_AutoScalingConfigurationSummaryList(_, context),
1844
+ NextToken: __expectString,
1845
+ });
1846
+ };
1732
1847
  const de_ListConnectionsResponse = (output, context) => {
1733
1848
  return take(output, {
1734
1849
  ConnectionSummaryList: (_) => de_ConnectionSummaryList(_, context),
@@ -1798,7 +1913,7 @@ const de_ResumeServiceResponse = (output, context) => {
1798
1913
  };
1799
1914
  const de_Service = (output, context) => {
1800
1915
  return take(output, {
1801
- AutoScalingConfigurationSummary: _json,
1916
+ AutoScalingConfigurationSummary: (_) => de_AutoScalingConfigurationSummary(_, context),
1802
1917
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1803
1918
  DeletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1804
1919
  EncryptionConfiguration: _json,
@@ -1834,6 +1949,11 @@ const de_ServiceSummaryList = (output, context) => {
1834
1949
  });
1835
1950
  return retVal;
1836
1951
  };
1952
+ const de_UpdateDefaultAutoScalingConfigurationResponse = (output, context) => {
1953
+ return take(output, {
1954
+ AutoScalingConfiguration: (_) => de_AutoScalingConfiguration(_, context),
1955
+ });
1956
+ };
1837
1957
  const de_UpdateServiceResponse = (output, context) => {
1838
1958
  return take(output, {
1839
1959
  OperationId: __expectString,
@@ -25,6 +25,7 @@ import { ListConnectionsCommandInput, ListConnectionsCommandOutput } from "./com
25
25
  import { ListObservabilityConfigurationsCommandInput, ListObservabilityConfigurationsCommandOutput } from "./commands/ListObservabilityConfigurationsCommand";
26
26
  import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./commands/ListOperationsCommand";
27
27
  import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
28
+ import { ListServicesForAutoScalingConfigurationCommandInput, ListServicesForAutoScalingConfigurationCommandOutput } from "./commands/ListServicesForAutoScalingConfigurationCommand";
28
29
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
29
30
  import { ListVpcConnectorsCommandInput, ListVpcConnectorsCommandOutput } from "./commands/ListVpcConnectorsCommand";
30
31
  import { ListVpcIngressConnectionsCommandInput, ListVpcIngressConnectionsCommandOutput } from "./commands/ListVpcIngressConnectionsCommand";
@@ -33,6 +34,7 @@ import { ResumeServiceCommandInput, ResumeServiceCommandOutput } from "./command
33
34
  import { StartDeploymentCommandInput, StartDeploymentCommandOutput } from "./commands/StartDeploymentCommand";
34
35
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
35
36
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
37
+ import { UpdateDefaultAutoScalingConfigurationCommandInput, UpdateDefaultAutoScalingConfigurationCommandOutput } from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
36
38
  import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "./commands/UpdateServiceCommand";
37
39
  import { UpdateVpcIngressConnectionCommandInput, UpdateVpcIngressConnectionCommandOutput } from "./commands/UpdateVpcIngressConnectionCommand";
38
40
  export interface AppRunner {
@@ -186,6 +188,12 @@ export interface AppRunner {
186
188
  listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
187
189
  listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
188
190
  listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
191
+ /**
192
+ * @see {@link ListServicesForAutoScalingConfigurationCommand}
193
+ */
194
+ listServicesForAutoScalingConfiguration(args: ListServicesForAutoScalingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesForAutoScalingConfigurationCommandOutput>;
195
+ listServicesForAutoScalingConfiguration(args: ListServicesForAutoScalingConfigurationCommandInput, cb: (err: any, data?: ListServicesForAutoScalingConfigurationCommandOutput) => void): void;
196
+ listServicesForAutoScalingConfiguration(args: ListServicesForAutoScalingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesForAutoScalingConfigurationCommandOutput) => void): void;
189
197
  /**
190
198
  * @see {@link ListTagsForResourceCommand}
191
199
  */
@@ -234,6 +242,12 @@ export interface AppRunner {
234
242
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
235
243
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
236
244
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
245
+ /**
246
+ * @see {@link UpdateDefaultAutoScalingConfigurationCommand}
247
+ */
248
+ updateDefaultAutoScalingConfiguration(args: UpdateDefaultAutoScalingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDefaultAutoScalingConfigurationCommandOutput>;
249
+ updateDefaultAutoScalingConfiguration(args: UpdateDefaultAutoScalingConfigurationCommandInput, cb: (err: any, data?: UpdateDefaultAutoScalingConfigurationCommandOutput) => void): void;
250
+ updateDefaultAutoScalingConfiguration(args: UpdateDefaultAutoScalingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDefaultAutoScalingConfigurationCommandOutput) => void): void;
237
251
  /**
238
252
  * @see {@link UpdateServiceCommand}
239
253
  */
@@ -33,6 +33,7 @@ import { ListConnectionsCommandInput, ListConnectionsCommandOutput } from "./com
33
33
  import { ListObservabilityConfigurationsCommandInput, ListObservabilityConfigurationsCommandOutput } from "./commands/ListObservabilityConfigurationsCommand";
34
34
  import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./commands/ListOperationsCommand";
35
35
  import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
36
+ import { ListServicesForAutoScalingConfigurationCommandInput, ListServicesForAutoScalingConfigurationCommandOutput } from "./commands/ListServicesForAutoScalingConfigurationCommand";
36
37
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
37
38
  import { ListVpcConnectorsCommandInput, ListVpcConnectorsCommandOutput } from "./commands/ListVpcConnectorsCommand";
38
39
  import { ListVpcIngressConnectionsCommandInput, ListVpcIngressConnectionsCommandOutput } from "./commands/ListVpcIngressConnectionsCommand";
@@ -41,6 +42,7 @@ import { ResumeServiceCommandInput, ResumeServiceCommandOutput } from "./command
41
42
  import { StartDeploymentCommandInput, StartDeploymentCommandOutput } from "./commands/StartDeploymentCommand";
42
43
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
43
44
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
45
+ import { UpdateDefaultAutoScalingConfigurationCommandInput, UpdateDefaultAutoScalingConfigurationCommandOutput } from "./commands/UpdateDefaultAutoScalingConfigurationCommand";
44
46
  import { UpdateServiceCommandInput, UpdateServiceCommandOutput } from "./commands/UpdateServiceCommand";
45
47
  import { UpdateVpcIngressConnectionCommandInput, UpdateVpcIngressConnectionCommandOutput } from "./commands/UpdateVpcIngressConnectionCommand";
46
48
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -49,11 +51,11 @@ export { __Client };
49
51
  /**
50
52
  * @public
51
53
  */
52
- export type ServiceInputTypes = AssociateCustomDomainCommandInput | CreateAutoScalingConfigurationCommandInput | CreateConnectionCommandInput | CreateObservabilityConfigurationCommandInput | CreateServiceCommandInput | CreateVpcConnectorCommandInput | CreateVpcIngressConnectionCommandInput | DeleteAutoScalingConfigurationCommandInput | DeleteConnectionCommandInput | DeleteObservabilityConfigurationCommandInput | DeleteServiceCommandInput | DeleteVpcConnectorCommandInput | DeleteVpcIngressConnectionCommandInput | DescribeAutoScalingConfigurationCommandInput | DescribeCustomDomainsCommandInput | DescribeObservabilityConfigurationCommandInput | DescribeServiceCommandInput | DescribeVpcConnectorCommandInput | DescribeVpcIngressConnectionCommandInput | DisassociateCustomDomainCommandInput | ListAutoScalingConfigurationsCommandInput | ListConnectionsCommandInput | ListObservabilityConfigurationsCommandInput | ListOperationsCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | ListVpcConnectorsCommandInput | ListVpcIngressConnectionsCommandInput | PauseServiceCommandInput | ResumeServiceCommandInput | StartDeploymentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateServiceCommandInput | UpdateVpcIngressConnectionCommandInput;
54
+ export type ServiceInputTypes = AssociateCustomDomainCommandInput | CreateAutoScalingConfigurationCommandInput | CreateConnectionCommandInput | CreateObservabilityConfigurationCommandInput | CreateServiceCommandInput | CreateVpcConnectorCommandInput | CreateVpcIngressConnectionCommandInput | DeleteAutoScalingConfigurationCommandInput | DeleteConnectionCommandInput | DeleteObservabilityConfigurationCommandInput | DeleteServiceCommandInput | DeleteVpcConnectorCommandInput | DeleteVpcIngressConnectionCommandInput | DescribeAutoScalingConfigurationCommandInput | DescribeCustomDomainsCommandInput | DescribeObservabilityConfigurationCommandInput | DescribeServiceCommandInput | DescribeVpcConnectorCommandInput | DescribeVpcIngressConnectionCommandInput | DisassociateCustomDomainCommandInput | ListAutoScalingConfigurationsCommandInput | ListConnectionsCommandInput | ListObservabilityConfigurationsCommandInput | ListOperationsCommandInput | ListServicesCommandInput | ListServicesForAutoScalingConfigurationCommandInput | ListTagsForResourceCommandInput | ListVpcConnectorsCommandInput | ListVpcIngressConnectionsCommandInput | PauseServiceCommandInput | ResumeServiceCommandInput | StartDeploymentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDefaultAutoScalingConfigurationCommandInput | UpdateServiceCommandInput | UpdateVpcIngressConnectionCommandInput;
53
55
  /**
54
56
  * @public
55
57
  */
56
- export type ServiceOutputTypes = AssociateCustomDomainCommandOutput | CreateAutoScalingConfigurationCommandOutput | CreateConnectionCommandOutput | CreateObservabilityConfigurationCommandOutput | CreateServiceCommandOutput | CreateVpcConnectorCommandOutput | CreateVpcIngressConnectionCommandOutput | DeleteAutoScalingConfigurationCommandOutput | DeleteConnectionCommandOutput | DeleteObservabilityConfigurationCommandOutput | DeleteServiceCommandOutput | DeleteVpcConnectorCommandOutput | DeleteVpcIngressConnectionCommandOutput | DescribeAutoScalingConfigurationCommandOutput | DescribeCustomDomainsCommandOutput | DescribeObservabilityConfigurationCommandOutput | DescribeServiceCommandOutput | DescribeVpcConnectorCommandOutput | DescribeVpcIngressConnectionCommandOutput | DisassociateCustomDomainCommandOutput | ListAutoScalingConfigurationsCommandOutput | ListConnectionsCommandOutput | ListObservabilityConfigurationsCommandOutput | ListOperationsCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | ListVpcConnectorsCommandOutput | ListVpcIngressConnectionsCommandOutput | PauseServiceCommandOutput | ResumeServiceCommandOutput | StartDeploymentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateServiceCommandOutput | UpdateVpcIngressConnectionCommandOutput;
58
+ export type ServiceOutputTypes = AssociateCustomDomainCommandOutput | CreateAutoScalingConfigurationCommandOutput | CreateConnectionCommandOutput | CreateObservabilityConfigurationCommandOutput | CreateServiceCommandOutput | CreateVpcConnectorCommandOutput | CreateVpcIngressConnectionCommandOutput | DeleteAutoScalingConfigurationCommandOutput | DeleteConnectionCommandOutput | DeleteObservabilityConfigurationCommandOutput | DeleteServiceCommandOutput | DeleteVpcConnectorCommandOutput | DeleteVpcIngressConnectionCommandOutput | DescribeAutoScalingConfigurationCommandOutput | DescribeCustomDomainsCommandOutput | DescribeObservabilityConfigurationCommandOutput | DescribeServiceCommandOutput | DescribeVpcConnectorCommandOutput | DescribeVpcIngressConnectionCommandOutput | DisassociateCustomDomainCommandOutput | ListAutoScalingConfigurationsCommandOutput | ListConnectionsCommandOutput | ListObservabilityConfigurationsCommandOutput | ListOperationsCommandOutput | ListServicesCommandOutput | ListServicesForAutoScalingConfigurationCommandOutput | ListTagsForResourceCommandOutput | ListVpcConnectorsCommandOutput | ListVpcIngressConnectionsCommandOutput | PauseServiceCommandOutput | ResumeServiceCommandOutput | StartDeploymentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDefaultAutoScalingConfigurationCommandOutput | UpdateServiceCommandOutput | UpdateVpcIngressConnectionCommandOutput;
57
59
  /**
58
60
  * @public
59
61
  */
@@ -29,8 +29,8 @@ export interface CreateAutoScalingConfigurationCommandOutput extends CreateAutoS
29
29
  * returns incremental <code>AutoScalingConfigurationRevision</code> values. When you create a service and configure an auto scaling configuration resource,
30
30
  * the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific
31
31
  * revision.</p>
32
- * <p>Configure a higher <code>MinSize</code> to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The tradeoff is
33
- * a higher minimal cost.</p>
32
+ * <p>Configure a higher <code>MinSize</code> to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The
33
+ * tradeoff is a higher minimal cost.</p>
34
34
  * <p>Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower responsiveness during peak demand.</p>
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
@@ -64,6 +64,8 @@ export interface CreateAutoScalingConfigurationCommandOutput extends CreateAutoS
64
64
  * // MaxSize: Number("int"),
65
65
  * // CreatedAt: new Date("TIMESTAMP"),
66
66
  * // DeletedAt: new Date("TIMESTAMP"),
67
+ * // HasAssociatedService: true || false,
68
+ * // IsDefault: true || false,
67
69
  * // },
68
70
  * // };
69
71
  *
@@ -188,6 +188,10 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
188
188
  * // AutoScalingConfigurationArn: "STRING_VALUE",
189
189
  * // AutoScalingConfigurationName: "STRING_VALUE",
190
190
  * // AutoScalingConfigurationRevision: Number("int"),
191
+ * // Status: "ACTIVE" || "INACTIVE",
192
+ * // CreatedAt: new Date("TIMESTAMP"),
193
+ * // HasAssociatedService: true || false,
194
+ * // IsDefault: true || false,
191
195
  * // },
192
196
  * // NetworkConfiguration: { // NetworkConfiguration
193
197
  * // EgressConfiguration: { // EgressConfiguration
@@ -23,8 +23,9 @@ export interface DeleteAutoScalingConfigurationCommandOutput extends DeleteAutoS
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Delete an App Runner automatic scaling configuration resource. You can delete a specific revision or the latest active revision. You can't delete a
27
- * configuration that's used by one or more App Runner services.</p>
26
+ * <p>Delete an App Runner automatic scaling configuration resource. You can delete a top level auto scaling configuration, a specific revision of one, or all
27
+ * revisions associated with the top level configuration. You can't delete the default auto scaling configuration or a configuration that's used by one or
28
+ * more App Runner services.</p>
28
29
  * @example
29
30
  * Use a bare-bones client and the command you need to make an API call.
30
31
  * ```javascript
@@ -33,6 +34,7 @@ export interface DeleteAutoScalingConfigurationCommandOutput extends DeleteAutoS
33
34
  * const client = new AppRunnerClient(config);
34
35
  * const input = { // DeleteAutoScalingConfigurationRequest
35
36
  * AutoScalingConfigurationArn: "STRING_VALUE", // required
37
+ * DeleteAllRevisions: true || false,
36
38
  * };
37
39
  * const command = new DeleteAutoScalingConfigurationCommand(input);
38
40
  * const response = await client.send(command);
@@ -48,6 +50,8 @@ export interface DeleteAutoScalingConfigurationCommandOutput extends DeleteAutoS
48
50
  * // MaxSize: Number("int"),
49
51
  * // CreatedAt: new Date("TIMESTAMP"),
50
52
  * // DeletedAt: new Date("TIMESTAMP"),
53
+ * // HasAssociatedService: true || false,
54
+ * // IsDefault: true || false,
51
55
  * // },
52
56
  * // };
53
57
  *
@@ -114,6 +114,10 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
114
114
  * // AutoScalingConfigurationArn: "STRING_VALUE",
115
115
  * // AutoScalingConfigurationName: "STRING_VALUE",
116
116
  * // AutoScalingConfigurationRevision: Number("int"),
117
+ * // Status: "ACTIVE" || "INACTIVE",
118
+ * // CreatedAt: new Date("TIMESTAMP"),
119
+ * // HasAssociatedService: true || false,
120
+ * // IsDefault: true || false,
117
121
  * // },
118
122
  * // NetworkConfiguration: { // NetworkConfiguration
119
123
  * // EgressConfiguration: { // EgressConfiguration
@@ -47,6 +47,8 @@ export interface DescribeAutoScalingConfigurationCommandOutput extends DescribeA
47
47
  * // MaxSize: Number("int"),
48
48
  * // CreatedAt: new Date("TIMESTAMP"),
49
49
  * // DeletedAt: new Date("TIMESTAMP"),
50
+ * // HasAssociatedService: true || false,
51
+ * // IsDefault: true || false,
50
52
  * // },
51
53
  * // };
52
54
  *
@@ -108,6 +108,10 @@ export interface DescribeServiceCommandOutput extends DescribeServiceResponse, _
108
108
  * // AutoScalingConfigurationArn: "STRING_VALUE",
109
109
  * // AutoScalingConfigurationName: "STRING_VALUE",
110
110
  * // AutoScalingConfigurationRevision: Number("int"),
111
+ * // Status: "ACTIVE" || "INACTIVE",
112
+ * // CreatedAt: new Date("TIMESTAMP"),
113
+ * // HasAssociatedService: true || false,
114
+ * // IsDefault: true || false,
111
115
  * // },
112
116
  * // NetworkConfiguration: { // NetworkConfiguration
113
117
  * // EgressConfiguration: { // EgressConfiguration
@@ -48,6 +48,10 @@ export interface ListAutoScalingConfigurationsCommandOutput extends ListAutoScal
48
48
  * // AutoScalingConfigurationArn: "STRING_VALUE",
49
49
  * // AutoScalingConfigurationName: "STRING_VALUE",
50
50
  * // AutoScalingConfigurationRevision: Number("int"),
51
+ * // Status: "ACTIVE" || "INACTIVE",
52
+ * // CreatedAt: new Date("TIMESTAMP"),
53
+ * // HasAssociatedService: true || false,
54
+ * // IsDefault: true || false,
51
55
  * // },
52
56
  * // ],
53
57
  * // NextToken: "STRING_VALUE",
@@ -0,0 +1,87 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient";
5
+ import { ListServicesForAutoScalingConfigurationRequest, ListServicesForAutoScalingConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListServicesForAutoScalingConfigurationCommand}.
14
+ */
15
+ export interface ListServicesForAutoScalingConfigurationCommandInput extends ListServicesForAutoScalingConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListServicesForAutoScalingConfigurationCommand}.
21
+ */
22
+ export interface ListServicesForAutoScalingConfigurationCommandOutput extends ListServicesForAutoScalingConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a list of the associated App Runner services using an auto scaling configuration.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { AppRunnerClient, ListServicesForAutoScalingConfigurationCommand } from "@aws-sdk/client-apprunner"; // ES Modules import
31
+ * // const { AppRunnerClient, ListServicesForAutoScalingConfigurationCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import
32
+ * const client = new AppRunnerClient(config);
33
+ * const input = { // ListServicesForAutoScalingConfigurationRequest
34
+ * AutoScalingConfigurationArn: "STRING_VALUE", // required
35
+ * MaxResults: Number("int"),
36
+ * NextToken: "STRING_VALUE",
37
+ * };
38
+ * const command = new ListServicesForAutoScalingConfigurationCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // ListServicesForAutoScalingConfigurationResponse
41
+ * // ServiceArnList: [ // ServiceArnList // required
42
+ * // "STRING_VALUE",
43
+ * // ],
44
+ * // NextToken: "STRING_VALUE",
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param ListServicesForAutoScalingConfigurationCommandInput - {@link ListServicesForAutoScalingConfigurationCommandInput}
50
+ * @returns {@link ListServicesForAutoScalingConfigurationCommandOutput}
51
+ * @see {@link ListServicesForAutoScalingConfigurationCommandInput} for command's `input` shape.
52
+ * @see {@link ListServicesForAutoScalingConfigurationCommandOutput} for command's `response` shape.
53
+ * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape.
54
+ *
55
+ * @throws {@link InternalServiceErrorException} (server fault)
56
+ * <p>An unexpected service exception occurred.</p>
57
+ *
58
+ * @throws {@link InvalidRequestException} (client fault)
59
+ * <p>One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.</p>
63
+ *
64
+ * @throws {@link AppRunnerServiceException}
65
+ * <p>Base exception class for all service exceptions from AppRunner service.</p>
66
+ *
67
+ */
68
+ export declare class ListServicesForAutoScalingConfigurationCommand extends $Command<ListServicesForAutoScalingConfigurationCommandInput, ListServicesForAutoScalingConfigurationCommandOutput, AppRunnerClientResolvedConfig> {
69
+ readonly input: ListServicesForAutoScalingConfigurationCommandInput;
70
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
71
+ /**
72
+ * @public
73
+ */
74
+ constructor(input: ListServicesForAutoScalingConfigurationCommandInput);
75
+ /**
76
+ * @internal
77
+ */
78
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppRunnerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListServicesForAutoScalingConfigurationCommandInput, ListServicesForAutoScalingConfigurationCommandOutput>;
79
+ /**
80
+ * @internal
81
+ */
82
+ private serialize;
83
+ /**
84
+ * @internal
85
+ */
86
+ private deserialize;
87
+ }
@@ -111,6 +111,10 @@ export interface PauseServiceCommandOutput extends PauseServiceResponse, __Metad
111
111
  * // AutoScalingConfigurationArn: "STRING_VALUE",
112
112
  * // AutoScalingConfigurationName: "STRING_VALUE",
113
113
  * // AutoScalingConfigurationRevision: Number("int"),
114
+ * // Status: "ACTIVE" || "INACTIVE",
115
+ * // CreatedAt: new Date("TIMESTAMP"),
116
+ * // HasAssociatedService: true || false,
117
+ * // IsDefault: true || false,
114
118
  * // },
115
119
  * // NetworkConfiguration: { // NetworkConfiguration
116
120
  * // EgressConfiguration: { // EgressConfiguration
@@ -110,6 +110,10 @@ export interface ResumeServiceCommandOutput extends ResumeServiceResponse, __Met
110
110
  * // AutoScalingConfigurationArn: "STRING_VALUE",
111
111
  * // AutoScalingConfigurationName: "STRING_VALUE",
112
112
  * // AutoScalingConfigurationRevision: Number("int"),
113
+ * // Status: "ACTIVE" || "INACTIVE",
114
+ * // CreatedAt: new Date("TIMESTAMP"),
115
+ * // HasAssociatedService: true || false,
116
+ * // IsDefault: true || false,
113
117
  * // },
114
118
  * // NetworkConfiguration: { // NetworkConfiguration
115
119
  * // EgressConfiguration: { // EgressConfiguration
@@ -0,0 +1,96 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient";
5
+ import { UpdateDefaultAutoScalingConfigurationRequest, UpdateDefaultAutoScalingConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateDefaultAutoScalingConfigurationCommand}.
14
+ */
15
+ export interface UpdateDefaultAutoScalingConfigurationCommandInput extends UpdateDefaultAutoScalingConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateDefaultAutoScalingConfigurationCommand}.
21
+ */
22
+ export interface UpdateDefaultAutoScalingConfigurationCommandOutput extends UpdateDefaultAutoScalingConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Update an auto scaling configuration to be the default. The existing default auto scaling configuration will be set to non-default
27
+ * automatically.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AppRunnerClient, UpdateDefaultAutoScalingConfigurationCommand } from "@aws-sdk/client-apprunner"; // ES Modules import
32
+ * // const { AppRunnerClient, UpdateDefaultAutoScalingConfigurationCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import
33
+ * const client = new AppRunnerClient(config);
34
+ * const input = { // UpdateDefaultAutoScalingConfigurationRequest
35
+ * AutoScalingConfigurationArn: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new UpdateDefaultAutoScalingConfigurationCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // UpdateDefaultAutoScalingConfigurationResponse
40
+ * // AutoScalingConfiguration: { // AutoScalingConfiguration
41
+ * // AutoScalingConfigurationArn: "STRING_VALUE",
42
+ * // AutoScalingConfigurationName: "STRING_VALUE",
43
+ * // AutoScalingConfigurationRevision: Number("int"),
44
+ * // Latest: true || false,
45
+ * // Status: "ACTIVE" || "INACTIVE",
46
+ * // MaxConcurrency: Number("int"),
47
+ * // MinSize: Number("int"),
48
+ * // MaxSize: Number("int"),
49
+ * // CreatedAt: new Date("TIMESTAMP"),
50
+ * // DeletedAt: new Date("TIMESTAMP"),
51
+ * // HasAssociatedService: true || false,
52
+ * // IsDefault: true || false,
53
+ * // },
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param UpdateDefaultAutoScalingConfigurationCommandInput - {@link UpdateDefaultAutoScalingConfigurationCommandInput}
59
+ * @returns {@link UpdateDefaultAutoScalingConfigurationCommandOutput}
60
+ * @see {@link UpdateDefaultAutoScalingConfigurationCommandInput} for command's `input` shape.
61
+ * @see {@link UpdateDefaultAutoScalingConfigurationCommandOutput} for command's `response` shape.
62
+ * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape.
63
+ *
64
+ * @throws {@link InternalServiceErrorException} (server fault)
65
+ * <p>An unexpected service exception occurred.</p>
66
+ *
67
+ * @throws {@link InvalidRequestException} (client fault)
68
+ * <p>One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.</p>
72
+ *
73
+ * @throws {@link AppRunnerServiceException}
74
+ * <p>Base exception class for all service exceptions from AppRunner service.</p>
75
+ *
76
+ */
77
+ export declare class UpdateDefaultAutoScalingConfigurationCommand extends $Command<UpdateDefaultAutoScalingConfigurationCommandInput, UpdateDefaultAutoScalingConfigurationCommandOutput, AppRunnerClientResolvedConfig> {
78
+ readonly input: UpdateDefaultAutoScalingConfigurationCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
+ /**
81
+ * @public
82
+ */
83
+ constructor(input: UpdateDefaultAutoScalingConfigurationCommandInput);
84
+ /**
85
+ * @internal
86
+ */
87
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppRunnerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateDefaultAutoScalingConfigurationCommandInput, UpdateDefaultAutoScalingConfigurationCommandOutput>;
88
+ /**
89
+ * @internal
90
+ */
91
+ private serialize;
92
+ /**
93
+ * @internal
94
+ */
95
+ private deserialize;
96
+ }
@@ -183,6 +183,10 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
183
183
  * // AutoScalingConfigurationArn: "STRING_VALUE",
184
184
  * // AutoScalingConfigurationName: "STRING_VALUE",
185
185
  * // AutoScalingConfigurationRevision: Number("int"),
186
+ * // Status: "ACTIVE" || "INACTIVE",
187
+ * // CreatedAt: new Date("TIMESTAMP"),
188
+ * // HasAssociatedService: true || false,
189
+ * // IsDefault: true || false,
186
190
  * // },
187
191
  * // NetworkConfiguration: { // NetworkConfiguration
188
192
  * // EgressConfiguration: { // EgressConfiguration
@@ -23,6 +23,7 @@ export * from "./ListConnectionsCommand";
23
23
  export * from "./ListObservabilityConfigurationsCommand";
24
24
  export * from "./ListOperationsCommand";
25
25
  export * from "./ListServicesCommand";
26
+ export * from "./ListServicesForAutoScalingConfigurationCommand";
26
27
  export * from "./ListTagsForResourceCommand";
27
28
  export * from "./ListVpcConnectorsCommand";
28
29
  export * from "./ListVpcIngressConnectionsCommand";
@@ -31,5 +32,6 @@ export * from "./ResumeServiceCommand";
31
32
  export * from "./StartDeploymentCommand";
32
33
  export * from "./TagResourceCommand";
33
34
  export * from "./UntagResourceCommand";
35
+ export * from "./UpdateDefaultAutoScalingConfigurationCommand";
34
36
  export * from "./UpdateServiceCommand";
35
37
  export * from "./UpdateVpcIngressConnectionCommand";