diff --git a/genesyscloud/data_source_genesyscloud_widget_deployment.go b/genesyscloud/data_source_genesyscloud_widget_deployment.go index 49b718747..0f6ce3dbc 100644 --- a/genesyscloud/data_source_genesyscloud_widget_deployment.go +++ b/genesyscloud/data_source_genesyscloud_widget_deployment.go @@ -16,8 +16,9 @@ import ( func dataSourceWidgetDeployments() *schema.Resource { return &schema.Resource{ - Description: "Data source for Genesys Cloud Widget Deployment. Select a widget deployment.", - ReadContext: provider.ReadWithPooledClient(dataSourceWidgetDeploymentRead), + Description: "Data source for Genesys Cloud Widget Deployment. Select a widget deployment.", + DeprecationMessage: "The CX as Code team will be removing the genesyscloud_widget_deployment resource and data source from the CX as Code Terraform provider in mid-April. If you are using these resources you must upgrade your CX as Code provider version after mid-April and before mid-June, you will experience errors in your CI/CD pipelines and CX as Code exports with the removal of /api/v2/widgets/deployments APIs.", + ReadContext: provider.ReadWithPooledClient(dataSourceWidgetDeploymentRead), Schema: map[string]*schema.Schema{ "name": { Description: "Widget Deployment Name.", diff --git a/genesyscloud/resource_genesyscloud_widget_deployment.go b/genesyscloud/resource_genesyscloud_widget_deployment.go index 2405d7586..cd91e2a02 100644 --- a/genesyscloud/resource_genesyscloud_widget_deployment.go +++ b/genesyscloud/resource_genesyscloud_widget_deployment.go @@ -75,12 +75,12 @@ func WidgetDeploymentExporter() *resourceExporter.ResourceExporter { func ResourceWidgetDeployment() *schema.Resource { return &schema.Resource{ - Description: "Genesys Cloud Widget Deployment", - - CreateContext: provider.CreateWithPooledClient(createWidgetDeployment), - ReadContext: provider.ReadWithPooledClient(readWidgetDeployment), - UpdateContext: provider.UpdateWithPooledClient(updateWidgetDeployment), - DeleteContext: provider.DeleteWithPooledClient(deleteWidgetDeployment), + Description: "Genesys Cloud Widget Deployment", + DeprecationMessage: "The CX as Code team will be removing the genesyscloud_widget_deployment resource and data source from the CX as Code Terraform provider in mid-April. If you are using these resources you must upgrade your CX as Code provider version after mid-April and before mid-June, you will experience errors in your CI/CD pipelines and CX as Code exports with the removal of /api/v2/widgets/deployments APIs.", + CreateContext: provider.CreateWithPooledClient(createWidgetDeployment), + ReadContext: provider.ReadWithPooledClient(readWidgetDeployment), + UpdateContext: provider.UpdateWithPooledClient(updateWidgetDeployment), + DeleteContext: provider.DeleteWithPooledClient(deleteWidgetDeployment), Importer: &schema.ResourceImporter{ StateContext: schema.ImportStatePassthroughContext, },