Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
adding pinpoint topics
Browse files Browse the repository at this point in the history
  • Loading branch information
soo-aws committed Jan 16, 2018
1 parent 825c6b5 commit ea3e912
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc_source/_includes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.. |ddbclient| replace:: :aws-java-class:`AmazonDynamoDB <services/dynamodbv2/AmazonDynamoDBClient>`
.. |ec2client| replace:: :aws-java-class:`AmazonEC2Client <services/ec2/AmazonEC2Client>`
.. |iamclient| replace:: :aws-java-class:`AmazonIdentityManagementClient <services/identitymanagement/AmazonIdentityManagementClient>`
.. |pinpointclient| replace:: :aws-java-class:`AmazonPinpointClient <services/pinpoint/AmazonPinpointClient>`
.. |s3client| replace:: :aws-java-class:`AmazonS3 <services/s3/AmazonS3Client>`
.. |sqsclient| replace:: :aws-java-class:`AmazonSQS <services/sqs/AmazonSQSClient>`
.. |xfermgr| replace:: :aws-java-class:`TransferManager <services/s3/transfer/TransferManager>`
6 changes: 6 additions & 0 deletions doc_source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,9 @@
'blob/master/java/example_code/{svc}/src/main/java/aws/example/{svc}/'.format(svc=svc) +
'%s', '')

for svc in [
'pinpoint'
]:
extlinks['sdk-examples-java-%s' % svc] = (samples_url +
'blob/master/java/example_code/{svc}/src/main/java/com/example/{svc}/'.format(svc=svc) +
'%s', '')
67 changes: 67 additions & 0 deletions doc_source/examples-pinpoint-create-app.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
.. Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0
International License (the "License"). You may not use this file except in compliance with the
License. A copy of the License is located at http://creativecommons.org/licenses/by-nc-sa/4.0/.
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions and
limitations under the License.
############################
Creating an App in |PINlong|
############################

.. meta::
:description: How to create or delete an app in Amazon pinpoint.
:keywords: AWS for Java SDK code examples, amazon pinpoint

Creating an App
===============

Create a new app in |PINlong| by providing an app name to the :aws-java-class:`CreateAppRequest
<services/pinpoint/model/CreateAppRequest>` object then passing that object to the
|pinpointclient|'s :methodname:`createApp` method.

**Imports**

.. literalinclude:: example_code/pinpoint/src/main/java/com/example/pinpoint/CreateApp.java
:lines: 17-21
:language: java

**Code**

.. literalinclude:: example_code/pinpoint/src/main/java/com/example/pinpoint/CreateApp.java
:lines: 44-49
:dedent: 8
:language: java

See the :sdk-examples-java-pinpoint:`complete example <CreateApp.java>` on GitHub.


Deleting an App
===============

To delete a user, call the |pinpointclient|'s :methodname:`deleteApp` request with a
:aws-java-class:`UpdateAppRequest <services/pinpoint/model/UpdateAppRequest>` object set
with the user name to delete.

**Imports**

.. literalinclude:: example_code/pinpoint/src/main/java/com/example/pinpoint/DeleteApp.java
:lines: 18-19
:language: java

**Code**

.. literalinclude:: example_code/pinpoint/src/main/java/com/example/pinpoint/DeleteApp.java
:lines: 42-45
:dedent: 8
:language: java

See the :sdk-examples-java-pinpoint:`complete example <DeleteApp.java>` on GitHub.

More Information
================

* See :pinpoint-api:`Apps <apps>` in the |PIN-api|

0 comments on commit ea3e912

Please sign in to comment.