returnnil,diags.Append(tfdiags.Sourceless(tfdiags.Error,"Can not access actions",fmt.Sprintf("Actions can not be accessed, they have no state and can only be referenced with a resources lifecycle action_trigger events list. Tried to access %s.",subj.String())))
returnnil,diags.Append(&hcl.Diagnostic{
Severity:hcl.DiagError,
Summary:"Invalid reference",
Detail:"Actions can't be referenced in this context, they can only be referenced from within a resources lifecycle events list.",
returntfdiags.Diagnostics{tfdiags.Sourceless(tfdiags.Error,"Can not access actions","Actions can not be accessed, they have no state and can only be referenced with a resources lifecycle action_trigger events list. Tried to access action.test_unlinked.my_action.")}
returntfdiags.Diagnostics{}.Append(
&hcl.Diagnostic{
Severity:hcl.DiagError,
Summary:"Invalid reference",
Detail:"Actions can't be referenced in this context, they can only be referenced from within a resources lifecycle events list.",
returntfdiags.Diagnostics{tfdiags.Sourceless(tfdiags.Error,"Can not access actions","Actions can not be accessed, they have no state and can only be referenced with a resources lifecycle action_trigger events list. Tried to access action.test_unlinked.my_action."),tfdiags.Sourceless(tfdiags.Error,"Can not access actions","Actions can not be accessed, they have no state and can only be referenced with a resources lifecycle action_trigger events list. Tried to access action.test_unlinked.my_action.")}
returntfdiags.Diagnostics{}.Append(
&hcl.Diagnostic{
Severity:hcl.DiagError,
Summary:"Invalid reference",
Detail:"Actions can't be referenced in this context, they can only be referenced from within a resources lifecycle events list.",