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

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppMesh::CreateVirtualRouter;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
5 has MeshName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'meshName', required => 1);
6 has MeshOwner => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'meshOwner');
7 has Spec => (is => 'ro', isa => 'Paws::AppMesh::VirtualRouterSpec', traits => ['NameInRequest'], request_name => 'spec', required => 1);
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AppMesh::TagRef]', traits => ['NameInRequest'], request_name => 'tags');
9 has VirtualRouterName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'virtualRouterName', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVirtualRouter');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v20190125/meshes/{meshName}/virtualRouters');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppMesh::CreateVirtualRouterOutput');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::AppMesh::CreateVirtualRouter - Arguments for method CreateVirtualRouter on L<Paws::AppMesh>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateVirtualRouter on the
28 L<AWS App Mesh|Paws::AppMesh> service. Use the attributes of this class
29 as arguments to method CreateVirtualRouter.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVirtualRouter.
32  
33 =head1 SYNOPSIS
34  
35 my $appmesh = Paws->service('AppMesh');
36 my $CreateVirtualRouterOutput = $appmesh->CreateVirtualRouter(
37 MeshName => 'MyResourceName',
38 Spec => {
39 Listeners => [
40 {
41 PortMapping => {
42 Port => 1, # min: 1, max: 65535
43 Protocol => 'http', # values: http, tcp, http2, grpc
44  
45 },
46  
47 },
48 ...
49 ], # min: 1, max: 1; OPTIONAL
50 },
51 VirtualRouterName => 'MyResourceName',
52 ClientToken => 'MyString', # OPTIONAL
53 MeshOwner => 'MyAccountId', # OPTIONAL
54 Tags => [
55 {
56 Key => 'MyTagKey', # min: 1, max: 128
57 Value => 'MyTagValue', # max: 256
58  
59 },
60 ...
61 ], # OPTIONAL
62 );
63  
64 # Results:
65 my $VirtualRouter = $CreateVirtualRouterOutput->VirtualRouter;
66  
67 # Returns a L<Paws::AppMesh::CreateVirtualRouterOutput> object.
68  
69 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.
70 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appmesh/CreateVirtualRouter>
71  
72 =head1 ATTRIBUTES
73  
74  
75 =head2 ClientToken => Str
76  
77 Unique, case-sensitive identifier that you provide to ensure the
78 idempotency of the request. Up to 36 letters, numbers, hyphens, and
79 underscores are allowed.
80  
81  
82  
83 =head2 B<REQUIRED> MeshName => Str
84  
85 The name of the service mesh to create the virtual router in.
86  
87  
88  
89 =head2 MeshOwner => Str
90  
91 The AWS IAM account ID of the service mesh owner. If the account ID is
92 not your own, then the account that you specify must share the mesh
93 with your account before you can create the resource in the service
94 mesh. For more information about mesh sharing, see Working with shared
95 meshes
96 (https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html).
97  
98  
99  
100 =head2 B<REQUIRED> Spec => L<Paws::AppMesh::VirtualRouterSpec>
101  
102 The virtual router specification to apply.
103  
104  
105  
106 =head2 Tags => ArrayRef[L<Paws::AppMesh::TagRef>]
107  
108 Optional metadata that you can apply to the virtual router to assist
109 with categorization and organization. Each tag consists of a key and an
110 optional value, both of which you define. Tag keys can have a maximum
111 character length of 128 characters, and tag values can have a maximum
112 length of 256 characters.
113  
114  
115  
116 =head2 B<REQUIRED> VirtualRouterName => Str
117  
118 The name to use for the virtual router.
119  
120  
121  
122  
123 =head1 SEE ALSO
124  
125 This class forms part of L<Paws>, documenting arguments for method CreateVirtualRouter in L<Paws::AppMesh>
126  
127 =head1 BUGS and CONTRIBUTIONS
128  
129 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
130  
131 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
132  
133 =cut
134