create_portal
¶
create_portal(
portal_content: PortalContent,
endpoint_configuration: EndpointConfigurationRequest,
authorization: Authorization,
*,
config_overrides: Optional[APIPortalClientConfig] = None,
included_product_arns: Optional[IncludedProductArns] = None,
logo_uri: Optional[LogoUri] = None,
rum_app_monitor_name: Optional[RUMAppMonitorName] = None,
tags: Optional[Tags] = None,
) -> CreatePortalResponse
Creates a portal that publishes documentation for the products it includes. Use UpdatePortalPublishStatus to publish it.
Parameters:
-
portal_content(PortalContent) –The portal's display name, description, and theme.
-
authorization(Authorization) –How readers sign in to the portal, and whether fine-grained access control is on.
-
included_product_arns(Optional[IncludedProductArns], default:None) –The ARNs of the products the portal includes, up to 200.
-
logo_uri(Optional[LogoUri], default:None) –The S3 location of the portal logo, in the form
s3://bucket/key. -
rum_app_monitor_name(Optional[RUMAppMonitorName], default:None) –The name of the CloudWatch RUM app monitor that collects reader telemetry for the portal.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
BadRequestException–The request is not valid. The message identifies the field or value that failed validation.
-
LimitExceededException–The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apiportal/_services/api_portal.py
1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 | |