blib/lib/Paws/EMRContainers/StartJobRun.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EMRContainers::StartJobRun;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken', required => 1);
5 has ConfigurationOverrides => (is => 'ro', isa => 'Paws::EMRContainers::ConfigurationOverrides', traits => ['NameInRequest'], request_name => 'configurationOverrides');
6 has ExecutionRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'executionRoleArn', required => 1);
7 has JobDriver => (is => 'ro', isa => 'Paws::EMRContainers::JobDriver', traits => ['NameInRequest'], request_name => 'jobDriver', required => 1);
8 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name');
9 has ReleaseLabel => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'releaseLabel', required => 1);
10 has Tags => (is => 'ro', isa => 'Paws::EMRContainers::TagMap', traits => ['NameInRequest'], request_name => 'tags');
11 has VirtualClusterId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'virtualClusterId', required => 1);
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartJobRun');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/virtualclusters/{virtualClusterId}/jobruns');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EMRContainers::StartJobRunResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::EMRContainers::StartJobRun - Arguments for method StartJobRun on L<Paws::EMRContainers>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method StartJobRun on the
30 L<Amazon EMR Containers|Paws::EMRContainers> service. Use the attributes of this class
31 as arguments to method StartJobRun.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartJobRun.
34  
35 =head1 SYNOPSIS
36  
37 my $emr-containers = Paws->service('EMRContainers');
38 my $StartJobRunResponse = $emr -containers->StartJobRun(
39 ClientToken => 'MyClientToken',
40 ExecutionRoleArn => 'MyIAMRoleArn',
41 JobDriver => {
42 SparkSubmitJobDriver => {
43 EntryPoint => 'MyEntryPointPath', # min: 1, max: 256
44 EntryPointArguments => [
45 'MyEntryPointArgument', ... # min: 1, max: 10280
46 ], # OPTIONAL
47 SparkSubmitParameters =>
48 'MySparkSubmitParameters', # min: 1, max: 1024; OPTIONAL
49 }, # OPTIONAL
50 },
51 ReleaseLabel => 'MyReleaseLabel',
52 VirtualClusterId => 'MyResourceIdString',
53 ConfigurationOverrides => {
54 ApplicationConfiguration => [
55 {
56 Classification => 'MyString1024', # min: 1, max: 1024
57 Configurations => <ConfigurationList>,
58 Properties => {
59 'MyString1024' => 'MyString1024'
60 , # key: min: 1, max: 1024, value: min: 1, max: 1024
61 }, # max: 100; OPTIONAL
62 },
63 ...
64 ], # max: 100; OPTIONAL
65 MonitoringConfiguration => {
66 CloudWatchMonitoringConfiguration => {
67 LogGroupName => 'MyLogGroupName', # min: 1, max: 512
68 LogStreamNamePrefix => 'MyString256', # min: 1, max: 256; OPTIONAL
69 }, # OPTIONAL
70 PersistentAppUI => 'ENABLED', # values: ENABLED, DISABLED; OPTIONAL
71 S3MonitoringConfiguration => {
72 LogUri => 'MyUriString', # min: 1, max: 10280
73  
74 }, # OPTIONAL
75 }, # OPTIONAL
76 }, # OPTIONAL
77 Name => 'MyResourceNameString', # OPTIONAL
78 Tags => {
79 'MyString128' =>
80 'MyStringEmpty256', # key: min: 1, max: 128, value: max: 256
81 }, # OPTIONAL
82 );
83  
84 # Results:
85 my $Arn = $StartJobRunResponse->Arn;
86 my $Id = $StartJobRunResponse->Id;
87 my $Name = $StartJobRunResponse->Name;
88 my $VirtualClusterId = $StartJobRunResponse->VirtualClusterId;
89  
90 # Returns a L<Paws::EMRContainers::StartJobRunResponse> object.
91  
92 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.
93 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/emr-containers/StartJobRun>
94  
95 =head1 ATTRIBUTES
96  
97  
98 =head2 B<REQUIRED> ClientToken => Str
99  
100 The client idempotency token of the job run request.
101  
102  
103  
104 =head2 ConfigurationOverrides => L<Paws::EMRContainers::ConfigurationOverrides>
105  
106 The configuration overrides for the job run.
107  
108  
109  
110 =head2 B<REQUIRED> ExecutionRoleArn => Str
111  
112 The execution role ARN for the job run.
113  
114  
115  
116 =head2 B<REQUIRED> JobDriver => L<Paws::EMRContainers::JobDriver>
117  
118 The job driver for the job run.
119  
120  
121  
122 =head2 Name => Str
123  
124 The name of the job run.
125  
126  
127  
128 =head2 B<REQUIRED> ReleaseLabel => Str
129  
130 The Amazon EMR release version to use for the job run.
131  
132  
133  
134 =head2 Tags => L<Paws::EMRContainers::TagMap>
135  
136 The tags assigned to job runs.
137  
138  
139  
140 =head2 B<REQUIRED> VirtualClusterId => Str
141  
142 The virtual cluster ID for which the job run request is submitted.
143  
144  
145  
146  
147 =head1 SEE ALSO
148  
149 This class forms part of L<Paws>, documenting arguments for method StartJobRun in L<Paws::EMRContainers>
150  
151 =head1 BUGS and CONTRIBUTIONS
152  
153 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
154  
155 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
156  
157 =cut
158