Troposphere resource for AwsCommunity::ApplicationAutoscaling::ScheduledAction
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: 4
MinCapacity: 1
Schedule: cron(5 2 ? * FRI)
ScheduledActionName: cfn-testing-resource
ServiceNamespace: dynamodb
Timezone: Europe/London
Type: AwsCommunity::ApplicationAutoscaling::ScheduledAction
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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a097bce813d4e37a5f7a6b78f37bb09d4005d4a05cb1d11c52098f8aaffa1dd |
|
MD5 | b04b0f40d02c7fef545cbc4eacd1419e |
|
BLAKE2b-256 | d4568bbbfbfa835d91f26ace6d8381790b30bb249da32b6cf2e232d3a514e2d7 |
Close
Hashes for troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0055f7ba67dc2a36790adc2882f91e1b3a76c2b53d09060093f0a3418e5b1bc |
|
MD5 | fd943018371ab799b22696eb63ba86c3 |
|
BLAKE2b-256 | feb8a0a0207cb1596543dd76d19fff7f0a9de0c74b1c452fb32566fc0e3c6678 |