update_proxy_configuration
async
¶
update_proxy_configuration(
proxy_identifier: ProxyIdentifier,
*,
config_overrides: Optional[AsyncELBProxyClientConfig] = 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.
>>> await 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/async_elb_proxy.py
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 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 | |