update_rule
async
¶
update_rule(
service_identifier: ServiceIdentifier,
listener_identifier: ListenerIdentifier,
rule_identifier: RuleIdentifier,
*,
config_overrides: Optional[AsyncVPCLatticeClientConfig] = 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/async_vpc_lattice.py
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 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 | |