ApnsChannelArgs

data class ApnsChannelArgs(val applicationId: Output<String>? = null, val bundleId: Output<String>? = null, val certificate: Output<String>? = null, val defaultAuthenticationMethod: Output<String>? = null, val enabled: Output<Boolean>? = null, val privateKey: Output<String>? = null, val teamId: Output<String>? = null, val tokenKey: Output<String>? = null, val tokenKeyId: Output<String>? = null) : ConvertibleToJava<ApnsChannelArgs>

Provides a Pinpoint APNs Channel resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.pinpoint.App;
import com.pulumi.aws.pinpoint.ApnsChannel;
import com.pulumi.aws.pinpoint.ApnsChannelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var app = new App("app");
var apns = new ApnsChannel("apns", ApnsChannelArgs.builder()
.applicationId(app.applicationId())
.certificate(Files.readString(Paths.get("./certificate.pem")))
.privateKey(Files.readString(Paths.get("./private_key.key")))
.build());
}
}

Import

Pinpoint APNs Channel can be imported using the application-id, e.g.,

$ pulumi import aws:pinpoint/apnsChannel:ApnsChannel apns application-id

Constructors

Link copied to clipboard
constructor(applicationId: Output<String>? = null, bundleId: Output<String>? = null, certificate: Output<String>? = null, defaultAuthenticationMethod: Output<String>? = null, enabled: Output<Boolean>? = null, privateKey: Output<String>? = null, teamId: Output<String>? = null, tokenKey: Output<String>? = null, tokenKeyId: Output<String>? = null)

Properties

Link copied to clipboard
val applicationId: Output<String>? = null

The application ID.

Link copied to clipboard
val bundleId: Output<String>? = null

The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app.

Link copied to clipboard
val certificate: Output<String>? = null

The pem encoded TLS Certificate from Apple.

Link copied to clipboard
val defaultAuthenticationMethod: Output<String>? = null

The default authentication method used for APNs. NOTE: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. One of the following sets of credentials is also required. If you choose to use Certificate credentials you will have to provide:

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether the channel is enabled or disabled. Defaults to true.

Link copied to clipboard
val privateKey: Output<String>? = null

The Certificate Private Key file (ie. .key file). If you choose to use Key credentials you will have to provide:

Link copied to clipboard
val teamId: Output<String>? = null

The ID assigned to your Apple developer account team. This value is provided on the Membership page.

Link copied to clipboard
val tokenKey: Output<String>? = null

The .p8 file that you download from your Apple developer account when you create an authentication key.

Link copied to clipboard
val tokenKeyId: Output<String>? = null

The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.

Functions

Link copied to clipboard
open override fun toJava(): ApnsChannelArgs