def METHOD_NAME(self):
    self.deployment_type = "AllAtOnce"
    self.pre_traffic_hook = "pre_traffic_function_ref"
    self.post_traffic_hook = "post_traffic_function_ref"
    self.alarms = ["alarm1ref", "alarm2ref"]
    self.role = {"Ref": "MyRole"}
    self.trigger_configurations = {
        "TriggerEvents": ["DeploymentSuccess", "DeploymentFailure"],
        "TriggerTargetArn": {"Ref": "MySNSTopic"},
        "TriggerName": "TestTrigger",
    }
    self.condition = "condition"