blib/lib/Paws/Personalize/CreateCampaign.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::Personalize::CreateCampaign;
3 use Moose;
4 has CampaignConfig => (is => 'ro', isa => 'Paws::Personalize::CampaignConfig', traits => ['NameInRequest'], request_name => 'campaignConfig' );
5 has MinProvisionedTPS => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'minProvisionedTPS' , required => 1);
6 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
7 has SolutionVersionArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'solutionVersionArn' , required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCampaign');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Personalize::CreateCampaignResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Personalize::CreateCampaign - Arguments for method CreateCampaign on L<Paws::Personalize>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateCampaign on the
25 L<Amazon Personalize|Paws::Personalize> service. Use the attributes of this class
26 as arguments to method CreateCampaign.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCampaign.
29  
30 =head1 SYNOPSIS
31  
32 my $personalize = Paws->service('Personalize');
33 my $CreateCampaignResponse = $personalize->CreateCampaign(
34 MinProvisionedTPS => 1,
35 Name => 'MyName',
36 SolutionVersionArn => 'MyArn',
37 CampaignConfig => {
38 ItemExplorationConfig => {
39 'MyParameterName' =>
40 'MyParameterValue', # key: max: 256, value: max: 1000
41 }, # max: 100; OPTIONAL
42 }, # OPTIONAL
43 );
44  
45 # Results:
46 my $CampaignArn = $CreateCampaignResponse->CampaignArn;
47  
48 # Returns a L<Paws::Personalize::CreateCampaignResponse> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/personalize/CreateCampaign>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 CampaignConfig => L<Paws::Personalize::CampaignConfig>
57  
58 The configuration details of a campaign.
59  
60  
61  
62 =head2 B<REQUIRED> MinProvisionedTPS => Int
63  
64 Specifies the requested minimum provisioned transactions
65 (recommendations) per second that Amazon Personalize will support.
66  
67  
68  
69 =head2 B<REQUIRED> Name => Str
70  
71 A name for the new campaign. The campaign name must be unique within
72 your account.
73  
74  
75  
76 =head2 B<REQUIRED> SolutionVersionArn => Str
77  
78 The Amazon Resource Name (ARN) of the solution version to deploy.
79  
80  
81  
82  
83 =head1 SEE ALSO
84  
85 This class forms part of L<Paws>, documenting arguments for method CreateCampaign in L<Paws::Personalize>
86  
87 =head1 BUGS and CONTRIBUTIONS
88  
89 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
90  
91 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
92  
93 =cut
94