Skip to content

Commit

Permalink
[AWS-APIGATEWAY]: Create Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
amadolid committed Apr 16, 2024
1 parent 9849f8f commit cc1e2a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jaseci_ai_kit/jac_misc/jac_misc/aws_apigateway/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,12 @@ def put_integration_response(
@jaseci_action(act_group=["aws_apigateway"], allow_remote=True)
def delete_resource(restApiId: str, resourceId: str) -> EmptyResponseMetadataTypeDef:
return get_client().delete_resource(restApiId=restApiId, resourceId=resourceId)


@jaseci_action(act_group=["aws_apigateway"], allow_remote=True)
def create_deployment(
restApiId: str, stageName: str, options: dict = {}
) -> EmptyResponseMetadataTypeDef:
return get_client().create_deployment(
restApiId=restApiId, stageName=stageName, **options
)

0 comments on commit cc1e2a4

Please sign in to comment.