update_rule
¶
update_rule(
service_identifier: ServiceIdentifier,
listener_identifier: ListenerIdentifier,
rule_identifier: RuleIdentifier,
*,
config_overrides: Optional[VPCLatticeClientConfig] = None,
match: Optional[RuleMatch] = None,
priority: Optional[RulePriority] = None,
action: Optional[RuleAction] = None,
) -> UpdateRuleResponse
Updates a specified rule for the listener. You can't modify a default listener rule. To modify a default listener rule, use UpdateListener.
Parameters:
-
service_identifier(ServiceIdentifier) –The ID or ARN of the service.
-
listener_identifier(ListenerIdentifier) –The ID or ARN of the listener.
-
rule_identifier(RuleIdentifier) –The ID or ARN of the rule.
-
match(Optional[RuleMatch], default:None) –The rule match.
-
priority(Optional[RulePriority], default:None) –The rule priority. A listener can't have multiple rules with the same priority.
-
action(Optional[RuleAction], default:None) –Information about the action for the specified listener rule.
Raises:
-
AccessDeniedException–The user does not have sufficient access to perform this action.
-
ConflictException–The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_vpc_lattice/_services/vpc_lattice.py
2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 | |