blib/lib/Paws/AppMesh/CreateMesh.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppMesh::CreateMesh;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
5 has MeshName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'meshName', required => 1);
6 has Spec => (is => 'ro', isa => 'Paws::AppMesh::MeshSpec', traits => ['NameInRequest'], request_name => 'spec');
7 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AppMesh::TagRef]', traits => ['NameInRequest'], request_name => 'tags');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateMesh');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v20190125/meshes');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppMesh::CreateMeshOutput');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::AppMesh::CreateMesh - Arguments for method CreateMesh on L<Paws::AppMesh>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateMesh on the
26 L<AWS App Mesh|Paws::AppMesh> service. Use the attributes of this class
27 as arguments to method CreateMesh.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateMesh.
30  
31 =head1 SYNOPSIS
32  
33 my $appmesh = Paws->service('AppMesh');
34 my $CreateMeshOutput = $appmesh->CreateMesh(
35 MeshName => 'MyResourceName',
36 ClientToken => 'MyString', # OPTIONAL
37 Spec => {
38 EgressFilter => {
39 Type => 'ALLOW_ALL', # values: ALLOW_ALL, DROP_ALL
40  
41 }, # OPTIONAL
42 }, # OPTIONAL
43 Tags => [
44 {
45 Key => 'MyTagKey', # min: 1, max: 128
46 Value => 'MyTagValue', # max: 256
47  
48 },
49 ...
50 ], # OPTIONAL
51 );
52  
53 # Results:
54 my $Mesh = $CreateMeshOutput->Mesh;
55  
56 # Returns a L<Paws::AppMesh::CreateMeshOutput> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appmesh/CreateMesh>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 ClientToken => Str
65  
66 Unique, case-sensitive identifier that you provide to ensure the
67 idempotency of the request. Up to 36 letters, numbers, hyphens, and
68 underscores are allowed.
69  
70  
71  
72 =head2 B<REQUIRED> MeshName => Str
73  
74 The name to use for the service mesh.
75  
76  
77  
78 =head2 Spec => L<Paws::AppMesh::MeshSpec>
79  
80 The service mesh specification to apply.
81  
82  
83  
84 =head2 Tags => ArrayRef[L<Paws::AppMesh::TagRef>]
85  
86 Optional metadata that you can apply to the service mesh to assist with
87 categorization and organization. Each tag consists of a key and an
88 optional value, both of which you define. Tag keys can have a maximum
89 character length of 128 characters, and tag values can have a maximum
90 length of 256 characters.
91  
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, documenting arguments for method CreateMesh in L<Paws::AppMesh>
98  
99 =head1 BUGS and CONTRIBUTIONS
100  
101 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
102  
103 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
104  
105 =cut
106