Skip to content

Commit

Permalink
fix: small
Browse files Browse the repository at this point in the history
  • Loading branch information
nishikawa-tadashi committed Feb 27, 2025
1 parent 84a8f5b commit 3cea1cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions internal/service/mediapackage/origin_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1232,10 +1232,10 @@ func expandComplexArguments(tfList []interface{}) []*mediapackage.ComplexArgumen
}

func expandDashPackage(tfMap map[string]interface{}) *types.DashPackage {
obj := &types.DashPackage{
AdTriggers: expandAdTriggersElement(tfMap["ad_triggers"].([]interface{})),
AdsOnDeliveryRestrictions: types.AdsOnDeliveryRestrictions(tfMap["ads_on_delivery_restrictions"].(string)),
ManifestLayout: types.ManifestLayout(tfMap["manifest_layout"].(string)),
obj := &types.DashPackage{ }

if v, ok := tfMap["ad_triggers"]; ok {
obj.AdTriggers = expandAdTriggersElement(v.([]interface{}))
}

if v, ok := tfMap["ads_on_delivery_restrictions"]; ok {
Expand All @@ -1250,6 +1250,10 @@ func expandDashPackage(tfMap map[string]interface{}) *types.DashPackage {
obj.IncludeIframeOnlyStream = aws.Bool(v.(bool))
}

if v, ok := tfMap["manifest_layout"]; ok {
obj.ManifestLayout = types.ManifestLayout(v.(string))
}

if v, ok := tfMap["manifest_window_seconds"]; ok {
obj.ManifestWindowSeconds = aws.Int32(v.(int32))
}
Expand Down

0 comments on commit 3cea1cc

Please sign in to comment.