File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ package awsmt
33import (
44 "context"
55 "fmt"
6+ "terraform-provider-mediatailor/awsmt/models"
7+
68 "github.com/aws/aws-sdk-go-v2/service/mediatailor"
79 awsTypes "github.com/aws/aws-sdk-go-v2/service/mediatailor/types"
810 "github.com/hashicorp/terraform-plugin-framework/types"
9- "terraform-provider-mediatailor/awsmt/models"
1011)
1112
1213func getCreateSourceLocationInput (model models.SourceLocationModel ) mediatailor.CreateSourceLocationInput {
@@ -122,7 +123,9 @@ func getUpdateSourceLocationInput(model models.SourceLocationModel) mediatailor.
122123
123124 params .AccessConfiguration = getAccessConfigurationInput (model .AccessConfiguration )
124125 // Default Segment Delivery Configuration
125- params .DefaultSegmentDeliveryConfiguration = getDefaultSegmentDeliveryConfigurationInput (model .DefaultSegmentDeliveryConfiguration )
126+ if model .DefaultSegmentDeliveryConfiguration != nil {
127+ params .DefaultSegmentDeliveryConfiguration = getDefaultSegmentDeliveryConfigurationInput (model .DefaultSegmentDeliveryConfiguration )
128+ }
126129 // HTTP Configuration
127130 params .HttpConfiguration = getHttpConfigurationInput (model .HttpConfiguration )
128131
You can’t perform that action at this time.
0 commit comments