| 1 | |||
| 2 | package Paws::AppMesh::UpdateRoute; | ||
| 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 RouteName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'routeName', required => 1); | ||
| 8 | has Spec => (is => 'ro', isa => 'Paws::AppMesh::RouteSpec', traits => ['NameInRequest'], request_name => 'spec', required => 1); | ||
| 9 | has VirtualRouterName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'virtualRouterName', required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRoute'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppMesh::UpdateRouteOutput'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::AppMesh::UpdateRoute - Arguments for method UpdateRoute on L<Paws::AppMesh> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method UpdateRoute on the | ||
| 28 | L<AWS App Mesh|Paws::AppMesh> service. Use the attributes of this class | ||
| 29 | as arguments to method UpdateRoute. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRoute. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $appmesh = Paws->service('AppMesh'); | ||
| 36 | my $UpdateRouteOutput = $appmesh->UpdateRoute( | ||
| 37 | MeshName => 'MyResourceName', | ||
| 38 | RouteName => 'MyResourceName', | ||
| 39 | Spec => { | ||
| 40 | GrpcRoute => { | ||
| 41 | Action => { | ||
| 42 | WeightedTargets => [ | ||
| 43 | { | ||
| 44 | VirtualNode => 'MyResourceName', # min: 1, max: 255 | ||
| 45 | Weight => 1, # max: 100 | ||
| 46 | |||
| 47 | }, | ||
| 48 | ... | ||
| 49 | ], # min: 1, max: 10 | ||
| 50 | |||
| 51 | }, | ||
| 52 | Match => { | ||
| 53 | Metadata => [ | ||
| 54 | { | ||
| 55 | Name => 'MyHeaderName', # min: 1, max: 50 | ||
| 56 | Invert => 1, # OPTIONAL | ||
| 57 | Match => { | ||
| 58 | Exact => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 59 | Prefix => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 60 | Range => { | ||
| 61 | End => 1, | ||
| 62 | Start => 1, | ||
| 63 | |||
| 64 | }, # OPTIONAL | ||
| 65 | Regex => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 66 | Suffix => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 67 | }, # OPTIONAL | ||
| 68 | }, | ||
| 69 | ... | ||
| 70 | ], # min: 1, max: 10; OPTIONAL | ||
| 71 | MethodName => 'MyMethodName', # min: 1, max: 50; OPTIONAL | ||
| 72 | ServiceName => 'MyServiceName', # OPTIONAL | ||
| 73 | }, | ||
| 74 | RetryPolicy => { | ||
| 75 | MaxRetries => 1, | ||
| 76 | PerRetryTimeout => { | ||
| 77 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 78 | Value => 1, # OPTIONAL | ||
| 79 | }, | ||
| 80 | GrpcRetryEvents => [ | ||
| 81 | 'cancelled', | ||
| 82 | ... # values: cancelled, deadline-exceeded, internal, resource-exhausted, unavailable | ||
| 83 | ], # min: 1, max: 5; OPTIONAL | ||
| 84 | HttpRetryEvents => [ | ||
| 85 | 'MyHttpRetryPolicyEvent', ... # min: 1, max: 25 | ||
| 86 | ], # min: 1, max: 25; OPTIONAL | ||
| 87 | TcpRetryEvents => [ | ||
| 88 | 'connection-error', ... # values: connection-error | ||
| 89 | ], # min: 1, max: 1; OPTIONAL | ||
| 90 | }, # OPTIONAL | ||
| 91 | Timeout => { | ||
| 92 | Idle => { | ||
| 93 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 94 | Value => 1, # OPTIONAL | ||
| 95 | }, | ||
| 96 | PerRequest => { | ||
| 97 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 98 | Value => 1, # OPTIONAL | ||
| 99 | }, | ||
| 100 | }, # OPTIONAL | ||
| 101 | }, # OPTIONAL | ||
| 102 | Http2Route => { | ||
| 103 | Action => { | ||
| 104 | WeightedTargets => [ | ||
| 105 | { | ||
| 106 | VirtualNode => 'MyResourceName', # min: 1, max: 255 | ||
| 107 | Weight => 1, # max: 100 | ||
| 108 | |||
| 109 | }, | ||
| 110 | ... | ||
| 111 | ], # min: 1, max: 10 | ||
| 112 | |||
| 113 | }, | ||
| 114 | Match => { | ||
| 115 | Headers => [ | ||
| 116 | { | ||
| 117 | Name => 'MyHeaderName', # min: 1, max: 50 | ||
| 118 | Invert => 1, # OPTIONAL | ||
| 119 | Match => { | ||
| 120 | Exact => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 121 | Prefix => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 122 | Range => { | ||
| 123 | End => 1, | ||
| 124 | Start => 1, | ||
| 125 | |||
| 126 | }, # OPTIONAL | ||
| 127 | Regex => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 128 | Suffix => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 129 | }, # OPTIONAL | ||
| 130 | }, | ||
| 131 | ... | ||
| 132 | ], # min: 1, max: 10; OPTIONAL | ||
| 133 | Method => 'GET' | ||
| 134 | , # values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH; OPTIONAL | ||
| 135 | Path => { | ||
| 136 | Exact => 'MyHttpPathExact', # min: 1, max: 255; OPTIONAL | ||
| 137 | Regex => 'MyHttpPathRegex', # min: 1, max: 255; OPTIONAL | ||
| 138 | }, # OPTIONAL | ||
| 139 | Prefix => 'MyString', # OPTIONAL | ||
| 140 | QueryParameters => [ | ||
| 141 | { | ||
| 142 | Name => 'MyQueryParameterName', | ||
| 143 | Match => { | ||
| 144 | Exact => 'MyString', # OPTIONAL | ||
| 145 | }, # OPTIONAL | ||
| 146 | }, | ||
| 147 | ... | ||
| 148 | ], # min: 1, max: 10; OPTIONAL | ||
| 149 | Scheme => 'http', # values: http, https; OPTIONAL | ||
| 150 | }, | ||
| 151 | RetryPolicy => { | ||
| 152 | MaxRetries => 1, | ||
| 153 | PerRetryTimeout => { | ||
| 154 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 155 | Value => 1, # OPTIONAL | ||
| 156 | }, | ||
| 157 | HttpRetryEvents => [ | ||
| 158 | 'MyHttpRetryPolicyEvent', ... # min: 1, max: 25 | ||
| 159 | ], # min: 1, max: 25; OPTIONAL | ||
| 160 | TcpRetryEvents => [ | ||
| 161 | 'connection-error', ... # values: connection-error | ||
| 162 | ], # min: 1, max: 1; OPTIONAL | ||
| 163 | }, # OPTIONAL | ||
| 164 | Timeout => { | ||
| 165 | Idle => { | ||
| 166 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 167 | Value => 1, # OPTIONAL | ||
| 168 | }, | ||
| 169 | PerRequest => { | ||
| 170 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 171 | Value => 1, # OPTIONAL | ||
| 172 | }, | ||
| 173 | }, # OPTIONAL | ||
| 174 | }, # OPTIONAL | ||
| 175 | HttpRoute => { | ||
| 176 | Action => { | ||
| 177 | WeightedTargets => [ | ||
| 178 | { | ||
| 179 | VirtualNode => 'MyResourceName', # min: 1, max: 255 | ||
| 180 | Weight => 1, # max: 100 | ||
| 181 | |||
| 182 | }, | ||
| 183 | ... | ||
| 184 | ], # min: 1, max: 10 | ||
| 185 | |||
| 186 | }, | ||
| 187 | Match => { | ||
| 188 | Headers => [ | ||
| 189 | { | ||
| 190 | Name => 'MyHeaderName', # min: 1, max: 50 | ||
| 191 | Invert => 1, # OPTIONAL | ||
| 192 | Match => { | ||
| 193 | Exact => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 194 | Prefix => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 195 | Range => { | ||
| 196 | End => 1, | ||
| 197 | Start => 1, | ||
| 198 | |||
| 199 | }, # OPTIONAL | ||
| 200 | Regex => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 201 | Suffix => 'MyHeaderMatch', # min: 1, max: 255; OPTIONAL | ||
| 202 | }, # OPTIONAL | ||
| 203 | }, | ||
| 204 | ... | ||
| 205 | ], # min: 1, max: 10; OPTIONAL | ||
| 206 | Method => 'GET' | ||
| 207 | , # values: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH; OPTIONAL | ||
| 208 | Path => { | ||
| 209 | Exact => 'MyHttpPathExact', # min: 1, max: 255; OPTIONAL | ||
| 210 | Regex => 'MyHttpPathRegex', # min: 1, max: 255; OPTIONAL | ||
| 211 | }, # OPTIONAL | ||
| 212 | Prefix => 'MyString', # OPTIONAL | ||
| 213 | QueryParameters => [ | ||
| 214 | { | ||
| 215 | Name => 'MyQueryParameterName', | ||
| 216 | Match => { | ||
| 217 | Exact => 'MyString', # OPTIONAL | ||
| 218 | }, # OPTIONAL | ||
| 219 | }, | ||
| 220 | ... | ||
| 221 | ], # min: 1, max: 10; OPTIONAL | ||
| 222 | Scheme => 'http', # values: http, https; OPTIONAL | ||
| 223 | }, | ||
| 224 | RetryPolicy => { | ||
| 225 | MaxRetries => 1, | ||
| 226 | PerRetryTimeout => { | ||
| 227 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 228 | Value => 1, # OPTIONAL | ||
| 229 | }, | ||
| 230 | HttpRetryEvents => [ | ||
| 231 | 'MyHttpRetryPolicyEvent', ... # min: 1, max: 25 | ||
| 232 | ], # min: 1, max: 25; OPTIONAL | ||
| 233 | TcpRetryEvents => [ | ||
| 234 | 'connection-error', ... # values: connection-error | ||
| 235 | ], # min: 1, max: 1; OPTIONAL | ||
| 236 | }, # OPTIONAL | ||
| 237 | Timeout => { | ||
| 238 | Idle => { | ||
| 239 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 240 | Value => 1, # OPTIONAL | ||
| 241 | }, | ||
| 242 | PerRequest => { | ||
| 243 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 244 | Value => 1, # OPTIONAL | ||
| 245 | }, | ||
| 246 | }, # OPTIONAL | ||
| 247 | }, # OPTIONAL | ||
| 248 | Priority => 1, # max: 1000; OPTIONAL | ||
| 249 | TcpRoute => { | ||
| 250 | Action => { | ||
| 251 | WeightedTargets => [ | ||
| 252 | { | ||
| 253 | VirtualNode => 'MyResourceName', # min: 1, max: 255 | ||
| 254 | Weight => 1, # max: 100 | ||
| 255 | |||
| 256 | }, | ||
| 257 | ... | ||
| 258 | ], # min: 1, max: 10 | ||
| 259 | |||
| 260 | }, | ||
| 261 | Timeout => { | ||
| 262 | Idle => { | ||
| 263 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 264 | Value => 1, # OPTIONAL | ||
| 265 | }, | ||
| 266 | }, # OPTIONAL | ||
| 267 | }, # OPTIONAL | ||
| 268 | }, | ||
| 269 | VirtualRouterName => 'MyResourceName', | ||
| 270 | ClientToken => 'MyString', # OPTIONAL | ||
| 271 | MeshOwner => 'MyAccountId', # OPTIONAL | ||
| 272 | ); | ||
| 273 | |||
| 274 | # Results: | ||
| 275 | my $Route = $UpdateRouteOutput->Route; | ||
| 276 | |||
| 277 | # Returns a L<Paws::AppMesh::UpdateRouteOutput> object. | ||
| 278 | |||
| 279 | 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. | ||
| 280 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appmesh/UpdateRoute> | ||
| 281 | |||
| 282 | =head1 ATTRIBUTES | ||
| 283 | |||
| 284 | |||
| 285 | =head2 ClientToken => Str | ||
| 286 | |||
| 287 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 288 | idempotency of the request. Up to 36 letters, numbers, hyphens, and | ||
| 289 | underscores are allowed. | ||
| 290 | |||
| 291 | |||
| 292 | |||
| 293 | =head2 B<REQUIRED> MeshName => Str | ||
| 294 | |||
| 295 | The name of the service mesh that the route resides in. | ||
| 296 | |||
| 297 | |||
| 298 | |||
| 299 | =head2 MeshOwner => Str | ||
| 300 | |||
| 301 | The AWS IAM account ID of the service mesh owner. If the account ID is | ||
| 302 | not your own, then it's the ID of the account that shared the mesh with | ||
| 303 | your account. For more information about mesh sharing, see Working with | ||
| 304 | shared meshes | ||
| 305 | (https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html). | ||
| 306 | |||
| 307 | |||
| 308 | |||
| 309 | =head2 B<REQUIRED> RouteName => Str | ||
| 310 | |||
| 311 | The name of the route to update. | ||
| 312 | |||
| 313 | |||
| 314 | |||
| 315 | =head2 B<REQUIRED> Spec => L<Paws::AppMesh::RouteSpec> | ||
| 316 | |||
| 317 | The new route specification to apply. This overwrites the existing | ||
| 318 | data. | ||
| 319 | |||
| 320 | |||
| 321 | |||
| 322 | =head2 B<REQUIRED> VirtualRouterName => Str | ||
| 323 | |||
| 324 | The name of the virtual router that the route is associated with. | ||
| 325 | |||
| 326 | |||
| 327 | |||
| 328 | |||
| 329 | =head1 SEE ALSO | ||
| 330 | |||
| 331 | This class forms part of L<Paws>, documenting arguments for method UpdateRoute in L<Paws::AppMesh> | ||
| 332 | |||
| 333 | =head1 BUGS and CONTRIBUTIONS | ||
| 334 | |||
| 335 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 336 | |||
| 337 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 338 | |||
| 339 | =cut | ||
| 340 |