update_environment
async
¶
update_environment(
environment_id: EnvironmentId,
*,
config_overrides: Optional[AsyncCloud9ClientConfig] = None,
name: Optional[EnvironmentName] = None,
description: Optional[EnvironmentDescription] = None,
managed_credentials_action: Optional[ManagedCredentialsAction] = None,
) -> UpdateEnvironmentResult
Changes the settings of an existing Cloud9 development environment.
Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
Parameters:
-
environment_id(EnvironmentId) –The ID of the environment to change settings.
-
name(Optional[EnvironmentName], default:None) –A replacement name for the environment.
-
description(Optional[EnvironmentDescription], default:None) –Any new or replacement description for the environment.
-
managed_credentials_action(Optional[ManagedCredentialsAction], default:None) –Allows the environment owner to turn on or turn off the Amazon Web Services managed temporary credentials for an Cloud9 environment by using one of the following values:
-
ENABLE -
DISABLE
Only the environment owner can change the status of managed temporary credentials. An
AccessDeniedExceptionis thrown if an attempt to turn on or turn off managed temporary credentials is made by an account that's not the environment owner. -
Raises:
-
BadRequestException–The target request is invalid.
-
ConflictException–A conflict occurred.
-
ForbiddenException–An access permissions issue occurred.
-
InternalServerErrorException–An internal server error occurred.
-
LimitExceededException–A service limit was exceeded.
-
NotFoundException–The target resource cannot be found.
-
TooManyRequestsException–Too many service requests were made over the given time period.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
UpdateEnvironment
>>> await client.update_environment(environment_id='8d9967e2f0624182b74e7690ad69ebEX', name='my-changed-demo-environment', description='This is my changed demonstration environment.')
Source code in docs_src/capo_cloud9/_services/async_cloud9.py
983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 | |