blib/lib/Paws/SageMaker/CreateContext.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SageMaker::CreateContext;
3 use Moose;
4 has ContextName => (is => 'ro', isa => 'Str', required => 1);
5 has ContextType => (is => 'ro', isa => 'Str', required => 1);
6 has Description => (is => 'ro', isa => 'Str');
7 has Properties => (is => 'ro', isa => 'Paws::SageMaker::LineageEntityParameters');
8 has Source => (is => 'ro', isa => 'Paws::SageMaker::ContextSource', required => 1);
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SageMaker::Tag]');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateContext');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SageMaker::CreateContextResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::SageMaker::CreateContext - Arguments for method CreateContext on L<Paws::SageMaker>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateContext on the
27 L<Amazon SageMaker Service|Paws::SageMaker> service. Use the attributes of this class
28 as arguments to method CreateContext.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateContext.
31  
32 =head1 SYNOPSIS
33  
34 my $api.sagemaker = Paws->service('SageMaker');
35 my $CreateContextResponse = $api . sagemaker->CreateContext(
36 ContextName => 'MyExperimentEntityName',
37 ContextType => 'MyString256',
38 Source => {
39 SourceUri => 'MyString2048', # max: 2048
40 SourceId => 'MyString256', # max: 256
41 SourceType => 'MyString256', # max: 256
42 },
43 Description => 'MyExperimentDescription', # OPTIONAL
44 Properties => {
45 'MyStringParameterValue' =>
46 'MyStringParameterValue', # key: max: 256, value: max: 256
47 }, # OPTIONAL
48 Tags => [
49 {
50 Key => 'MyTagKey', # min: 1, max: 128
51 Value => 'MyTagValue', # max: 256
52  
53 },
54 ...
55 ], # OPTIONAL
56 );
57  
58 # Results:
59 my $ContextArn = $CreateContextResponse->ContextArn;
60  
61 # Returns a L<Paws::SageMaker::CreateContextResponse> object.
62  
63 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.
64 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateContext>
65  
66 =head1 ATTRIBUTES
67  
68  
69 =head2 B<REQUIRED> ContextName => Str
70  
71 The name of the context. Must be unique to your account in an Amazon
72 Web Services Region.
73  
74  
75  
76 =head2 B<REQUIRED> ContextType => Str
77  
78 The context type.
79  
80  
81  
82 =head2 Description => Str
83  
84 The description of the context.
85  
86  
87  
88 =head2 Properties => L<Paws::SageMaker::LineageEntityParameters>
89  
90 A list of properties to add to the context.
91  
92  
93  
94 =head2 B<REQUIRED> Source => L<Paws::SageMaker::ContextSource>
95  
96 The source type, ID, and URI.
97  
98  
99  
100 =head2 Tags => ArrayRef[L<Paws::SageMaker::Tag>]
101  
102 A list of tags to apply to the context.
103  
104  
105  
106  
107 =head1 SEE ALSO
108  
109 This class forms part of L<Paws>, documenting arguments for method CreateContext in L<Paws::SageMaker>
110  
111 =head1 BUGS and CONTRIBUTIONS
112  
113 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
114  
115 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
116  
117 =cut
118