File Coverage

blib/lib/Paws/ServiceCatalog/CreateConstraint.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ServiceCatalog::CreateConstraint;
3 1     1   267 use Moose;
  1         3  
  1         6  
4             has AcceptLanguage => (is => 'ro', isa => 'Str');
5             has Description => (is => 'ro', isa => 'Str');
6             has IdempotencyToken => (is => 'ro', isa => 'Str', required => 1);
7             has Parameters => (is => 'ro', isa => 'Str', required => 1);
8             has PortfolioId => (is => 'ro', isa => 'Str', required => 1);
9             has ProductId => (is => 'ro', isa => 'Str', required => 1);
10             has Type => (is => 'ro', isa => 'Str', required => 1);
11              
12 1     1   5389 use MooseX::ClassAttribute;
  1         2  
  1         7  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateConstraint');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ServiceCatalog::CreateConstraintOutput');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::ServiceCatalog::CreateConstraint - Arguments for method CreateConstraint on Paws::ServiceCatalog
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateConstraint on the
28             AWS Service Catalog service. Use the attributes of this class
29             as arguments to method CreateConstraint.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateConstraint.
32              
33             As an example:
34              
35             $service_obj->CreateConstraint(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 AcceptLanguage => Str
43              
44             The language code.
45              
46             =over
47              
48             =item *
49              
50             C<en> - English (default)
51              
52             =item *
53              
54             C<jp> - Japanese
55              
56             =item *
57              
58             C<zh> - Chinese
59              
60             =back
61              
62              
63              
64              
65             =head2 Description => Str
66              
67             The text description of the constraint.
68              
69              
70              
71             =head2 B<REQUIRED> IdempotencyToken => Str
72              
73             A token to disambiguate duplicate requests. You can use the same input
74             in multiple requests, provided that you also specify a different
75             idempotency token for each request.
76              
77              
78              
79             =head2 B<REQUIRED> Parameters => Str
80              
81             The constraint parameters. Expected values vary depending on which
82             B<Type> is specified. For more information, see the Examples section.
83              
84             For Type C<LAUNCH>, the C<RoleArn> property is required.
85              
86             For Type C<NOTIFICATION>, the C<NotificationArns> property is required.
87              
88             For Type C<TEMPLATE>, the C<Rules> property is required.
89              
90              
91              
92             =head2 B<REQUIRED> PortfolioId => Str
93              
94             The portfolio identifier.
95              
96              
97              
98             =head2 B<REQUIRED> ProductId => Str
99              
100             The product identifier.
101              
102              
103              
104             =head2 B<REQUIRED> Type => Str
105              
106             The type of the constraint. Case-sensitive valid values are: C<LAUNCH>,
107             C<NOTIFICATION>, or C<TEMPLATE>.
108              
109              
110              
111              
112             =head1 SEE ALSO
113              
114             This class forms part of L<Paws>, documenting arguments for method CreateConstraint in L<Paws::ServiceCatalog>
115              
116             =head1 BUGS and CONTRIBUTIONS
117              
118             The source code is located here: https://github.com/pplu/aws-sdk-perl
119              
120             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
121              
122             =cut
123