update_stage
async
¶
update_stage(
api_id: __string,
stage_name: __string,
*,
config_overrides: Optional[AsyncApiGatewayV2ClientConfig] = None,
access_log_settings: Optional[AccessLogSettings] = None,
auto_deploy: Optional[__boolean] = None,
client_certificate_id: Optional[Id] = None,
default_route_settings: Optional[RouteSettings] = None,
deployment_id: Optional[Id] = None,
description: Optional[StringWithLengthBetween0And1024] = None,
route_settings: Optional[RouteSettingsMap] = None,
stage_variables: Optional[StageVariablesMap] = None,
) -> UpdateStageResponse
Updates a Stage.
Parameters:
-
access_log_settings(Optional[AccessLogSettings], default:None) –Settings for logging access in this stage.
-
api_id(__string) –The API identifier.
-
auto_deploy(Optional[__boolean], default:None) –Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
-
client_certificate_id(Optional[Id], default:None) –The identifier of a client certificate for a Stage.
-
default_route_settings(Optional[RouteSettings], default:None) –The default route settings for the stage.
-
deployment_id(Optional[Id], default:None) –The deployment identifier for the API stage. Can't be updated if autoDeploy is enabled.
-
description(Optional[StringWithLengthBetween0And1024], default:None) –The description for the API stage.
-
route_settings(Optional[RouteSettingsMap], default:None) –Route settings for the stage.
-
stage_name(__string) –The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.
-
stage_variables(Optional[StageVariablesMap], default:None) –A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
Raises:
-
BadRequestException–The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
NotFoundException–The resource specified in the request was not found. See the message field for more information.
-
TooManyRequestsException–A limit has been exceeded. See the accompanying error message for details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apigatewayv2/_services/async_api_gateway_v2.py
6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 | |