Associates a network settings resource with a web portal.
Parameters:
-
portal_arn
(ARN)
–
The ARN of the web portal.
-
network_settings_arn
(ARN)
–
The ARN of the network settings.
Raises:
Source code in docs_src/capo_workspaces_web/_services/work_spaces_web.py
| def associate_network_settings(
self,
portal_arn: "capo_workspaces_web.types.arn.ARN",
network_settings_arn: "capo_workspaces_web.types.arn.ARN",
*,
config_overrides: Optional[WorkSpacesWebClientConfig] = None,
) -> "capo_workspaces_web.types.associate_network_settings_response.AssociateNetworkSettingsResponse":
"""<p>Associates a network settings resource with a web portal.</p>
Args:
portal_arn: <p>The ARN of the web portal.</p>
network_settings_arn: <p>The ARN of the network settings.</p>
Raises:
capo_workspaces_web.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
capo_workspaces_web.errors.conflict_exception.ConflictException: <p>There is a conflict.</p>
capo_workspaces_web.errors.internal_server_exception.InternalServerException: <p>There is an internal server error.</p>
capo_workspaces_web.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource cannot be found.</p>
capo_workspaces_web.errors.throttling_exception.ThrottlingException: <p>There is a throttling error.</p>
capo_workspaces_web.errors.validation_exception.ValidationException: <p>There is a validation error.</p>
capo_workspaces_web.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_workspaces_web.types.associate_network_settings_request.AssociateNetworkSettingsRequest]",
) -> OperationResponse[
"capo_workspaces_web.types.associate_network_settings_response.AssociateNetworkSettingsResponse"
]:
import capo_workspaces_web._operations.aws_ermine_control_plane_service.associate_network_settings
output, http_response = (
capo_workspaces_web._operations.aws_ermine_control_plane_service.associate_network_settings.associate_network_settings(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("AssociateNetworkSettings")
)
input_: capo_workspaces_web.types.associate_network_settings_request.AssociateNetworkSettingsRequest = {
"portal_arn": portal_arn,
"network_settings_arn": network_settings_arn,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|