update_environment
¶
update_environment(
application_id: Name,
environment_id: Name,
*,
config_overrides: Optional[AppConfigClientConfig] = None,
name: Optional[Name] = None,
description: Optional[Description] = None,
monitors: Optional[MonitorList] = None,
) -> Environment
Updates an environment.
Parameters:
-
application_id(Name) –The application ID.
-
environment_id(Name) –The environment ID.
-
name(Optional[Name], default:None) –The name of the environment.
-
description(Optional[Description], default:None) –A description of the environment.
-
monitors(Optional[MonitorList], default:None) –Amazon CloudWatch alarms to monitor during the deployment process.
Raises:
-
BadRequestException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
InternalServerException–There was an internal failure in the AppConfig service.
-
ResourceNotFoundException–The requested resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update an environment The following update-environment example updates an environment's description.
>>> client.update_environment(application_id='339ohji', environment_id='54j1r29', description='An environment for examples.')
Source code in docs_src/capo_appconfig/_services/app_config.py
3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 | |