-
Notifications
You must be signed in to change notification settings - Fork 0
/
org_configuration_model.go
57 lines (47 loc) · 1.81 KB
/
org_configuration_model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package organization
import (
"github.com/hashicorp/terraform-plugin-framework/types"
)
const (
ImportID = "org-config"
)
type ResourceModel struct {
ID types.String `tfsdk:"id"`
IacConfig *IacConfigModel `tfsdk:"iac_config"`
S3StateFilesLocations []*S3StateFilesLocationModel `tfsdk:"s3_state_files_locations"`
RunnerConfig *RunnerConfigModel `tfsdk:"runner_config"`
SuppressedResources *SuppressedResourcesModel `tfsdk:"suppressed_resources"`
ReportConfigurations []*ReportConfigurationModel `tfsdk:"report_configurations"`
}
type IacConfigModel struct {
TerraformVersion types.String `tfsdk:"terraform_version"`
TerragruntVersion types.String `tfsdk:"terragrunt_version"`
OpentofuVersion types.String `tfsdk:"opentofu_version"`
}
type S3StateFilesLocationModel struct {
BucketName types.String `tfsdk:"bucket_name"`
BucketRegion types.String `tfsdk:"bucket_region"`
AwsAccountId types.String `tfsdk:"aws_account_id"`
}
type RunnerConfigModel struct {
Mode types.String `tfsdk:"mode"`
Groups types.List `tfsdk:"groups"`
IsOverridable types.Bool `tfsdk:"is_overridable"`
}
type SuppressedResourcesModel struct {
ManagedByTags []*TagPropertiesModel `tfsdk:"managed_by_tags"`
}
type TagPropertiesModel struct {
Key types.String `tfsdk:"key"`
Value types.String `tfsdk:"value"`
}
type ReportConfigurationModel struct {
Type types.String `tfsdk:"type"`
Recipients *ReportRecipientsModel `tfsdk:"recipients"`
Enabled types.Bool `tfsdk:"enabled"`
}
type ReportRecipientsModel struct {
AllAdmins types.Bool `tfsdk:"all_admins"`
EmailAddresses types.List `tfsdk:"email_addresses"`
EmailAddressesToExclude types.List `tfsdk:"email_addresses_to_exclude"`
}