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