capo-workspaces 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- capo_workspaces/__init__.py +70 -0
- capo_workspaces/_async.py +25 -0
- capo_workspaces/_auth/_identity.py +16 -0
- capo_workspaces/_auth/_providers.py +886 -0
- capo_workspaces/_auth/_signers.py +88 -0
- capo_workspaces/_auth/_sigv4.py +434 -0
- capo_workspaces/_auth/_zapros_handler.py +80 -0
- capo_workspaces/_iter.py +113 -0
- capo_workspaces/_operations/workspaces_service/accept_account_link_invitation.py +167 -0
- capo_workspaces/_operations/workspaces_service/associate_connection_alias.py +171 -0
- capo_workspaces/_operations/workspaces_service/associate_ip_groups.py +168 -0
- capo_workspaces/_operations/workspaces_service/associate_workspace_application.py +192 -0
- capo_workspaces/_operations/workspaces_service/authorize_ip_rules.py +161 -0
- capo_workspaces/_operations/workspaces_service/copy_workspace_image.py +181 -0
- capo_workspaces/_operations/workspaces_service/create_account_link_invitation.py +162 -0
- capo_workspaces/_operations/workspaces_service/create_connect_client_add_in.py +166 -0
- capo_workspaces/_operations/workspaces_service/create_connection_alias.py +172 -0
- capo_workspaces/_operations/workspaces_service/create_ip_group.py +168 -0
- capo_workspaces/_operations/workspaces_service/create_standby_workspaces.py +173 -0
- capo_workspaces/_operations/workspaces_service/create_tags.py +145 -0
- capo_workspaces/_operations/workspaces_service/create_updated_workspace_image.py +177 -0
- capo_workspaces/_operations/workspaces_service/create_workspace_bundle.py +176 -0
- capo_workspaces/_operations/workspaces_service/create_workspace_image.py +181 -0
- capo_workspaces/_operations/workspaces_service/create_workspaces.py +156 -0
- capo_workspaces/_operations/workspaces_service/create_workspaces_pool.py +177 -0
- capo_workspaces/_operations/workspaces_service/delete_account_link_invitation.py +167 -0
- capo_workspaces/_operations/workspaces_service/delete_client_branding.py +153 -0
- capo_workspaces/_operations/workspaces_service/delete_connect_client_add_in.py +152 -0
- capo_workspaces/_operations/workspaces_service/delete_connection_alias.py +167 -0
- capo_workspaces/_operations/workspaces_service/delete_ip_group.py +153 -0
- capo_workspaces/_operations/workspaces_service/delete_tags.py +140 -0
- capo_workspaces/_operations/workspaces_service/delete_workspace_bundle.py +157 -0
- capo_workspaces/_operations/workspaces_service/delete_workspace_image.py +152 -0
- capo_workspaces/_operations/workspaces_service/deploy_workspace_applications.py +172 -0
- capo_workspaces/_operations/workspaces_service/deregister_workspace_directory.py +162 -0
- capo_workspaces/_operations/workspaces_service/describe_account.py +148 -0
- capo_workspaces/_operations/workspaces_service/describe_account_modifications.py +147 -0
- capo_workspaces/_operations/workspaces_service/describe_application_associations.py +163 -0
- capo_workspaces/_operations/workspaces_service/describe_applications.py +166 -0
- capo_workspaces/_operations/workspaces_service/describe_bundle_associations.py +163 -0
- capo_workspaces/_operations/workspaces_service/describe_client_branding.py +158 -0
- capo_workspaces/_operations/workspaces_service/describe_client_properties.py +158 -0
- capo_workspaces/_operations/workspaces_service/describe_connect_client_add_ins.py +157 -0
- capo_workspaces/_operations/workspaces_service/describe_connection_alias_permissions.py +162 -0
- capo_workspaces/_operations/workspaces_service/describe_connection_aliases.py +158 -0
- capo_workspaces/_operations/workspaces_service/describe_custom_workspace_image_import.py +155 -0
- capo_workspaces/_operations/workspaces_service/describe_image_associations.py +163 -0
- capo_workspaces/_operations/workspaces_service/describe_ip_groups.py +155 -0
- capo_workspaces/_operations/workspaces_service/describe_tags.py +147 -0
- capo_workspaces/_operations/workspaces_service/describe_workspace_associations.py +163 -0
- capo_workspaces/_operations/workspaces_service/describe_workspace_bundles.py +148 -0
- capo_workspaces/_operations/workspaces_service/describe_workspace_directories.py +150 -0
- capo_workspaces/_operations/workspaces_service/describe_workspace_image_permissions.py +157 -0
- capo_workspaces/_operations/workspaces_service/describe_workspace_images.py +153 -0
- capo_workspaces/_operations/workspaces_service/describe_workspace_snapshots.py +157 -0
- capo_workspaces/_operations/workspaces_service/describe_workspaces.py +157 -0
- capo_workspaces/_operations/workspaces_service/describe_workspaces_connection_status.py +148 -0
- capo_workspaces/_operations/workspaces_service/describe_workspaces_pool_sessions.py +157 -0
- capo_workspaces/_operations/workspaces_service/describe_workspaces_pools.py +163 -0
- capo_workspaces/_operations/workspaces_service/disassociate_connection_alias.py +162 -0
- capo_workspaces/_operations/workspaces_service/disassociate_ip_groups.py +163 -0
- capo_workspaces/_operations/workspaces_service/disassociate_workspace_application.py +167 -0
- capo_workspaces/_operations/workspaces_service/get_account_link.py +162 -0
- capo_workspaces/_operations/workspaces_service/import_client_branding.py +165 -0
- capo_workspaces/_operations/workspaces_service/import_custom_workspace_image.py +178 -0
- capo_workspaces/_operations/workspaces_service/import_workspace_image.py +174 -0
- capo_workspaces/_operations/workspaces_service/list_account_links.py +160 -0
- capo_workspaces/_operations/workspaces_service/list_available_management_cidr_ranges.py +152 -0
- capo_workspaces/_operations/workspaces_service/migrate_workspace.py +173 -0
- capo_workspaces/_operations/workspaces_service/modify_account.py +167 -0
- capo_workspaces/_operations/workspaces_service/modify_certificate_based_auth_properties.py +159 -0
- capo_workspaces/_operations/workspaces_service/modify_client_properties.py +158 -0
- capo_workspaces/_operations/workspaces_service/modify_endpoint_encryption_mode.py +153 -0
- capo_workspaces/_operations/workspaces_service/modify_saml_properties.py +159 -0
- capo_workspaces/_operations/workspaces_service/modify_selfservice_permissions.py +158 -0
- capo_workspaces/_operations/workspaces_service/modify_streaming_properties.py +158 -0
- capo_workspaces/_operations/workspaces_service/modify_workspace_access_properties.py +163 -0
- capo_workspaces/_operations/workspaces_service/modify_workspace_creation_properties.py +158 -0
- capo_workspaces/_operations/workspaces_service/modify_workspace_properties.py +174 -0
- capo_workspaces/_operations/workspaces_service/modify_workspace_state.py +158 -0
- capo_workspaces/_operations/workspaces_service/reboot_workspaces.py +150 -0
- capo_workspaces/_operations/workspaces_service/rebuild_workspaces.py +150 -0
- capo_workspaces/_operations/workspaces_service/register_workspace_directory.py +194 -0
- capo_workspaces/_operations/workspaces_service/reject_account_link_invitation.py +167 -0
- capo_workspaces/_operations/workspaces_service/restore_workspace.py +155 -0
- capo_workspaces/_operations/workspaces_service/revoke_ip_rules.py +154 -0
- capo_workspaces/_operations/workspaces_service/start_workspaces.py +143 -0
- capo_workspaces/_operations/workspaces_service/start_workspaces_pool.py +172 -0
- capo_workspaces/_operations/workspaces_service/stop_workspaces.py +143 -0
- capo_workspaces/_operations/workspaces_service/stop_workspaces_pool.py +162 -0
- capo_workspaces/_operations/workspaces_service/terminate_workspaces.py +147 -0
- capo_workspaces/_operations/workspaces_service/terminate_workspaces_pool.py +166 -0
- capo_workspaces/_operations/workspaces_service/terminate_workspaces_pool_session.py +162 -0
- capo_workspaces/_operations/workspaces_service/update_connect_client_add_in.py +152 -0
- capo_workspaces/_operations/workspaces_service/update_connection_alias_permission.py +173 -0
- capo_workspaces/_operations/workspaces_service/update_rules_of_ip_group.py +163 -0
- capo_workspaces/_operations/workspaces_service/update_workspace_bundle.py +162 -0
- capo_workspaces/_operations/workspaces_service/update_workspace_image_permission.py +162 -0
- capo_workspaces/_operations/workspaces_service/update_workspaces_pool.py +181 -0
- capo_workspaces/_pagination.py +21 -0
- capo_workspaces/_protocol/__init__.py +1 -0
- capo_workspaces/_protocol/errors.py +93 -0
- capo_workspaces/_protocol/eventstream.py +238 -0
- capo_workspaces/_protocol/serialize.py +47 -0
- capo_workspaces/_protocol/xml.py +33 -0
- capo_workspaces/_rule_engine/__init__.py +0 -0
- capo_workspaces/_rule_engine/_aws_partition.py +160 -0
- capo_workspaces/_rule_engine/_endpoint_rule_set.py +138 -0
- capo_workspaces/_rule_engine/_endpoint_runtime.py +389 -0
- capo_workspaces/_services/_aws_config.py +160 -0
- capo_workspaces/_services/_pipeline.py +198 -0
- capo_workspaces/_services/async_work_spaces.py +5634 -0
- capo_workspaces/_services/work_spaces.py +5543 -0
- capo_workspaces/errors/__init__.py +84 -0
- capo_workspaces/errors/_base.py +94 -0
- capo_workspaces/errors/access_denied_exception.py +51 -0
- capo_workspaces/errors/application_not_supported_exception.py +44 -0
- capo_workspaces/errors/compute_not_compatible_exception.py +44 -0
- capo_workspaces/errors/conflict_exception.py +51 -0
- capo_workspaces/errors/incompatible_applications_exception.py +44 -0
- capo_workspaces/errors/internal_server_exception.py +51 -0
- capo_workspaces/errors/invalid_parameter_combination_exception.py +54 -0
- capo_workspaces/errors/invalid_parameter_values_exception.py +54 -0
- capo_workspaces/errors/invalid_resource_state_exception.py +53 -0
- capo_workspaces/errors/operating_system_not_compatible_exception.py +44 -0
- capo_workspaces/errors/operation_in_progress_exception.py +51 -0
- capo_workspaces/errors/operation_not_supported_exception.py +61 -0
- capo_workspaces/errors/resource_already_exists_exception.py +53 -0
- capo_workspaces/errors/resource_associated_exception.py +51 -0
- capo_workspaces/errors/resource_creation_failed_exception.py +53 -0
- capo_workspaces/errors/resource_in_use_exception.py +58 -0
- capo_workspaces/errors/resource_limit_exceeded_exception.py +54 -0
- capo_workspaces/errors/resource_not_found_exception.py +59 -0
- capo_workspaces/errors/resource_unavailable_exception.py +59 -0
- capo_workspaces/errors/unsupported_network_configuration_exception.py +55 -0
- capo_workspaces/errors/unsupported_workspace_configuration_exception.py +55 -0
- capo_workspaces/errors/validation_exception.py +51 -0
- capo_workspaces/errors/workspaces_default_role_not_found_exception.py +53 -0
- capo_workspaces/py.typed +0 -0
- capo_workspaces/types/_prelude/blob.py +12 -0
- capo_workspaces/types/_prelude/timestamp.py +17 -0
- capo_workspaces/types/accept_account_link_invitation_request.py +40 -0
- capo_workspaces/types/accept_account_link_invitation_result.py +38 -0
- capo_workspaces/types/access_endpoint.py +51 -0
- capo_workspaces/types/access_endpoint_config.py +64 -0
- capo_workspaces/types/access_endpoint_list.py +31 -0
- capo_workspaces/types/access_endpoint_type.py +14 -0
- capo_workspaces/types/access_property_value.py +17 -0
- capo_workspaces/types/account_link.py +62 -0
- capo_workspaces/types/account_link_list.py +29 -0
- capo_workspaces/types/account_link_status_enum.py +20 -0
- capo_workspaces/types/account_modification.py +107 -0
- capo_workspaces/types/account_modification_list.py +35 -0
- capo_workspaces/types/active_directory_config.py +43 -0
- capo_workspaces/types/active_user_sessions.py +5 -0
- capo_workspaces/types/actual_user_sessions.py +5 -0
- capo_workspaces/types/add_in_name.py +5 -0
- capo_workspaces/types/add_in_url.py +5 -0
- capo_workspaces/types/aga_mode_for_directory_enum.py +17 -0
- capo_workspaces/types/aga_mode_for_work_space_enum.py +18 -0
- capo_workspaces/types/aga_preferred_protocol_for_directory.py +17 -0
- capo_workspaces/types/aga_preferred_protocol_for_work_space.py +18 -0
- capo_workspaces/types/alias.py +5 -0
- capo_workspaces/types/alphanumeric_dash_underscore_non_empty_string.py +5 -0
- capo_workspaces/types/amazon_uuid.py +5 -0
- capo_workspaces/types/application.py +17 -0
- capo_workspaces/types/application_associated_resource_type.py +18 -0
- capo_workspaces/types/application_associated_resource_type_list.py +39 -0
- capo_workspaces/types/application_list.py +29 -0
- capo_workspaces/types/application_resource_association.py +127 -0
- capo_workspaces/types/application_resource_association_list.py +39 -0
- capo_workspaces/types/application_settings_request.py +50 -0
- capo_workspaces/types/application_settings_response.py +57 -0
- capo_workspaces/types/application_settings_status_enum.py +17 -0
- capo_workspaces/types/arn.py +5 -0
- capo_workspaces/types/associate_connection_alias_request.py +41 -0
- capo_workspaces/types/associate_connection_alias_result.py +30 -0
- capo_workspaces/types/associate_ip_groups_request.py +49 -0
- capo_workspaces/types/associate_ip_groups_result.py +18 -0
- capo_workspaces/types/associate_workspace_application_request.py +45 -0
- capo_workspaces/types/associate_workspace_application_result.py +42 -0
- capo_workspaces/types/association_error_code.py +21 -0
- capo_workspaces/types/association_state.py +24 -0
- capo_workspaces/types/association_state_reason.py +49 -0
- capo_workspaces/types/association_status.py +20 -0
- capo_workspaces/types/authentication_type.py +14 -0
- capo_workspaces/types/authorize_ip_rules_request.py +47 -0
- capo_workspaces/types/authorize_ip_rules_result.py +18 -0
- capo_workspaces/types/available_user_sessions.py +5 -0
- capo_workspaces/types/aws_account.py +5 -0
- capo_workspaces/types/boolean_object.py +5 -0
- capo_workspaces/types/bundle_associated_resource_type.py +14 -0
- capo_workspaces/types/bundle_associated_resource_type_list.py +39 -0
- capo_workspaces/types/bundle_id.py +5 -0
- capo_workspaces/types/bundle_id_list.py +17 -0
- capo_workspaces/types/bundle_list.py +31 -0
- capo_workspaces/types/bundle_owner.py +5 -0
- capo_workspaces/types/bundle_resource_association.py +125 -0
- capo_workspaces/types/bundle_resource_association_list.py +39 -0
- capo_workspaces/types/bundle_type.py +17 -0
- capo_workspaces/types/capacity.py +33 -0
- capo_workspaces/types/capacity_status.py +63 -0
- capo_workspaces/types/certificate_authority_arn.py +5 -0
- capo_workspaces/types/certificate_based_auth_properties.py +51 -0
- capo_workspaces/types/certificate_based_auth_status_enum.py +17 -0
- capo_workspaces/types/client_device_type.py +21 -0
- capo_workspaces/types/client_device_type_list.py +35 -0
- capo_workspaces/types/client_email.py +5 -0
- capo_workspaces/types/client_locale.py +5 -0
- capo_workspaces/types/client_login_message.py +5 -0
- capo_workspaces/types/client_properties.py +61 -0
- capo_workspaces/types/client_properties_list.py +37 -0
- capo_workspaces/types/client_properties_result.py +49 -0
- capo_workspaces/types/client_token.py +5 -0
- capo_workspaces/types/client_url.py +5 -0
- capo_workspaces/types/compute.py +38 -0
- capo_workspaces/types/compute_list.py +29 -0
- capo_workspaces/types/compute_type.py +36 -0
- capo_workspaces/types/computer_name.py +5 -0
- capo_workspaces/types/connect_client_add_in.py +49 -0
- capo_workspaces/types/connect_client_add_in_list.py +35 -0
- capo_workspaces/types/connection_alias.py +86 -0
- capo_workspaces/types/connection_alias_association.py +65 -0
- capo_workspaces/types/connection_alias_association_list.py +39 -0
- capo_workspaces/types/connection_alias_id.py +5 -0
- capo_workspaces/types/connection_alias_id_list.py +19 -0
- capo_workspaces/types/connection_alias_list.py +33 -0
- capo_workspaces/types/connection_alias_permission.py +43 -0
- capo_workspaces/types/connection_alias_permissions.py +39 -0
- capo_workspaces/types/connection_alias_state.py +18 -0
- capo_workspaces/types/connection_identifier.py +5 -0
- capo_workspaces/types/connection_state.py +18 -0
- capo_workspaces/types/connection_string.py +5 -0
- capo_workspaces/types/copy_workspace_image_request.py +71 -0
- capo_workspaces/types/copy_workspace_image_result.py +28 -0
- capo_workspaces/types/create_account_link_invitation_request.py +40 -0
- capo_workspaces/types/create_account_link_invitation_result.py +38 -0
- capo_workspaces/types/create_connect_client_add_in_request.py +49 -0
- capo_workspaces/types/create_connect_client_add_in_result.py +28 -0
- capo_workspaces/types/create_connection_alias_request.py +48 -0
- capo_workspaces/types/create_connection_alias_result.py +28 -0
- capo_workspaces/types/create_ip_group_request.py +68 -0
- capo_workspaces/types/create_ip_group_result.py +28 -0
- capo_workspaces/types/create_standby_workspaces_request.py +57 -0
- capo_workspaces/types/create_standby_workspaces_result.py +63 -0
- capo_workspaces/types/create_tags_request.py +45 -0
- capo_workspaces/types/create_tags_result.py +18 -0
- capo_workspaces/types/create_updated_workspace_image_request.py +68 -0
- capo_workspaces/types/create_updated_workspace_image_result.py +28 -0
- capo_workspaces/types/create_workspace_bundle_request.py +116 -0
- capo_workspaces/types/create_workspace_bundle_result.py +41 -0
- capo_workspaces/types/create_workspace_image_request.py +64 -0
- capo_workspaces/types/create_workspace_image_result.py +129 -0
- capo_workspaces/types/create_workspaces_pool_request.py +149 -0
- capo_workspaces/types/create_workspaces_pool_result.py +40 -0
- capo_workspaces/types/create_workspaces_request.py +43 -0
- capo_workspaces/types/create_workspaces_result.py +61 -0
- capo_workspaces/types/custom_image_protocol.py +18 -0
- capo_workspaces/types/custom_workspace_image_import_error_details.py +37 -0
- capo_workspaces/types/custom_workspace_image_import_error_details_list.py +39 -0
- capo_workspaces/types/custom_workspace_image_import_state.py +29 -0
- capo_workspaces/types/data_replication.py +17 -0
- capo_workspaces/types/data_replication_settings.py +61 -0
- capo_workspaces/types/dedicated_tenancy_account_type.py +17 -0
- capo_workspaces/types/dedicated_tenancy_cidr_range_list.py +19 -0
- capo_workspaces/types/dedicated_tenancy_management_cidr_range.py +5 -0
- capo_workspaces/types/dedicated_tenancy_modification_state_enum.py +18 -0
- capo_workspaces/types/dedicated_tenancy_support_enum.py +14 -0
- capo_workspaces/types/dedicated_tenancy_support_result_enum.py +17 -0
- capo_workspaces/types/default_client_branding_attributes.py +66 -0
- capo_workspaces/types/default_import_client_branding_attributes.py +75 -0
- capo_workspaces/types/default_logo.py +15 -0
- capo_workspaces/types/default_ou.py +5 -0
- capo_workspaces/types/default_workspace_creation_properties.py +73 -0
- capo_workspaces/types/deletable_certificate_based_auth_properties_list.py +39 -0
- capo_workspaces/types/deletable_certificate_based_auth_property.py +16 -0
- capo_workspaces/types/deletable_saml_properties_list.py +35 -0
- capo_workspaces/types/deletable_saml_property.py +17 -0
- capo_workspaces/types/delete_account_link_invitation_request.py +40 -0
- capo_workspaces/types/delete_account_link_invitation_result.py +38 -0
- capo_workspaces/types/delete_client_branding_request.py +51 -0
- capo_workspaces/types/delete_client_branding_result.py +18 -0
- capo_workspaces/types/delete_connect_client_add_in_request.py +41 -0
- capo_workspaces/types/delete_connect_client_add_in_result.py +18 -0
- capo_workspaces/types/delete_connection_alias_request.py +31 -0
- capo_workspaces/types/delete_connection_alias_result.py +18 -0
- capo_workspaces/types/delete_ip_group_request.py +31 -0
- capo_workspaces/types/delete_ip_group_result.py +18 -0
- capo_workspaces/types/delete_tags_request.py +47 -0
- capo_workspaces/types/delete_tags_result.py +18 -0
- capo_workspaces/types/delete_workspace_bundle_request.py +28 -0
- capo_workspaces/types/delete_workspace_bundle_result.py +18 -0
- capo_workspaces/types/delete_workspace_image_request.py +31 -0
- capo_workspaces/types/delete_workspace_image_result.py +18 -0
- capo_workspaces/types/deploy_workspace_applications_request.py +40 -0
- capo_workspaces/types/deploy_workspace_applications_result.py +42 -0
- capo_workspaces/types/deregister_workspace_directory_request.py +33 -0
- capo_workspaces/types/deregister_workspace_directory_result.py +18 -0
- capo_workspaces/types/describe_account_modifications_request.py +28 -0
- capo_workspaces/types/describe_account_modifications_result.py +49 -0
- capo_workspaces/types/describe_account_request.py +18 -0
- capo_workspaces/types/describe_account_result.py +83 -0
- capo_workspaces/types/describe_application_associations_request.py +71 -0
- capo_workspaces/types/describe_application_associations_result.py +49 -0
- capo_workspaces/types/describe_applications_request.py +126 -0
- capo_workspaces/types/describe_applications_result.py +49 -0
- capo_workspaces/types/describe_bundle_associations_request.py +55 -0
- capo_workspaces/types/describe_bundle_associations_result.py +42 -0
- capo_workspaces/types/describe_client_branding_request.py +31 -0
- capo_workspaces/types/describe_client_branding_result.py +143 -0
- capo_workspaces/types/describe_client_properties_request.py +43 -0
- capo_workspaces/types/describe_client_properties_result.py +42 -0
- capo_workspaces/types/describe_connect_client_add_ins_request.py +47 -0
- capo_workspaces/types/describe_connect_client_add_ins_result.py +49 -0
- capo_workspaces/types/describe_connection_alias_permissions_request.py +47 -0
- capo_workspaces/types/describe_connection_alias_permissions_result.py +56 -0
- capo_workspaces/types/describe_connection_aliases_request.py +63 -0
- capo_workspaces/types/describe_connection_aliases_result.py +49 -0
- capo_workspaces/types/describe_custom_workspace_image_import_request.py +33 -0
- capo_workspaces/types/describe_custom_workspace_image_import_result.py +158 -0
- capo_workspaces/types/describe_image_associations_request.py +53 -0
- capo_workspaces/types/describe_image_associations_result.py +42 -0
- capo_workspaces/types/describe_ip_groups_request.py +52 -0
- capo_workspaces/types/describe_ip_groups_result.py +49 -0
- capo_workspaces/types/describe_tags_request.py +31 -0
- capo_workspaces/types/describe_tags_result.py +36 -0
- capo_workspaces/types/describe_workspace_associations_request.py +55 -0
- capo_workspaces/types/describe_workspace_associations_result.py +42 -0
- capo_workspaces/types/describe_workspace_bundles_request.py +52 -0
- capo_workspaces/types/describe_workspace_bundles_result.py +43 -0
- capo_workspaces/types/describe_workspace_directories_filter.py +63 -0
- capo_workspaces/types/describe_workspace_directories_filter_list.py +39 -0
- capo_workspaces/types/describe_workspace_directories_filter_name.py +17 -0
- capo_workspaces/types/describe_workspace_directories_filter_value.py +5 -0
- capo_workspaces/types/describe_workspace_directories_filter_values.py +19 -0
- capo_workspaces/types/describe_workspace_directories_request.py +98 -0
- capo_workspaces/types/describe_workspace_directories_result.py +47 -0
- capo_workspaces/types/describe_workspace_image_permissions_request.py +47 -0
- capo_workspaces/types/describe_workspace_image_permissions_result.py +56 -0
- capo_workspaces/types/describe_workspace_images_request.py +71 -0
- capo_workspaces/types/describe_workspace_images_result.py +47 -0
- capo_workspaces/types/describe_workspace_snapshots_request.py +33 -0
- capo_workspaces/types/describe_workspace_snapshots_result.py +58 -0
- capo_workspaces/types/describe_workspaces_connection_status_request.py +49 -0
- capo_workspaces/types/describe_workspaces_connection_status_result.py +49 -0
- capo_workspaces/types/describe_workspaces_pool_sessions_request.py +56 -0
- capo_workspaces/types/describe_workspaces_pool_sessions_result.py +49 -0
- capo_workspaces/types/describe_workspaces_pools_filter.py +83 -0
- capo_workspaces/types/describe_workspaces_pools_filter_name.py +14 -0
- capo_workspaces/types/describe_workspaces_pools_filter_operator.py +19 -0
- capo_workspaces/types/describe_workspaces_pools_filter_value.py +5 -0
- capo_workspaces/types/describe_workspaces_pools_filter_values.py +19 -0
- capo_workspaces/types/describe_workspaces_pools_filters.py +39 -0
- capo_workspaces/types/describe_workspaces_pools_request.py +75 -0
- capo_workspaces/types/describe_workspaces_pools_result.py +49 -0
- capo_workspaces/types/describe_workspaces_request.py +84 -0
- capo_workspaces/types/describe_workspaces_result.py +45 -0
- capo_workspaces/types/description.py +5 -0
- capo_workspaces/types/desired_user_sessions.py +5 -0
- capo_workspaces/types/directory_id.py +5 -0
- capo_workspaces/types/directory_id_list.py +17 -0
- capo_workspaces/types/directory_list.py +35 -0
- capo_workspaces/types/directory_name.py +5 -0
- capo_workspaces/types/disassociate_connection_alias_request.py +33 -0
- capo_workspaces/types/disassociate_connection_alias_result.py +18 -0
- capo_workspaces/types/disassociate_ip_groups_request.py +49 -0
- capo_workspaces/types/disassociate_ip_groups_result.py +18 -0
- capo_workspaces/types/disassociate_workspace_application_request.py +45 -0
- capo_workspaces/types/disassociate_workspace_application_result.py +42 -0
- capo_workspaces/types/disconnect_timeout_in_seconds.py +5 -0
- capo_workspaces/types/dns_ip_addresses.py +17 -0
- capo_workspaces/types/dns_ipv6_addresses.py +17 -0
- capo_workspaces/types/domain_name.py +5 -0
- capo_workspaces/types/ec2_image_id.py +5 -0
- capo_workspaces/types/ec2_import_task_id.py +5 -0
- capo_workspaces/types/endpoint_encryption_mode.py +17 -0
- capo_workspaces/types/error_code.py +5 -0
- capo_workspaces/types/error_details.py +49 -0
- capo_workspaces/types/error_details_list.py +29 -0
- capo_workspaces/types/error_message.py +5 -0
- capo_workspaces/types/error_type.py +5 -0
- capo_workspaces/types/exception_error_code.py +5 -0
- capo_workspaces/types/exception_message.py +5 -0
- capo_workspaces/types/failed_create_standby_workspaces_request.py +58 -0
- capo_workspaces/types/failed_create_standby_workspaces_request_list.py +39 -0
- capo_workspaces/types/failed_create_workspace_request.py +56 -0
- capo_workspaces/types/failed_create_workspace_requests.py +39 -0
- capo_workspaces/types/failed_reboot_workspace_requests.py +39 -0
- capo_workspaces/types/failed_rebuild_workspace_requests.py +39 -0
- capo_workspaces/types/failed_start_workspace_requests.py +39 -0
- capo_workspaces/types/failed_stop_workspace_requests.py +39 -0
- capo_workspaces/types/failed_terminate_workspace_requests.py +39 -0
- capo_workspaces/types/failed_workspace_change_request.py +42 -0
- capo_workspaces/types/get_account_link_request.py +35 -0
- capo_workspaces/types/get_account_link_result.py +38 -0
- capo_workspaces/types/global_accelerator_for_directory.py +64 -0
- capo_workspaces/types/global_accelerator_for_work_space.py +64 -0
- capo_workspaces/types/idc_config.py +34 -0
- capo_workspaces/types/idle_disconnect_timeout_in_seconds.py +5 -0
- capo_workspaces/types/image_associated_resource_type.py +14 -0
- capo_workspaces/types/image_associated_resource_type_list.py +39 -0
- capo_workspaces/types/image_build_version_arn.py +5 -0
- capo_workspaces/types/image_compute_type.py +18 -0
- capo_workspaces/types/image_error_message.py +5 -0
- capo_workspaces/types/image_permission.py +28 -0
- capo_workspaces/types/image_permissions.py +33 -0
- capo_workspaces/types/image_resource_association.py +125 -0
- capo_workspaces/types/image_resource_association_list.py +39 -0
- capo_workspaces/types/image_source_identifier.py +56 -0
- capo_workspaces/types/image_type.py +17 -0
- capo_workspaces/types/import_client_branding_request.py +153 -0
- capo_workspaces/types/import_client_branding_result.py +143 -0
- capo_workspaces/types/import_custom_workspace_image_request.py +172 -0
- capo_workspaces/types/import_custom_workspace_image_result.py +49 -0
- capo_workspaces/types/import_workspace_image_request.py +107 -0
- capo_workspaces/types/import_workspace_image_result.py +28 -0
- capo_workspaces/types/infrastructure_configuration_arn.py +5 -0
- capo_workspaces/types/internet_fallback_protocol.py +14 -0
- capo_workspaces/types/internet_fallback_protocol_list.py +39 -0
- capo_workspaces/types/ios2_x_logo.py +15 -0
- capo_workspaces/types/ios3_x_logo.py +15 -0
- capo_workspaces/types/ios_client_branding_attributes.py +78 -0
- capo_workspaces/types/ios_import_client_branding_attributes.py +105 -0
- capo_workspaces/types/ios_logo.py +15 -0
- capo_workspaces/types/ip_address.py +5 -0
- capo_workspaces/types/ip_group_desc.py +5 -0
- capo_workspaces/types/ip_group_id.py +5 -0
- capo_workspaces/types/ip_group_id_list.py +17 -0
- capo_workspaces/types/ip_group_name.py +5 -0
- capo_workspaces/types/ip_revoked_rule_list.py +17 -0
- capo_workspaces/types/ip_rule.py +5 -0
- capo_workspaces/types/ip_rule_desc.py +5 -0
- capo_workspaces/types/ip_rule_item.py +35 -0
- capo_workspaces/types/ip_rule_list.py +29 -0
- capo_workspaces/types/ipv6_address.py +5 -0
- capo_workspaces/types/limit.py +5 -0
- capo_workspaces/types/limit50.py +5 -0
- capo_workspaces/types/link_id.py +5 -0
- capo_workspaces/types/link_status_filter_list.py +37 -0
- capo_workspaces/types/list_account_links_request.py +56 -0
- capo_workspaces/types/list_account_links_result.py +49 -0
- capo_workspaces/types/list_available_management_cidr_ranges_request.py +49 -0
- capo_workspaces/types/list_available_management_cidr_ranges_result.py +49 -0
- capo_workspaces/types/log_upload_enum.py +17 -0
- capo_workspaces/types/login_message.py +29 -0
- capo_workspaces/types/management_cidr_range_constraint.py +5 -0
- capo_workspaces/types/management_cidr_range_max_results.py +5 -0
- capo_workspaces/types/max_user_duration_in_seconds.py +5 -0
- capo_workspaces/types/maximum_length.py +5 -0
- capo_workspaces/types/message.py +5 -0
- capo_workspaces/types/microsoft_entra_config.py +39 -0
- capo_workspaces/types/microsoft_entra_config_tenant_id.py +5 -0
- capo_workspaces/types/migrate_workspace_request.py +41 -0
- capo_workspaces/types/migrate_workspace_result.py +34 -0
- capo_workspaces/types/modification_resource_enum.py +19 -0
- capo_workspaces/types/modification_state.py +63 -0
- capo_workspaces/types/modification_state_enum.py +18 -0
- capo_workspaces/types/modification_state_list.py +35 -0
- capo_workspaces/types/modify_account_request.py +55 -0
- capo_workspaces/types/modify_account_result.py +28 -0
- capo_workspaces/types/modify_certificate_based_auth_properties_request.py +75 -0
- capo_workspaces/types/modify_certificate_based_auth_properties_result.py +18 -0
- capo_workspaces/types/modify_client_properties_request.py +53 -0
- capo_workspaces/types/modify_client_properties_result.py +18 -0
- capo_workspaces/types/modify_endpoint_encryption_mode_request.py +57 -0
- capo_workspaces/types/modify_endpoint_encryption_mode_response.py +18 -0
- capo_workspaces/types/modify_saml_properties_request.py +71 -0
- capo_workspaces/types/modify_saml_properties_result.py +18 -0
- capo_workspaces/types/modify_selfservice_permissions_request.py +57 -0
- capo_workspaces/types/modify_selfservice_permissions_result.py +18 -0
- capo_workspaces/types/modify_streaming_properties_request.py +54 -0
- capo_workspaces/types/modify_streaming_properties_result.py +18 -0
- capo_workspaces/types/modify_workspace_access_properties_request.py +57 -0
- capo_workspaces/types/modify_workspace_access_properties_result.py +18 -0
- capo_workspaces/types/modify_workspace_creation_properties_request.py +55 -0
- capo_workspaces/types/modify_workspace_creation_properties_result.py +18 -0
- capo_workspaces/types/modify_workspace_properties_request.py +75 -0
- capo_workspaces/types/modify_workspace_properties_result.py +18 -0
- capo_workspaces/types/modify_workspace_state_request.py +53 -0
- capo_workspaces/types/modify_workspace_state_result.py +18 -0
- capo_workspaces/types/network_access_configuration.py +36 -0
- capo_workspaces/types/non_empty_string.py +5 -0
- capo_workspaces/types/operating_system.py +40 -0
- capo_workspaces/types/operating_system_name.py +29 -0
- capo_workspaces/types/operating_system_name_list.py +35 -0
- capo_workspaces/types/operating_system_type.py +17 -0
- capo_workspaces/types/os_version.py +17 -0
- capo_workspaces/types/pagination_token.py +5 -0
- capo_workspaces/types/pending_create_standby_workspaces_request.py +57 -0
- capo_workspaces/types/pending_create_standby_workspaces_request_list.py +39 -0
- capo_workspaces/types/percentage.py +5 -0
- capo_workspaces/types/platform.py +14 -0
- capo_workspaces/types/pools_running_mode.py +17 -0
- capo_workspaces/types/protocol.py +17 -0
- capo_workspaces/types/protocol_list.py +29 -0
- capo_workspaces/types/reboot_request.py +31 -0
- capo_workspaces/types/reboot_workspace_requests.py +31 -0
- capo_workspaces/types/reboot_workspaces_request.py +47 -0
- capo_workspaces/types/reboot_workspaces_result.py +42 -0
- capo_workspaces/types/rebuild_request.py +31 -0
- capo_workspaces/types/rebuild_workspace_requests.py +31 -0
- capo_workspaces/types/rebuild_workspaces_request.py +47 -0
- capo_workspaces/types/rebuild_workspaces_result.py +42 -0
- capo_workspaces/types/reconnect_enum.py +17 -0
- capo_workspaces/types/region.py +5 -0
- capo_workspaces/types/register_workspace_directory_request.py +189 -0
- capo_workspaces/types/register_workspace_directory_result.py +49 -0
- capo_workspaces/types/registration_code.py +5 -0
- capo_workspaces/types/reject_account_link_invitation_request.py +40 -0
- capo_workspaces/types/reject_account_link_invitation_result.py +38 -0
- capo_workspaces/types/related_workspace_properties.py +71 -0
- capo_workspaces/types/related_workspaces.py +39 -0
- capo_workspaces/types/resource_id_list.py +19 -0
- capo_workspaces/types/restore_workspace_request.py +31 -0
- capo_workspaces/types/restore_workspace_result.py +18 -0
- capo_workspaces/types/revoke_ip_rules_request.py +51 -0
- capo_workspaces/types/revoke_ip_rules_result.py +18 -0
- capo_workspaces/types/root_storage.py +31 -0
- capo_workspaces/types/root_volume_size_gib.py +5 -0
- capo_workspaces/types/running_mode.py +18 -0
- capo_workspaces/types/running_mode_auto_stop_timeout_in_minutes.py +5 -0
- capo_workspaces/types/s3_bucket_name.py +5 -0
- capo_workspaces/types/saml_properties.py +54 -0
- capo_workspaces/types/saml_status_enum.py +18 -0
- capo_workspaces/types/saml_user_access_url.py +5 -0
- capo_workspaces/types/secrets_manager_arn.py +5 -0
- capo_workspaces/types/security_group_id.py +5 -0
- capo_workspaces/types/selfservice_permissions.py +118 -0
- capo_workspaces/types/session_connection_state.py +17 -0
- capo_workspaces/types/session_instance_id.py +5 -0
- capo_workspaces/types/settings_group.py +5 -0
- capo_workspaces/types/snapshot.py +36 -0
- capo_workspaces/types/snapshot_list.py +29 -0
- capo_workspaces/types/standby_workspace.py +84 -0
- capo_workspaces/types/standby_workspace_relationship_type.py +17 -0
- capo_workspaces/types/standby_workspaces_list.py +33 -0
- capo_workspaces/types/standby_workspaces_properties.py +68 -0
- capo_workspaces/types/standby_workspaces_properties_list.py +39 -0
- capo_workspaces/types/start_request.py +28 -0
- capo_workspaces/types/start_workspace_requests.py +31 -0
- capo_workspaces/types/start_workspaces_pool_request.py +31 -0
- capo_workspaces/types/start_workspaces_pool_result.py +18 -0
- capo_workspaces/types/start_workspaces_request.py +47 -0
- capo_workspaces/types/start_workspaces_result.py +42 -0
- capo_workspaces/types/stop_request.py +28 -0
- capo_workspaces/types/stop_workspace_requests.py +31 -0
- capo_workspaces/types/stop_workspaces_pool_request.py +31 -0
- capo_workspaces/types/stop_workspaces_pool_result.py +18 -0
- capo_workspaces/types/stop_workspaces_request.py +47 -0
- capo_workspaces/types/stop_workspaces_result.py +42 -0
- capo_workspaces/types/storage_connector.py +67 -0
- capo_workspaces/types/storage_connector_status_enum.py +17 -0
- capo_workspaces/types/storage_connector_type_enum.py +14 -0
- capo_workspaces/types/storage_connectors.py +33 -0
- capo_workspaces/types/streaming_experience_preferred_protocol_enum.py +17 -0
- capo_workspaces/types/streaming_properties.py +103 -0
- capo_workspaces/types/string2048.py +5 -0
- capo_workspaces/types/subnet_id.py +5 -0
- capo_workspaces/types/subnet_ids.py +17 -0
- capo_workspaces/types/tag.py +38 -0
- capo_workspaces/types/tag_key.py +5 -0
- capo_workspaces/types/tag_key_list.py +17 -0
- capo_workspaces/types/tag_list.py +29 -0
- capo_workspaces/types/tag_value.py +5 -0
- capo_workspaces/types/target_workspace_state.py +17 -0
- capo_workspaces/types/tenancy.py +17 -0
- capo_workspaces/types/terminate_request.py +31 -0
- capo_workspaces/types/terminate_workspace_requests.py +33 -0
- capo_workspaces/types/terminate_workspaces_pool_request.py +31 -0
- capo_workspaces/types/terminate_workspaces_pool_result.py +18 -0
- capo_workspaces/types/terminate_workspaces_pool_session_request.py +33 -0
- capo_workspaces/types/terminate_workspaces_pool_session_result.py +18 -0
- capo_workspaces/types/terminate_workspaces_request.py +47 -0
- capo_workspaces/types/terminate_workspaces_result.py +42 -0
- capo_workspaces/types/timeout_settings.py +52 -0
- capo_workspaces/types/timestamp.py +20 -0
- capo_workspaces/types/update_connect_client_add_in_request.py +55 -0
- capo_workspaces/types/update_connect_client_add_in_result.py +18 -0
- capo_workspaces/types/update_connection_alias_permission_request.py +57 -0
- capo_workspaces/types/update_connection_alias_permission_result.py +18 -0
- capo_workspaces/types/update_description.py +5 -0
- capo_workspaces/types/update_result.py +37 -0
- capo_workspaces/types/update_rules_of_ip_group_request.py +47 -0
- capo_workspaces/types/update_rules_of_ip_group_result.py +18 -0
- capo_workspaces/types/update_workspace_bundle_request.py +35 -0
- capo_workspaces/types/update_workspace_bundle_result.py +18 -0
- capo_workspaces/types/update_workspace_image_permission_request.py +53 -0
- capo_workspaces/types/update_workspace_image_permission_result.py +18 -0
- capo_workspaces/types/update_workspaces_pool_request.py +132 -0
- capo_workspaces/types/update_workspaces_pool_result.py +40 -0
- capo_workspaces/types/user_identity_type.py +18 -0
- capo_workspaces/types/user_name.py +5 -0
- capo_workspaces/types/user_setting.py +72 -0
- capo_workspaces/types/user_setting_action_enum.py +19 -0
- capo_workspaces/types/user_setting_permission_enum.py +17 -0
- capo_workspaces/types/user_settings.py +29 -0
- capo_workspaces/types/user_storage.py +31 -0
- capo_workspaces/types/user_volume_size_gib.py +5 -0
- capo_workspaces/types/volume_encryption_key.py +5 -0
- capo_workspaces/types/work_space_application.py +152 -0
- capo_workspaces/types/work_space_application_deployment.py +42 -0
- capo_workspaces/types/work_space_application_id.py +5 -0
- capo_workspaces/types/work_space_application_id_list.py +19 -0
- capo_workspaces/types/work_space_application_license_type.py +17 -0
- capo_workspaces/types/work_space_application_list.py +35 -0
- capo_workspaces/types/work_space_application_owner.py +5 -0
- capo_workspaces/types/work_space_application_state.py +19 -0
- capo_workspaces/types/work_space_associated_resource_type.py +14 -0
- capo_workspaces/types/work_space_associated_resource_type_list.py +39 -0
- capo_workspaces/types/workflow_state_message.py +5 -0
- capo_workspaces/types/workspace.py +246 -0
- capo_workspaces/types/workspace_access_properties.py +223 -0
- capo_workspaces/types/workspace_bundle.py +174 -0
- capo_workspaces/types/workspace_bundle_description.py +5 -0
- capo_workspaces/types/workspace_bundle_name.py +5 -0
- capo_workspaces/types/workspace_bundle_state.py +18 -0
- capo_workspaces/types/workspace_connection_status.py +90 -0
- capo_workspaces/types/workspace_connection_status_list.py +39 -0
- capo_workspaces/types/workspace_creation_properties.py +73 -0
- capo_workspaces/types/workspace_directory.py +474 -0
- capo_workspaces/types/workspace_directory_description.py +5 -0
- capo_workspaces/types/workspace_directory_name.py +5 -0
- capo_workspaces/types/workspace_directory_name_list.py +19 -0
- capo_workspaces/types/workspace_directory_state.py +20 -0
- capo_workspaces/types/workspace_directory_type.py +19 -0
- capo_workspaces/types/workspace_error_code.py +5 -0
- capo_workspaces/types/workspace_id.py +5 -0
- capo_workspaces/types/workspace_id_list.py +17 -0
- capo_workspaces/types/workspace_image.py +181 -0
- capo_workspaces/types/workspace_image_description.py +5 -0
- capo_workspaces/types/workspace_image_error_code.py +5 -0
- capo_workspaces/types/workspace_image_error_detail_code.py +63 -0
- capo_workspaces/types/workspace_image_id.py +5 -0
- capo_workspaces/types/workspace_image_id_list.py +19 -0
- capo_workspaces/types/workspace_image_ingestion_process.py +23 -0
- capo_workspaces/types/workspace_image_list.py +31 -0
- capo_workspaces/types/workspace_image_name.py +5 -0
- capo_workspaces/types/workspace_image_required_tenancy.py +17 -0
- capo_workspaces/types/workspace_image_state.py +18 -0
- capo_workspaces/types/workspace_list.py +29 -0
- capo_workspaces/types/workspace_name.py +5 -0
- capo_workspaces/types/workspace_properties.py +143 -0
- capo_workspaces/types/workspace_request.py +123 -0
- capo_workspaces/types/workspace_request_list.py +33 -0
- capo_workspaces/types/workspace_resource_association.py +125 -0
- capo_workspaces/types/workspace_resource_association_list.py +39 -0
- capo_workspaces/types/workspace_state.py +32 -0
- capo_workspaces/types/workspace_type.py +17 -0
- capo_workspaces/types/workspaces_ip_group.py +57 -0
- capo_workspaces/types/workspaces_ip_groups_list.py +35 -0
- capo_workspaces/types/workspaces_pool.py +209 -0
- capo_workspaces/types/workspaces_pool_error.py +49 -0
- capo_workspaces/types/workspaces_pool_error_code.py +55 -0
- capo_workspaces/types/workspaces_pool_errors.py +35 -0
- capo_workspaces/types/workspaces_pool_id.py +5 -0
- capo_workspaces/types/workspaces_pool_ids.py +19 -0
- capo_workspaces/types/workspaces_pool_name.py +5 -0
- capo_workspaces/types/workspaces_pool_session.py +150 -0
- capo_workspaces/types/workspaces_pool_sessions.py +35 -0
- capo_workspaces/types/workspaces_pool_state.py +22 -0
- capo_workspaces/types/workspaces_pool_user_id.py +5 -0
- capo_workspaces/types/workspaces_pools.py +31 -0
- capo_workspaces-0.1.0.dist-info/METADATA +101 -0
- capo_workspaces-0.1.0.dist-info/RECORD +667 -0
- capo_workspaces-0.1.0.dist-info/WHEEL +5 -0
- capo_workspaces-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_workspaces-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateIpGroupRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workspaces.types.ip_group_desc
|
|
11
|
+
import capo_workspaces.types.ip_group_name
|
|
12
|
+
import capo_workspaces.types.ip_rule_list
|
|
13
|
+
import capo_workspaces.types.tag_list
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreateIpGroupRequest(TypedDict, closed=True):
|
|
17
|
+
group_name: "capo_workspaces.types.ip_group_name.IpGroupName"
|
|
18
|
+
"""<p>The name of the group.</p>"""
|
|
19
|
+
group_desc: NotRequired["capo_workspaces.types.ip_group_desc.IpGroupDesc"]
|
|
20
|
+
"""<p>The description of the group.</p>"""
|
|
21
|
+
user_rules: NotRequired["capo_workspaces.types.ip_rule_list.IpRuleList"]
|
|
22
|
+
"""<p>The rules to add to the group.</p>"""
|
|
23
|
+
tags: NotRequired["capo_workspaces.types.tag_list.TagList"]
|
|
24
|
+
"""<p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- awsJson1_1 ser/de ---
|
|
28
|
+
def serialize_aws_json_1_1(value: CreateIpGroupRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
out["GroupName"] = value["group_name"]
|
|
31
|
+
if "group_desc" in value:
|
|
32
|
+
out["GroupDesc"] = value["group_desc"]
|
|
33
|
+
if "user_rules" in value:
|
|
34
|
+
import capo_workspaces.types.ip_rule_list
|
|
35
|
+
|
|
36
|
+
out["UserRules"] = capo_workspaces.types.ip_rule_list.serialize_aws_json_1_1(
|
|
37
|
+
value["user_rules"]
|
|
38
|
+
)
|
|
39
|
+
if "tags" in value:
|
|
40
|
+
import capo_workspaces.types.tag_list
|
|
41
|
+
|
|
42
|
+
out["Tags"] = capo_workspaces.types.tag_list.serialize_aws_json_1_1(
|
|
43
|
+
value["tags"]
|
|
44
|
+
)
|
|
45
|
+
return out
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateIpGroupRequest:
|
|
49
|
+
out: CreateIpGroupRequest = {} # type: ignore[typeddict-item]
|
|
50
|
+
if data.get("GroupName") is not None:
|
|
51
|
+
out["group_name"] = data["GroupName"]
|
|
52
|
+
else:
|
|
53
|
+
raise DeserializationError("CreateIpGroupRequest.group_name required")
|
|
54
|
+
if data.get("GroupDesc") is not None:
|
|
55
|
+
out["group_desc"] = data["GroupDesc"]
|
|
56
|
+
if data.get("UserRules") is not None:
|
|
57
|
+
import capo_workspaces.types.ip_rule_list
|
|
58
|
+
|
|
59
|
+
out["user_rules"] = capo_workspaces.types.ip_rule_list.deserialize_aws_json_1_1(
|
|
60
|
+
data["UserRules"]
|
|
61
|
+
)
|
|
62
|
+
if data.get("Tags") is not None:
|
|
63
|
+
import capo_workspaces.types.tag_list
|
|
64
|
+
|
|
65
|
+
out["tags"] = capo_workspaces.types.tag_list.deserialize_aws_json_1_1(
|
|
66
|
+
data["Tags"]
|
|
67
|
+
)
|
|
68
|
+
return out
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateIpGroupResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workspaces.types.ip_group_id
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateIpGroupResult(TypedDict, closed=True):
|
|
12
|
+
group_id: NotRequired["capo_workspaces.types.ip_group_id.IpGroupId"]
|
|
13
|
+
"""<p>The identifier of the group.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- awsJson1_1 ser/de ---
|
|
17
|
+
def serialize_aws_json_1_1(value: CreateIpGroupResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "group_id" in value:
|
|
20
|
+
out["GroupId"] = value["group_id"]
|
|
21
|
+
return out
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateIpGroupResult:
|
|
25
|
+
out: CreateIpGroupResult = {} # type: ignore[typeddict-item]
|
|
26
|
+
if data.get("GroupId") is not None:
|
|
27
|
+
out["group_id"] = data["GroupId"]
|
|
28
|
+
return out
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateStandbyWorkspacesRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workspaces.types.region
|
|
11
|
+
import capo_workspaces.types.standby_workspaces_list
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class CreateStandbyWorkspacesRequest(TypedDict, closed=True):
|
|
15
|
+
primary_region: "capo_workspaces.types.region.Region"
|
|
16
|
+
"""<p>The Region of the primary WorkSpace.</p>"""
|
|
17
|
+
standby_workspaces: (
|
|
18
|
+
"capo_workspaces.types.standby_workspaces_list.StandbyWorkspacesList"
|
|
19
|
+
)
|
|
20
|
+
"""<p>Information about the standby WorkSpace to be created.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- awsJson1_1 ser/de ---
|
|
24
|
+
def serialize_aws_json_1_1(value: CreateStandbyWorkspacesRequest) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
out["PrimaryRegion"] = value["primary_region"]
|
|
27
|
+
import capo_workspaces.types.standby_workspaces_list
|
|
28
|
+
|
|
29
|
+
out["StandbyWorkspaces"] = (
|
|
30
|
+
capo_workspaces.types.standby_workspaces_list.serialize_aws_json_1_1(
|
|
31
|
+
value["standby_workspaces"]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateStandbyWorkspacesRequest:
|
|
38
|
+
out: CreateStandbyWorkspacesRequest = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("PrimaryRegion") is not None:
|
|
40
|
+
out["primary_region"] = data["PrimaryRegion"]
|
|
41
|
+
else:
|
|
42
|
+
raise DeserializationError(
|
|
43
|
+
"CreateStandbyWorkspacesRequest.primary_region required"
|
|
44
|
+
)
|
|
45
|
+
if data.get("StandbyWorkspaces") is not None:
|
|
46
|
+
import capo_workspaces.types.standby_workspaces_list
|
|
47
|
+
|
|
48
|
+
out["standby_workspaces"] = (
|
|
49
|
+
capo_workspaces.types.standby_workspaces_list.deserialize_aws_json_1_1(
|
|
50
|
+
data["StandbyWorkspaces"]
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
else:
|
|
54
|
+
raise DeserializationError(
|
|
55
|
+
"CreateStandbyWorkspacesRequest.standby_workspaces required"
|
|
56
|
+
)
|
|
57
|
+
return out
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateStandbyWorkspacesResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workspaces.types.failed_create_standby_workspaces_request_list
|
|
9
|
+
import capo_workspaces.types.pending_create_standby_workspaces_request_list
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateStandbyWorkspacesResult(TypedDict, closed=True):
|
|
13
|
+
failed_standby_requests: NotRequired[
|
|
14
|
+
"capo_workspaces.types.failed_create_standby_workspaces_request_list.FailedCreateStandbyWorkspacesRequestList"
|
|
15
|
+
]
|
|
16
|
+
"""<p>Information about the standby WorkSpace that could not be created. </p>"""
|
|
17
|
+
pending_standby_requests: NotRequired[
|
|
18
|
+
"capo_workspaces.types.pending_create_standby_workspaces_request_list.PendingCreateStandbyWorkspacesRequestList"
|
|
19
|
+
]
|
|
20
|
+
"""<p>Information about the standby WorkSpace that was created.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- awsJson1_1 ser/de ---
|
|
24
|
+
def serialize_aws_json_1_1(value: CreateStandbyWorkspacesResult) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "failed_standby_requests" in value:
|
|
27
|
+
import capo_workspaces.types.failed_create_standby_workspaces_request_list
|
|
28
|
+
|
|
29
|
+
out["FailedStandbyRequests"] = (
|
|
30
|
+
capo_workspaces.types.failed_create_standby_workspaces_request_list.serialize_aws_json_1_1(
|
|
31
|
+
value["failed_standby_requests"]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
if "pending_standby_requests" in value:
|
|
35
|
+
import capo_workspaces.types.pending_create_standby_workspaces_request_list
|
|
36
|
+
|
|
37
|
+
out["PendingStandbyRequests"] = (
|
|
38
|
+
capo_workspaces.types.pending_create_standby_workspaces_request_list.serialize_aws_json_1_1(
|
|
39
|
+
value["pending_standby_requests"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateStandbyWorkspacesResult:
|
|
46
|
+
out: CreateStandbyWorkspacesResult = {} # type: ignore[typeddict-item]
|
|
47
|
+
if data.get("FailedStandbyRequests") is not None:
|
|
48
|
+
import capo_workspaces.types.failed_create_standby_workspaces_request_list
|
|
49
|
+
|
|
50
|
+
out["failed_standby_requests"] = (
|
|
51
|
+
capo_workspaces.types.failed_create_standby_workspaces_request_list.deserialize_aws_json_1_1(
|
|
52
|
+
data["FailedStandbyRequests"]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
if data.get("PendingStandbyRequests") is not None:
|
|
56
|
+
import capo_workspaces.types.pending_create_standby_workspaces_request_list
|
|
57
|
+
|
|
58
|
+
out["pending_standby_requests"] = (
|
|
59
|
+
capo_workspaces.types.pending_create_standby_workspaces_request_list.deserialize_aws_json_1_1(
|
|
60
|
+
data["PendingStandbyRequests"]
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
return out
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateTagsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workspaces.types.non_empty_string
|
|
11
|
+
import capo_workspaces.types.tag_list
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class CreateTagsRequest(TypedDict, closed=True):
|
|
15
|
+
resource_id: "capo_workspaces.types.non_empty_string.NonEmptyString"
|
|
16
|
+
"""<p>The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases.</p>"""
|
|
17
|
+
tags: "capo_workspaces.types.tag_list.TagList"
|
|
18
|
+
"""<p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- awsJson1_1 ser/de ---
|
|
22
|
+
def serialize_aws_json_1_1(value: CreateTagsRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
out["ResourceId"] = value["resource_id"]
|
|
25
|
+
import capo_workspaces.types.tag_list
|
|
26
|
+
|
|
27
|
+
out["Tags"] = capo_workspaces.types.tag_list.serialize_aws_json_1_1(value["tags"])
|
|
28
|
+
return out
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateTagsRequest:
|
|
32
|
+
out: CreateTagsRequest = {} # type: ignore[typeddict-item]
|
|
33
|
+
if data.get("ResourceId") is not None:
|
|
34
|
+
out["resource_id"] = data["ResourceId"]
|
|
35
|
+
else:
|
|
36
|
+
raise DeserializationError("CreateTagsRequest.resource_id required")
|
|
37
|
+
if data.get("Tags") is not None:
|
|
38
|
+
import capo_workspaces.types.tag_list
|
|
39
|
+
|
|
40
|
+
out["tags"] = capo_workspaces.types.tag_list.deserialize_aws_json_1_1(
|
|
41
|
+
data["Tags"]
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
raise DeserializationError("CreateTagsRequest.tags required")
|
|
45
|
+
return out
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateTagsResult``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateTagsResult(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- awsJson1_1 ser/de ---
|
|
11
|
+
def serialize_aws_json_1_1(value: CreateTagsResult) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateTagsResult:
|
|
17
|
+
out: CreateTagsResult = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateUpdatedWorkspaceImageRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workspaces.types.tag_list
|
|
11
|
+
import capo_workspaces.types.workspace_image_description
|
|
12
|
+
import capo_workspaces.types.workspace_image_id
|
|
13
|
+
import capo_workspaces.types.workspace_image_name
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreateUpdatedWorkspaceImageRequest(TypedDict, closed=True):
|
|
17
|
+
name: "capo_workspaces.types.workspace_image_name.WorkspaceImageName"
|
|
18
|
+
"""<p>The name of the new updated WorkSpace image.</p>"""
|
|
19
|
+
description: (
|
|
20
|
+
"capo_workspaces.types.workspace_image_description.WorkspaceImageDescription"
|
|
21
|
+
)
|
|
22
|
+
"""<p>A description of whether updates for the WorkSpace image are available.</p>"""
|
|
23
|
+
source_image_id: "capo_workspaces.types.workspace_image_id.WorkspaceImageId"
|
|
24
|
+
"""<p>The identifier of the source WorkSpace image.</p>"""
|
|
25
|
+
tags: NotRequired["capo_workspaces.types.tag_list.TagList"]
|
|
26
|
+
"""<p>The tags that you want to add to the new updated WorkSpace image.</p> <note> <p>To add tags at the same time when you're creating the updated image, you must create an IAM policy that grants your IAM user permissions to use <code>workspaces:CreateTags</code>. </p> </note>"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# --- awsJson1_1 ser/de ---
|
|
30
|
+
def serialize_aws_json_1_1(value: CreateUpdatedWorkspaceImageRequest) -> dict:
|
|
31
|
+
out: dict = {}
|
|
32
|
+
out["Name"] = value["name"]
|
|
33
|
+
out["Description"] = value["description"]
|
|
34
|
+
out["SourceImageId"] = value["source_image_id"]
|
|
35
|
+
if "tags" in value:
|
|
36
|
+
import capo_workspaces.types.tag_list
|
|
37
|
+
|
|
38
|
+
out["Tags"] = capo_workspaces.types.tag_list.serialize_aws_json_1_1(
|
|
39
|
+
value["tags"]
|
|
40
|
+
)
|
|
41
|
+
return out
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateUpdatedWorkspaceImageRequest:
|
|
45
|
+
out: CreateUpdatedWorkspaceImageRequest = {} # type: ignore[typeddict-item]
|
|
46
|
+
if data.get("Name") is not None:
|
|
47
|
+
out["name"] = data["Name"]
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError("CreateUpdatedWorkspaceImageRequest.name required")
|
|
50
|
+
if data.get("Description") is not None:
|
|
51
|
+
out["description"] = data["Description"]
|
|
52
|
+
else:
|
|
53
|
+
raise DeserializationError(
|
|
54
|
+
"CreateUpdatedWorkspaceImageRequest.description required"
|
|
55
|
+
)
|
|
56
|
+
if data.get("SourceImageId") is not None:
|
|
57
|
+
out["source_image_id"] = data["SourceImageId"]
|
|
58
|
+
else:
|
|
59
|
+
raise DeserializationError(
|
|
60
|
+
"CreateUpdatedWorkspaceImageRequest.source_image_id required"
|
|
61
|
+
)
|
|
62
|
+
if data.get("Tags") is not None:
|
|
63
|
+
import capo_workspaces.types.tag_list
|
|
64
|
+
|
|
65
|
+
out["tags"] = capo_workspaces.types.tag_list.deserialize_aws_json_1_1(
|
|
66
|
+
data["Tags"]
|
|
67
|
+
)
|
|
68
|
+
return out
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateUpdatedWorkspaceImageResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workspaces.types.workspace_image_id
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateUpdatedWorkspaceImageResult(TypedDict, closed=True):
|
|
12
|
+
image_id: NotRequired["capo_workspaces.types.workspace_image_id.WorkspaceImageId"]
|
|
13
|
+
"""<p>The identifier of the new updated WorkSpace image.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- awsJson1_1 ser/de ---
|
|
17
|
+
def serialize_aws_json_1_1(value: CreateUpdatedWorkspaceImageResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "image_id" in value:
|
|
20
|
+
out["ImageId"] = value["image_id"]
|
|
21
|
+
return out
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateUpdatedWorkspaceImageResult:
|
|
25
|
+
out: CreateUpdatedWorkspaceImageResult = {} # type: ignore[typeddict-item]
|
|
26
|
+
if data.get("ImageId") is not None:
|
|
27
|
+
out["image_id"] = data["ImageId"]
|
|
28
|
+
return out
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateWorkspaceBundleRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workspaces.types.compute_type
|
|
11
|
+
import capo_workspaces.types.root_storage
|
|
12
|
+
import capo_workspaces.types.tag_list
|
|
13
|
+
import capo_workspaces.types.user_storage
|
|
14
|
+
import capo_workspaces.types.workspace_bundle_description
|
|
15
|
+
import capo_workspaces.types.workspace_bundle_name
|
|
16
|
+
import capo_workspaces.types.workspace_image_id
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateWorkspaceBundleRequest(TypedDict, closed=True):
|
|
20
|
+
bundle_name: "capo_workspaces.types.workspace_bundle_name.WorkspaceBundleName"
|
|
21
|
+
"""<p>The name of the bundle.</p>"""
|
|
22
|
+
bundle_description: (
|
|
23
|
+
"capo_workspaces.types.workspace_bundle_description.WorkspaceBundleDescription"
|
|
24
|
+
)
|
|
25
|
+
"""<p>The description of the bundle.</p>"""
|
|
26
|
+
image_id: "capo_workspaces.types.workspace_image_id.WorkspaceImageId"
|
|
27
|
+
"""<p>The identifier of the image that is used to create the bundle.</p>"""
|
|
28
|
+
compute_type: "capo_workspaces.types.compute_type.ComputeType"
|
|
29
|
+
user_storage: "capo_workspaces.types.user_storage.UserStorage"
|
|
30
|
+
root_storage: NotRequired["capo_workspaces.types.root_storage.RootStorage"]
|
|
31
|
+
tags: NotRequired["capo_workspaces.types.tag_list.TagList"]
|
|
32
|
+
"""<p>The tags associated with the bundle.</p> <note> <p>To add tags at the same time when you're creating the bundle, you must create an IAM policy that grants your IAM user permissions to use <code>workspaces:CreateTags</code>. </p> </note>"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# --- awsJson1_1 ser/de ---
|
|
36
|
+
def serialize_aws_json_1_1(value: CreateWorkspaceBundleRequest) -> dict:
|
|
37
|
+
out: dict = {}
|
|
38
|
+
out["BundleName"] = value["bundle_name"]
|
|
39
|
+
out["BundleDescription"] = value["bundle_description"]
|
|
40
|
+
out["ImageId"] = value["image_id"]
|
|
41
|
+
import capo_workspaces.types.compute_type
|
|
42
|
+
|
|
43
|
+
out["ComputeType"] = capo_workspaces.types.compute_type.serialize_aws_json_1_1(
|
|
44
|
+
value["compute_type"]
|
|
45
|
+
)
|
|
46
|
+
import capo_workspaces.types.user_storage
|
|
47
|
+
|
|
48
|
+
out["UserStorage"] = capo_workspaces.types.user_storage.serialize_aws_json_1_1(
|
|
49
|
+
value["user_storage"]
|
|
50
|
+
)
|
|
51
|
+
if "root_storage" in value:
|
|
52
|
+
import capo_workspaces.types.root_storage
|
|
53
|
+
|
|
54
|
+
out["RootStorage"] = capo_workspaces.types.root_storage.serialize_aws_json_1_1(
|
|
55
|
+
value["root_storage"]
|
|
56
|
+
)
|
|
57
|
+
if "tags" in value:
|
|
58
|
+
import capo_workspaces.types.tag_list
|
|
59
|
+
|
|
60
|
+
out["Tags"] = capo_workspaces.types.tag_list.serialize_aws_json_1_1(
|
|
61
|
+
value["tags"]
|
|
62
|
+
)
|
|
63
|
+
return out
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateWorkspaceBundleRequest:
|
|
67
|
+
out: CreateWorkspaceBundleRequest = {} # type: ignore[typeddict-item]
|
|
68
|
+
if data.get("BundleName") is not None:
|
|
69
|
+
out["bundle_name"] = data["BundleName"]
|
|
70
|
+
else:
|
|
71
|
+
raise DeserializationError("CreateWorkspaceBundleRequest.bundle_name required")
|
|
72
|
+
if data.get("BundleDescription") is not None:
|
|
73
|
+
out["bundle_description"] = data["BundleDescription"]
|
|
74
|
+
else:
|
|
75
|
+
raise DeserializationError(
|
|
76
|
+
"CreateWorkspaceBundleRequest.bundle_description required"
|
|
77
|
+
)
|
|
78
|
+
if data.get("ImageId") is not None:
|
|
79
|
+
out["image_id"] = data["ImageId"]
|
|
80
|
+
else:
|
|
81
|
+
raise DeserializationError("CreateWorkspaceBundleRequest.image_id required")
|
|
82
|
+
if data.get("ComputeType") is not None:
|
|
83
|
+
import capo_workspaces.types.compute_type
|
|
84
|
+
|
|
85
|
+
out["compute_type"] = (
|
|
86
|
+
capo_workspaces.types.compute_type.deserialize_aws_json_1_1(
|
|
87
|
+
data["ComputeType"]
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
else:
|
|
91
|
+
raise DeserializationError("CreateWorkspaceBundleRequest.compute_type required")
|
|
92
|
+
if data.get("UserStorage") is not None:
|
|
93
|
+
import capo_workspaces.types.user_storage
|
|
94
|
+
|
|
95
|
+
out["user_storage"] = (
|
|
96
|
+
capo_workspaces.types.user_storage.deserialize_aws_json_1_1(
|
|
97
|
+
data["UserStorage"]
|
|
98
|
+
)
|
|
99
|
+
)
|
|
100
|
+
else:
|
|
101
|
+
raise DeserializationError("CreateWorkspaceBundleRequest.user_storage required")
|
|
102
|
+
if data.get("RootStorage") is not None:
|
|
103
|
+
import capo_workspaces.types.root_storage
|
|
104
|
+
|
|
105
|
+
out["root_storage"] = (
|
|
106
|
+
capo_workspaces.types.root_storage.deserialize_aws_json_1_1(
|
|
107
|
+
data["RootStorage"]
|
|
108
|
+
)
|
|
109
|
+
)
|
|
110
|
+
if data.get("Tags") is not None:
|
|
111
|
+
import capo_workspaces.types.tag_list
|
|
112
|
+
|
|
113
|
+
out["tags"] = capo_workspaces.types.tag_list.deserialize_aws_json_1_1(
|
|
114
|
+
data["Tags"]
|
|
115
|
+
)
|
|
116
|
+
return out
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateWorkspaceBundleResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_workspaces.types.workspace_bundle
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateWorkspaceBundleResult(TypedDict, closed=True):
|
|
12
|
+
workspace_bundle: NotRequired[
|
|
13
|
+
"capo_workspaces.types.workspace_bundle.WorkspaceBundle"
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- awsJson1_1 ser/de ---
|
|
18
|
+
def serialize_aws_json_1_1(value: CreateWorkspaceBundleResult) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "workspace_bundle" in value:
|
|
21
|
+
import capo_workspaces.types.workspace_bundle
|
|
22
|
+
|
|
23
|
+
out["WorkspaceBundle"] = (
|
|
24
|
+
capo_workspaces.types.workspace_bundle.serialize_aws_json_1_1(
|
|
25
|
+
value["workspace_bundle"]
|
|
26
|
+
)
|
|
27
|
+
)
|
|
28
|
+
return out
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateWorkspaceBundleResult:
|
|
32
|
+
out: CreateWorkspaceBundleResult = {} # type: ignore[typeddict-item]
|
|
33
|
+
if data.get("WorkspaceBundle") is not None:
|
|
34
|
+
import capo_workspaces.types.workspace_bundle
|
|
35
|
+
|
|
36
|
+
out["workspace_bundle"] = (
|
|
37
|
+
capo_workspaces.types.workspace_bundle.deserialize_aws_json_1_1(
|
|
38
|
+
data["WorkspaceBundle"]
|
|
39
|
+
)
|
|
40
|
+
)
|
|
41
|
+
return out
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.workspaces#CreateWorkspaceImageRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_workspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_workspaces.types.tag_list
|
|
11
|
+
import capo_workspaces.types.workspace_id
|
|
12
|
+
import capo_workspaces.types.workspace_image_description
|
|
13
|
+
import capo_workspaces.types.workspace_image_name
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreateWorkspaceImageRequest(TypedDict, closed=True):
|
|
17
|
+
name: "capo_workspaces.types.workspace_image_name.WorkspaceImageName"
|
|
18
|
+
"""<p>The name of the new WorkSpace image.</p>"""
|
|
19
|
+
description: (
|
|
20
|
+
"capo_workspaces.types.workspace_image_description.WorkspaceImageDescription"
|
|
21
|
+
)
|
|
22
|
+
"""<p>The description of the new WorkSpace image.</p>"""
|
|
23
|
+
workspace_id: "capo_workspaces.types.workspace_id.WorkspaceId"
|
|
24
|
+
"""<p>The identifier of the source WorkSpace</p>"""
|
|
25
|
+
tags: NotRequired["capo_workspaces.types.tag_list.TagList"]
|
|
26
|
+
"""<p>The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use <code>workspaces:CreateTags</code>.</p>"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# --- awsJson1_1 ser/de ---
|
|
30
|
+
def serialize_aws_json_1_1(value: CreateWorkspaceImageRequest) -> dict:
|
|
31
|
+
out: dict = {}
|
|
32
|
+
out["Name"] = value["name"]
|
|
33
|
+
out["Description"] = value["description"]
|
|
34
|
+
out["WorkspaceId"] = value["workspace_id"]
|
|
35
|
+
if "tags" in value:
|
|
36
|
+
import capo_workspaces.types.tag_list
|
|
37
|
+
|
|
38
|
+
out["Tags"] = capo_workspaces.types.tag_list.serialize_aws_json_1_1(
|
|
39
|
+
value["tags"]
|
|
40
|
+
)
|
|
41
|
+
return out
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def deserialize_aws_json_1_1(data: dict) -> CreateWorkspaceImageRequest:
|
|
45
|
+
out: CreateWorkspaceImageRequest = {} # type: ignore[typeddict-item]
|
|
46
|
+
if data.get("Name") is not None:
|
|
47
|
+
out["name"] = data["Name"]
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError("CreateWorkspaceImageRequest.name required")
|
|
50
|
+
if data.get("Description") is not None:
|
|
51
|
+
out["description"] = data["Description"]
|
|
52
|
+
else:
|
|
53
|
+
raise DeserializationError("CreateWorkspaceImageRequest.description required")
|
|
54
|
+
if data.get("WorkspaceId") is not None:
|
|
55
|
+
out["workspace_id"] = data["WorkspaceId"]
|
|
56
|
+
else:
|
|
57
|
+
raise DeserializationError("CreateWorkspaceImageRequest.workspace_id required")
|
|
58
|
+
if data.get("Tags") is not None:
|
|
59
|
+
import capo_workspaces.types.tag_list
|
|
60
|
+
|
|
61
|
+
out["tags"] = capo_workspaces.types.tag_list.deserialize_aws_json_1_1(
|
|
62
|
+
data["Tags"]
|
|
63
|
+
)
|
|
64
|
+
return out
|