Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proper name for networking term Statmux #27223

Merged
merged 10 commits into from
Oct 26, 2022
7 changes: 7 additions & 0 deletions .changelog/27223.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:enhancement
resource/aws_medialive_multiplex_program: Add ability to update `multiplex_program_settings` in place
```

```release-note:note
resource/aws_medialive_multiplex_program: The `statemux_settings` argument has been deprecated. Use the `statmux_settings` argument instead
```
5 changes: 5 additions & 0 deletions internal/provider/fwprovider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/conns"
"github.com/hashicorp/terraform-provider-aws/internal/experimental/intf"
"github.com/hashicorp/terraform-provider-aws/internal/fwtypes"
"github.com/hashicorp/terraform-provider-aws/internal/service/medialive"
"github.com/hashicorp/terraform-provider-aws/names"
)

Expand Down Expand Up @@ -350,6 +351,10 @@ func (p *fwprovider) DataSources(ctx context.Context) []func() datasource.DataSo
func (p *fwprovider) Resources(ctx context.Context) []func() resource.Resource {
var resources []func() resource.Resource

resources = append(resources, func() resource.Resource {
return medialive.NewResourceMultiplexProgram(ctx)
})

for _, sp := range p.Primary.Meta().(*conns.AWSClient).ServicePackages {
for _, v := range sp.FrameworkResources(ctx) {
v, err := v(ctx)
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -2187,7 +2187,7 @@ func New(_ context.Context) (*schema.Provider, error) {
// ServicePackageData is used before configuration to determine the provider's exported resources and data sources.
ServicePackages: []intf.ServicePackageData{
globalaccelerator.ServicePackageData,
medialive.ServicePackageData,
//medialive.ServicePackageData,
meta.ServicePackageData,
simpledb.ServicePackageData,
sts.ServicePackageData,
Expand Down
1 change: 1 addition & 0 deletions internal/service/medialive/medialive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func TestAccMediaLive_serial(t *testing.T) {
},
"MultiplexProgram": {
"basic": testAccMultiplexProgram_basic,
"update": testAccMultiplexProgram_update,
"disappears": testAccMultiplexProgram_disappears,
},
}
Expand Down
Loading