Apns Sandbox Channel
Provides a Pinpoint APNs Sandbox 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.ApnsSandboxChannel;
import com.pulumi.aws.pinpoint.ApnsSandboxChannelArgs;
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 apnsSandbox = new ApnsSandboxChannel("apnsSandbox", ApnsSandboxChannelArgs.builder()
.applicationId(app.applicationId())
.certificate(Files.readString(Paths.get("./certificate.pem")))
.privateKey(Files.readString(Paths.get("./private_key.key")))
.build());
}
}
Import
Pinpoint APNs Sandbox Channel can be imported using the application-id
, e.g.,
$ pulumi import aws:pinpoint/apnsSandboxChannel:ApnsSandboxChannel apns_sandbox application-id
Properties
The application ID.
The pem encoded TLS Certificate from Apple.
The default authentication method used for APNs Sandbox. 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:
The Certificate Private Key file (ie. .key
file). If you choose to use Key credentials you will have to provide:
The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.