get_proxy_configuration_contents
¶
get_proxy_configuration_contents(
proxy_identifier: ProxyIdentifier,
*,
config_overrides: Optional[ELBProxyClientConfig] = None,
include_config_file: Optional[bool] = None,
include_config_archive: Optional[bool] = None,
) -> GetProxyConfigurationContentsResponse
Retrieves the configuration file, the configuration archive, or both for the specified proxy. This operation is separate from GetProxy so that you can grant access to proxy metadata without granting access to the configuration content.
Parameters:
-
proxy_identifier(ProxyIdentifier) –The Amazon Resource Name (ARN) of the proxy.
-
include_config_file(Optional[bool], default:None) –Indicates whether to include the configuration file contents in the response. The default is
false. -
include_config_archive(Optional[bool], default:None) –Indicates whether to include the configuration archive contents in the response. The default is
false.
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.
-
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 get the configuration for a proxy The following example gets the configuration file for the specified proxy. The configuration archive isn't included.
>>> client.get_proxy_configuration_contents(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', include_config_file=True, include_config_archive=False)
Source code in docs_src/capo_elb_proxy/_services/elb_proxy.py
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 | |