v1.48.0
Features
*For Terraform Enterprise users who have data retention policies defined on Organizations or Workspaces: A new DataRetentionPolicyChoice relation has been added to reflect that data retention policies are polymorphic. Organizations and workspaces may be related to a DataRetentionPolicyDeleteOlder
or DataRetentionPolicyDontDelete
record through the DataRetentionPolicyChoice
struct. Data retention policies can be read using ReadDataRetentionPolicyChoice
, and set or updated (including changing their type) using SetDataRetentionPolicyDeleteOlder
or SetDataRetentionPolicyDontDelete
by @JarrettSpiker #652
Deprecations
- The
DataRetentionPolicy
type, and theDataRetentionPolicy
relationship onOrganization
andWorkspace
s have been deprecated. TheDataRetentionPolicy
type is equivalent to the newDataRetentionPolicyDeleteOlder
. The Data retention policy relationships onOrganization
andWorkspace
s are now polymorphic, and are represented by theDataRetentionPolicyChoice
relationship. The existingDataRetentionPolicy
relationship will continue to be populated when reading anOrganization
orWorkspace
, but it may be removed in a future release. @JarrettSpiker #652 - The
SetDataRetentionPolicy
function onOrganizations
andWorkspaces
is now deprecated in favour ofSetDataRetentionPolicyDeleteOlder
orSetDataRetentionPolicyDontDelete
.SetDataRetentionPolicy
will only update the data retention policy when communicating with TFE versions v202311 and v202312. @JarrettSpiker #652 - The
ReadDataRetentionPolicy
function onOrganizations
andWorkspaces
is now deprecated in favour ofReadDataRetentionPolicyChoice
.ReadDataRetentionPolicyChoice
may return the different multiple data retention policy types added in TFE 202401-1.SetDataRetentionPolicy
will only update the data retention policy when communicating with TFE versions v202311 and v202312. @JarrettSpiker #652
Enhancements
- Adds
Variables
relationship field toWorkspace
by @arybolovlev #872