2020-12-09 15:31:34 +00:00
|
|
|
// GENERATED, DO NOT EDIT THIS FILE
|
|
|
|
package aws
|
|
|
|
|
2021-04-29 15:17:55 +00:00
|
|
|
import (
|
|
|
|
"github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
)
|
2021-03-25 11:13:52 +00:00
|
|
|
|
2020-12-09 15:31:34 +00:00
|
|
|
const AwsEbsVolumeResourceType = "aws_ebs_volume"
|
|
|
|
|
|
|
|
type AwsEbsVolume struct {
|
|
|
|
Arn *string `cty:"arn" diff:"-" computed:"true"`
|
|
|
|
AvailabilityZone *string `cty:"availability_zone"`
|
|
|
|
Encrypted *bool `cty:"encrypted" computed:"true"`
|
|
|
|
Id string `cty:"id" computed:"true"`
|
|
|
|
Iops *int `cty:"iops" computed:"true"`
|
|
|
|
KmsKeyId *string `cty:"kms_key_id" computed:"true"`
|
|
|
|
MultiAttachEnabled *bool `cty:"multi_attach_enabled"`
|
|
|
|
OutpostArn *string `cty:"outpost_arn" diff:"-"`
|
|
|
|
Size *int `cty:"size" computed:"true"`
|
|
|
|
SnapshotId *string `cty:"snapshot_id" diff:"-" computed:"true"`
|
|
|
|
Tags map[string]string `cty:"tags"`
|
|
|
|
Type *string `cty:"type" computed:"true"`
|
2021-03-25 11:13:52 +00:00
|
|
|
CtyVal *cty.Value `cty:"-" diff:"-"`
|
2020-12-09 15:31:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AwsEbsVolume) TerraformId() string {
|
|
|
|
return r.Id
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AwsEbsVolume) TerraformType() string {
|
|
|
|
return AwsEbsVolumeResourceType
|
|
|
|
}
|
2021-03-25 11:13:52 +00:00
|
|
|
|
|
|
|
func (r *AwsEbsVolume) CtyValue() *cty.Value {
|
|
|
|
return r.CtyVal
|
|
|
|
}
|
2021-04-29 15:17:55 +00:00
|
|
|
|
|
|
|
func initAwsEbsVolumeMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
|
|
resourceSchemaRepository.SetNormalizeFunc(AwsEbsVolumeResourceType, func(val *resource.Attributes) {
|
|
|
|
val.SafeDelete([]string{"arn"})
|
|
|
|
val.SafeDelete([]string{"outpost_arn"})
|
|
|
|
val.SafeDelete([]string{"snapshot_id"})
|
|
|
|
})
|
|
|
|
}
|