From 5bf298b6732e845e3d4888788f824fbf676df6b0 Mon Sep 17 00:00:00 2001 From: Liam Clarke Date: Fri, 14 Jun 2024 09:12:08 -0400 Subject: [PATCH] update gcm_channel upsert schema --- internal/service/pinpoint/gcm_channel.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/internal/service/pinpoint/gcm_channel.go b/internal/service/pinpoint/gcm_channel.go index a4770ebddf1f..a8c28e8c742d 100644 --- a/internal/service/pinpoint/gcm_channel.go +++ b/internal/service/pinpoint/gcm_channel.go @@ -36,14 +36,23 @@ func ResourceGCMChannel() *schema.Resource { }, "api_key": { Type: schema.TypeString, - Required: true, + Required: false, Sensitive: true, }, + "default_authentication_method": { + Type: schema.TypeString, + Required: true, + Default: "KEY", + }, names.AttrEnabled: { Type: schema.TypeBool, Optional: true, Default: true, }, + "service_json": { + Type: schema.TypeString, + Required: false, + }, }, } } @@ -57,7 +66,9 @@ func resourceGCMChannelUpsert(ctx context.Context, d *schema.ResourceData, meta params := &pinpoint.GCMChannelRequest{} params.ApiKey = aws.String(d.Get("api_key").(string)) + params.DefaultAuthenticationMethod = aws.String(d.Get("default_authentication_method").(string)) params.Enabled = aws.Bool(d.Get(names.AttrEnabled).(bool)) + params.ServiceJson = aws.String(d.Get("service_json").(string)) req := pinpoint.UpdateGcmChannelInput{ ApplicationId: aws.String(applicationId),