Resource: aws_pinpoint_apns_channel

Provides a Pinpoint APNs Channel resource.

Example Usage

resource "aws_pinpoint_apns_channel" "apns" {
  application_id = aws_pinpoint_app.app.application_id

  certificate = file("./certificate.pem")
  private_key = file("./private_key.key")
}

resource "aws_pinpoint_app" "app" {}

Argument Reference

This resource supports the following arguments:

One of the following sets of credentials is also required.

If you choose to use __Certificate credentials__ you will have to provide:

If you choose to use __Key credentials__ you will have to provide:

Attribute Reference

This resource exports no additional attributes.

Import

In Terraform v1.5.0 and later, use an import block to import Pinpoint APNs Channel using the application-id. For example:

import {
  to = aws_pinpoint_apns_channel.apns
  id = "application-id"
}

Using terraform import, import Pinpoint APNs Channel using the application-id. For example:

% terraform import aws_pinpoint_apns_channel.apns application-id