update_proxy_attributes
async
¶
update_proxy_attributes(
proxy_identifier: ProxyIdentifier,
attributes: ProxyAttributeList,
*,
config_overrides: Optional[AsyncELBProxyClientConfig] = None,
) -> UpdateProxyAttributesResponse
Updates the attributes for the specified proxy.
Parameters:
-
proxy_identifier(ProxyIdentifier) –The Amazon Resource Name (ARN) of the proxy.
-
attributes(ProxyAttributeList) –The attributes to update. Attributes that you don't specify are unchanged.
Raises:
-
InternalServerException–An unexpected error occurred while processing the request.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
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 enable deletion protection The following example enables deletion protection for the specified proxy.
>>> await client.update_proxy_attributes(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', attributes=[{'key': 'deletion_protection.enabled', 'value': 'true'}])
To change the Envoy log level
The following example changes the Envoy log level for the specified proxy to debug.
>>> await client.update_proxy_attributes(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', attributes=[{'key': 'envoy.log_level', 'value': 'debug'}])
To change the log level for specific Envoy components
The following example changes the log level for the http and router Envoy components on the specified proxy to debug. Components that aren't specified use the log level set by envoy.log_level.
>>> await client.update_proxy_attributes(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', attributes=[{'key': 'envoy.component_log_level', 'value': 'http:debug,router:debug'}])
To enable AWS WAF fail open
The following example enables AWS WAF fail open for the specified proxy.
>>> await client.update_proxy_attributes(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', attributes=[{'key': 'waf.fail_open.enabled', 'value': 'true'}])
Source code in docs_src/capo_elb_proxy/_services/async_elb_proxy.py
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 | |