Skip to main content

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

Metadata

Release files for troposphere-awscommunity-applicationautoscaling-scheduledaction 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for troposphere-awscommunity-applicationautoscaling-scheduledaction 0.1.1
File Size Uploaded
troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for troposphere-awscommunity-applicationautoscaling-scheduledaction 0.1.1
File Interpreter ABI Platform
troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1.tar.gz

Download URL troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a097bce813d4e37a5f7a6b78f37bb09d4005d4a05cb1d11c52098f8aaffa1dd
BLAKE2b-256 checksum
How to use checksums
d4568bbbfbfa835d91f26ace6d8381790b30bb249da32b6cf2e232d3a514e2d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/6.2.14-200.fc37.x86_64

Release files / troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1-py3-none-any.whl

Download URL troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0055f7ba67dc2a36790adc2882f91e1b3a76c2b53d09060093f0a3418e5b1bc
BLAKE2b-256 checksum
How to use checksums
feb8a0a0207cb1596543dd76d19fff7f0a9de0c74b1c452fb32566fc0e3c6678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/6.2.14-200.fc37.x86_64

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page