create_stage
async
¶
create_stage(
api_id: __string,
*,
config_overrides: Optional[AsyncApiGatewayV2ClientConfig] = None,
access_log_settings: Optional[AccessLogSettings] = None,
auto_deploy: Optional[__boolean] = None,
client_certificate_id: Optional[Id] = None,
default_route_settings: Optional[RouteSettings] = None,
deployment_id: Optional[Id] = None,
description: Optional[StringWithLengthBetween0And1024] = None,
route_settings: Optional[RouteSettingsMap] = None,
stage_name: Optional[StringWithLengthBetween1And128] = None,
stage_variables: Optional[StageVariablesMap] = None,
tags: Optional[Tags] = None,
) -> CreateStageResponse
Creates a Stage for an API.
Parameters:
-
access_log_settings(Optional[AccessLogSettings], default:None) –Settings for logging access in this stage.
-
api_id(__string) –The API identifier.
-
auto_deploy(Optional[__boolean], default:None) –Specifies whether updates to an API automatically trigger a new deployment. The default value is false.
-
client_certificate_id(Optional[Id], default:None) –The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.
-
default_route_settings(Optional[RouteSettings], default:None) –The default route settings for the stage.
-
deployment_id(Optional[Id], default:None) –The deployment identifier of the API stage.
-
description(Optional[StringWithLengthBetween0And1024], default:None) –The description for the API stage.
-
route_settings(Optional[RouteSettingsMap], default:None) –Route settings for the stage, by routeKey.
-
stage_name(Optional[StringWithLengthBetween1And128], default:None) –The name of the stage.
-
stage_variables(Optional[StageVariablesMap], default:None) –A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
-
tags(Optional[Tags], default:None) –The collection of tags. Each tag element is associated with a given resource.
Raises:
-
BadRequestException–The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
NotFoundException–The resource specified in the request was not found. See the message field for more information.
-
TooManyRequestsException–A limit has been exceeded. See the accompanying error message for details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apigatewayv2/_services/async_api_gateway_v2.py
1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 | |