WorkSpacesWebClient#
Index > WorkSpacesWeb > WorkSpacesWebClient
Auto-generated documentation for WorkSpacesWeb type annotations stubs module mypy-boto3-workspaces-web.
WorkSpacesWebClient#
Type annotations and code completion for boto3.client("workspaces-web")
.
boto3 documentation
# WorkSpacesWebClient usage example
from boto3.session import Session
from mypy_boto3_workspaces_web.client import WorkSpacesWebClient
def get_workspaces-web_client() -> WorkSpacesWebClient:
return Session().client("workspaces-web")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("workspaces-web").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("workspaces-web")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.TooManyTagsException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_workspaces_web.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_browser_settings#
Associates a browser settings resource with a web portal.
Type annotations and code completion for boto3.client("workspaces-web").associate_browser_settings
method.
boto3 documentation
# associate_browser_settings method definition
def associate_browser_settings(
self,
*,
browserSettingsArn: str,
portalArn: str,
) -> AssociateBrowserSettingsResponseTypeDef: # (1)
...
# associate_browser_settings method usage example with argument unpacking
kwargs: AssociateBrowserSettingsRequestRequestTypeDef = { # (1)
"browserSettingsArn": ...,
"portalArn": ...,
}
parent.associate_browser_settings(**kwargs)
associate_ip_access_settings#
Associates an IP access settings resource with a web portal.
Type annotations and code completion for boto3.client("workspaces-web").associate_ip_access_settings
method.
boto3 documentation
# associate_ip_access_settings method definition
def associate_ip_access_settings(
self,
*,
ipAccessSettingsArn: str,
portalArn: str,
) -> AssociateIpAccessSettingsResponseTypeDef: # (1)
...
# associate_ip_access_settings method usage example with argument unpacking
kwargs: AssociateIpAccessSettingsRequestRequestTypeDef = { # (1)
"ipAccessSettingsArn": ...,
"portalArn": ...,
}
parent.associate_ip_access_settings(**kwargs)
associate_network_settings#
Associates a network settings resource with a web portal.
Type annotations and code completion for boto3.client("workspaces-web").associate_network_settings
method.
boto3 documentation
# associate_network_settings method definition
def associate_network_settings(
self,
*,
networkSettingsArn: str,
portalArn: str,
) -> AssociateNetworkSettingsResponseTypeDef: # (1)
...
# associate_network_settings method usage example with argument unpacking
kwargs: AssociateNetworkSettingsRequestRequestTypeDef = { # (1)
"networkSettingsArn": ...,
"portalArn": ...,
}
parent.associate_network_settings(**kwargs)
associate_trust_store#
Associates a trust store with a web portal.
Type annotations and code completion for boto3.client("workspaces-web").associate_trust_store
method.
boto3 documentation
# associate_trust_store method definition
def associate_trust_store(
self,
*,
portalArn: str,
trustStoreArn: str,
) -> AssociateTrustStoreResponseTypeDef: # (1)
...
# associate_trust_store method usage example with argument unpacking
kwargs: AssociateTrustStoreRequestRequestTypeDef = { # (1)
"portalArn": ...,
"trustStoreArn": ...,
}
parent.associate_trust_store(**kwargs)
associate_user_access_logging_settings#
Associates a user access logging settings resource with a web portal.
Type annotations and code completion for boto3.client("workspaces-web").associate_user_access_logging_settings
method.