Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Resource Policies

Compare
Choose a tag to compare
@PaulMaddox PaulMaddox released this 16 Sep 20:30
· 706 commits to master since this release
d42502e

Adds support for UpdatePolicy, CreationPolicy and DeletionPolicy when composing templates.

For example:

asg := cloudformation.AWSAutoScalingAutoScalingGroup{}
asg.SetUpdatePolicy(&cloudformation.UpdatePolicy{
    AutoScalingRollingUpdate: &cloudformation.AutoScalingRollingUpdate{
        MaxBatchSize:                  2,
        MinInstancesInService:         2,
        PauseTime:                     "P5M",
        WaitOnResourceSignals:         true,
    },
})

template := &cloudformation.Template{
    Resources: map[string]interface{}{
        "AutoScalingGroup": asg
    },
}