create_app_block
async
¶
create_app_block(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
name: Optional[Name] = None,
description: Optional[Description] = None,
display_name: Optional[DisplayName] = None,
source_s3_location: Optional[S3Location] = None,
setup_script_details: Optional[ScriptDetails] = None,
tags: Optional[Tags] = None,
post_setup_script_details: Optional[ScriptDetails] = None,
packaging_type: Optional[PackagingType] = None,
) -> CreateAppBlockResult
Creates an app block.
App blocks are a WorkSpaces Applications resource that stores the details about the virtual hard disk in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes the application binaries and other files necessary to launch your applications. Multiple applications can be assigned to a single app block.
This is only supported for Elastic fleets.
Parameters:
-
name(Optional[Name], default:None) –The name of the app block.
-
description(Optional[Description], default:None) –The description of the app block.
-
display_name(Optional[DisplayName], default:None) –The display name of the app block. This is not displayed to the user.
-
source_s3_location(Optional[S3Location], default:None) –The source S3 location of the app block.
-
setup_script_details(Optional[ScriptDetails], default:None) –The setup script details of the app block. This must be provided for the
CUSTOMPackagingType. -
tags(Optional[Tags], default:None) –The tags assigned to the app block.
-
post_setup_script_details(Optional[ScriptDetails], default:None) –The post setup script details of the app block. This can only be provided for the
APPSTREAM2PackagingType. -
packaging_type(Optional[PackagingType], default:None) –The packaging type of the app block.
Raises:
-
ConcurrentModificationException–An API error occurred. Wait a few minutes and try again.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appstream/_services/async_app_stream.py
889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 | |