Provides a Pinpoint GCM Channel resource.
resource "aws_pinpoint_gcm_channel" "gcm" {
application_id = aws_pinpoint_app.app.application_id
api_key = "api_key"
}
resource "aws_pinpoint_app" "app" {}
This resource supports the following arguments:
application_id
- (Required) The application ID.api_key
- (Required) Platform credential API key from Google.enabled
- (Optional) Whether the channel is enabled or disabled. Defaults to true
.This resource exports no additional attributes.
In Terraform v1.5.0 and later, use an import
block to import Pinpoint GCM Channel using the application-id
. For example:
import {
to = aws_pinpoint_gcm_channel.gcm
id = "application-id"
}
Using terraform import
, import Pinpoint GCM Channel using the application-id
. For example:
% terraform import aws_pinpoint_gcm_channel.gcm application-id