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

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DataExchange::CreateJob;
3 use Moose;
4 has Details => (is => 'ro', isa => 'Paws::DataExchange::RequestDetails', required => 1);
5 has Type => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateJob');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/jobs');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DataExchange::CreateJobResponse');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::DataExchange::CreateJob - Arguments for method CreateJob on L<Paws::DataExchange>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method CreateJob on the
24 L<AWS Data Exchange|Paws::DataExchange> service. Use the attributes of this class
25 as arguments to method CreateJob.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateJob.
28  
29 =head1 SYNOPSIS
30  
31 my $dataexchange = Paws->service('DataExchange');
32 my $CreateJobResponse = $dataexchange->CreateJob(
33 Details => {
34 ExportAssetToSignedUrl => {
35 AssetId => 'MyId',
36 DataSetId => 'MyId',
37 RevisionId => 'MyId',
38  
39 }, # OPTIONAL
40 ExportAssetsToS3 => {
41 AssetDestinations => [
42 {
43 AssetId => 'MyId',
44 Bucket => 'My__string',
45 Key => 'My__string',
46 },
47 ...
48 ],
49 DataSetId => 'MyId',
50 RevisionId => 'MyId',
51 Encryption => {
52 Type => 'aws:kms', # values: aws:kms, AES256
53 KmsKeyArn => 'My__string',
54 }, # OPTIONAL
55 }, # OPTIONAL
56 ExportRevisionsToS3 => {
57 DataSetId => 'MyId',
58 RevisionDestinations => [
59 {
60 Bucket => 'My__string',
61 RevisionId => 'MyId',
62 KeyPattern => 'My__string',
63 },
64 ...
65 ],
66 Encryption => {
67 Type => 'aws:kms', # values: aws:kms, AES256
68 KmsKeyArn => 'My__string',
69 }, # OPTIONAL
70 }, # OPTIONAL
71 ImportAssetFromSignedUrl => {
72 AssetName => 'MyAssetName',
73 DataSetId => 'MyId',
74 Md5Hash => 'My__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093'
75 , # min: 24, max: 24
76 RevisionId => 'MyId',
77  
78 }, # OPTIONAL
79 ImportAssetsFromS3 => {
80 AssetSources => [
81 {
82 Bucket => 'My__string',
83 Key => 'My__string',
84  
85 },
86 ...
87 ],
88 DataSetId => 'MyId',
89 RevisionId => 'MyId',
90  
91 }, # OPTIONAL
92 },
93 Type => 'IMPORT_ASSETS_FROM_S3',
94  
95 );
96  
97 # Results:
98 my $Arn = $CreateJobResponse->Arn;
99 my $CreatedAt = $CreateJobResponse->CreatedAt;
100 my $Details = $CreateJobResponse->Details;
101 my $Errors = $CreateJobResponse->Errors;
102 my $Id = $CreateJobResponse->Id;
103 my $State = $CreateJobResponse->State;
104 my $Type = $CreateJobResponse->Type;
105 my $UpdatedAt = $CreateJobResponse->UpdatedAt;
106  
107 # Returns a L<Paws::DataExchange::CreateJobResponse> object.
108  
109 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.
110 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dataexchange/CreateJob>
111  
112 =head1 ATTRIBUTES
113  
114  
115 =head2 B<REQUIRED> Details => L<Paws::DataExchange::RequestDetails>
116  
117 The details for the CreateJob request.
118  
119  
120  
121 =head2 B<REQUIRED> Type => Str
122  
123 The type of job to be created.
124  
125 Valid values are: C<"IMPORT_ASSETS_FROM_S3">, C<"IMPORT_ASSET_FROM_SIGNED_URL">, C<"EXPORT_ASSETS_TO_S3">, C<"EXPORT_ASSET_TO_SIGNED_URL">, C<"EXPORT_REVISIONS_TO_S3">
126  
127  
128 =head1 SEE ALSO
129  
130 This class forms part of L<Paws>, documenting arguments for method CreateJob in L<Paws::DataExchange>
131  
132 =head1 BUGS and CONTRIBUTIONS
133  
134 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
135  
136 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
137  
138 =cut
139