@Override
    public CreatePlatformApplicationResult createPlatformApplication(CreatePlatformApplicationRequest request) {
        request = beforeClientExecution(request);
        return executeCreatePlatformApplication(request);
    }
<p>
Creates a platform application object for one of the supported push notification services, such as APNS and GCM
(Firebase Cloud Messaging), to which devices and mobile apps may register. You must specify
<code>PlatformPrincipal</code> and <code>PlatformCredential</code> attributes when using the
<code>CreatePlatformApplication</code> action.
</p>
<p>
<code>PlatformPrincipal</code> and <code>PlatformCredential</code> are received from the notification service.
</p>
<ul>
<li>
<p>
For ADM, <code>PlatformPrincipal</code> is <code>client id</code> and <code>PlatformCredential</code> is
<code>client secret</code>.
</p>
</li>
<li>
<p>
For APNS and <code>APNS_SANDBOX</code> using certificate credentials, <code>PlatformPrincipal</code> is
<code>SSL certificate</code> and <code>PlatformCredential</code> is <code>private key</code>.
</p>
</li>
<li>
<p>
For APNS and <code>APNS_SANDBOX</code> using token credentials, <code>PlatformPrincipal</code> is
<code>signing key ID</code> and <code>PlatformCredential</code> is <code>signing key</code>.
</p>
</li>
<li>
<p>
For Baidu, <code>PlatformPrincipal</code> is <code>API key</code> and <code>PlatformCredential</code> is
<code>secret key</code>.
</p>
</li>
<li>
<p>
For GCM (Firebase Cloud Messaging) using key credentials, there is no <code>PlatformPrincipal</code>. The
<code>PlatformCredential</code> is <code>API key</code>.
</p>
</li>
<li>
<p>
For GCM (Firebase Cloud Messaging) using token credentials, there is no <code>PlatformPrincipal</code>. The
<code>PlatformCredential</code> is a JSON formatted private key file. When using the Amazon Web Services CLI, the
file must be in string format and special characters must be ignored. To format the file correctly, Amazon SNS
recommends using the following command: <code>SERVICE_JSON=`jq @json &lt;&lt;&lt; cat service.json`</code>.
</p>
</li>
<li>
<p>
For MPNS, <code>PlatformPrincipal</code> is <code>TLS certificate</code> and <code>PlatformCredential</code> is
<code>private key</code>.
</p>
</li>
<li>
<p>
For WNS, <code>PlatformPrincipal</code> is <code>Package Security Identifier</code> and
<code>PlatformCredential</code> is <code>secret key</code>.
</p>
</li>
</ul>
<p>
You can use the returned <code>PlatformApplicationArn</code> as an attribute for the
<code>CreatePlatformEndpoint</code> action.
</p>

@param createPlatformApplicationRequest
       Input for CreatePlatformApplication action.
@return Result of the CreatePlatformApplication operation returned by the service.
@throws InvalidParameterException
        Indicates that a request parameter does not comply with the associated constraints.
@throws InternalErrorException
        Indicates an internal service error.
@throws AuthorizationErrorException
        Indicates that the user has been denied access to the requested resource.
@sample AmazonSNS.CreatePlatformApplication
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreatePlatformApplication" target="_top">AWS
     API Documentation</a>
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSClient.java