aws-sdk-appconfig 1.51.0 → 1.53.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6b6f1e2ff90fb9e5bd55a184c83c55b3ab00fcf218ddb1d83efbeaccf350cf2
4
- data.tar.gz: 9ac292c76f56f30aeb274e268f9e8f5d5a07cae603e82c4b714830fb94367f91
3
+ metadata.gz: c72476429e2651b99eb3299a8cae240255d40b38ca595a5f3d6bd4025e244f3e
4
+ data.tar.gz: c55ba3a0dd479882547eea5c2d7240208a60b397948084fccd06ca0f0ee0fd7c
5
5
  SHA512:
6
- metadata.gz: 71341932356f3ade9cd4b68e86a357b6289ed2160640632985dbda4360aa16dbf6f7c489acdd2595b78c883b88c86d715aa61a5041ac277b17e47572587519cb
7
- data.tar.gz: b9e18d1169f8ce682b880a48eaec5613b99603497978e9ef960a24d76664943b8f7a8f502d58f3a6b7176cce3ba1d785c137f7addcc972e91d1b55be3ae89090
6
+ metadata.gz: 586a959fc5241032a2c5708192645dedba34f12d25e1643b0edaf34cac4183180edb8670d95bf3528a567f7ad149293f261078e63badc56f011852cbe13cc28f
7
+ data.tar.gz: 2ac92528855d35acc14617e5bb13634032e65a8ebb2163b26a5e1df33d61d6893c0a9bca5f928c8aa1e7fe9a9e6f840ee34c5e81628d615dfa2f2aa53ed73754
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2024-09-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.52.0 (2024-08-28)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for deletion protection, which is a safety guardrail to prevent the unintentional deletion of a recently used AWS AppConfig Configuration Profile or Environment. This also includes a change to increase the maximum length of the Name parameter in UpdateConfigurationProfile.
13
+
4
14
  1.51.0 (2024-07-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.53.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
38
 
@@ -83,6 +84,7 @@ module Aws::AppConfig
83
84
  add_plugin(Aws::Plugins::RequestCompression)
84
85
  add_plugin(Aws::Plugins::DefaultsMode)
85
86
  add_plugin(Aws::Plugins::RecursionDetection)
87
+ add_plugin(Aws::Plugins::Telemetry)
86
88
  add_plugin(Aws::Plugins::Sign)
87
89
  add_plugin(Aws::Plugins::Protocols::RestJson)
88
90
  add_plugin(Aws::AppConfig::Plugins::Endpoints)
@@ -330,6 +332,16 @@ module Aws::AppConfig
330
332
  # ** Please note ** When response stubbing is enabled, no HTTP
331
333
  # requests are made, and retries are disabled.
332
334
  #
335
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
336
+ # Allows you to provide a telemetry provider, which is used to
337
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
338
+ # will not record or emit any telemetry data. The SDK supports the
339
+ # following telemetry providers:
340
+ #
341
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
342
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
343
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
344
+ #
333
345
  # @option options [Aws::TokenProvider] :token_provider
334
346
  # A Bearer Token Provider. This can be an instance of any one of the
335
347
  # following classes:
@@ -1108,7 +1120,14 @@ module Aws::AppConfig
1108
1120
  end
1109
1121
 
1110
1122
  # Creates a new configuration in the AppConfig hosted configuration
1111
- # store.
1123
+ # store. If you're creating a feature flag, we recommend you
1124
+ # familiarize yourself with the JSON schema for feature flag data. For
1125
+ # more information, see [Type reference for
1126
+ # AWS.AppConfig.FeatureFlags][1] in the *AppConfig User Guide*.
1127
+ #
1128
+ #
1129
+ #
1130
+ # [1]: https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile-feature-flags.html#appconfig-type-reference-feature-flags
1112
1131
  #
1113
1132
  # @option params [required, String] :application_id
1114
1133
  # The application ID.
@@ -1120,7 +1139,12 @@ module Aws::AppConfig
1120
1139
  # A description of the configuration.
1121
1140
  #
1122
1141
  # @option params [required, String, StringIO, File] :content
1123
- # The content of the configuration or the configuration data.
1142
+ # The configuration data, as bytes.
1143
+ #
1144
+ # <note markdown="1"> AppConfig accepts any type of data, including text formats like JSON
1145
+ # or TOML, or binary formats like protocol buffers or compressed data.
1146
+ #
1147
+ # </note>
1124
1148
  #
1125
1149
  # @option params [required, String] :content_type
1126
1150
  # A standard MIME type describing the format of the configuration
@@ -1207,8 +1231,7 @@ module Aws::AppConfig
1207
1231
  req.send_request(options)
1208
1232
  end
1209
1233
 
1210
- # Deletes an application. Deleting an application does not delete a
1211
- # configuration from a host.
1234
+ # Deletes an application.
1212
1235
  #
1213
1236
  # @option params [required, String] :application_id
1214
1237
  # The ID of the application to delete.
@@ -1239,8 +1262,14 @@ module Aws::AppConfig
1239
1262
  req.send_request(options)
1240
1263
  end
1241
1264
 
1242
- # Deletes a configuration profile. Deleting a configuration profile does
1243
- # not delete a configuration from a host.
1265
+ # Deletes a configuration profile.
1266
+ #
1267
+ # To prevent users from unintentionally deleting actively-used
1268
+ # configuration profiles, enable [deletion protection][1].
1269
+ #
1270
+ #
1271
+ #
1272
+ # [1]: https://docs.aws.amazon.com/appconfig/latest/userguide/deletion-protection.html
1244
1273
  #
1245
1274
  # @option params [required, String] :application_id
1246
1275
  # The application ID that includes the configuration profile you want to
@@ -1249,6 +1278,32 @@ module Aws::AppConfig
1249
1278
  # @option params [required, String] :configuration_profile_id
1250
1279
  # The ID of the configuration profile you want to delete.
1251
1280
  #
1281
+ # @option params [String] :deletion_protection_check
1282
+ # A parameter to configure deletion protection. If enabled, deletion
1283
+ # protection prevents a user from deleting a configuration profile if
1284
+ # your application has called either [GetLatestConfiguration][1] or for
1285
+ # the configuration profile during the specified interval.
1286
+ #
1287
+ # This parameter supports the following values:
1288
+ #
1289
+ # * `BYPASS`: Instructs AppConfig to bypass the deletion protection
1290
+ # check and delete a configuration profile even if deletion protection
1291
+ # would have otherwise prevented it.
1292
+ #
1293
+ # * `APPLY`: Instructs the deletion protection check to run, even if
1294
+ # deletion protection is disabled at the account level. `APPLY` also
1295
+ # forces the deletion protection check to run against resources
1296
+ # created in the past hour, which are normally excluded from deletion
1297
+ # protection checks.
1298
+ #
1299
+ # * `ACCOUNT_DEFAULT`: The default setting, which instructs AppConfig to
1300
+ # implement the deletion protection value specified in the
1301
+ # `UpdateAccountSettings` API.
1302
+ #
1303
+ #
1304
+ #
1305
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
1306
+ #
1252
1307
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1253
1308
  #
1254
1309
  #
@@ -1266,6 +1321,7 @@ module Aws::AppConfig
1266
1321
  # resp = client.delete_configuration_profile({
1267
1322
  # application_id: "Id", # required
1268
1323
  # configuration_profile_id: "Id", # required
1324
+ # deletion_protection_check: "ACCOUNT_DEFAULT", # accepts ACCOUNT_DEFAULT, APPLY, BYPASS
1269
1325
  # })
1270
1326
  #
1271
1327
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteConfigurationProfile AWS API Documentation
@@ -1277,8 +1333,7 @@ module Aws::AppConfig
1277
1333
  req.send_request(options)
1278
1334
  end
1279
1335
 
1280
- # Deletes a deployment strategy. Deleting a deployment strategy does not
1281
- # delete a configuration from a host.
1336
+ # Deletes a deployment strategy.
1282
1337
  #
1283
1338
  # @option params [required, String] :deployment_strategy_id
1284
1339
  # The ID of the deployment strategy you want to delete.
@@ -1309,15 +1364,47 @@ module Aws::AppConfig
1309
1364
  req.send_request(options)
1310
1365
  end
1311
1366
 
1312
- # Deletes an environment. Deleting an environment does not delete a
1313
- # configuration from a host.
1367
+ # Deletes an environment.
1368
+ #
1369
+ # To prevent users from unintentionally deleting actively-used
1370
+ # environments, enable [deletion protection][1].
1371
+ #
1372
+ #
1373
+ #
1374
+ # [1]: https://docs.aws.amazon.com/appconfig/latest/userguide/deletion-protection.html
1375
+ #
1376
+ # @option params [required, String] :environment_id
1377
+ # The ID of the environment that you want to delete.
1314
1378
  #
1315
1379
  # @option params [required, String] :application_id
1316
1380
  # The application ID that includes the environment that you want to
1317
1381
  # delete.
1318
1382
  #
1319
- # @option params [required, String] :environment_id
1320
- # The ID of the environment that you want to delete.
1383
+ # @option params [String] :deletion_protection_check
1384
+ # A parameter to configure deletion protection. If enabled, deletion
1385
+ # protection prevents a user from deleting an environment if your
1386
+ # application called either [GetLatestConfiguration][1] or in the
1387
+ # environment during the specified interval.
1388
+ #
1389
+ # This parameter supports the following values:
1390
+ #
1391
+ # * `BYPASS`: Instructs AppConfig to bypass the deletion protection
1392
+ # check and delete a configuration profile even if deletion protection
1393
+ # would have otherwise prevented it.
1394
+ #
1395
+ # * `APPLY`: Instructs the deletion protection check to run, even if
1396
+ # deletion protection is disabled at the account level. `APPLY` also
1397
+ # forces the deletion protection check to run against resources
1398
+ # created in the past hour, which are normally excluded from deletion
1399
+ # protection checks.
1400
+ #
1401
+ # * `ACCOUNT_DEFAULT`: The default setting, which instructs AppConfig to
1402
+ # implement the deletion protection value specified in the
1403
+ # `UpdateAccountSettings` API.
1404
+ #
1405
+ #
1406
+ #
1407
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
1321
1408
  #
1322
1409
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1323
1410
  #
@@ -1334,8 +1421,9 @@ module Aws::AppConfig
1334
1421
  # @example Request syntax with placeholder values
1335
1422
  #
1336
1423
  # resp = client.delete_environment({
1337
- # application_id: "Id", # required
1338
1424
  # environment_id: "Id", # required
1425
+ # application_id: "Id", # required
1426
+ # deletion_protection_check: "ACCOUNT_DEFAULT", # accepts ACCOUNT_DEFAULT, APPLY, BYPASS
1339
1427
  # })
1340
1428
  #
1341
1429
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteEnvironment AWS API Documentation
@@ -1442,6 +1530,27 @@ module Aws::AppConfig
1442
1530
  req.send_request(options)
1443
1531
  end
1444
1532
 
1533
+ # Returns information about the status of the `DeletionProtection`
1534
+ # parameter.
1535
+ #
1536
+ # @return [Types::AccountSettings] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1537
+ #
1538
+ # * {Types::AccountSettings#deletion_protection #deletion_protection} => Types::DeletionProtectionSettings
1539
+ #
1540
+ # @example Response structure
1541
+ #
1542
+ # resp.deletion_protection.enabled #=> Boolean
1543
+ # resp.deletion_protection.protection_period_in_minutes #=> Integer
1544
+ #
1545
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetAccountSettings AWS API Documentation
1546
+ #
1547
+ # @overload get_account_settings(params = {})
1548
+ # @param [Hash] params ({})
1549
+ def get_account_settings(params = {}, options = {})
1550
+ req = build_request(:get_account_settings, params)
1551
+ req.send_request(options)
1552
+ end
1553
+
1445
1554
  # Retrieves information about an application.
1446
1555
  #
1447
1556
  # @option params [required, String] :application_id
@@ -1497,7 +1606,7 @@ module Aws::AppConfig
1497
1606
  # should use the [StartConfigurationSession][1] and
1498
1607
  # [GetLatestConfiguration][2] APIs instead.
1499
1608
  #
1500
- # * `GetConfiguration` is a priced call. For more information, see
1609
+ # * GetConfiguration is a priced call. For more information, see
1501
1610
  # [Pricing][3].
1502
1611
  #
1503
1612
  #
@@ -1525,24 +1634,24 @@ module Aws::AppConfig
1525
1634
  # defined in the deployment strategy.
1526
1635
  #
1527
1636
  # @option params [String] :client_configuration_version
1528
- # The configuration version returned in the most recent
1529
- # `GetConfiguration` response.
1637
+ # The configuration version returned in the most recent GetConfiguration
1638
+ # response.
1530
1639
  #
1531
1640
  # AppConfig uses the value of the `ClientConfigurationVersion` parameter
1532
1641
  # to identify the configuration version on your clients. If you don’t
1533
- # send `ClientConfigurationVersion` with each call to
1534
- # `GetConfiguration`, your clients receive the current configuration.
1535
- # You are charged each time your clients receive a configuration.
1642
+ # send `ClientConfigurationVersion` with each call to GetConfiguration,
1643
+ # your clients receive the current configuration. You are charged each
1644
+ # time your clients receive a configuration.
1536
1645
  #
1537
1646
  # To avoid excess charges, we recommend you use the
1538
1647
  # [StartConfigurationSession][1] and [GetLatestConfiguration][2] APIs,
1539
1648
  # which track the client configuration version on your behalf. If you
1540
- # choose to continue using `GetConfiguration`, we recommend that you
1649
+ # choose to continue using GetConfiguration, we recommend that you
1541
1650
  # include the `ClientConfigurationVersion` value with every call to
1542
- # `GetConfiguration`. The value to use for `ClientConfigurationVersion`
1651
+ # GetConfiguration. The value to use for `ClientConfigurationVersion`
1543
1652
  # comes from the `ConfigurationVersion` attribute returned by
1544
- # `GetConfiguration` when there is new or updated data, and should be
1545
- # saved for subsequent calls to `GetConfiguration`.
1653
+ # GetConfiguration when there is new or updated data, and should be
1654
+ # saved for subsequent calls to GetConfiguration.
1546
1655
  #
1547
1656
  # For more information about working with configurations, see
1548
1657
  # [Retrieving the Configuration][3] in the *AppConfig User Guide*.
@@ -3155,6 +3264,47 @@ module Aws::AppConfig
3155
3264
  req.send_request(options)
3156
3265
  end
3157
3266
 
3267
+ # Updates the value of the `DeletionProtection` parameter.
3268
+ #
3269
+ # @option params [Types::DeletionProtectionSettings] :deletion_protection
3270
+ # A parameter to configure deletion protection. If enabled, deletion
3271
+ # protection prevents a user from deleting a configuration profile or an
3272
+ # environment if AppConfig has called either [GetLatestConfiguration][1]
3273
+ # or for the configuration profile or from the environment during the
3274
+ # specified interval. Deletion protection is disabled by default. The
3275
+ # default interval for `ProtectionPeriodInMinutes` is 60.
3276
+ #
3277
+ #
3278
+ #
3279
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
3280
+ #
3281
+ # @return [Types::AccountSettings] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3282
+ #
3283
+ # * {Types::AccountSettings#deletion_protection #deletion_protection} => Types::DeletionProtectionSettings
3284
+ #
3285
+ # @example Request syntax with placeholder values
3286
+ #
3287
+ # resp = client.update_account_settings({
3288
+ # deletion_protection: {
3289
+ # enabled: false,
3290
+ # protection_period_in_minutes: 1,
3291
+ # },
3292
+ # })
3293
+ #
3294
+ # @example Response structure
3295
+ #
3296
+ # resp.deletion_protection.enabled #=> Boolean
3297
+ # resp.deletion_protection.protection_period_in_minutes #=> Integer
3298
+ #
3299
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateAccountSettings AWS API Documentation
3300
+ #
3301
+ # @overload update_account_settings(params = {})
3302
+ # @param [Hash] params ({})
3303
+ def update_account_settings(params = {}, options = {})
3304
+ req = build_request(:update_account_settings, params)
3305
+ req.send_request(options)
3306
+ end
3307
+
3158
3308
  # Updates an application.
3159
3309
  #
3160
3310
  # @option params [required, String] :application_id
@@ -3282,7 +3432,7 @@ module Aws::AppConfig
3282
3432
  # resp = client.update_configuration_profile({
3283
3433
  # application_id: "Id", # required
3284
3434
  # configuration_profile_id: "Id", # required
3285
- # name: "Name",
3435
+ # name: "LongName",
3286
3436
  # description: "Description",
3287
3437
  # retrieval_role_arn: "RoleArn",
3288
3438
  # validators: [
@@ -3695,14 +3845,19 @@ module Aws::AppConfig
3695
3845
  # @api private
3696
3846
  def build_request(operation_name, params = {})
3697
3847
  handlers = @handlers.for(operation_name)
3848
+ tracer = config.telemetry_provider.tracer_provider.tracer(
3849
+ Aws::Telemetry.module_to_tracer_name('Aws::AppConfig')
3850
+ )
3698
3851
  context = Seahorse::Client::RequestContext.new(
3699
3852
  operation_name: operation_name,
3700
3853
  operation: config.api.operation(operation_name),
3701
3854
  client: self,
3702
3855
  params: params,
3703
- config: config)
3856
+ config: config,
3857
+ tracer: tracer
3858
+ )
3704
3859
  context[:gem_name] = 'aws-sdk-appconfig'
3705
- context[:gem_version] = '1.51.0'
3860
+ context[:gem_version] = '1.53.0'
3706
3861
  Seahorse::Client::Request.new(handlers, context)
3707
3862
  end
3708
3863
 
@@ -13,6 +13,7 @@ module Aws::AppConfig
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AccountSettings = Shapes::StructureShape.new(name: 'AccountSettings')
16
17
  Action = Shapes::StructureShape.new(name: 'Action')
17
18
  ActionInvocation = Shapes::StructureShape.new(name: 'ActionInvocation')
18
19
  ActionInvocations = Shapes::ListShape.new(name: 'ActionInvocations')
@@ -52,6 +53,9 @@ module Aws::AppConfig
52
53
  DeleteExtensionAssociationRequest = Shapes::StructureShape.new(name: 'DeleteExtensionAssociationRequest')
53
54
  DeleteExtensionRequest = Shapes::StructureShape.new(name: 'DeleteExtensionRequest')
54
55
  DeleteHostedConfigurationVersionRequest = Shapes::StructureShape.new(name: 'DeleteHostedConfigurationVersionRequest')
56
+ DeletionProtectionCheck = Shapes::StringShape.new(name: 'DeletionProtectionCheck')
57
+ DeletionProtectionDuration = Shapes::IntegerShape.new(name: 'DeletionProtectionDuration')
58
+ DeletionProtectionSettings = Shapes::StructureShape.new(name: 'DeletionProtectionSettings')
55
59
  Deployment = Shapes::StructureShape.new(name: 'Deployment')
56
60
  DeploymentEvent = Shapes::StructureShape.new(name: 'DeploymentEvent')
57
61
  DeploymentEventType = Shapes::StringShape.new(name: 'DeploymentEventType')
@@ -146,6 +150,7 @@ module Aws::AppConfig
146
150
  TagValue = Shapes::StringShape.new(name: 'TagValue')
147
151
  TriggeredBy = Shapes::StringShape.new(name: 'TriggeredBy')
148
152
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
153
+ UpdateAccountSettingsRequest = Shapes::StructureShape.new(name: 'UpdateAccountSettingsRequest')
149
154
  UpdateApplicationRequest = Shapes::StructureShape.new(name: 'UpdateApplicationRequest')
150
155
  UpdateConfigurationProfileRequest = Shapes::StructureShape.new(name: 'UpdateConfigurationProfileRequest')
151
156
  UpdateDeploymentStrategyRequest = Shapes::StructureShape.new(name: 'UpdateDeploymentStrategyRequest')
@@ -161,6 +166,9 @@ module Aws::AppConfig
161
166
  Version = Shapes::StringShape.new(name: 'Version')
162
167
  VersionLabel = Shapes::StringShape.new(name: 'VersionLabel')
163
168
 
169
+ AccountSettings.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtectionSettings, location_name: "DeletionProtection"))
170
+ AccountSettings.struct_class = Types::AccountSettings
171
+
164
172
  Action.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
165
173
  Action.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
166
174
  Action.add_member(:uri, Shapes::ShapeRef.new(shape: Uri, location_name: "Uri"))
@@ -313,13 +321,15 @@ module Aws::AppConfig
313
321
 
314
322
  DeleteConfigurationProfileRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
315
323
  DeleteConfigurationProfileRequest.add_member(:configuration_profile_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ConfigurationProfileId"))
324
+ DeleteConfigurationProfileRequest.add_member(:deletion_protection_check, Shapes::ShapeRef.new(shape: DeletionProtectionCheck, location: "header", location_name: "x-amzn-deletion-protection-check"))
316
325
  DeleteConfigurationProfileRequest.struct_class = Types::DeleteConfigurationProfileRequest
317
326
 
318
327
  DeleteDeploymentStrategyRequest.add_member(:deployment_strategy_id, Shapes::ShapeRef.new(shape: DeploymentStrategyId, required: true, location: "uri", location_name: "DeploymentStrategyId"))
319
328
  DeleteDeploymentStrategyRequest.struct_class = Types::DeleteDeploymentStrategyRequest
320
329
 
321
- DeleteEnvironmentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
322
330
  DeleteEnvironmentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "EnvironmentId"))
331
+ DeleteEnvironmentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
332
+ DeleteEnvironmentRequest.add_member(:deletion_protection_check, Shapes::ShapeRef.new(shape: DeletionProtectionCheck, location: "header", location_name: "x-amzn-deletion-protection-check"))
323
333
  DeleteEnvironmentRequest.struct_class = Types::DeleteEnvironmentRequest
324
334
 
325
335
  DeleteExtensionAssociationRequest.add_member(:extension_association_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ExtensionAssociationId"))
@@ -334,6 +344,10 @@ module Aws::AppConfig
334
344
  DeleteHostedConfigurationVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: Integer, required: true, location: "uri", location_name: "VersionNumber"))
335
345
  DeleteHostedConfigurationVersionRequest.struct_class = Types::DeleteHostedConfigurationVersionRequest
336
346
 
347
+ DeletionProtectionSettings.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled", metadata: {"box"=>true}))
348
+ DeletionProtectionSettings.add_member(:protection_period_in_minutes, Shapes::ShapeRef.new(shape: DeletionProtectionDuration, location_name: "ProtectionPeriodInMinutes", metadata: {"box"=>true}))
349
+ DeletionProtectionSettings.struct_class = Types::DeletionProtectionSettings
350
+
337
351
  Deployment.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, location_name: "ApplicationId"))
338
352
  Deployment.add_member(:environment_id, Shapes::ShapeRef.new(shape: Id, location_name: "EnvironmentId"))
339
353
  Deployment.add_member(:deployment_strategy_id, Shapes::ShapeRef.new(shape: Id, location_name: "DeploymentStrategyId"))
@@ -647,6 +661,9 @@ module Aws::AppConfig
647
661
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
648
662
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
649
663
 
664
+ UpdateAccountSettingsRequest.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: DeletionProtectionSettings, location_name: "DeletionProtection"))
665
+ UpdateAccountSettingsRequest.struct_class = Types::UpdateAccountSettingsRequest
666
+
650
667
  UpdateApplicationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
651
668
  UpdateApplicationRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
652
669
  UpdateApplicationRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
@@ -654,7 +671,7 @@ module Aws::AppConfig
654
671
 
655
672
  UpdateConfigurationProfileRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ApplicationId"))
656
673
  UpdateConfigurationProfileRequest.add_member(:configuration_profile_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "ConfigurationProfileId"))
657
- UpdateConfigurationProfileRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
674
+ UpdateConfigurationProfileRequest.add_member(:name, Shapes::ShapeRef.new(shape: LongName, location_name: "Name"))
658
675
  UpdateConfigurationProfileRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
659
676
  UpdateConfigurationProfileRequest.add_member(:retrieval_role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RetrievalRoleArn"))
660
677
  UpdateConfigurationProfileRequest.add_member(:validators, Shapes::ShapeRef.new(shape: ValidatorList, location_name: "Validators"))
@@ -884,6 +901,16 @@ module Aws::AppConfig
884
901
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
885
902
  end)
886
903
 
904
+ api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
905
+ o.name = "GetAccountSettings"
906
+ o.http_method = "GET"
907
+ o.http_request_uri = "/settings"
908
+ o.input = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
909
+ o.output = Shapes::ShapeRef.new(shape: AccountSettings)
910
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
911
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
912
+ end)
913
+
887
914
  api.add_operation(:get_application, Seahorse::Model::Operation.new.tap do |o|
888
915
  o.name = "GetApplication"
889
916
  o.http_method = "GET"
@@ -1172,6 +1199,16 @@ module Aws::AppConfig
1172
1199
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1173
1200
  end)
1174
1201
 
1202
+ api.add_operation(:update_account_settings, Seahorse::Model::Operation.new.tap do |o|
1203
+ o.name = "UpdateAccountSettings"
1204
+ o.http_method = "PATCH"
1205
+ o.http_request_uri = "/settings"
1206
+ o.input = Shapes::ShapeRef.new(shape: UpdateAccountSettingsRequest)
1207
+ o.output = Shapes::ShapeRef.new(shape: AccountSettings)
1208
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1209
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1210
+ end)
1211
+
1175
1212
  api.add_operation(:update_application, Seahorse::Model::Operation.new.tap do |o|
1176
1213
  o.name = "UpdateApplication"
1177
1214
  o.http_method = "PATCH"
@@ -208,6 +208,20 @@ module Aws::AppConfig
208
208
  end
209
209
  end
210
210
 
211
+ class GetAccountSettings
212
+ def self.build(context)
213
+ unless context.config.regional_endpoint
214
+ endpoint = context.config.endpoint.to_s
215
+ end
216
+ Aws::AppConfig::EndpointParameters.new(
217
+ region: context.config.region,
218
+ use_dual_stack: context.config.use_dualstack_endpoint,
219
+ use_fips: context.config.use_fips_endpoint,
220
+ endpoint: endpoint,
221
+ )
222
+ end
223
+ end
224
+
211
225
  class GetApplication
212
226
  def self.build(context)
213
227
  unless context.config.regional_endpoint
@@ -516,6 +530,20 @@ module Aws::AppConfig
516
530
  end
517
531
  end
518
532
 
533
+ class UpdateAccountSettings
534
+ def self.build(context)
535
+ unless context.config.regional_endpoint
536
+ endpoint = context.config.endpoint.to_s
537
+ end
538
+ Aws::AppConfig::EndpointParameters.new(
539
+ region: context.config.region,
540
+ use_dual_stack: context.config.use_dualstack_endpoint,
541
+ use_fips: context.config.use_fips_endpoint,
542
+ endpoint: endpoint,
543
+ )
544
+ end
545
+ end
546
+
519
547
  class UpdateApplication
520
548
  def self.build(context)
521
549
  unless context.config.regional_endpoint
@@ -86,6 +86,8 @@ module Aws::AppConfig
86
86
  Aws::AppConfig::Endpoints::DeleteExtensionAssociation.build(context)
87
87
  when :delete_hosted_configuration_version
88
88
  Aws::AppConfig::Endpoints::DeleteHostedConfigurationVersion.build(context)
89
+ when :get_account_settings
90
+ Aws::AppConfig::Endpoints::GetAccountSettings.build(context)
89
91
  when :get_application
90
92
  Aws::AppConfig::Endpoints::GetApplication.build(context)
91
93
  when :get_configuration
@@ -130,6 +132,8 @@ module Aws::AppConfig
130
132
  Aws::AppConfig::Endpoints::TagResource.build(context)
131
133
  when :untag_resource
132
134
  Aws::AppConfig::Endpoints::UntagResource.build(context)
135
+ when :update_account_settings
136
+ Aws::AppConfig::Endpoints::UpdateAccountSettings.build(context)
133
137
  when :update_application
134
138
  Aws::AppConfig::Endpoints::UpdateApplication.build(context)
135
139
  when :update_configuration_profile
@@ -10,6 +10,28 @@
10
10
  module Aws::AppConfig
11
11
  module Types
12
12
 
13
+ # @!attribute [rw] deletion_protection
14
+ # A parameter to configure deletion protection. If enabled, deletion
15
+ # protection prevents a user from deleting a configuration profile or
16
+ # an environment if AppConfig has called either
17
+ # [GetLatestConfiguration][1] or for the configuration profile or from
18
+ # the environment during the specified interval. Deletion protection
19
+ # is disabled by default. The default interval for
20
+ # `ProtectionPeriodInMinutes` is 60.
21
+ #
22
+ #
23
+ #
24
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
25
+ # @return [Types::DeletionProtectionSettings]
26
+ #
27
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/AccountSettings AWS API Documentation
28
+ #
29
+ class AccountSettings < Struct.new(
30
+ :deletion_protection)
31
+ SENSITIVE = []
32
+ include Aws::Structure
33
+ end
34
+
13
35
  # An action defines the tasks that the extension performs during the
14
36
  # AppConfig workflow. Each action includes an action point such as
15
37
  # `ON_CREATE_HOSTED_CONFIGURATION`, `PRE_DEPLOYMENT`, or
@@ -753,7 +775,12 @@ module Aws::AppConfig
753
775
  # @return [String]
754
776
  #
755
777
  # @!attribute [rw] content
756
- # The content of the configuration or the configuration data.
778
+ # The configuration data, as bytes.
779
+ #
780
+ # <note markdown="1"> AppConfig accepts any type of data, including text formats like JSON
781
+ # or TOML, or binary formats like protocol buffers or compressed data.
782
+ #
783
+ # </note>
757
784
  # @return [String]
758
785
  #
759
786
  # @!attribute [rw] content_type
@@ -814,11 +841,39 @@ module Aws::AppConfig
814
841
  # The ID of the configuration profile you want to delete.
815
842
  # @return [String]
816
843
  #
844
+ # @!attribute [rw] deletion_protection_check
845
+ # A parameter to configure deletion protection. If enabled, deletion
846
+ # protection prevents a user from deleting a configuration profile if
847
+ # your application has called either [GetLatestConfiguration][1] or
848
+ # for the configuration profile during the specified interval.
849
+ #
850
+ # This parameter supports the following values:
851
+ #
852
+ # * `BYPASS`: Instructs AppConfig to bypass the deletion protection
853
+ # check and delete a configuration profile even if deletion
854
+ # protection would have otherwise prevented it.
855
+ #
856
+ # * `APPLY`: Instructs the deletion protection check to run, even if
857
+ # deletion protection is disabled at the account level. `APPLY` also
858
+ # forces the deletion protection check to run against resources
859
+ # created in the past hour, which are normally excluded from
860
+ # deletion protection checks.
861
+ #
862
+ # * `ACCOUNT_DEFAULT`: The default setting, which instructs AppConfig
863
+ # to implement the deletion protection value specified in the
864
+ # `UpdateAccountSettings` API.
865
+ #
866
+ #
867
+ #
868
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
869
+ # @return [String]
870
+ #
817
871
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteConfigurationProfileRequest AWS API Documentation
818
872
  #
819
873
  class DeleteConfigurationProfileRequest < Struct.new(
820
874
  :application_id,
821
- :configuration_profile_id)
875
+ :configuration_profile_id,
876
+ :deletion_protection_check)
822
877
  SENSITIVE = []
823
878
  include Aws::Structure
824
879
  end
@@ -835,20 +890,48 @@ module Aws::AppConfig
835
890
  include Aws::Structure
836
891
  end
837
892
 
893
+ # @!attribute [rw] environment_id
894
+ # The ID of the environment that you want to delete.
895
+ # @return [String]
896
+ #
838
897
  # @!attribute [rw] application_id
839
898
  # The application ID that includes the environment that you want to
840
899
  # delete.
841
900
  # @return [String]
842
901
  #
843
- # @!attribute [rw] environment_id
844
- # The ID of the environment that you want to delete.
902
+ # @!attribute [rw] deletion_protection_check
903
+ # A parameter to configure deletion protection. If enabled, deletion
904
+ # protection prevents a user from deleting an environment if your
905
+ # application called either [GetLatestConfiguration][1] or in the
906
+ # environment during the specified interval.
907
+ #
908
+ # This parameter supports the following values:
909
+ #
910
+ # * `BYPASS`: Instructs AppConfig to bypass the deletion protection
911
+ # check and delete a configuration profile even if deletion
912
+ # protection would have otherwise prevented it.
913
+ #
914
+ # * `APPLY`: Instructs the deletion protection check to run, even if
915
+ # deletion protection is disabled at the account level. `APPLY` also
916
+ # forces the deletion protection check to run against resources
917
+ # created in the past hour, which are normally excluded from
918
+ # deletion protection checks.
919
+ #
920
+ # * `ACCOUNT_DEFAULT`: The default setting, which instructs AppConfig
921
+ # to implement the deletion protection value specified in the
922
+ # `UpdateAccountSettings` API.
923
+ #
924
+ #
925
+ #
926
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
845
927
  # @return [String]
846
928
  #
847
929
  # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteEnvironmentRequest AWS API Documentation
848
930
  #
849
931
  class DeleteEnvironmentRequest < Struct.new(
932
+ :environment_id,
850
933
  :application_id,
851
- :environment_id)
934
+ :deletion_protection_check)
852
935
  SENSITIVE = []
853
936
  include Aws::Structure
854
937
  end
@@ -906,6 +989,51 @@ module Aws::AppConfig
906
989
  include Aws::Structure
907
990
  end
908
991
 
992
+ # A parameter to configure deletion protection. If enabled, deletion
993
+ # protection prevents a user from deleting a configuration profile or an
994
+ # environment if AppConfig has called either [GetLatestConfiguration][1]
995
+ # or for the configuration profile or from the environment during the
996
+ # specified interval.
997
+ #
998
+ # This setting uses the following default values:
999
+ #
1000
+ # * Deletion protection is disabled by default.
1001
+ #
1002
+ # * The default interval specified by `ProtectionPeriodInMinutes` is 60.
1003
+ #
1004
+ # * `DeletionProtectionCheck` skips configuration profiles and
1005
+ # environments that were created in the past hour.
1006
+ #
1007
+ #
1008
+ #
1009
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
1010
+ #
1011
+ # @!attribute [rw] enabled
1012
+ # A parameter that indicates if deletion protection is enabled or not.
1013
+ # @return [Boolean]
1014
+ #
1015
+ # @!attribute [rw] protection_period_in_minutes
1016
+ # The time interval during which AppConfig monitors for calls to
1017
+ # [GetLatestConfiguration][1] or for a configuration profile or from
1018
+ # an environment. AppConfig returns an error if a user calls or for
1019
+ # the designated configuration profile or environment. To bypass the
1020
+ # error and delete a configuration profile or an environment, specify
1021
+ # `BYPASS` for the `DeletionProtectionCheck` parameter for either or .
1022
+ #
1023
+ #
1024
+ #
1025
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
1026
+ # @return [Integer]
1027
+ #
1028
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeletionProtectionSettings AWS API Documentation
1029
+ #
1030
+ class DeletionProtectionSettings < Struct.new(
1031
+ :enabled,
1032
+ :protection_period_in_minutes)
1033
+ SENSITIVE = []
1034
+ include Aws::Structure
1035
+ end
1036
+
909
1037
  # @!attribute [rw] application_id
910
1038
  # The ID of the application that was deployed.
911
1039
  # @return [String]
@@ -1540,24 +1668,23 @@ module Aws::AppConfig
1540
1668
  #
1541
1669
  # @!attribute [rw] client_configuration_version
1542
1670
  # The configuration version returned in the most recent
1543
- # `GetConfiguration` response.
1671
+ # GetConfiguration response.
1544
1672
  #
1545
1673
  # AppConfig uses the value of the `ClientConfigurationVersion`
1546
1674
  # parameter to identify the configuration version on your clients. If
1547
1675
  # you don’t send `ClientConfigurationVersion` with each call to
1548
- # `GetConfiguration`, your clients receive the current configuration.
1676
+ # GetConfiguration, your clients receive the current configuration.
1549
1677
  # You are charged each time your clients receive a configuration.
1550
1678
  #
1551
1679
  # To avoid excess charges, we recommend you use the
1552
1680
  # [StartConfigurationSession][1] and [GetLatestConfiguration][2] APIs,
1553
1681
  # which track the client configuration version on your behalf. If you
1554
- # choose to continue using `GetConfiguration`, we recommend that you
1682
+ # choose to continue using GetConfiguration, we recommend that you
1555
1683
  # include the `ClientConfigurationVersion` value with every call to
1556
- # `GetConfiguration`. The value to use for
1557
- # `ClientConfigurationVersion` comes from the `ConfigurationVersion`
1558
- # attribute returned by `GetConfiguration` when there is new or
1559
- # updated data, and should be saved for subsequent calls to
1560
- # `GetConfiguration`.
1684
+ # GetConfiguration. The value to use for `ClientConfigurationVersion`
1685
+ # comes from the `ConfigurationVersion` attribute returned by
1686
+ # GetConfiguration when there is new or updated data, and should be
1687
+ # saved for subsequent calls to GetConfiguration.
1561
1688
  #
1562
1689
  # For more information about working with configurations, see
1563
1690
  # [Retrieving the Configuration][3] in the *AppConfig User Guide*.
@@ -2367,6 +2494,28 @@ module Aws::AppConfig
2367
2494
  include Aws::Structure
2368
2495
  end
2369
2496
 
2497
+ # @!attribute [rw] deletion_protection
2498
+ # A parameter to configure deletion protection. If enabled, deletion
2499
+ # protection prevents a user from deleting a configuration profile or
2500
+ # an environment if AppConfig has called either
2501
+ # [GetLatestConfiguration][1] or for the configuration profile or from
2502
+ # the environment during the specified interval. Deletion protection
2503
+ # is disabled by default. The default interval for
2504
+ # `ProtectionPeriodInMinutes` is 60.
2505
+ #
2506
+ #
2507
+ #
2508
+ # [1]: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_appconfigdata_GetLatestConfiguration.html
2509
+ # @return [Types::DeletionProtectionSettings]
2510
+ #
2511
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateAccountSettingsRequest AWS API Documentation
2512
+ #
2513
+ class UpdateAccountSettingsRequest < Struct.new(
2514
+ :deletion_protection)
2515
+ SENSITIVE = []
2516
+ include Aws::Structure
2517
+ end
2518
+
2370
2519
  # @!attribute [rw] application_id
2371
2520
  # The application ID.
2372
2521
  # @return [String]
@@ -2614,7 +2763,12 @@ module Aws::AppConfig
2614
2763
  # validate your application configuration data, you provide a schema or
2615
2764
  # an Amazon Web Services Lambda function that runs against the
2616
2765
  # configuration. The configuration deployment or update can only proceed
2617
- # when the configuration data is valid.
2766
+ # when the configuration data is valid. For more information, see [About
2767
+ # validators][1] in the *AppConfig User Guide*.
2768
+ #
2769
+ #
2770
+ #
2771
+ # [1]: https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-profile.html#appconfig-creating-configuration-and-profile-validators
2618
2772
  #
2619
2773
  # @!attribute [rw] type
2620
2774
  # AppConfig supports validators of type `JSON_SCHEMA` and `LAMBDA`
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-appconfig/customizations'
52
52
  # @!group service
53
53
  module Aws::AppConfig
54
54
 
55
- GEM_VERSION = '1.51.0'
55
+ GEM_VERSION = '1.53.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -50,6 +50,7 @@ module Aws
50
50
  ?session_token: String,
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?stub_responses: untyped,
53
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
54
  ?token_provider: untyped,
54
55
  ?use_dualstack_endpoint: bool,
55
56
  ?use_fips_endpoint: bool,
@@ -250,7 +251,8 @@ module Aws
250
251
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppConfig/Client.html#delete_configuration_profile-instance_method
251
252
  def delete_configuration_profile: (
252
253
  application_id: ::String,
253
- configuration_profile_id: ::String
254
+ configuration_profile_id: ::String,
255
+ ?deletion_protection_check: ("ACCOUNT_DEFAULT" | "APPLY" | "BYPASS")
254
256
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
255
257
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
256
258
 
@@ -262,8 +264,9 @@ module Aws
262
264
 
263
265
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppConfig/Client.html#delete_environment-instance_method
264
266
  def delete_environment: (
267
+ environment_id: ::String,
265
268
  application_id: ::String,
266
- environment_id: ::String
269
+ ?deletion_protection_check: ("ACCOUNT_DEFAULT" | "APPLY" | "BYPASS")
267
270
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
268
271
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
269
272
 
@@ -288,6 +291,14 @@ module Aws
288
291
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
289
292
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
290
293
 
294
+ interface _GetAccountSettingsResponseSuccess
295
+ include ::Seahorse::Client::_ResponseSuccess[Types::AccountSettings]
296
+ def deletion_protection: () -> Types::DeletionProtectionSettings
297
+ end
298
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppConfig/Client.html#get_account_settings-instance_method
299
+ def get_account_settings: () -> _GetAccountSettingsResponseSuccess
300
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAccountSettingsResponseSuccess
301
+
291
302
  interface _GetApplicationResponseSuccess
292
303
  include ::Seahorse::Client::_ResponseSuccess[Types::Application]
293
304
  def id: () -> ::String
@@ -657,6 +668,19 @@ module Aws
657
668
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
658
669
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
659
670
 
671
+ interface _UpdateAccountSettingsResponseSuccess
672
+ include ::Seahorse::Client::_ResponseSuccess[Types::AccountSettings]
673
+ def deletion_protection: () -> Types::DeletionProtectionSettings
674
+ end
675
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AppConfig/Client.html#update_account_settings-instance_method
676
+ def update_account_settings: (
677
+ ?deletion_protection: {
678
+ enabled: bool?,
679
+ protection_period_in_minutes: ::Integer?
680
+ }
681
+ ) -> _UpdateAccountSettingsResponseSuccess
682
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAccountSettingsResponseSuccess
683
+
660
684
  interface _UpdateApplicationResponseSuccess
661
685
  include ::Seahorse::Client::_ResponseSuccess[Types::Application]
662
686
  def id: () -> ::String
data/sig/resource.rbs CHANGED
@@ -50,6 +50,7 @@ module Aws
50
50
  ?session_token: String,
51
51
  ?sigv4a_signing_region_set: Array[String],
52
52
  ?stub_responses: untyped,
53
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
54
  ?token_provider: untyped,
54
55
  ?use_dualstack_endpoint: bool,
55
56
  ?use_fips_endpoint: bool,
data/sig/types.rbs CHANGED
@@ -8,6 +8,11 @@
8
8
  module Aws::AppConfig
9
9
  module Types
10
10
 
11
+ class AccountSettings
12
+ attr_accessor deletion_protection: Types::DeletionProtectionSettings
13
+ SENSITIVE: []
14
+ end
15
+
11
16
  class Action
12
17
  attr_accessor name: ::String
13
18
  attr_accessor description: ::String
@@ -187,6 +192,7 @@ module Aws::AppConfig
187
192
  class DeleteConfigurationProfileRequest
188
193
  attr_accessor application_id: ::String
189
194
  attr_accessor configuration_profile_id: ::String
195
+ attr_accessor deletion_protection_check: ("ACCOUNT_DEFAULT" | "APPLY" | "BYPASS")
190
196
  SENSITIVE: []
191
197
  end
192
198
 
@@ -196,8 +202,9 @@ module Aws::AppConfig
196
202
  end
197
203
 
198
204
  class DeleteEnvironmentRequest
199
- attr_accessor application_id: ::String
200
205
  attr_accessor environment_id: ::String
206
+ attr_accessor application_id: ::String
207
+ attr_accessor deletion_protection_check: ("ACCOUNT_DEFAULT" | "APPLY" | "BYPASS")
201
208
  SENSITIVE: []
202
209
  end
203
210
 
@@ -219,6 +226,12 @@ module Aws::AppConfig
219
226
  SENSITIVE: []
220
227
  end
221
228
 
229
+ class DeletionProtectionSettings
230
+ attr_accessor enabled: bool
231
+ attr_accessor protection_period_in_minutes: ::Integer
232
+ SENSITIVE: []
233
+ end
234
+
222
235
  class Deployment
223
236
  attr_accessor application_id: ::String
224
237
  attr_accessor environment_id: ::String
@@ -592,6 +605,11 @@ module Aws::AppConfig
592
605
  SENSITIVE: []
593
606
  end
594
607
 
608
+ class UpdateAccountSettingsRequest
609
+ attr_accessor deletion_protection: Types::DeletionProtectionSettings
610
+ SENSITIVE: []
611
+ end
612
+
595
613
  class UpdateApplicationRequest
596
614
  attr_accessor application_id: ::String
597
615
  attr_accessor name: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.51.0
4
+ version: 1.53.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: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.201.0
22
+ version: 3.203.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.201.0
32
+ version: 3.203.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement