Metadata-Version: 2.1
Name: troposphere-awscommunity-applicationautoscaling-scheduledaction
Version: 0.0.1
Summary: Troposphere resource for AwsCommunity::ApplicationAutoscaling::ScheduledAction
License: LICENSE
Keywords: troposphere,aws-cloudformation
Author: John "Preston" Mille
Author-email: john@ews-network.net
Requires-Python: >=3.8,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: License :: Other/Proprietary License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: troposphere (>=4.3.2,<5.0.0)
Project-URL: Source, https://github.com/JohnPreston/troposphere-awscommunity-applicationautoscaling-scheduledaction.git
Description-Content-Type: text/markdown

## AwsCommunity::ApplicationAutoscaling::ScheduledAction

Troposphere object for the `AwsCommunity::ApplicationAutoscaling::ScheduledAction` resource.

See [The AWS CFN Community Registry](https://github.com/aws-cloudformation/community-registry-extensions) or the original
resource [here](https://github.com/JohnPreston/awscommunity-applicationautoscaling-scheduledaction)

The [resoure properties](https://github.com/JohnPreston/awscommunity-applicationautoscaling-scheduledaction/tree/main/docs) detail
what attributes to assign for the resource


## Example

Creates a scheduled action for a dynamodb table

```python
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

```yaml
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
```

