update_alias_routing
¶
update_alias_routing(
app_name: AppName,
environment_name: EnvironmentName,
alias_name: AliasName,
routing_config: RoutingConfig,
*,
config_overrides: Optional[AmplifyGen3ClientConfig] = None,
gradual_rollout_config: Optional[GradualRolloutConfig] = None,
) -> UpdateAliasRoutingResponse
Updates the traffic routing for an alias of an environment.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
alias_name(AliasName) –The name of the alias.
-
routing_config(RoutingConfig) –The traffic routing configuration to apply to the alias.
-
gradual_rollout_config(Optional[GradualRolloutConfig], default:None) –The gradual rollout settings to apply to the alias.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplifygen3/_services/amplify_gen3.py
3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 | |