update_proxy_configuration
¶
update_proxy_configuration(
proxy_identifier: ProxyIdentifier,
*,
config_overrides: Optional[ELBProxyClientConfig] = None,
configuration_file: Optional[ConfigurationFile] = None,
configuration_archive: Optional[ConfigurationArchive] = None,
reset_configuration_archive: Optional[bool] = None,
customer_kms_key_arn: Optional[CustomerKmsKeyArn] = None,
reset_customer_kms_key_arn: Optional[bool] = None,
) -> UpdateProxyConfigurationResponse
Updates the configuration for the specified proxy. You can update the configuration file, the configuration archive, or both.
Parameters:
-
proxy_identifier(ProxyIdentifier) –The Amazon Resource Name (ARN) of the proxy.
-
configuration_file(Optional[ConfigurationFile], default:None) –The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
-
configuration_archive(Optional[ConfigurationArchive], default:None) –The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
-
reset_configuration_archive(Optional[bool], default:None) –Indicates whether to remove the configuration archive from the proxy.
-
customer_kms_key_arn(Optional[CustomerKmsKeyArn], default:None) –The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
-
reset_customer_kms_key_arn(Optional[bool], default:None) –Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
Raises:
-
InternalServerException–An unexpected error occurred while processing the request.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
AccessDeniedException–The user does not have sufficient access to perform this action.
-
PriorRequestNotCompletedException–The request could not be completed because a prior request has not yet completed.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ValidationException–The input does not satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update the configuration for a proxy The following example replaces the configuration file for the specified proxy. You can use the update ID in the output to track the progress of the update.
>>> client.update_proxy_configuration(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', configuration_file={'configurationBytes': 'c3RhdGljX3Jlc291cmNlczoKICBsaXN0ZW5lcnM6IFtdCg=='})
Source code in docs_src/capo_elb_proxy/_services/elb_proxy.py
1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 | |