create_deployment
async
¶
create_deployment(
rest_api_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
stage_name: Optional[String] = None,
stage_description: Optional[String] = None,
description: Optional[String] = None,
cache_cluster_enabled: Optional[NullableBoolean] = None,
cache_cluster_size: Optional[CacheClusterSize] = None,
variables: Optional[MapOfStringToString] = None,
canary_settings: Optional[DeploymentCanarySettings] = None,
tracing_enabled: Optional[NullableBoolean] = None,
) -> Deployment
Creates a Deployment resource, which makes a specified RestApi callable over the internet.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
stage_name(Optional[String], default:None) –The name of the Stage resource for the Deployment resource to create.
-
stage_description(Optional[String], default:None) –The description of the Stage resource for the Deployment resource to create.
-
description(Optional[String], default:None) –The description for the Deployment resource to create.
-
cache_cluster_enabled(Optional[NullableBoolean], default:None) –Enables a cache cluster for the Stage resource specified in the input.
-
cache_cluster_size(Optional[CacheClusterSize], default:None) –The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
-
variables(Optional[MapOfStringToString], default:None) –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(Optional[DeploymentCanarySettings], default:None) –The input configuration for the canary deployment when the deployment is a canary release deployment.
-
tracing_enabled(Optional[NullableBoolean], default:None) –Specifies whether active tracing with X-ray is enabled for the Stage.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
ServiceUnavailableException–The requested service is not available. For details see the accompanying error message. Retry after the specified time period.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/async_api_gateway.py
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | |