driftctl/pkg/resource/aws/aws_kms_alias.go

39 lines
1.0 KiB
Go
Raw Normal View History

2021-02-25 13:19:49 +00:00
// GENERATED, DO NOT EDIT THIS FILE
package aws
2021-05-17 10:09:35 +00:00
import (
"github.com/cloudskiff/driftctl/pkg/resource"
"github.com/zclconf/go-cty/cty"
)
2021-03-25 11:13:52 +00:00
2021-02-25 13:19:49 +00:00
const AwsKmsAliasResourceType = "aws_kms_alias"
type AwsKmsAlias struct {
2021-03-25 11:13:52 +00:00
Arn *string `cty:"arn" computed:"true"`
Id string `cty:"id" computed:"true"`
Name *string `cty:"name" diff:"-"`
NamePrefix *string `cty:"name_prefix" diff:"-"`
TargetKeyArn *string `cty:"target_key_arn" computed:"true"`
TargetKeyId *string `cty:"target_key_id"`
CtyVal *cty.Value `diff:"-"`
2021-02-25 13:19:49 +00:00
}
func (r *AwsKmsAlias) TerraformId() string {
return r.Id
}
func (r *AwsKmsAlias) TerraformType() string {
return AwsKmsAliasResourceType
}
2021-03-25 11:13:52 +00:00
func (r *AwsKmsAlias) CtyValue() *cty.Value {
return r.CtyVal
}
2021-05-17 10:09:35 +00:00
func initAwsKmsAliasMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsKmsAliasResourceType, func(val *resource.Attributes) {
val.SafeDelete([]string{"name"})
val.SafeDelete([]string{"name_prefix"})
})
}