def execute(self, context: 'Context'): self.log.info('CloudFormation Parameters: %s', self.cloudformation_parameters) cloudformation_hook = CloudFormationHook(aws_conn_id=self.aws_conn_id) cloudformation_hook.delete_stack(self.stack_name, self.cloudformation_parameters)
def execute(self, context): self.log.info('Parameters: %s', self.params) cloudformation_hook = CloudFormationHook(aws_conn_id=self.aws_conn_id) cloudformation_hook.create_stack(self.stack_name, self.params)
def hook(self) -> CloudFormationHook: """Create and return a CloudFormationHook""" return CloudFormationHook(aws_conn_id=self.aws_conn_id, region_name=self.region_name)