aws-sdk-apprunner 1.28.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71123d355f923e6366bc040b2af8f64e61f8bc66edd6ec6dd5f2dbc0a6bd47b1
4
- data.tar.gz: 5ad944beda88e79ea5c5c92ac6e355fa289bb498e531fbe3c5bbf139b9a1cf13
3
+ metadata.gz: d9b60691f96cb0064d6d296e6446de5d2a8da2831760d61693cb11f2aff7133b
4
+ data.tar.gz: b08fff1ba6d77a14553247fcc9768a6d829e81d1a5a80a4029befaf5efa8e6a4
5
5
  SHA512:
6
- metadata.gz: fe7d548d36da516d3bfe654ab47b1d5d07d2dc30825a56b9fbc585b4634ce2ab937d8e49fd2b23beec018f90a2155fa439af0473e95ab738809bc09a7a769d29
7
- data.tar.gz: 6847a6f3585fe6ff99a0540e4c7411648e9942e4f5f873f52f1b2f54921f4d827a653192bb90d7315a452eef3a3db34974e793691ca43c95c5ebd7c62ca5f0dc
6
+ metadata.gz: dcea8373ca3a61467dac307852fd6aabfe1e320e746465cd866c7c15e67d8e039ab4666beba0b2e9536612996a8dd637cb71b6436a6528180bf141262b2336f7
7
+ data.tar.gz: 560faec1f580af0bbf1850e9090c12dbaff2f8b80e22bd7a6af3cb324c84e05ab740f91ab1709dfa9f17e6f0f1951934054b77519ec34a8241e97e8b8f003829
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.30.0 (2023-09-26)
5
+ ------------------
6
+
7
+ * Feature - This release allows an App Runner customer to specify a custom source directory to run the build & start command. This change allows App Runner to support monorepo based repositories
8
+
9
+ 1.29.0 (2023-09-20)
10
+ ------------------
11
+
12
+ * Feature - This release adds improvements for managing App Runner auto scaling configuration resources. New APIs: UpdateDefaultAutoScalingConfiguration and ListServicesForAutoScalingConfiguration. Updated API: DeleteAutoScalingConfiguration.
13
+
4
14
  1.28.0 (2023-08-30)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.28.0
1
+ 1.30.0
@@ -498,17 +498,33 @@ module Aws::AppRunner
498
498
  # subsequent calls, App Runner creates incremental revisions of the
499
499
  # configuration.
500
500
  #
501
- # <note markdown="1"> The name `DefaultConfiguration` is reserved (it's the configuration
502
- # that App Runner uses if you don't provide a custome one). You can't
503
- # use it to create a new auto scaling configuration, and you can't
504
- # create a revision of it.
501
+ # <note markdown="1"> Prior to the release of [Auto scale configuration enhancements][1],
502
+ # the name `DefaultConfiguration` was reserved.
505
503
  #
506
- # When you want to use your own auto scaling configuration for your App
507
- # Runner service, *create a configuration with a different name*, and
508
- # then provide it when you create or update your service.
504
+ # This restriction is no longer in place. You can now manage
505
+ # `DefaultConfiguration` the same way you manage your custom auto
506
+ # scaling configurations. This means you can do the following with the
507
+ # `DefaultConfiguration` that App Runner provides:
508
+ #
509
+ # * Create new revisions of the `DefaultConfiguration`.
510
+ #
511
+ # * Delete the revisions of the `DefaultConfiguration`.
512
+ #
513
+ # * Delete the auto scaling configuration for which the App Runner
514
+ # `DefaultConfiguration` was created.
515
+ #
516
+ # * If you delete the auto scaling configuration you can create another
517
+ # custom auto scaling configuration with the same
518
+ # `DefaultConfiguration` name. The original `DefaultConfiguration`
519
+ # resource provided by App Runner remains in your account unless you
520
+ # make changes to it.
509
521
  #
510
522
  # </note>
511
523
  #
524
+ #
525
+ #
526
+ # [1]: https://docs.aws.amazon.com/apprunner/latest/relnotes/release-2023-09-22-auto-scale-config.html
527
+ #
512
528
  # @option params [Integer] :max_concurrency
513
529
  # The maximum number of concurrent requests that you want an instance to
514
530
  # process. If the number of concurrent requests exceeds this limit, App
@@ -572,6 +588,8 @@ module Aws::AppRunner
572
588
  # resp.auto_scaling_configuration.max_size #=> Integer
573
589
  # resp.auto_scaling_configuration.created_at #=> Time
574
590
  # resp.auto_scaling_configuration.deleted_at #=> Time
591
+ # resp.auto_scaling_configuration.has_associated_service #=> Boolean
592
+ # resp.auto_scaling_configuration.is_default #=> Boolean
575
593
  #
576
594
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration AWS API Documentation
577
595
  #
@@ -809,6 +827,7 @@ module Aws::AppRunner
809
827
  # },
810
828
  # },
811
829
  # },
830
+ # source_directory: "SourceDirectory",
812
831
  # },
813
832
  # image_repository: {
814
833
  # image_identifier: "ImageIdentifier", # required
@@ -890,6 +909,7 @@ module Aws::AppRunner
890
909
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
891
910
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
892
911
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
912
+ # resp.service.source_configuration.code_repository.source_directory #=> String
893
913
  # resp.service.source_configuration.image_repository.image_identifier #=> String
894
914
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
895
915
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
@@ -914,6 +934,10 @@ module Aws::AppRunner
914
934
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_arn #=> String
915
935
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_name #=> String
916
936
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_revision #=> Integer
937
+ # resp.service.auto_scaling_configuration_summary.status #=> String, one of "ACTIVE", "INACTIVE"
938
+ # resp.service.auto_scaling_configuration_summary.created_at #=> Time
939
+ # resp.service.auto_scaling_configuration_summary.has_associated_service #=> Boolean
940
+ # resp.service.auto_scaling_configuration_summary.is_default #=> Boolean
917
941
  # resp.service.network_configuration.egress_configuration.egress_type #=> String, one of "DEFAULT", "VPC"
918
942
  # resp.service.network_configuration.egress_configuration.vpc_connector_arn #=> String
919
943
  # resp.service.network_configuration.ingress_configuration.is_publicly_accessible #=> Boolean
@@ -1063,9 +1087,10 @@ module Aws::AppRunner
1063
1087
  end
1064
1088
 
1065
1089
  # Delete an App Runner automatic scaling configuration resource. You can
1066
- # delete a specific revision or the latest active revision. You can't
1067
- # delete a configuration that's used by one or more App Runner
1068
- # services.
1090
+ # delete a top level auto scaling configuration, a specific revision of
1091
+ # one, or all revisions associated with the top level configuration. You
1092
+ # can't delete the default auto scaling configuration or a
1093
+ # configuration that's used by one or more App Runner services.
1069
1094
  #
1070
1095
  # @option params [required, String] :auto_scaling_configuration_arn
1071
1096
  # The Amazon Resource Name (ARN) of the App Runner auto scaling
@@ -1075,6 +1100,14 @@ module Aws::AppRunner
1075
1100
  # ending with either `.../name ` or `.../name/revision `. If a revision
1076
1101
  # isn't specified, the latest active revision is deleted.
1077
1102
  #
1103
+ # @option params [Boolean] :delete_all_revisions
1104
+ # Set to `true` to delete all of the revisions associated with the
1105
+ # `AutoScalingConfigurationArn` parameter value.
1106
+ #
1107
+ # When `DeleteAllRevisions` is set to `true`, the only valid value for
1108
+ # the Amazon Resource Name (ARN) is a partial ARN ending with:
1109
+ # `.../name`.
1110
+ #
1078
1111
  # @return [Types::DeleteAutoScalingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1079
1112
  #
1080
1113
  # * {Types::DeleteAutoScalingConfigurationResponse#auto_scaling_configuration #auto_scaling_configuration} => Types::AutoScalingConfiguration
@@ -1083,6 +1116,7 @@ module Aws::AppRunner
1083
1116
  #
1084
1117
  # resp = client.delete_auto_scaling_configuration({
1085
1118
  # auto_scaling_configuration_arn: "AppRunnerResourceArn", # required
1119
+ # delete_all_revisions: false,
1086
1120
  # })
1087
1121
  #
1088
1122
  # @example Response structure
@@ -1097,6 +1131,8 @@ module Aws::AppRunner
1097
1131
  # resp.auto_scaling_configuration.max_size #=> Integer
1098
1132
  # resp.auto_scaling_configuration.created_at #=> Time
1099
1133
  # resp.auto_scaling_configuration.deleted_at #=> Time
1134
+ # resp.auto_scaling_configuration.has_associated_service #=> Boolean
1135
+ # resp.auto_scaling_configuration.is_default #=> Boolean
1100
1136
  #
1101
1137
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration AWS API Documentation
1102
1138
  #
@@ -1233,6 +1269,7 @@ module Aws::AppRunner
1233
1269
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
1234
1270
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
1235
1271
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
1272
+ # resp.service.source_configuration.code_repository.source_directory #=> String
1236
1273
  # resp.service.source_configuration.image_repository.image_identifier #=> String
1237
1274
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
1238
1275
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
@@ -1257,6 +1294,10 @@ module Aws::AppRunner
1257
1294
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_arn #=> String
1258
1295
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_name #=> String
1259
1296
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_revision #=> Integer
1297
+ # resp.service.auto_scaling_configuration_summary.status #=> String, one of "ACTIVE", "INACTIVE"
1298
+ # resp.service.auto_scaling_configuration_summary.created_at #=> Time
1299
+ # resp.service.auto_scaling_configuration_summary.has_associated_service #=> Boolean
1300
+ # resp.service.auto_scaling_configuration_summary.is_default #=> Boolean
1260
1301
  # resp.service.network_configuration.egress_configuration.egress_type #=> String, one of "DEFAULT", "VPC"
1261
1302
  # resp.service.network_configuration.egress_configuration.vpc_connector_arn #=> String
1262
1303
  # resp.service.network_configuration.ingress_configuration.is_publicly_accessible #=> Boolean
@@ -1395,6 +1436,8 @@ module Aws::AppRunner
1395
1436
  # resp.auto_scaling_configuration.max_size #=> Integer
1396
1437
  # resp.auto_scaling_configuration.created_at #=> Time
1397
1438
  # resp.auto_scaling_configuration.deleted_at #=> Time
1439
+ # resp.auto_scaling_configuration.has_associated_service #=> Boolean
1440
+ # resp.auto_scaling_configuration.is_default #=> Boolean
1398
1441
  #
1399
1442
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration AWS API Documentation
1400
1443
  #
@@ -1553,6 +1596,7 @@ module Aws::AppRunner
1553
1596
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
1554
1597
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
1555
1598
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
1599
+ # resp.service.source_configuration.code_repository.source_directory #=> String
1556
1600
  # resp.service.source_configuration.image_repository.image_identifier #=> String
1557
1601
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
1558
1602
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
@@ -1577,6 +1621,10 @@ module Aws::AppRunner
1577
1621
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_arn #=> String
1578
1622
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_name #=> String
1579
1623
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_revision #=> Integer
1624
+ # resp.service.auto_scaling_configuration_summary.status #=> String, one of "ACTIVE", "INACTIVE"
1625
+ # resp.service.auto_scaling_configuration_summary.created_at #=> Time
1626
+ # resp.service.auto_scaling_configuration_summary.has_associated_service #=> Boolean
1627
+ # resp.service.auto_scaling_configuration_summary.is_default #=> Boolean
1580
1628
  # resp.service.network_configuration.egress_configuration.egress_type #=> String, one of "DEFAULT", "VPC"
1581
1629
  # resp.service.network_configuration.egress_configuration.vpc_connector_arn #=> String
1582
1630
  # resp.service.network_configuration.ingress_configuration.is_publicly_accessible #=> Boolean
@@ -1794,6 +1842,10 @@ module Aws::AppRunner
1794
1842
  # resp.auto_scaling_configuration_summary_list[0].auto_scaling_configuration_arn #=> String
1795
1843
  # resp.auto_scaling_configuration_summary_list[0].auto_scaling_configuration_name #=> String
1796
1844
  # resp.auto_scaling_configuration_summary_list[0].auto_scaling_configuration_revision #=> Integer
1845
+ # resp.auto_scaling_configuration_summary_list[0].status #=> String, one of "ACTIVE", "INACTIVE"
1846
+ # resp.auto_scaling_configuration_summary_list[0].created_at #=> Time
1847
+ # resp.auto_scaling_configuration_summary_list[0].has_associated_service #=> Boolean
1848
+ # resp.auto_scaling_configuration_summary_list[0].is_default #=> Boolean
1797
1849
  # resp.next_token #=> String
1798
1850
  #
1799
1851
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations AWS API Documentation
@@ -2050,6 +2102,63 @@ module Aws::AppRunner
2050
2102
  req.send_request(options)
2051
2103
  end
2052
2104
 
2105
+ # Returns a list of the associated App Runner services using an auto
2106
+ # scaling configuration.
2107
+ #
2108
+ # @option params [required, String] :auto_scaling_configuration_arn
2109
+ # The Amazon Resource Name (ARN) of the App Runner auto scaling
2110
+ # configuration that you want to list the services for.
2111
+ #
2112
+ # The ARN can be a full auto scaling configuration ARN, or a partial ARN
2113
+ # ending with either `.../name ` or `.../name/revision `. If a revision
2114
+ # isn't specified, the latest active revision is used.
2115
+ #
2116
+ # @option params [Integer] :max_results
2117
+ # The maximum number of results to include in each response (result
2118
+ # page). It's used for a paginated request.
2119
+ #
2120
+ # If you don't specify `MaxResults`, the request retrieves all
2121
+ # available results in a single response.
2122
+ #
2123
+ # @option params [String] :next_token
2124
+ # A token from a previous result page. It's used for a paginated
2125
+ # request. The request retrieves the next result page. All other
2126
+ # parameter values must be identical to the ones specified in the
2127
+ # initial request.
2128
+ #
2129
+ # If you don't specify `NextToken`, the request retrieves the first
2130
+ # result page.
2131
+ #
2132
+ # @return [Types::ListServicesForAutoScalingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2133
+ #
2134
+ # * {Types::ListServicesForAutoScalingConfigurationResponse#service_arn_list #service_arn_list} => Array&lt;String&gt;
2135
+ # * {Types::ListServicesForAutoScalingConfigurationResponse#next_token #next_token} => String
2136
+ #
2137
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2138
+ #
2139
+ # @example Request syntax with placeholder values
2140
+ #
2141
+ # resp = client.list_services_for_auto_scaling_configuration({
2142
+ # auto_scaling_configuration_arn: "AppRunnerResourceArn", # required
2143
+ # max_results: 1,
2144
+ # next_token: "NextToken",
2145
+ # })
2146
+ #
2147
+ # @example Response structure
2148
+ #
2149
+ # resp.service_arn_list #=> Array
2150
+ # resp.service_arn_list[0] #=> String
2151
+ # resp.next_token #=> String
2152
+ #
2153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServicesForAutoScalingConfiguration AWS API Documentation
2154
+ #
2155
+ # @overload list_services_for_auto_scaling_configuration(params = {})
2156
+ # @param [Hash] params ({})
2157
+ def list_services_for_auto_scaling_configuration(params = {}, options = {})
2158
+ req = build_request(:list_services_for_auto_scaling_configuration, params)
2159
+ req.send_request(options)
2160
+ end
2161
+
2053
2162
  # List tags that are associated with for an App Runner resource. The
2054
2163
  # response contains a list of tag key-value pairs.
2055
2164
  #
@@ -2243,6 +2352,7 @@ module Aws::AppRunner
2243
2352
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
2244
2353
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
2245
2354
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
2355
+ # resp.service.source_configuration.code_repository.source_directory #=> String
2246
2356
  # resp.service.source_configuration.image_repository.image_identifier #=> String
2247
2357
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
2248
2358
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
@@ -2267,6 +2377,10 @@ module Aws::AppRunner
2267
2377
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_arn #=> String
2268
2378
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_name #=> String
2269
2379
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_revision #=> Integer
2380
+ # resp.service.auto_scaling_configuration_summary.status #=> String, one of "ACTIVE", "INACTIVE"
2381
+ # resp.service.auto_scaling_configuration_summary.created_at #=> Time
2382
+ # resp.service.auto_scaling_configuration_summary.has_associated_service #=> Boolean
2383
+ # resp.service.auto_scaling_configuration_summary.is_default #=> Boolean
2270
2384
  # resp.service.network_configuration.egress_configuration.egress_type #=> String, one of "DEFAULT", "VPC"
2271
2385
  # resp.service.network_configuration.egress_configuration.vpc_connector_arn #=> String
2272
2386
  # resp.service.network_configuration.ingress_configuration.is_publicly_accessible #=> Boolean
@@ -2327,6 +2441,7 @@ module Aws::AppRunner
2327
2441
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
2328
2442
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
2329
2443
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
2444
+ # resp.service.source_configuration.code_repository.source_directory #=> String
2330
2445
  # resp.service.source_configuration.image_repository.image_identifier #=> String
2331
2446
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
2332
2447
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
@@ -2351,6 +2466,10 @@ module Aws::AppRunner
2351
2466
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_arn #=> String
2352
2467
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_name #=> String
2353
2468
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_revision #=> Integer
2469
+ # resp.service.auto_scaling_configuration_summary.status #=> String, one of "ACTIVE", "INACTIVE"
2470
+ # resp.service.auto_scaling_configuration_summary.created_at #=> Time
2471
+ # resp.service.auto_scaling_configuration_summary.has_associated_service #=> Boolean
2472
+ # resp.service.auto_scaling_configuration_summary.is_default #=> Boolean
2354
2473
  # resp.service.network_configuration.egress_configuration.egress_type #=> String, one of "DEFAULT", "VPC"
2355
2474
  # resp.service.network_configuration.egress_configuration.vpc_connector_arn #=> String
2356
2475
  # resp.service.network_configuration.ingress_configuration.is_publicly_accessible #=> Boolean
@@ -2474,6 +2593,52 @@ module Aws::AppRunner
2474
2593
  req.send_request(options)
2475
2594
  end
2476
2595
 
2596
+ # Update an auto scaling configuration to be the default. The existing
2597
+ # default auto scaling configuration will be set to non-default
2598
+ # automatically.
2599
+ #
2600
+ # @option params [required, String] :auto_scaling_configuration_arn
2601
+ # The Amazon Resource Name (ARN) of the App Runner auto scaling
2602
+ # configuration that you want to set as the default.
2603
+ #
2604
+ # The ARN can be a full auto scaling configuration ARN, or a partial ARN
2605
+ # ending with either `.../name ` or `.../name/revision `. If a revision
2606
+ # isn't specified, the latest active revision is set as the default.
2607
+ #
2608
+ # @return [Types::UpdateDefaultAutoScalingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2609
+ #
2610
+ # * {Types::UpdateDefaultAutoScalingConfigurationResponse#auto_scaling_configuration #auto_scaling_configuration} => Types::AutoScalingConfiguration
2611
+ #
2612
+ # @example Request syntax with placeholder values
2613
+ #
2614
+ # resp = client.update_default_auto_scaling_configuration({
2615
+ # auto_scaling_configuration_arn: "AppRunnerResourceArn", # required
2616
+ # })
2617
+ #
2618
+ # @example Response structure
2619
+ #
2620
+ # resp.auto_scaling_configuration.auto_scaling_configuration_arn #=> String
2621
+ # resp.auto_scaling_configuration.auto_scaling_configuration_name #=> String
2622
+ # resp.auto_scaling_configuration.auto_scaling_configuration_revision #=> Integer
2623
+ # resp.auto_scaling_configuration.latest #=> Boolean
2624
+ # resp.auto_scaling_configuration.status #=> String, one of "ACTIVE", "INACTIVE"
2625
+ # resp.auto_scaling_configuration.max_concurrency #=> Integer
2626
+ # resp.auto_scaling_configuration.min_size #=> Integer
2627
+ # resp.auto_scaling_configuration.max_size #=> Integer
2628
+ # resp.auto_scaling_configuration.created_at #=> Time
2629
+ # resp.auto_scaling_configuration.deleted_at #=> Time
2630
+ # resp.auto_scaling_configuration.has_associated_service #=> Boolean
2631
+ # resp.auto_scaling_configuration.is_default #=> Boolean
2632
+ #
2633
+ # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateDefaultAutoScalingConfiguration AWS API Documentation
2634
+ #
2635
+ # @overload update_default_auto_scaling_configuration(params = {})
2636
+ # @param [Hash] params ({})
2637
+ def update_default_auto_scaling_configuration(params = {}, options = {})
2638
+ req = build_request(:update_default_auto_scaling_configuration, params)
2639
+ req.send_request(options)
2640
+ end
2641
+
2477
2642
  # Update an App Runner service. You can update the source configuration
2478
2643
  # and instance configuration of the service. You can also update the ARN
2479
2644
  # of the auto scaling configuration resource that's associated with the
@@ -2555,6 +2720,7 @@ module Aws::AppRunner
2555
2720
  # },
2556
2721
  # },
2557
2722
  # },
2723
+ # source_directory: "SourceDirectory",
2558
2724
  # },
2559
2725
  # image_repository: {
2560
2726
  # image_identifier: "ImageIdentifier", # required
@@ -2627,6 +2793,7 @@ module Aws::AppRunner
2627
2793
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
2628
2794
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets #=> Hash
2629
2795
  # resp.service.source_configuration.code_repository.code_configuration.code_configuration_values.runtime_environment_secrets["RuntimeEnvironmentSecretsName"] #=> String
2796
+ # resp.service.source_configuration.code_repository.source_directory #=> String
2630
2797
  # resp.service.source_configuration.image_repository.image_identifier #=> String
2631
2798
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables #=> Hash
2632
2799
  # resp.service.source_configuration.image_repository.image_configuration.runtime_environment_variables["RuntimeEnvironmentVariablesKey"] #=> String
@@ -2651,6 +2818,10 @@ module Aws::AppRunner
2651
2818
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_arn #=> String
2652
2819
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_name #=> String
2653
2820
  # resp.service.auto_scaling_configuration_summary.auto_scaling_configuration_revision #=> Integer
2821
+ # resp.service.auto_scaling_configuration_summary.status #=> String, one of "ACTIVE", "INACTIVE"
2822
+ # resp.service.auto_scaling_configuration_summary.created_at #=> Time
2823
+ # resp.service.auto_scaling_configuration_summary.has_associated_service #=> Boolean
2824
+ # resp.service.auto_scaling_configuration_summary.is_default #=> Boolean
2654
2825
  # resp.service.network_configuration.egress_configuration.egress_type #=> String, one of "DEFAULT", "VPC"
2655
2826
  # resp.service.network_configuration.egress_configuration.vpc_connector_arn #=> String
2656
2827
  # resp.service.network_configuration.ingress_configuration.is_publicly_accessible #=> Boolean
@@ -2735,7 +2906,7 @@ module Aws::AppRunner
2735
2906
  params: params,
2736
2907
  config: config)
2737
2908
  context[:gem_name] = 'aws-sdk-apprunner'
2738
- context[:gem_version] = '1.28.0'
2909
+ context[:gem_version] = '1.30.0'
2739
2910
  Seahorse::Client::Request.new(handlers, context)
2740
2911
  end
2741
2912
 
@@ -22,6 +22,7 @@ module Aws::AppRunner
22
22
  AuthenticationConfiguration = Shapes::StructureShape.new(name: 'AuthenticationConfiguration')
23
23
  AutoScalingConfiguration = Shapes::StructureShape.new(name: 'AutoScalingConfiguration')
24
24
  AutoScalingConfigurationName = Shapes::StringShape.new(name: 'AutoScalingConfigurationName')
25
+ AutoScalingConfigurationRevision = Shapes::IntegerShape.new(name: 'AutoScalingConfigurationRevision')
25
26
  AutoScalingConfigurationStatus = Shapes::StringShape.new(name: 'AutoScalingConfigurationStatus')
26
27
  AutoScalingConfigurationSummary = Shapes::StructureShape.new(name: 'AutoScalingConfigurationSummary')
27
28
  AutoScalingConfigurationSummaryList = Shapes::ListShape.new(name: 'AutoScalingConfigurationSummaryList')
@@ -88,6 +89,7 @@ module Aws::AppRunner
88
89
  EgressType = Shapes::StringShape.new(name: 'EgressType')
89
90
  EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
90
91
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
92
+ HasAssociatedService = Shapes::BooleanShape.new(name: 'HasAssociatedService')
91
93
  HealthCheckConfiguration = Shapes::StructureShape.new(name: 'HealthCheckConfiguration')
92
94
  HealthCheckHealthyThreshold = Shapes::IntegerShape.new(name: 'HealthCheckHealthyThreshold')
93
95
  HealthCheckInterval = Shapes::IntegerShape.new(name: 'HealthCheckInterval')
@@ -106,7 +108,9 @@ module Aws::AppRunner
106
108
  InternalServiceErrorException = Shapes::StructureShape.new(name: 'InternalServiceErrorException')
107
109
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
108
110
  InvalidStateException = Shapes::StructureShape.new(name: 'InvalidStateException')
111
+ IsDefault = Shapes::BooleanShape.new(name: 'IsDefault')
109
112
  KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
113
+ Latest = Shapes::BooleanShape.new(name: 'Latest')
110
114
  ListAutoScalingConfigurationsRequest = Shapes::StructureShape.new(name: 'ListAutoScalingConfigurationsRequest')
111
115
  ListAutoScalingConfigurationsResponse = Shapes::StructureShape.new(name: 'ListAutoScalingConfigurationsResponse')
112
116
  ListConnectionsRequest = Shapes::StructureShape.new(name: 'ListConnectionsRequest')
@@ -116,6 +120,8 @@ module Aws::AppRunner
116
120
  ListOperationsMaxResults = Shapes::IntegerShape.new(name: 'ListOperationsMaxResults')
117
121
  ListOperationsRequest = Shapes::StructureShape.new(name: 'ListOperationsRequest')
118
122
  ListOperationsResponse = Shapes::StructureShape.new(name: 'ListOperationsResponse')
123
+ ListServicesForAutoScalingConfigurationRequest = Shapes::StructureShape.new(name: 'ListServicesForAutoScalingConfigurationRequest')
124
+ ListServicesForAutoScalingConfigurationResponse = Shapes::StructureShape.new(name: 'ListServicesForAutoScalingConfigurationResponse')
119
125
  ListServicesRequest = Shapes::StructureShape.new(name: 'ListServicesRequest')
120
126
  ListServicesResponse = Shapes::StructureShape.new(name: 'ListServicesResponse')
121
127
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
@@ -125,8 +131,11 @@ module Aws::AppRunner
125
131
  ListVpcIngressConnectionsFilter = Shapes::StructureShape.new(name: 'ListVpcIngressConnectionsFilter')
126
132
  ListVpcIngressConnectionsRequest = Shapes::StructureShape.new(name: 'ListVpcIngressConnectionsRequest')
127
133
  ListVpcIngressConnectionsResponse = Shapes::StructureShape.new(name: 'ListVpcIngressConnectionsResponse')
134
+ MaxConcurrency = Shapes::IntegerShape.new(name: 'MaxConcurrency')
128
135
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
136
+ MaxSize = Shapes::IntegerShape.new(name: 'MaxSize')
129
137
  Memory = Shapes::StringShape.new(name: 'Memory')
138
+ MinSize = Shapes::IntegerShape.new(name: 'MinSize')
130
139
  NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
131
140
  NextToken = Shapes::StringShape.new(name: 'NextToken')
132
141
  NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
@@ -154,6 +163,7 @@ module Aws::AppRunner
154
163
  RuntimeEnvironmentVariablesKey = Shapes::StringShape.new(name: 'RuntimeEnvironmentVariablesKey')
155
164
  RuntimeEnvironmentVariablesValue = Shapes::StringShape.new(name: 'RuntimeEnvironmentVariablesValue')
156
165
  Service = Shapes::StructureShape.new(name: 'Service')
166
+ ServiceArnList = Shapes::ListShape.new(name: 'ServiceArnList')
157
167
  ServiceId = Shapes::StringShape.new(name: 'ServiceId')
158
168
  ServiceMaxResults = Shapes::IntegerShape.new(name: 'ServiceMaxResults')
159
169
  ServiceName = Shapes::StringShape.new(name: 'ServiceName')
@@ -165,6 +175,7 @@ module Aws::AppRunner
165
175
  SourceCodeVersion = Shapes::StructureShape.new(name: 'SourceCodeVersion')
166
176
  SourceCodeVersionType = Shapes::StringShape.new(name: 'SourceCodeVersionType')
167
177
  SourceConfiguration = Shapes::StructureShape.new(name: 'SourceConfiguration')
178
+ SourceDirectory = Shapes::StringShape.new(name: 'SourceDirectory')
168
179
  StartCommand = Shapes::StringShape.new(name: 'StartCommand')
169
180
  StartDeploymentRequest = Shapes::StructureShape.new(name: 'StartDeploymentRequest')
170
181
  StartDeploymentResponse = Shapes::StructureShape.new(name: 'StartDeploymentResponse')
@@ -183,6 +194,8 @@ module Aws::AppRunner
183
194
  UUID = Shapes::StringShape.new(name: 'UUID')
184
195
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
185
196
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
197
+ UpdateDefaultAutoScalingConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateDefaultAutoScalingConfigurationRequest')
198
+ UpdateDefaultAutoScalingConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateDefaultAutoScalingConfigurationResponse')
186
199
  UpdateServiceRequest = Shapes::StructureShape.new(name: 'UpdateServiceRequest')
187
200
  UpdateServiceResponse = Shapes::StructureShape.new(name: 'UpdateServiceResponse')
188
201
  UpdateVpcIngressConnectionRequest = Shapes::StructureShape.new(name: 'UpdateVpcIngressConnectionRequest')
@@ -216,19 +229,25 @@ module Aws::AppRunner
216
229
 
217
230
  AutoScalingConfiguration.add_member(:auto_scaling_configuration_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, location_name: "AutoScalingConfigurationArn"))
218
231
  AutoScalingConfiguration.add_member(:auto_scaling_configuration_name, Shapes::ShapeRef.new(shape: AutoScalingConfigurationName, location_name: "AutoScalingConfigurationName"))
219
- AutoScalingConfiguration.add_member(:auto_scaling_configuration_revision, Shapes::ShapeRef.new(shape: Integer, location_name: "AutoScalingConfigurationRevision"))
220
- AutoScalingConfiguration.add_member(:latest, Shapes::ShapeRef.new(shape: Boolean, location_name: "Latest"))
232
+ AutoScalingConfiguration.add_member(:auto_scaling_configuration_revision, Shapes::ShapeRef.new(shape: AutoScalingConfigurationRevision, location_name: "AutoScalingConfigurationRevision"))
233
+ AutoScalingConfiguration.add_member(:latest, Shapes::ShapeRef.new(shape: Latest, location_name: "Latest"))
221
234
  AutoScalingConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: AutoScalingConfigurationStatus, location_name: "Status"))
222
- AutoScalingConfiguration.add_member(:max_concurrency, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxConcurrency"))
223
- AutoScalingConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: Integer, location_name: "MinSize"))
224
- AutoScalingConfiguration.add_member(:max_size, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxSize"))
235
+ AutoScalingConfiguration.add_member(:max_concurrency, Shapes::ShapeRef.new(shape: MaxConcurrency, location_name: "MaxConcurrency"))
236
+ AutoScalingConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: MinSize, location_name: "MinSize"))
237
+ AutoScalingConfiguration.add_member(:max_size, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxSize"))
225
238
  AutoScalingConfiguration.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
226
239
  AutoScalingConfiguration.add_member(:deleted_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DeletedAt"))
240
+ AutoScalingConfiguration.add_member(:has_associated_service, Shapes::ShapeRef.new(shape: HasAssociatedService, location_name: "HasAssociatedService"))
241
+ AutoScalingConfiguration.add_member(:is_default, Shapes::ShapeRef.new(shape: IsDefault, location_name: "IsDefault"))
227
242
  AutoScalingConfiguration.struct_class = Types::AutoScalingConfiguration
228
243
 
229
244
  AutoScalingConfigurationSummary.add_member(:auto_scaling_configuration_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, location_name: "AutoScalingConfigurationArn"))
230
245
  AutoScalingConfigurationSummary.add_member(:auto_scaling_configuration_name, Shapes::ShapeRef.new(shape: AutoScalingConfigurationName, location_name: "AutoScalingConfigurationName"))
231
246
  AutoScalingConfigurationSummary.add_member(:auto_scaling_configuration_revision, Shapes::ShapeRef.new(shape: Integer, location_name: "AutoScalingConfigurationRevision"))
247
+ AutoScalingConfigurationSummary.add_member(:status, Shapes::ShapeRef.new(shape: AutoScalingConfigurationStatus, location_name: "Status"))
248
+ AutoScalingConfigurationSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
249
+ AutoScalingConfigurationSummary.add_member(:has_associated_service, Shapes::ShapeRef.new(shape: HasAssociatedService, location_name: "HasAssociatedService"))
250
+ AutoScalingConfigurationSummary.add_member(:is_default, Shapes::ShapeRef.new(shape: IsDefault, location_name: "IsDefault"))
232
251
  AutoScalingConfigurationSummary.struct_class = Types::AutoScalingConfigurationSummary
233
252
 
234
253
  AutoScalingConfigurationSummaryList.member = Shapes::ShapeRef.new(shape: AutoScalingConfigurationSummary)
@@ -256,6 +275,7 @@ module Aws::AppRunner
256
275
  CodeRepository.add_member(:repository_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryUrl"))
257
276
  CodeRepository.add_member(:source_code_version, Shapes::ShapeRef.new(shape: SourceCodeVersion, required: true, location_name: "SourceCodeVersion"))
258
277
  CodeRepository.add_member(:code_configuration, Shapes::ShapeRef.new(shape: CodeConfiguration, location_name: "CodeConfiguration"))
278
+ CodeRepository.add_member(:source_directory, Shapes::ShapeRef.new(shape: SourceDirectory, location_name: "SourceDirectory"))
259
279
  CodeRepository.struct_class = Types::CodeRepository
260
280
 
261
281
  Connection.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, location_name: "ConnectionName"))
@@ -342,6 +362,7 @@ module Aws::AppRunner
342
362
  CustomDomainList.member = Shapes::ShapeRef.new(shape: CustomDomain)
343
363
 
344
364
  DeleteAutoScalingConfigurationRequest.add_member(:auto_scaling_configuration_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, required: true, location_name: "AutoScalingConfigurationArn"))
365
+ DeleteAutoScalingConfigurationRequest.add_member(:delete_all_revisions, Shapes::ShapeRef.new(shape: Boolean, location_name: "DeleteAllRevisions"))
345
366
  DeleteAutoScalingConfigurationRequest.struct_class = Types::DeleteAutoScalingConfigurationRequest
346
367
 
347
368
  DeleteAutoScalingConfigurationResponse.add_member(:auto_scaling_configuration, Shapes::ShapeRef.new(shape: AutoScalingConfiguration, required: true, location_name: "AutoScalingConfiguration"))
@@ -515,6 +536,15 @@ module Aws::AppRunner
515
536
  ListOperationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
516
537
  ListOperationsResponse.struct_class = Types::ListOperationsResponse
517
538
 
539
+ ListServicesForAutoScalingConfigurationRequest.add_member(:auto_scaling_configuration_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, required: true, location_name: "AutoScalingConfigurationArn"))
540
+ ListServicesForAutoScalingConfigurationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
541
+ ListServicesForAutoScalingConfigurationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
542
+ ListServicesForAutoScalingConfigurationRequest.struct_class = Types::ListServicesForAutoScalingConfigurationRequest
543
+
544
+ ListServicesForAutoScalingConfigurationResponse.add_member(:service_arn_list, Shapes::ShapeRef.new(shape: ServiceArnList, required: true, location_name: "ServiceArnList"))
545
+ ListServicesForAutoScalingConfigurationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
546
+ ListServicesForAutoScalingConfigurationResponse.struct_class = Types::ListServicesForAutoScalingConfigurationResponse
547
+
518
548
  ListServicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
519
549
  ListServicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ServiceMaxResults, location_name: "MaxResults"))
520
550
  ListServicesRequest.struct_class = Types::ListServicesRequest
@@ -622,6 +652,8 @@ module Aws::AppRunner
622
652
  Service.add_member(:observability_configuration, Shapes::ShapeRef.new(shape: ServiceObservabilityConfiguration, location_name: "ObservabilityConfiguration"))
623
653
  Service.struct_class = Types::Service
624
654
 
655
+ ServiceArnList.member = Shapes::ShapeRef.new(shape: AppRunnerResourceArn)
656
+
625
657
  ServiceObservabilityConfiguration.add_member(:observability_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "ObservabilityEnabled"))
626
658
  ServiceObservabilityConfiguration.add_member(:observability_configuration_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, location_name: "ObservabilityConfigurationArn"))
627
659
  ServiceObservabilityConfiguration.struct_class = Types::ServiceObservabilityConfiguration
@@ -681,6 +713,12 @@ module Aws::AppRunner
681
713
 
682
714
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
683
715
 
716
+ UpdateDefaultAutoScalingConfigurationRequest.add_member(:auto_scaling_configuration_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, required: true, location_name: "AutoScalingConfigurationArn"))
717
+ UpdateDefaultAutoScalingConfigurationRequest.struct_class = Types::UpdateDefaultAutoScalingConfigurationRequest
718
+
719
+ UpdateDefaultAutoScalingConfigurationResponse.add_member(:auto_scaling_configuration, Shapes::ShapeRef.new(shape: AutoScalingConfiguration, required: true, location_name: "AutoScalingConfiguration"))
720
+ UpdateDefaultAutoScalingConfigurationResponse.struct_class = Types::UpdateDefaultAutoScalingConfigurationResponse
721
+
684
722
  UpdateServiceRequest.add_member(:service_arn, Shapes::ShapeRef.new(shape: AppRunnerResourceArn, required: true, location_name: "ServiceArn"))
685
723
  UpdateServiceRequest.add_member(:source_configuration, Shapes::ShapeRef.new(shape: SourceConfiguration, location_name: "SourceConfiguration"))
686
724
  UpdateServiceRequest.add_member(:instance_configuration, Shapes::ShapeRef.new(shape: InstanceConfiguration, location_name: "InstanceConfiguration"))
@@ -1067,6 +1105,23 @@ module Aws::AppRunner
1067
1105
  )
1068
1106
  end)
1069
1107
 
1108
+ api.add_operation(:list_services_for_auto_scaling_configuration, Seahorse::Model::Operation.new.tap do |o|
1109
+ o.name = "ListServicesForAutoScalingConfiguration"
1110
+ o.http_method = "POST"
1111
+ o.http_request_uri = "/"
1112
+ o.input = Shapes::ShapeRef.new(shape: ListServicesForAutoScalingConfigurationRequest)
1113
+ o.output = Shapes::ShapeRef.new(shape: ListServicesForAutoScalingConfigurationResponse)
1114
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1115
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1116
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1117
+ o[:pager] = Aws::Pager.new(
1118
+ limit_key: "max_results",
1119
+ tokens: {
1120
+ "next_token" => "next_token"
1121
+ }
1122
+ )
1123
+ end)
1124
+
1070
1125
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1071
1126
  o.name = "ListTagsForResource"
1072
1127
  o.http_method = "POST"
@@ -1170,6 +1225,17 @@ module Aws::AppRunner
1170
1225
  o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
1171
1226
  end)
1172
1227
 
1228
+ api.add_operation(:update_default_auto_scaling_configuration, Seahorse::Model::Operation.new.tap do |o|
1229
+ o.name = "UpdateDefaultAutoScalingConfiguration"
1230
+ o.http_method = "POST"
1231
+ o.http_request_uri = "/"
1232
+ o.input = Shapes::ShapeRef.new(shape: UpdateDefaultAutoScalingConfigurationRequest)
1233
+ o.output = Shapes::ShapeRef.new(shape: UpdateDefaultAutoScalingConfigurationResponse)
1234
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1235
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1236
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1237
+ end)
1238
+
1173
1239
  api.add_operation(:update_service, Seahorse::Model::Operation.new.tap do |o|
1174
1240
  o.name = "UpdateService"
1175
1241
  o.http_method = "POST"
@@ -362,6 +362,20 @@ module Aws::AppRunner
362
362
  end
363
363
  end
364
364
 
365
+ class ListServicesForAutoScalingConfiguration
366
+ def self.build(context)
367
+ unless context.config.regional_endpoint
368
+ endpoint = context.config.endpoint.to_s
369
+ end
370
+ Aws::AppRunner::EndpointParameters.new(
371
+ region: context.config.region,
372
+ use_dual_stack: context.config.use_dualstack_endpoint,
373
+ use_fips: context.config.use_fips_endpoint,
374
+ endpoint: endpoint,
375
+ )
376
+ end
377
+ end
378
+
365
379
  class ListTagsForResource
366
380
  def self.build(context)
367
381
  unless context.config.regional_endpoint
@@ -474,6 +488,20 @@ module Aws::AppRunner
474
488
  end
475
489
  end
476
490
 
491
+ class UpdateDefaultAutoScalingConfiguration
492
+ def self.build(context)
493
+ unless context.config.regional_endpoint
494
+ endpoint = context.config.endpoint.to_s
495
+ end
496
+ Aws::AppRunner::EndpointParameters.new(
497
+ region: context.config.region,
498
+ use_dual_stack: context.config.use_dualstack_endpoint,
499
+ use_fips: context.config.use_fips_endpoint,
500
+ endpoint: endpoint,
501
+ )
502
+ end
503
+ end
504
+
477
505
  class UpdateService
478
506
  def self.build(context)
479
507
  unless context.config.regional_endpoint
@@ -106,6 +106,8 @@ module Aws::AppRunner
106
106
  Aws::AppRunner::Endpoints::ListOperations.build(context)
107
107
  when :list_services
108
108
  Aws::AppRunner::Endpoints::ListServices.build(context)
109
+ when :list_services_for_auto_scaling_configuration
110
+ Aws::AppRunner::Endpoints::ListServicesForAutoScalingConfiguration.build(context)
109
111
  when :list_tags_for_resource
110
112
  Aws::AppRunner::Endpoints::ListTagsForResource.build(context)
111
113
  when :list_vpc_connectors
@@ -122,6 +124,8 @@ module Aws::AppRunner
122
124
  Aws::AppRunner::Endpoints::TagResource.build(context)
123
125
  when :untag_resource
124
126
  Aws::AppRunner::Endpoints::UntagResource.build(context)
127
+ when :update_default_auto_scaling_configuration
128
+ Aws::AppRunner::Endpoints::UpdateDefaultAutoScalingConfiguration.build(context)
125
129
  when :update_service
126
130
  Aws::AppRunner::Endpoints::UpdateService.build(context)
127
131
  when :update_vpc_ingress_connection
@@ -169,6 +169,22 @@ module Aws::AppRunner
169
169
  # Unix time stamp format.
170
170
  # @return [Time]
171
171
  #
172
+ # @!attribute [rw] has_associated_service
173
+ # Indicates if this auto scaling configuration has an App Runner
174
+ # service associated with it. A value of `true` indicates one or more
175
+ # services are associated. A value of `false` indicates no services
176
+ # are associated.
177
+ # @return [Boolean]
178
+ #
179
+ # @!attribute [rw] is_default
180
+ # Indicates if this auto scaling configuration should be used as the
181
+ # default for a new App Runner service that does not have an auto
182
+ # scaling configuration ARN specified during creation. Each account
183
+ # can have only one default `AutoScalingConfiguration` per region. The
184
+ # default `AutoScalingConfiguration` can be any revision under the
185
+ # same `AutoScalingConfigurationName`.
186
+ # @return [Boolean]
187
+ #
172
188
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AutoScalingConfiguration AWS API Documentation
173
189
  #
174
190
  class AutoScalingConfiguration < Struct.new(
@@ -181,7 +197,9 @@ module Aws::AppRunner
181
197
  :min_size,
182
198
  :max_size,
183
199
  :created_at,
184
- :deleted_at)
200
+ :deleted_at,
201
+ :has_associated_service,
202
+ :is_default)
185
203
  SENSITIVE = []
186
204
  include Aws::Structure
187
205
  end
@@ -212,12 +230,44 @@ module Aws::AppRunner
212
230
  # `AutoScalingConfigurationName`.
213
231
  # @return [Integer]
214
232
  #
233
+ # @!attribute [rw] status
234
+ # The current state of the auto scaling configuration. If the status
235
+ # of a configuration revision is `INACTIVE`, it was deleted and can't
236
+ # be used. Inactive configuration revisions are permanently removed
237
+ # some time after they are deleted.
238
+ # @return [String]
239
+ #
240
+ # @!attribute [rw] created_at
241
+ # The time when the auto scaling configuration was created. It's in
242
+ # Unix time stamp format.
243
+ # @return [Time]
244
+ #
245
+ # @!attribute [rw] has_associated_service
246
+ # Indicates if this auto scaling configuration has an App Runner
247
+ # service associated with it. A value of `true` indicates one or more
248
+ # services are associated. A value of `false` indicates no services
249
+ # are associated.
250
+ # @return [Boolean]
251
+ #
252
+ # @!attribute [rw] is_default
253
+ # Indicates if this auto scaling configuration should be used as the
254
+ # default for a new App Runner service that does not have an auto
255
+ # scaling configuration ARN specified during creation. Each account
256
+ # can have only one default `AutoScalingConfiguration` per region. The
257
+ # default `AutoScalingConfiguration` can be any revision under the
258
+ # same `AutoScalingConfigurationName`.
259
+ # @return [Boolean]
260
+ #
215
261
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AutoScalingConfigurationSummary AWS API Documentation
216
262
  #
217
263
  class AutoScalingConfigurationSummary < Struct.new(
218
264
  :auto_scaling_configuration_arn,
219
265
  :auto_scaling_configuration_name,
220
- :auto_scaling_configuration_revision)
266
+ :auto_scaling_configuration_revision,
267
+ :status,
268
+ :created_at,
269
+ :has_associated_service,
270
+ :is_default)
221
271
  SENSITIVE = []
222
272
  include Aws::Structure
223
273
  end
@@ -370,12 +420,20 @@ module Aws::AppRunner
370
420
  # </note>
371
421
  # @return [Types::CodeConfiguration]
372
422
  #
423
+ # @!attribute [rw] source_directory
424
+ # The path of the directory that stores source code and configuration
425
+ # files. The build and start commands also execute from here. The path
426
+ # is absolute from root and, if not specified, defaults to the
427
+ # repository root.
428
+ # @return [String]
429
+ #
373
430
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CodeRepository AWS API Documentation
374
431
  #
375
432
  class CodeRepository < Struct.new(
376
433
  :repository_url,
377
434
  :source_code_version,
378
- :code_configuration)
435
+ :code_configuration,
436
+ :source_directory)
379
437
  SENSITIVE = []
380
438
  include Aws::Structure
381
439
  end
@@ -461,16 +519,32 @@ module Aws::AppRunner
461
519
  # subsequent calls, App Runner creates incremental revisions of the
462
520
  # configuration.
463
521
  #
464
- # <note markdown="1"> The name `DefaultConfiguration` is reserved (it's the configuration
465
- # that App Runner uses if you don't provide a custome one). You
466
- # can't use it to create a new auto scaling configuration, and you
467
- # can't create a revision of it.
522
+ # <note markdown="1"> Prior to the release of [Auto scale configuration enhancements][1],
523
+ # the name `DefaultConfiguration` was reserved.
468
524
  #
469
- # When you want to use your own auto scaling configuration for your
470
- # App Runner service, *create a configuration with a different name*,
471
- # and then provide it when you create or update your service.
525
+ # This restriction is no longer in place. You can now manage
526
+ # `DefaultConfiguration` the same way you manage your custom auto
527
+ # scaling configurations. This means you can do the following with the
528
+ # `DefaultConfiguration` that App Runner provides:
529
+ #
530
+ # * Create new revisions of the `DefaultConfiguration`.
531
+ #
532
+ # * Delete the revisions of the `DefaultConfiguration`.
533
+ #
534
+ # * Delete the auto scaling configuration for which the App Runner
535
+ # `DefaultConfiguration` was created.
536
+ #
537
+ # * If you delete the auto scaling configuration you can create
538
+ # another custom auto scaling configuration with the same
539
+ # `DefaultConfiguration` name. The original `DefaultConfiguration`
540
+ # resource provided by App Runner remains in your account unless you
541
+ # make changes to it.
472
542
  #
473
543
  # </note>
544
+ #
545
+ #
546
+ #
547
+ # [1]: https://docs.aws.amazon.com/apprunner/latest/relnotes/release-2023-09-22-auto-scale-config.html
474
548
  # @return [String]
475
549
  #
476
550
  # @!attribute [rw] max_concurrency
@@ -861,10 +935,20 @@ module Aws::AppRunner
861
935
  # revision isn't specified, the latest active revision is deleted.
862
936
  # @return [String]
863
937
  #
938
+ # @!attribute [rw] delete_all_revisions
939
+ # Set to `true` to delete all of the revisions associated with the
940
+ # `AutoScalingConfigurationArn` parameter value.
941
+ #
942
+ # When `DeleteAllRevisions` is set to `true`, the only valid value for
943
+ # the Amazon Resource Name (ARN) is a partial ARN ending with:
944
+ # `.../name`.
945
+ # @return [Boolean]
946
+ #
864
947
  # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfigurationRequest AWS API Documentation
865
948
  #
866
949
  class DeleteAutoScalingConfigurationRequest < Struct.new(
867
- :auto_scaling_configuration_arn)
950
+ :auto_scaling_configuration_arn,
951
+ :delete_all_revisions)
868
952
  SENSITIVE = []
869
953
  include Aws::Structure
870
954
  end
@@ -1819,6 +1903,62 @@ module Aws::AppRunner
1819
1903
  include Aws::Structure
1820
1904
  end
1821
1905
 
1906
+ # @!attribute [rw] auto_scaling_configuration_arn
1907
+ # The Amazon Resource Name (ARN) of the App Runner auto scaling
1908
+ # configuration that you want to list the services for.
1909
+ #
1910
+ # The ARN can be a full auto scaling configuration ARN, or a partial
1911
+ # ARN ending with either `.../name ` or `.../name/revision `. If a
1912
+ # revision isn't specified, the latest active revision is used.
1913
+ # @return [String]
1914
+ #
1915
+ # @!attribute [rw] max_results
1916
+ # The maximum number of results to include in each response (result
1917
+ # page). It's used for a paginated request.
1918
+ #
1919
+ # If you don't specify `MaxResults`, the request retrieves all
1920
+ # available results in a single response.
1921
+ # @return [Integer]
1922
+ #
1923
+ # @!attribute [rw] next_token
1924
+ # A token from a previous result page. It's used for a paginated
1925
+ # request. The request retrieves the next result page. All other
1926
+ # parameter values must be identical to the ones specified in the
1927
+ # initial request.
1928
+ #
1929
+ # If you don't specify `NextToken`, the request retrieves the first
1930
+ # result page.
1931
+ # @return [String]
1932
+ #
1933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServicesForAutoScalingConfigurationRequest AWS API Documentation
1934
+ #
1935
+ class ListServicesForAutoScalingConfigurationRequest < Struct.new(
1936
+ :auto_scaling_configuration_arn,
1937
+ :max_results,
1938
+ :next_token)
1939
+ SENSITIVE = []
1940
+ include Aws::Structure
1941
+ end
1942
+
1943
+ # @!attribute [rw] service_arn_list
1944
+ # A list of service ARN records. In a paginated request, the request
1945
+ # returns up to `MaxResults` records for each call.
1946
+ # @return [Array<String>]
1947
+ #
1948
+ # @!attribute [rw] next_token
1949
+ # The token that you can pass in a subsequent request to get the next
1950
+ # result page. It's returned in a paginated request.
1951
+ # @return [String]
1952
+ #
1953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServicesForAutoScalingConfigurationResponse AWS API Documentation
1954
+ #
1955
+ class ListServicesForAutoScalingConfigurationResponse < Struct.new(
1956
+ :service_arn_list,
1957
+ :next_token)
1958
+ SENSITIVE = []
1959
+ include Aws::Structure
1960
+ end
1961
+
1822
1962
  # @!attribute [rw] next_token
1823
1963
  # A token from a previous result page. Used for a paginated request.
1824
1964
  # The request retrieves the next result page. All other parameter
@@ -2707,6 +2847,37 @@ module Aws::AppRunner
2707
2847
  #
2708
2848
  class UntagResourceResponse < Aws::EmptyStructure; end
2709
2849
 
2850
+ # @!attribute [rw] auto_scaling_configuration_arn
2851
+ # The Amazon Resource Name (ARN) of the App Runner auto scaling
2852
+ # configuration that you want to set as the default.
2853
+ #
2854
+ # The ARN can be a full auto scaling configuration ARN, or a partial
2855
+ # ARN ending with either `.../name ` or `.../name/revision `. If a
2856
+ # revision isn't specified, the latest active revision is set as the
2857
+ # default.
2858
+ # @return [String]
2859
+ #
2860
+ # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateDefaultAutoScalingConfigurationRequest AWS API Documentation
2861
+ #
2862
+ class UpdateDefaultAutoScalingConfigurationRequest < Struct.new(
2863
+ :auto_scaling_configuration_arn)
2864
+ SENSITIVE = []
2865
+ include Aws::Structure
2866
+ end
2867
+
2868
+ # @!attribute [rw] auto_scaling_configuration
2869
+ # A description of the App Runner auto scaling configuration that was
2870
+ # set as default.
2871
+ # @return [Types::AutoScalingConfiguration]
2872
+ #
2873
+ # @see http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateDefaultAutoScalingConfigurationResponse AWS API Documentation
2874
+ #
2875
+ class UpdateDefaultAutoScalingConfigurationResponse < Struct.new(
2876
+ :auto_scaling_configuration)
2877
+ SENSITIVE = []
2878
+ include Aws::Structure
2879
+ end
2880
+
2710
2881
  # @!attribute [rw] service_arn
2711
2882
  # The Amazon Resource Name (ARN) of the App Runner service that you
2712
2883
  # want to update.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-apprunner/customizations'
52
52
  # @!group service
53
53
  module Aws::AppRunner
54
54
 
55
- GEM_VERSION = '1.28.0'
55
+ GEM_VERSION = '1.30.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apprunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-30 00:00:00.000000000 Z
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core