create_app_block_builder
¶
create_app_block_builder(
*,
config_overrides: Optional[AppStreamClientConfig] = None,
name: Optional[Name] = None,
description: Optional[Description] = None,
display_name: Optional[DisplayName] = None,
tags: Optional[Tags] = None,
platform: Optional[AppBlockBuilderPlatformType] = 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,
disable_imdsv1: Optional[BooleanObject] = None,
) -> CreateAppBlockBuilderResult
Creates an app block builder.
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.
-
tags(Optional[Tags], default:None) –The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
If you do not specify a value, the value is set to an empty string.
Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:
_ . : / = + \ - @
For more information, see Tagging Your Resources in the Amazon WorkSpaces Applications Administration Guide.
-
platform(Optional[AppBlockBuilderPlatformType], 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.
-
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.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
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
965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 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 1063 1064 1065 | |