APIGatewayClient.create_deployment
rboto-api-gateway==0.4.0 · Service index · Types
Model summary (excerpt): Creates a Deployment resource, which makes a specified RestApi callable over the internet.
Install and imports
from rboto import APIGatewayClient
from rboto_api_gateway.types import (
CacheClusterSize,
CreateDeploymentOutput,
DeploymentCanarySettings,
)
Signature
async def create_deployment(
*,
rest_api_id: str,
stage_name: str | None = None,
stage_description: str | None = None,
description: str | None = None,
cache_cluster_enabled: bool | None = None,
cache_cluster_size: CacheClusterSize | None = None,
variables: dict[str, str] | None = None,
canary_settings: DeploymentCanarySettings | None = None,
tracing_enabled: bool | None = None,
) -> CreateDeploymentOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
rest_api_id |
Yes | The string identifier of the associated RestApi. |
stage_name |
No | The name of the Stage resource for the Deployment resource to create. |
stage_description |
No | The description of the Stage resource for the Deployment resource to create. |
description |
No | The description for the Deployment resource to create. |
cache_cluster_enabled |
No | Enables a cache cluster for the Stage resource specified in the input. |
cache_cluster_size |
No | The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness . |
variables |
No | A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+ . |
canary_settings |
No | The input configuration for the canary deployment when the deployment is a canary release deployment. |
tracing_enabled |
No | Specifies whether active tracing with X-ray is enabled for the Stage. |
Output
CreateDeploymentOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
id |
str | None |
Always present | — |
description |
str | None |
Always present | — |
created_date |
str | None |
Always present | — |
api_summary |
dict[str, dict[str, MethodSnapshotOutput]] | None |
Always present | MethodSnapshotOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CacheClusterSize, CreateDeploymentOutput, DeploymentCanarySettings
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_api_gateway.exceptions:
BadRequestError, ConflictError, LimitExceededError, NotFoundError, ServiceUnavailableError, TooManyRequestsError, UnauthorizedError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.