Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
PlatformPrincipal
and PlatformCredential
attributes when using the
CreatePlatformApplication
action.
PlatformPrincipal
and PlatformCredential
are received from the
notification service.
- For
ADM
,PlatformPrincipal
isclient id
andPlatformCredential
isclient secret
. - For
Baidu
,PlatformPrincipal
isAPI key
andPlatformCredential
issecret key
. - For
APNS
andAPNS_SANDBOX
,PlatformPrincipal
isSSL certificate
andPlatformCredential
isprivate key
. - For
GCM
(Firebase Cloud Messaging), there is noPlatformPrincipal
and thePlatformCredential
isAPI key
. - For
MPNS
,PlatformPrincipal
isTLS certificate
andPlatformCredential
isprivate key
. - For
WNS
,PlatformPrincipal
isPackage Security Identifier
andPlatformCredential
issecret key
.
You can use the returned PlatformApplicationArn
as an attribute for
the CreatePlatformEndpoint
action.
Synopsis
- data CreatePlatformApplication = CreatePlatformApplication' {}
- newCreatePlatformApplication :: Text -> Text -> CreatePlatformApplication
- createPlatformApplication_name :: Lens' CreatePlatformApplication Text
- createPlatformApplication_platform :: Lens' CreatePlatformApplication Text
- createPlatformApplication_attributes :: Lens' CreatePlatformApplication (HashMap Text Text)
- data CreatePlatformApplicationResponse = CreatePlatformApplicationResponse' {}
- newCreatePlatformApplicationResponse :: Int -> CreatePlatformApplicationResponse
- createPlatformApplicationResponse_platformApplicationArn :: Lens' CreatePlatformApplicationResponse (Maybe Text)
- createPlatformApplicationResponse_httpStatus :: Lens' CreatePlatformApplicationResponse Int
Creating a Request
data CreatePlatformApplication Source #
Input for CreatePlatformApplication action.
See: newCreatePlatformApplication
smart constructor.
CreatePlatformApplication' | |
|
Instances
newCreatePlatformApplication Source #
:: Text | |
-> Text | |
-> CreatePlatformApplication |
Create a value of CreatePlatformApplication
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:CreatePlatformApplication'
, createPlatformApplication_name
- Application names must be made up of only uppercase and lowercase ASCII
letters, numbers, underscores, hyphens, and periods, and must be between
1 and 256 characters long.
$sel:platform:CreatePlatformApplication'
, createPlatformApplication_platform
- The following platforms are supported: ADM (Amazon Device Messaging),
APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase
Cloud Messaging).
$sel:attributes:CreatePlatformApplication'
, createPlatformApplication_attributes
- For a list of attributes, see
SetPlatformApplicationAttributes.
Request Lenses
createPlatformApplication_name :: Lens' CreatePlatformApplication Text Source #
Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
createPlatformApplication_platform :: Lens' CreatePlatformApplication Text Source #
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
createPlatformApplication_attributes :: Lens' CreatePlatformApplication (HashMap Text Text) Source #
For a list of attributes, see SetPlatformApplicationAttributes.
Destructuring the Response
data CreatePlatformApplicationResponse Source #
Response from CreatePlatformApplication action.
See: newCreatePlatformApplicationResponse
smart constructor.
CreatePlatformApplicationResponse' | |
|
Instances
Eq CreatePlatformApplicationResponse Source # | |
Read CreatePlatformApplicationResponse Source # | |
Show CreatePlatformApplicationResponse Source # | |
Defined in Amazonka.SNS.CreatePlatformApplication | |
Generic CreatePlatformApplicationResponse Source # | |
NFData CreatePlatformApplicationResponse Source # | |
Defined in Amazonka.SNS.CreatePlatformApplication rnf :: CreatePlatformApplicationResponse -> () # | |
type Rep CreatePlatformApplicationResponse Source # | |
Defined in Amazonka.SNS.CreatePlatformApplication type Rep CreatePlatformApplicationResponse = D1 ('MetaData "CreatePlatformApplicationResponse" "Amazonka.SNS.CreatePlatformApplication" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "CreatePlatformApplicationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "platformApplicationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreatePlatformApplicationResponse Source #
Create a value of CreatePlatformApplicationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:platformApplicationArn:CreatePlatformApplicationResponse'
, createPlatformApplicationResponse_platformApplicationArn
- PlatformApplicationArn is returned.
$sel:httpStatus:CreatePlatformApplicationResponse'
, createPlatformApplicationResponse_httpStatus
- The response's http status code.
Response Lenses
createPlatformApplicationResponse_platformApplicationArn :: Lens' CreatePlatformApplicationResponse (Maybe Text) Source #
PlatformApplicationArn is returned.
createPlatformApplicationResponse_httpStatus :: Lens' CreatePlatformApplicationResponse Int Source #
The response's http status code.