update_environment
async
¶
update_environment(
app_name: AppName,
environment_name: EnvironmentName,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
environment_role_arn: Optional[EnvironmentRoleArn] = None,
environment_role_permission_mode: Optional[EnvironmentRolePermissionMode] = None,
source_config: Optional[EnvironmentUpdateSourceConfigRequest] = None,
waf_log_configs: Optional[WafLogConfigRequestList] = None,
gradual_rollout_config: Optional[GradualRolloutConfig] = None,
web: Optional[EnvironmentUpdateWebConfigRequest] = None,
backend: Optional[EnvironmentUpdateBackendRequest] = None,
network_config: Optional[EnvironmentUpdateNetworkConfigRequest] = None,
) -> UpdateEnvironmentResponse
Updates an environment for a Gen 3 app.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
environment_role_arn(Optional[EnvironmentRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role for the environment.
-
environment_role_permission_mode(Optional[EnvironmentRolePermissionMode], default:None) –The permission mode for the environment's IAM role.
-
source_config(Optional[EnvironmentUpdateSourceConfigRequest], default:None) –The source configuration for the environment.
-
waf_log_configs(Optional[WafLogConfigRequestList], default:None) –A list of the environment's AWS WAF log configurations.
-
gradual_rollout_config(Optional[GradualRolloutConfig], default:None) –The gradual rollout settings.
-
web(Optional[EnvironmentUpdateWebConfigRequest], default:None) –The web hosting settings for the environment.
-
backend(Optional[EnvironmentUpdateBackendRequest], default:None) –The backend settings for the environment. You can specify Auth and Database only when the app has a backend. An app without a backend can specify this only to turn off backend log delivery. If you omit a member, that setting is unchanged.
-
network_config(Optional[EnvironmentUpdateNetworkConfigRequest], default:None) –The VPC network configuration for the environment.
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.
-
ServiceQuotaExceededException–The request would exceed a service quota for your account.
-
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/async_amplify_gen3.py
3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 | |