-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGESC-23979 - Unable to create Data lake and Data hub cluster throug…
…h Terraform
- Loading branch information
Showing
20 changed files
with
203 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2023 Cloudera. All Rights Reserved. | ||
// | ||
// This file is licensed under the Apache License Version 2.0 (the "License"). | ||
// You may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
// | ||
// This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
// OF ANY KIND, either express or implied. Refer to the License for the specific | ||
// permissions and limitations governing your use of the file. | ||
|
||
package datahub | ||
|
||
import ( | ||
"github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
"github.com/cloudera/terraform-provider-cdp/utils" | ||
) | ||
|
||
type awsDatahubResourceModel struct { | ||
ID types.String `tfsdk:"id"` | ||
Crn types.String `tfsdk:"crn"` | ||
Name types.String `tfsdk:"name"` | ||
Status types.String `tfsdk:"status"` | ||
InstanceGroup []InstanceGroup `tfsdk:"instance_group"` | ||
PollingOptions *utils.PollingOptions `tfsdk:"polling_options"` | ||
DestroyOptions *DestroyOptions `tfsdk:"destroy_options"` | ||
ClusterDefinition types.String `tfsdk:"cluster_definition"` | ||
ClusterTemplate types.String `tfsdk:"cluster_template"` | ||
Environment types.String `tfsdk:"environment"` | ||
} | ||
|
||
func (d *awsDatahubResourceModel) forceDeleteRequested() bool { | ||
return d.DestroyOptions != nil && !d.DestroyOptions.ForceDeleteCluster.IsNull() && d.DestroyOptions.ForceDeleteCluster.ValueBool() | ||
} |
Oops, something went wrong.