blib/lib/Paws/SageMaker/CreateArtifact.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::CreateArtifact;
3 use Moose;
4 has ArtifactName => (is => 'ro', isa => 'Str');
5 has ArtifactType => (is => 'ro', isa => 'Str', required => 1);
6 has MetadataProperties => (is => 'ro', isa => 'Paws::SageMaker::MetadataProperties');
7 has Properties => (is => 'ro', isa => 'Paws::SageMaker::LineageEntityParameters');
8 has Source => (is => 'ro', isa => 'Paws::SageMaker::ArtifactSource', 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 => 'CreateArtifact');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SageMaker::CreateArtifactResponse');
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::CreateArtifact - Arguments for method CreateArtifact on L<Paws::SageMaker>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateArtifact on the
27 L<Amazon SageMaker Service|Paws::SageMaker> service. Use the attributes of this class
28 as arguments to method CreateArtifact.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateArtifact.
31  
32 =head1 SYNOPSIS
33  
34 my $api.sagemaker = Paws->service('SageMaker');
35 my $CreateArtifactResponse = $api . sagemaker->CreateArtifact(
36 ArtifactType => 'MyString256',
37 Source => {
38 SourceUri => 'MyString2048', # max: 2048
39 SourceTypes => [
40 {
41 SourceIdType =>
42 'MD5Hash', # values: MD5Hash, S3ETag, S3Version, Custom
43 Value => 'MyString256', # max: 256
44  
45 },
46 ...
47 ], # OPTIONAL
48 },
49 ArtifactName => 'MyExperimentEntityName', # OPTIONAL
50 MetadataProperties => {
51 CommitId => 'MyMetadataPropertyValue', # max: 1024; OPTIONAL
52 GeneratedBy => 'MyMetadataPropertyValue', # max: 1024; OPTIONAL
53 ProjectId => 'MyMetadataPropertyValue', # max: 1024; OPTIONAL
54 Repository => 'MyMetadataPropertyValue', # max: 1024; OPTIONAL
55 }, # OPTIONAL
56 Properties => {
57 'MyStringParameterValue' =>
58 'MyStringParameterValue', # key: max: 256, value: max: 256
59 }, # OPTIONAL
60 Tags => [
61 {
62 Key => 'MyTagKey', # min: 1, max: 128
63 Value => 'MyTagValue', # max: 256
64  
65 },
66 ...
67 ], # OPTIONAL
68 );
69  
70 # Results:
71 my $ArtifactArn = $CreateArtifactResponse->ArtifactArn;
72  
73 # Returns a L<Paws::SageMaker::CreateArtifactResponse> object.
74  
75 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.
76 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateArtifact>
77  
78 =head1 ATTRIBUTES
79  
80  
81 =head2 ArtifactName => Str
82  
83 The name of the artifact. Must be unique to your account in an Amazon
84 Web Services Region.
85  
86  
87  
88 =head2 B<REQUIRED> ArtifactType => Str
89  
90 The artifact type.
91  
92  
93  
94 =head2 MetadataProperties => L<Paws::SageMaker::MetadataProperties>
95  
96  
97  
98  
99  
100 =head2 Properties => L<Paws::SageMaker::LineageEntityParameters>
101  
102 A list of properties to add to the artifact.
103  
104  
105  
106 =head2 B<REQUIRED> Source => L<Paws::SageMaker::ArtifactSource>
107  
108 The ID, ID type, and URI of the source.
109  
110  
111  
112 =head2 Tags => ArrayRef[L<Paws::SageMaker::Tag>]
113  
114 A list of tags to apply to the artifact.
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method CreateArtifact in L<Paws::SageMaker>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130