update_app_block_builder
¶
update_app_block_builder(
*,
config_overrides: Optional[AppStreamClientConfig] = None,
name: Optional[Name] = None,
description: Optional[Description] = None,
display_name: Optional[DisplayName] = None,
platform: Optional[PlatformType] = None,
instance_type: Optional[String] = None,
vpc_config: Optional[VpcConfig] = None,
enable_default_internet_access: Optional[BooleanObject] = None,
iam_role_arn: Optional[Arn] = None,
access_endpoints: Optional[AccessEndpointList] = None,
attributes_to_delete: Optional[AppBlockBuilderAttributes] = None,
disable_imdsv1: Optional[BooleanObject] = None,
) -> UpdateAppBlockBuilderResult
Updates an app block builder.
If the app block builder is in the STARTING or STOPPING state, you can't update it. If the app block builder is in the RUNNING state, you can only update the DisplayName and Description. If the app block builder is in the STOPPED state, you can update any attribute except the Name.
Parameters:
-
name(Optional[Name], default:None) –The unique name for the app block builder.
-
description(Optional[Description], default:None) –The description of the app block builder.
-
display_name(Optional[DisplayName], default:None) –The display name of the app block builder.
-
platform(Optional[PlatformType], default:None) –The platform of the app block builder.
WINDOWS_SERVER_2019is the only valid value. -
instance_type(Optional[String], default:None) –The instance type to use when launching the app block builder. The following instance types are available:
-
stream.standard.small
-
stream.standard.medium
-
stream.standard.large
-
stream.standard.xlarge
-
stream.standard.2xlarge
-
-
vpc_config(Optional[VpcConfig], default:None) –The VPC configuration for the app block builder.
App block builders require that you specify at least two subnets in different availability zones.
-
enable_default_internet_access(Optional[BooleanObject], default:None) –Enables or disables default internet access for the app block builder.
-
iam_role_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block builder calls the AWS Security Token Service (STS)
AssumeRoleAPI operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the appstream_machine_role credential profile on the instance.For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances in the Amazon WorkSpaces Applications Administration Guide.
-
access_endpoints(Optional[AccessEndpointList], default:None) –The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block builder only through the specified endpoints.
-
attributes_to_delete(Optional[AppBlockBuilderAttributes], default:None) –The attributes to delete from the app block builder.
-
disable_imdsv1(Optional[BooleanObject], default:None) –Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.
Raises:
-
ConcurrentModificationException–An API error occurred. Wait a few minutes and try again.
-
InvalidAccountStatusException–The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.
-
InvalidParameterCombinationException–Indicates an incorrect combination of parameters, or a missing parameter.
-
InvalidRoleException–The specified role is invalid.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
RequestLimitExceededException–WorkSpaces Applications can’t process the request right now because the Describe calls from your AWS account are being throttled by Amazon EC2. Try again later.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotAvailableException–The specified resource exists and is not in use, but isn't available.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appstream/_services/app_stream.py
6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 | |