update_app_block_builder
async
¶
update_app_block_builder(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = 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/async_app_stream.py
6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 | |