首页 \ 问答 \ 自动部署AWS API网关阶段(Automating Deployment of AWS API Gateway Stage)

自动部署AWS API网关阶段(Automating Deployment of AWS API Gateway Stage)

如何使用Boto3通过Python脚本自动部署AWS API Gateway? 例如,如果我在AWS Portal的AWS Gateway中创建了一个名为“V1”的阶段,我将如何编写脚本来部署该阶段(“V1”)?

当前流程涉及从AWS控制台手动部署阶段,并且不可编写脚本。 出于自动化的目的,我想有一个脚本来做同样的事情。

咨询Boto3文档,我看到有一种创建阶段的方法( http://boto3.readthedocs.io/en/latest/reference/services/apigateway.html#APIGateway.Client.create_stage ),但没有用于部署阶段。


How would I go about automating the deployment of an AWS API Gateway via a Python script using Boto3? For example, if I have created a stage named "V1" in the AWS Console for API Gateway, how would I write a script to deploy that stage ("V1")?

The current process involves deploying the stage manually from the AWS Console and is not scriptable. For purposes of automation, I would like to have a script to do the same.

Consulting the Boto3 documentation, I see there's a method for creating a stage (http://boto3.readthedocs.io/en/latest/reference/services/apigateway.html#APIGateway.Client.create_stage), but none for deploying one.


原文:https://stackoverflow.com/questions/50652148
更新时间:2022-03-26 06:03

最满意答案

您可以拥有动态图表,这意味着您在运行时添加数据然后更新图表,但您无法在AChartEngine中获得动画,因为它是开箱即用的。


You can have dynamic charts meaning that you add data at runtime and then update the chart, but you cannot have animations in AChartEngine as it is out of the box.

相关问答

更多
  • AChartEngine API实际上也允许您创建视图。 这意味着您可以在同一屏幕下将图表与其他UI组件一起使用。 AChartEngine演示中有示例代码,向您展示如何执行此操作。 The AChartEngine APIs actually allow you create views as well. This means that you can have a chart together with other UI components under the same screen. There i ...
  • 使用Tkinter进行动画或定期任务的基本模式是编写一个绘制单个框架或执行单个任务的函数。 然后,使用这种方式定期调用它: def animate(self): self.draw_one_frame() self.after(100, self.animate) 一旦你调用这个函数一次,它将继续以每秒10的速度绘制帧 - 每100毫秒一次。 如果您希望能够在动画启动后停止动作,则可以修改代码以检查标志。 例如: def animate(self): if not self.sho ...
  • 以下方法将生成随机点(x,y)并将其添加到XYSeries(这是要在图表上绘制的一系列点)。 private XYMultipleSeriesDataset getDemoDataset() { XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset(); final int nr = 7; Random r = new Random(); for (int i = 0; i < SERIES_NR; i++ ...
  • (没有JS!)你可以使用CSS3 transition来做到这一点: 演示(仅限CSS) .image-photo-previous { background-color: #222222; height: 100px; width: 200px; transition: 0.3s; /* Transition! */ } .image-photo-previous:hover{ margin-left: -50px; } 使用jQuery: 现场演 ...
  • 我建议使用不透明度与任何可见性动画检查下面的代码与不透明度..因为动画visibility或display不是一个好主意,因为它们是1/0值不能动画 .loading-dots span { display: inline-block; opacity:0; height: 9px; width: 9px; background: #abb3b8; -webkit-animation: loading-dots 0.8s infinite; -moz-ani ...
  • 在组件脚本中,您可以使用以下命令运行间隔: constructor: function() { this.barwidth = 10; setInterval(this.updateCounter.bind(this), 1000); }, updateCounter: function(){ this.barwidth+=10; } 在模板中,您可以使用以下内容更改条宽: `

    {{ barwidth }}

  • 您可以拥有动态图表,这意味着您在运行时添加数据然后更新图表,但您无法在AChartEngine中获得动画,因为它是开箱即用的。 You can have dynamic charts meaning that you add data at runtime and then update the chart, but you cannot have animations in AChartEngine as it is out of the box.
  • 最简单的方法是使用UIImageView的animationImages属性。 一旦正确设置了animationImages属性,只需在视图上调用startAnimating即可 。 所以你的代码看起来像: imageView.animationImages = myNSArrayofUIImagesObjects; imageView.animationDuration = 1; // by default this is equal to the number of images multiplied ...
  • 如何定位图像的克隆,克隆具有background-position: bottom设置,然后2秒间隔到.animate()每个图像的opacity ? 可能不是最干净的方法,但是将这些代码放入你的小提琴中对我来说在Chrome 14中没有任何其他CSS或HTML更改。 var anchor = $('div#header-logo a'); var img = anchor.find('img'); var position = img.position(); var bottom = img.clone( ...
  • 我假设你正在使用带有sender参数的IBAction 。 在这个方法的最后做 UIButton *temp = (UIButton *) sender temp.enabled = NO; I'm assuming you're using an IBAction with a sender parameter. At the end of this method do UIButton *temp = (UIButton *) sender temp.enabled = NO;

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)