troposphere-awscommunity-applicationautoscaling-scheduledaction


Nametroposphere-awscommunity-applicationautoscaling-scheduledaction JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryTroposphere resource for AwsCommunity::ApplicationAutoscaling::ScheduledAction
upload_time2023-05-12 07:21:34
maintainer
docs_urlNone
authorJohn "Preston" Mille
requires_python>=3.8,<4.0
licenseLICENSE
keywords troposphere aws-cloudformation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 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: 4
        MinCapacity: 1
      Schedule: cron(5 2 ? * FRI)
      ScheduledActionName: cfn-testing-resource
      ServiceNamespace: dynamodb
      Timezone: Europe/London
    Type: AwsCommunity::ApplicationAutoscaling::ScheduledAction
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "troposphere-awscommunity-applicationautoscaling-scheduledaction",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "troposphere,aws-cloudformation",
    "author": "John \"Preston\" Mille",
    "author_email": "john@ews-network.net",
    "download_url": "https://files.pythonhosted.org/packages/d4/56/8bbbfbfa835d91f26ace6d8381790b30bb249da32b6cf2e232d3a514e2d7/troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1.tar.gz",
    "platform": null,
    "description": "## AwsCommunity::ApplicationAutoscaling::ScheduledAction\n\nTroposphere object for the `AwsCommunity::ApplicationAutoscaling::ScheduledAction` resource.\n\nSee [The AWS CFN Community Registry](https://github.com/aws-cloudformation/community-registry-extensions) or the original\nresource [here](https://github.com/JohnPreston/awscommunity-applicationautoscaling-scheduledaction)\n\nThe [resoure properties](https://github.com/JohnPreston/awscommunity-applicationautoscaling-scheduledaction/tree/main/docs) detail\nwhat attributes to assign for the resource\n\n\n## Example\n\nCreates a scheduled action for a dynamodb table\n\n```python\nfrom troposphere import Template\nfrom troposphere_awscommunity_applicationautoscaling_scheduledaction import (\n    ScheduledAction,\n    ScalableTargetAction,\n)\n\n\ndef test_scheduled_action():\n    props: dict = {\n        \"ScheduledActionName\": \"cfn-testing-resource\",\n        \"ServiceNamespace\": \"dynamodb\",\n        \"ScalableDimension\": \"dynamodb:table:ReadCapacityUnits\",\n        \"ScalableTargetAction\": ScalableTargetAction(\n            **{\"MinCapacity\": 1, \"MaxCapacity\": 4}\n        ),\n        \"Schedule\": \"cron(5 2 ? * FRI)\",\n        \"Timezone\": \"Europe/London\",\n        \"ResourceId\": \"table/awscommunityscheduledactiontesttable\",\n    }\n    tpl = Template()\n    action = tpl.add_resource(ScheduledAction(\"MyAction\", **props))\n    print(tpl.to_yaml())\n```\nRenders, with the template, the following\n\n```yaml\nResources:\n  MyAction:\n    Properties:\n      ResourceId: table/awscommunityscheduledactiontesttable\n      ScalableDimension: dynamodb:table:ReadCapacityUnits\n      ScalableTargetAction:\n        MaxCapacity: 4\n        MinCapacity: 1\n      Schedule: cron(5 2 ? * FRI)\n      ScheduledActionName: cfn-testing-resource\n      ServiceNamespace: dynamodb\n      Timezone: Europe/London\n    Type: AwsCommunity::ApplicationAutoscaling::ScheduledAction\n```\n",
    "bugtrack_url": null,
    "license": "LICENSE",
    "summary": "Troposphere resource for AwsCommunity::ApplicationAutoscaling::ScheduledAction",
    "version": "0.1.1",
    "project_urls": {
        "Source": "https://github.com/JohnPreston/troposphere-awscommunity-applicationautoscaling-scheduledaction.git"
    },
    "split_keywords": [
        "troposphere",
        "aws-cloudformation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "feb8a0a0207cb1596543dd76d19fff7f0a9de0c74b1c452fb32566fc0e3c6678",
                "md5": "fd943018371ab799b22696eb63ba86c3",
                "sha256": "b0055f7ba67dc2a36790adc2882f91e1b3a76c2b53d09060093f0a3418e5b1bc"
            },
            "downloads": -1,
            "filename": "troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd943018371ab799b22696eb63ba86c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 5378,
            "upload_time": "2023-05-12T07:21:32",
            "upload_time_iso_8601": "2023-05-12T07:21:32.961127Z",
            "url": "https://files.pythonhosted.org/packages/fe/b8/a0a0207cb1596543dd76d19fff7f0a9de0c74b1c452fb32566fc0e3c6678/troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4568bbbfbfa835d91f26ace6d8381790b30bb249da32b6cf2e232d3a514e2d7",
                "md5": "b04b0f40d02c7fef545cbc4eacd1419e",
                "sha256": "5a097bce813d4e37a5f7a6b78f37bb09d4005d4a05cb1d11c52098f8aaffa1dd"
            },
            "downloads": -1,
            "filename": "troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b04b0f40d02c7fef545cbc4eacd1419e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 3601,
            "upload_time": "2023-05-12T07:21:34",
            "upload_time_iso_8601": "2023-05-12T07:21:34.913167Z",
            "url": "https://files.pythonhosted.org/packages/d4/56/8bbbfbfa835d91f26ace6d8381790b30bb249da32b6cf2e232d3a514e2d7/troposphere_awscommunity_applicationautoscaling_scheduledaction-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-12 07:21:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "JohnPreston",
    "github_project": "troposphere-awscommunity-applicationautoscaling-scheduledaction",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "troposphere-awscommunity-applicationautoscaling-scheduledaction"
}
        
Elapsed time: 0.33456s