blib/lib/Paws/DataExchange/CreateDataSet.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DataExchange::CreateDataSet;
3 use Moose;
4 has AssetType => (is => 'ro', isa => 'Str', required => 1);
5 has Description => (is => 'ro', isa => 'Str', required => 1);
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has Tags => (is => 'ro', isa => 'Paws::DataExchange::MapOf__string');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDataSet');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/data-sets');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DataExchange::CreateDataSetResponse');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::DataExchange::CreateDataSet - Arguments for method CreateDataSet on L<Paws::DataExchange>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateDataSet on the
26 L<AWS Data Exchange|Paws::DataExchange> service. Use the attributes of this class
27 as arguments to method CreateDataSet.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataSet.
30  
31 =head1 SYNOPSIS
32  
33 my $dataexchange = Paws->service('DataExchange');
34 my $CreateDataSetResponse = $dataexchange->CreateDataSet(
35 AssetType => 'S3_SNAPSHOT',
36 Description => 'MyDescription',
37 Name => 'MyName',
38 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
39 );
40  
41 # Results:
42 my $Arn = $CreateDataSetResponse->Arn;
43 my $AssetType = $CreateDataSetResponse->AssetType;
44 my $CreatedAt = $CreateDataSetResponse->CreatedAt;
45 my $Description = $CreateDataSetResponse->Description;
46 my $Id = $CreateDataSetResponse->Id;
47 my $Name = $CreateDataSetResponse->Name;
48 my $Origin = $CreateDataSetResponse->Origin;
49 my $OriginDetails = $CreateDataSetResponse->OriginDetails;
50 my $SourceId = $CreateDataSetResponse->SourceId;
51 my $Tags = $CreateDataSetResponse->Tags;
52 my $UpdatedAt = $CreateDataSetResponse->UpdatedAt;
53  
54 # Returns a L<Paws::DataExchange::CreateDataSetResponse> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dataexchange/CreateDataSet>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 B<REQUIRED> AssetType => Str
63  
64 The type of file your data is stored in. Currently, the supported asset
65 type is S3_SNAPSHOT.
66  
67 Valid values are: C<"S3_SNAPSHOT">
68  
69 =head2 B<REQUIRED> Description => Str
70  
71 A description for the data set. This value can be up to 16,348
72 characters long.
73  
74  
75  
76 =head2 B<REQUIRED> Name => Str
77  
78 The name of the data set.
79  
80  
81  
82 =head2 Tags => L<Paws::DataExchange::MapOf__string>
83  
84 A data set tag is an optional label that you can assign to a data set
85 when you create it. Each tag consists of a key and an optional value,
86 both of which you define. When you use tagging, you can also use
87 tag-based access control in IAM policies to control access to these
88 data sets and revisions.
89  
90  
91  
92  
93 =head1 SEE ALSO
94  
95 This class forms part of L<Paws>, documenting arguments for method CreateDataSet in L<Paws::DataExchange>
96  
97 =head1 BUGS and CONTRIBUTIONS
98  
99 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
100  
101 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
102  
103 =cut
104