blib/lib/Paws/EMR/StartNotebookExecution.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EMR::StartNotebookExecution;
3 use Moose;
4 has EditorId => (is => 'ro', isa => 'Str', required => 1);
5 has ExecutionEngine => (is => 'ro', isa => 'Paws::EMR::ExecutionEngineConfig', required => 1);
6 has NotebookExecutionName => (is => 'ro', isa => 'Str');
7 has NotebookInstanceSecurityGroupId => (is => 'ro', isa => 'Str');
8 has NotebookParams => (is => 'ro', isa => 'Str');
9 has RelativePath => (is => 'ro', isa => 'Str', required => 1);
10 has ServiceRole => (is => 'ro', isa => 'Str', required => 1);
11 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Tag]');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartNotebookExecution');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EMR::StartNotebookExecutionOutput');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::EMR::StartNotebookExecution - Arguments for method StartNotebookExecution on L<Paws::EMR>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method StartNotebookExecution on the
29 L<Amazon Elastic MapReduce|Paws::EMR> service. Use the attributes of this class
30 as arguments to method StartNotebookExecution.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartNotebookExecution.
33  
34 =head1 SYNOPSIS
35  
36 my $elasticmapreduce = Paws->service('EMR');
37 my $StartNotebookExecutionOutput =
38 $elasticmapreduce->StartNotebookExecution(
39 EditorId => 'MyXmlStringMaxLen256',
40 ExecutionEngine => {
41 Id => 'MyXmlStringMaxLen256', # max: 256
42 MasterInstanceSecurityGroupId => 'MyXmlStringMaxLen256', # max: 256
43 Type => 'EMR', # values: EMR; OPTIONAL
44 },
45 RelativePath => 'MyXmlString',
46 ServiceRole => 'MyXmlString',
47 NotebookExecutionName => 'MyXmlStringMaxLen256', # OPTIONAL
48 NotebookInstanceSecurityGroupId => 'MyXmlStringMaxLen256', # OPTIONAL
49 NotebookParams => 'MyXmlString', # OPTIONAL
50 Tags => [
51 {
52 Key => 'MyString', # OPTIONAL
53 Value => 'MyString', # OPTIONAL
54 },
55 ...
56 ], # OPTIONAL
57 );
58  
59 # Results:
60 my $NotebookExecutionId =
61 $StartNotebookExecutionOutput->NotebookExecutionId;
62  
63 # Returns a L<Paws::EMR::StartNotebookExecutionOutput> object.
64  
65 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.
66 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce/StartNotebookExecution>
67  
68 =head1 ATTRIBUTES
69  
70  
71 =head2 B<REQUIRED> EditorId => Str
72  
73 The unique identifier of the EMR Notebook to use for notebook
74 execution.
75  
76  
77  
78 =head2 B<REQUIRED> ExecutionEngine => L<Paws::EMR::ExecutionEngineConfig>
79  
80 Specifies the execution engine (cluster) that runs the notebook
81 execution.
82  
83  
84  
85 =head2 NotebookExecutionName => Str
86  
87 An optional name for the notebook execution.
88  
89  
90  
91 =head2 NotebookInstanceSecurityGroupId => Str
92  
93 The unique identifier of the Amazon EC2 security group to associate
94 with the EMR Notebook for this notebook execution.
95  
96  
97  
98 =head2 NotebookParams => Str
99  
100 Input parameters in JSON format passed to the EMR Notebook at runtime
101 for execution.
102  
103  
104  
105 =head2 B<REQUIRED> RelativePath => Str
106  
107 The path and file name of the notebook file for this execution,
108 relative to the path specified for the EMR Notebook. For example, if
109 you specify a path of C<s3://MyBucket/MyNotebooks> when you create an
110 EMR Notebook for a notebook with an ID of
111 C<e-ABCDEFGHIJK1234567890ABCD> (the C<EditorID> of this request), and
112 you specify a C<RelativePath> of
113 C<my_notebook_executions/notebook_execution.ipynb>, the location of the
114 file for the notebook execution is
115 C<s3://MyBucket/MyNotebooks/e-ABCDEFGHIJK1234567890ABCD/my_notebook_executions/notebook_execution.ipynb>.
116  
117  
118  
119 =head2 B<REQUIRED> ServiceRole => Str
120  
121 The name or ARN of the IAM role that is used as the service role for
122 Amazon EMR (the EMR role) for the notebook execution.
123  
124  
125  
126 =head2 Tags => ArrayRef[L<Paws::EMR::Tag>]
127  
128 A list of tags associated with a notebook execution. Tags are
129 user-defined key-value pairs that consist of a required key string with
130 a maximum of 128 characters and an optional value string with a maximum
131 of 256 characters.
132  
133  
134  
135  
136 =head1 SEE ALSO
137  
138 This class forms part of L<Paws>, documenting arguments for method StartNotebookExecution in L<Paws::EMR>
139  
140 =head1 BUGS and CONTRIBUTIONS
141  
142 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
143  
144 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
145  
146 =cut
147