PlatformApplication

class PlatformApplication : KotlinCustomResource

Provides an SNS platform application resource

Example Usage

Apple Push Notification Service (APNS) using certificate-based authentication

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sns.PlatformApplication;
import com.pulumi.aws.sns.PlatformApplicationArgs;
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 apnsApplication = new PlatformApplication("apnsApplication", PlatformApplicationArgs.builder()
.platform("APNS")
.platformCredential("<APNS PRIVATE KEY>")
.platformPrincipal("<APNS CERTIFICATE>")
.build());
}
}

Apple Push Notification Service (APNS) using token-based authentication

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sns.PlatformApplication;
import com.pulumi.aws.sns.PlatformApplicationArgs;
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 apnsApplication = new PlatformApplication("apnsApplication", PlatformApplicationArgs.builder()
.applePlatformBundleId("<APPLE BUNDLE ID>")
.applePlatformTeamId("<APPLE TEAM ID>")
.platform("APNS")
.platformCredential("<APNS SIGNING KEY>")
.platformPrincipal("<APNS SIGNING KEY ID>")
.build());
}
}

Google Cloud Messaging (GCM)

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sns.PlatformApplication;
import com.pulumi.aws.sns.PlatformApplicationArgs;
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 gcmApplication = new PlatformApplication("gcmApplication", PlatformApplicationArgs.builder()
.platform("GCM")
.platformCredential("<GCM API KEY>")
.build());
}
}

Import

SNS platform applications can be imported using the ARN, e.g.,

$ pulumi import aws:sns/platformApplication:PlatformApplication gcm_application arn:aws:sns:us-west-2:0123456789012:app/GCM/gcm_application

Properties

Link copied to clipboard

The bundle identifier that's assigned to your iOS app. May only include alphanumeric characters, hyphens (-), and periods (.).

Link copied to clipboard

The identifier that's assigned to your Apple developer account team. Must be 10 alphanumeric characters.

Link copied to clipboard
val arn: Output<String>

The ARN of the SNS platform application

Link copied to clipboard

The ARN of the SNS Topic triggered when a delivery to any of the platform endpoints associated with your platform application encounters a permanent failure.

Link copied to clipboard

The ARN of the SNS Topic triggered when a new platform endpoint is added to your platform application.

Link copied to clipboard

The ARN of the SNS Topic triggered when an existing platform endpoint is deleted from your platform application.

Link copied to clipboard

The ARN of the SNS Topic triggered when an existing platform endpoint is changed from your platform application.

Link copied to clipboard

The IAM role ARN permitted to receive failure feedback for this application and give SNS write access to use CloudWatch logs on your behalf.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The friendly name for the SNS platform application

Link copied to clipboard
val platform: Output<String>

The platform that the app is registered with. See Platform for supported platforms.

Link copied to clipboard

Application Platform credential. See Credential for type of credential required for platform. The value of this attribute when stored into the state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

Link copied to clipboard

Application Platform principal. See Principal for type of principal required for platform. The value of this attribute when stored into the state is only a hash of the real value, so therefore it is not practical to use this as an attribute for other resources.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The IAM role ARN permitted to receive success feedback for this application and give SNS write access to use CloudWatch logs on your behalf.

Link copied to clipboard

The sample rate percentage (0-100) of successfully delivered messages. The following attributes are needed only when using APNS token credentials:

Link copied to clipboard
val urn: Output<String>