Skip to content

Commit

Permalink
r/aws_ses_event_destination: Use '_Values()' (hashicorp#14601).
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jan 2, 2022
1 parent 18e2aa0 commit 3440753
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions internal/service/ses/event_destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ func ResourceEventDestination() *schema.Resource {
),
},
"value_source": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
ses.DimensionValueSourceMessageTag,
ses.DimensionValueSourceEmailHeader,
ses.DimensionValueSourceLinkTag,
}, false),
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(ses.DimensionValueSource_Values(), false),
},
},
},
Expand Down Expand Up @@ -104,17 +100,8 @@ func ResourceEventDestination() *schema.Resource {
ForceNew: true,
Set: schema.HashString,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{
ses.EventTypeSend,
ses.EventTypeReject,
ses.EventTypeBounce,
ses.EventTypeComplaint,
ses.EventTypeDelivery,
ses.EventTypeOpen,
ses.EventTypeClick,
ses.EventTypeRenderingFailure,
}, false),
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice(ses.EventType_Values(), false),
},
},
"name": {
Expand Down

0 comments on commit 3440753

Please sign in to comment.