Troposphere resource for AwsCommunity::ApplicationAutoscaling::ScheduledAction
Reason this release was yanked:
Init version
Project description
AwsCommunity::ApplicationAutoscaling::ScheduledAction
Troposphere object for the AwsCommunity::ApplicationAutoscaling::ScheduledAction
resource.
See The AWS CFN Community Registry or the original resource here
The resoure properties detail what attributes to assign for the resource
Example
Creates a scheduled action for a dynamodb table
from troposphere import Template
from troposphere_awscommunity_applicationautoscaling_scheduledaction import (
ScheduledAction,
ScalableTargetAction,
)
def test_scheduled_action():
props: dict = {
"ScheduledActionName": "cfn-testing-resource",
"ServiceNamespace": "dynamodb",
"ScalableDimension": "dynamodb:table:ReadCapacityUnits",
"ScalableTargetAction": ScalableTargetAction(
**{"MinCapacity": 1, "MaxCapacity": 4}
),
"Schedule": "cron(5 2 ? * FRI)",
"Timezone": "Europe/London",
"ResourceId": "table/awscommunityscheduledactiontesttable",
}
tpl = Template()
action = tpl.add_resource(ScheduledAction("MyAction", **props))
print(tpl.to_yaml())
Renders, with the template, the following
Resources:
MyAction:
Properties:
ResourceId: table/awscommunityscheduledactiontesttable
ScalableDimension: dynamodb:table:ReadCapacityUnits
ScalableTargetAction:
MaxCapacity: null
MinCapacity: null
Schedule: null
ScheduledActionName: cfn-testing-resource
ServiceNamespace: dynamodb
Timezone: Europe/London
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for troposphere_awscommunity_applicationautoscaling_scheduledaction-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f90dbdb33fc1f34bd37b2201a5b3a3b2edcffa9d2c57199706d030b66458c46 |
|
MD5 | fb0eccd5a4745b4e1ff38bd5fde3f8e4 |
|
BLAKE2b-256 | cb08a6e897a19055cf6c14e957f7110211c8dbb621d2f0dcfca64616fff83df4 |
Close
Hashes for troposphere_awscommunity_applicationautoscaling_scheduledaction-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 201cddf21494c5f3d521a9c4996969cfe39019a5230a2873eca9765ad8d0fb2e |
|
MD5 | 595b8e212771f13e131ecdef3f086eba |
|
BLAKE2b-256 | 637e1f8579fedd19203a52787aa0a3ca4e01bd8a0bd70537b76de2d99aa8ae05 |