blib/lib/Paws/SNS/CreatePlatformEndpoint.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SNS::CreatePlatformEndpoint;
3 use Moose;
4 has Attributes => (is => 'ro', isa => 'Paws::SNS::MapStringToString');
5 has CustomUserData => (is => 'ro', isa => 'Str');
6 has PlatformApplicationArn => (is => 'ro', isa => 'Str', required => 1);
7 has Token => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePlatformEndpoint');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SNS::CreateEndpointResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreatePlatformEndpointResult');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::SNS::CreatePlatformEndpoint - Arguments for method CreatePlatformEndpoint on L<Paws::SNS>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreatePlatformEndpoint on the
25 L<Amazon Simple Notification Service|Paws::SNS> service. Use the attributes of this class
26 as arguments to method CreatePlatformEndpoint.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePlatformEndpoint.
29  
30 =head1 SYNOPSIS
31  
32 my $sns = Paws->service('SNS');
33 my $CreateEndpointResponse = $sns->CreatePlatformEndpoint(
34 PlatformApplicationArn => 'MyString',
35 Token => 'MyString',
36 Attributes => { 'MyString' => 'MyString', }, # OPTIONAL
37 CustomUserData => 'MyString', # OPTIONAL
38 );
39  
40 # Results:
41 my $EndpointArn = $CreateEndpointResponse->EndpointArn;
42  
43 # Returns a L<Paws::SNS::CreateEndpointResponse> object.
44  
45 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sns/CreatePlatformEndpoint>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 Attributes => L<Paws::SNS::MapStringToString>
52  
53 For a list of attributes, see SetEndpointAttributes
54 (https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html).
55  
56  
57  
58 =head2 CustomUserData => Str
59  
60 Arbitrary user data to associate with the endpoint. Amazon SNS does not
61 use this data. The data must be in UTF-8 format and less than 2KB.
62  
63  
64  
65 =head2 B<REQUIRED> PlatformApplicationArn => Str
66  
67 PlatformApplicationArn returned from CreatePlatformApplication is used
68 to create a an endpoint.
69  
70  
71  
72 =head2 B<REQUIRED> Token => Str
73  
74 Unique identifier created by the notification service for an app on a
75 device. The specific name for Token will vary, depending on which
76 notification service is being used. For example, when using APNS as the
77 notification service, you need the device token. Alternatively, when
78 using GCM (Firebase Cloud Messaging) or ADM, the device token
79 equivalent is called the registration ID.
80  
81  
82  
83  
84 =head1 SEE ALSO
85  
86 This class forms part of L<Paws>, documenting arguments for method CreatePlatformEndpoint in L<Paws::SNS>
87  
88 =head1 BUGS and CONTRIBUTIONS
89  
90 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
91  
92 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
93  
94 =cut
95