« blib/lib/Paws/AppMesh/CreateVirtualGatewayOutput.pm
↑ Summary
blib/lib/Paws/AppMesh/CreateVirtualNodeOutput.pm »
| 1 | |||
| 2 | package Paws::AppMesh::CreateVirtualNode; | ||
| 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::VirtualNodeSpec', traits => ['NameInRequest'], request_name => 'spec', required => 1); | ||
| 8 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AppMesh::TagRef]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 9 | has VirtualNodeName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'virtualNodeName', required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVirtualNode'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v20190125/meshes/{meshName}/virtualNodes'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppMesh::CreateVirtualNodeOutput'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::AppMesh::CreateVirtualNode - Arguments for method CreateVirtualNode on L<Paws::AppMesh> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateVirtualNode on the | ||
| 28 | L<AWS App Mesh|Paws::AppMesh> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateVirtualNode. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVirtualNode. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $appmesh = Paws->service('AppMesh'); | ||
| 36 | my $CreateVirtualNodeOutput = $appmesh->CreateVirtualNode( | ||
| 37 | MeshName => 'MyResourceName', | ||
| 38 | Spec => { | ||
| 39 | BackendDefaults => { | ||
| 40 | ClientPolicy => { | ||
| 41 | Tls => { | ||
| 42 | Validation => { | ||
| 43 | Trust => { | ||
| 44 | Acm => { | ||
| 45 | CertificateAuthorityArns => [ 'MyArn', ... ] | ||
| 46 | , # min: 1, max: 3 | ||
| 47 | |||
| 48 | }, # OPTIONAL | ||
| 49 | File => { | ||
| 50 | CertificateChain => 'MyFilePath', # min: 1, max: 255 | ||
| 51 | |||
| 52 | }, # OPTIONAL | ||
| 53 | Sds => { | ||
| 54 | SecretName => 'MySdsSecretName', | ||
| 55 | |||
| 56 | }, # OPTIONAL | ||
| 57 | }, | ||
| 58 | SubjectAlternativeNames => { | ||
| 59 | Match => { | ||
| 60 | Exact => [ | ||
| 61 | 'MySubjectAlternativeName', ... # min: 1, max: 254 | ||
| 62 | ], | ||
| 63 | |||
| 64 | }, | ||
| 65 | |||
| 66 | }, # OPTIONAL | ||
| 67 | }, | ||
| 68 | Certificate => { | ||
| 69 | File => { | ||
| 70 | CertificateChain => 'MyFilePath', # min: 1, max: 255 | ||
| 71 | PrivateKey => 'MyFilePath', # min: 1, max: 255 | ||
| 72 | |||
| 73 | }, # OPTIONAL | ||
| 74 | Sds => { | ||
| 75 | SecretName => 'MySdsSecretName', | ||
| 76 | |||
| 77 | }, # OPTIONAL | ||
| 78 | }, # OPTIONAL | ||
| 79 | Enforce => 1, # OPTIONAL | ||
| 80 | Ports => [ | ||
| 81 | 1, ... # min: 1, max: 65535 | ||
| 82 | ], # OPTIONAL | ||
| 83 | }, # OPTIONAL | ||
| 84 | }, # OPTIONAL | ||
| 85 | }, # OPTIONAL | ||
| 86 | Backends => [ | ||
| 87 | { | ||
| 88 | VirtualService => { | ||
| 89 | VirtualServiceName => 'MyServiceName', | ||
| 90 | ClientPolicy => { | ||
| 91 | Tls => { | ||
| 92 | Validation => { | ||
| 93 | Trust => { | ||
| 94 | Acm => { | ||
| 95 | CertificateAuthorityArns => [ 'MyArn', ... ] | ||
| 96 | , # min: 1, max: 3 | ||
| 97 | |||
| 98 | }, # OPTIONAL | ||
| 99 | File => { | ||
| 100 | CertificateChain => 'MyFilePath', # min: 1, max: 255 | ||
| 101 | |||
| 102 | }, # OPTIONAL | ||
| 103 | Sds => { | ||
| 104 | SecretName => 'MySdsSecretName', | ||
| 105 | |||
| 106 | }, # OPTIONAL | ||
| 107 | }, | ||
| 108 | SubjectAlternativeNames => { | ||
| 109 | Match => { | ||
| 110 | Exact => [ | ||
| 111 | 'MySubjectAlternativeName', ... # min: 1, max: 254 | ||
| 112 | ], | ||
| 113 | |||
| 114 | }, | ||
| 115 | |||
| 116 | }, # OPTIONAL | ||
| 117 | }, | ||
| 118 | Certificate => { | ||
| 119 | File => { | ||
| 120 | CertificateChain => 'MyFilePath', # min: 1, max: 255 | ||
| 121 | PrivateKey => 'MyFilePath', # min: 1, max: 255 | ||
| 122 | |||
| 123 | }, # OPTIONAL | ||
| 124 | Sds => { | ||
| 125 | SecretName => 'MySdsSecretName', | ||
| 126 | |||
| 127 | }, # OPTIONAL | ||
| 128 | }, # OPTIONAL | ||
| 129 | Enforce => 1, # OPTIONAL | ||
| 130 | Ports => [ | ||
| 131 | 1, ... # min: 1, max: 65535 | ||
| 132 | ], # OPTIONAL | ||
| 133 | }, # OPTIONAL | ||
| 134 | }, # OPTIONAL | ||
| 135 | }, # OPTIONAL | ||
| 136 | }, | ||
| 137 | ... | ||
| 138 | ], # OPTIONAL | ||
| 139 | Listeners => [ | ||
| 140 | { | ||
| 141 | PortMapping => { | ||
| 142 | Port => 1, # min: 1, max: 65535 | ||
| 143 | Protocol => 'http', # values: http, tcp, http2, grpc | ||
| 144 | |||
| 145 | }, | ||
| 146 | ConnectionPool => { | ||
| 147 | Grpc => { | ||
| 148 | MaxRequests => 1, # min: 1 | ||
| 149 | |||
| 150 | }, # OPTIONAL | ||
| 151 | Http => { | ||
| 152 | MaxConnections => 1, # min: 1 | ||
| 153 | MaxPendingRequests => 1, # min: 1; OPTIONAL | ||
| 154 | }, # OPTIONAL | ||
| 155 | Http2 => { | ||
| 156 | MaxRequests => 1, # min: 1 | ||
| 157 | |||
| 158 | }, # OPTIONAL | ||
| 159 | Tcp => { | ||
| 160 | MaxConnections => 1, # min: 1 | ||
| 161 | |||
| 162 | }, # OPTIONAL | ||
| 163 | }, # OPTIONAL | ||
| 164 | HealthCheck => { | ||
| 165 | HealthyThreshold => 1, # min: 2, max: 10 | ||
| 166 | IntervalMillis => 1, # min: 5000, max: 300000 | ||
| 167 | Protocol => 'http', # values: http, tcp, http2, grpc | ||
| 168 | TimeoutMillis => 1, # min: 2000, max: 60000 | ||
| 169 | UnhealthyThreshold => 1, # min: 2, max: 10 | ||
| 170 | Path => 'MyString', # OPTIONAL | ||
| 171 | Port => 1, # min: 1, max: 65535 | ||
| 172 | }, # OPTIONAL | ||
| 173 | OutlierDetection => { | ||
| 174 | BaseEjectionDuration => { | ||
| 175 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 176 | Value => 1, # OPTIONAL | ||
| 177 | }, | ||
| 178 | Interval => { | ||
| 179 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 180 | Value => 1, # OPTIONAL | ||
| 181 | }, | ||
| 182 | MaxEjectionPercent => 1, # max: 100 | ||
| 183 | MaxServerErrors => 1, # min: 1 | ||
| 184 | |||
| 185 | }, # OPTIONAL | ||
| 186 | Timeout => { | ||
| 187 | Grpc => { | ||
| 188 | Idle => { | ||
| 189 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 190 | Value => 1, # OPTIONAL | ||
| 191 | }, | ||
| 192 | PerRequest => { | ||
| 193 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 194 | Value => 1, # OPTIONAL | ||
| 195 | }, | ||
| 196 | }, # OPTIONAL | ||
| 197 | Http => { | ||
| 198 | Idle => { | ||
| 199 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 200 | Value => 1, # OPTIONAL | ||
| 201 | }, | ||
| 202 | PerRequest => { | ||
| 203 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 204 | Value => 1, # OPTIONAL | ||
| 205 | }, | ||
| 206 | }, # OPTIONAL | ||
| 207 | Http2 => { | ||
| 208 | Idle => { | ||
| 209 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 210 | Value => 1, # OPTIONAL | ||
| 211 | }, | ||
| 212 | PerRequest => { | ||
| 213 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 214 | Value => 1, # OPTIONAL | ||
| 215 | }, | ||
| 216 | }, # OPTIONAL | ||
| 217 | Tcp => { | ||
| 218 | Idle => { | ||
| 219 | Unit => 's', # values: s, ms; OPTIONAL | ||
| 220 | Value => 1, # OPTIONAL | ||
| 221 | }, | ||
| 222 | }, # OPTIONAL | ||
| 223 | }, # OPTIONAL | ||
| 224 | Tls => { | ||
| 225 | Certificate => { | ||
| 226 | Acm => { | ||
| 227 | CertificateArn => 'MyArn', | ||
| 228 | |||
| 229 | }, # OPTIONAL | ||
| 230 | File => { | ||
| 231 | CertificateChain => 'MyFilePath', # min: 1, max: 255 | ||
| 232 | PrivateKey => 'MyFilePath', # min: 1, max: 255 | ||
| 233 | |||
| 234 | }, # OPTIONAL | ||
| 235 | Sds => { | ||
| 236 | SecretName => 'MySdsSecretName', | ||
| 237 | |||
| 238 | }, # OPTIONAL | ||
| 239 | }, | ||
| 240 | Mode => 'STRICT', # values: STRICT, PERMISSIVE, DISABLED | ||
| 241 | Validation => { | ||
| 242 | Trust => { | ||
| 243 | File => { | ||
| 244 | CertificateChain => 'MyFilePath', # min: 1, max: 255 | ||
| 245 | |||
| 246 | }, # OPTIONAL | ||
| 247 | Sds => { | ||
| 248 | SecretName => 'MySdsSecretName', | ||
| 249 | |||
| 250 | }, # OPTIONAL | ||
| 251 | }, | ||
| 252 | SubjectAlternativeNames => { | ||
| 253 | Match => { | ||
| 254 | Exact => [ | ||
| 255 | 'MySubjectAlternativeName', ... # min: 1, max: 254 | ||
| 256 | ], | ||
| 257 | |||
| 258 | }, | ||
| 259 | |||
| 260 | }, # OPTIONAL | ||
| 261 | }, # OPTIONAL | ||
| 262 | }, # OPTIONAL | ||
| 263 | }, | ||
| 264 | ... | ||
| 265 | ], # max: 1; OPTIONAL | ||
| 266 | Logging => { | ||
| 267 | AccessLog => { | ||
| 268 | File => { | ||
| 269 | Path => 'MyFilePath', # min: 1, max: 255 | ||
| 270 | |||
| 271 | }, # OPTIONAL | ||
| 272 | }, # OPTIONAL | ||
| 273 | }, # OPTIONAL | ||
| 274 | ServiceDiscovery => { | ||
| 275 | AwsCloudMap => { | ||
| 276 | NamespaceName => 'MyAwsCloudMapName', # min: 1, max: 1024 | ||
| 277 | ServiceName => 'MyAwsCloudMapName', # min: 1, max: 1024 | ||
| 278 | Attributes => [ | ||
| 279 | { | ||
| 280 | Key => 'MyAwsCloudMapInstanceAttributeKey', # min: 1, max: 255 | ||
| 281 | Value => | ||
| 282 | 'MyAwsCloudMapInstanceAttributeValue', # min: 1, max: 1024 | ||
| 283 | |||
| 284 | }, | ||
| 285 | ... | ||
| 286 | ], # OPTIONAL | ||
| 287 | }, # OPTIONAL | ||
| 288 | Dns => { | ||
| 289 | Hostname => 'MyHostname', | ||
| 290 | ResponseType => | ||
| 291 | 'LOADBALANCER', # values: LOADBALANCER, ENDPOINTS; OPTIONAL | ||
| 292 | }, # OPTIONAL | ||
| 293 | }, # OPTIONAL | ||
| 294 | }, | ||
| 295 | VirtualNodeName => 'MyResourceName', | ||
| 296 | ClientToken => 'MyString', # OPTIONAL | ||
| 297 | MeshOwner => 'MyAccountId', # OPTIONAL | ||
| 298 | Tags => [ | ||
| 299 | { | ||
| 300 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 301 | Value => 'MyTagValue', # max: 256 | ||
| 302 | |||
| 303 | }, | ||
| 304 | ... | ||
| 305 | ], # OPTIONAL | ||
| 306 | ); | ||
| 307 | |||
| 308 | # Results: | ||
| 309 | my $VirtualNode = $CreateVirtualNodeOutput->VirtualNode; | ||
| 310 | |||
| 311 | # Returns a L<Paws::AppMesh::CreateVirtualNodeOutput> object. | ||
| 312 | |||
| 313 | 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. | ||
| 314 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appmesh/CreateVirtualNode> | ||
| 315 | |||
| 316 | =head1 ATTRIBUTES | ||
| 317 | |||
| 318 | |||
| 319 | =head2 ClientToken => Str | ||
| 320 | |||
| 321 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 322 | idempotency of the request. Up to 36 letters, numbers, hyphens, and | ||
| 323 | underscores are allowed. | ||
| 324 | |||
| 325 | |||
| 326 | |||
| 327 | =head2 B<REQUIRED> MeshName => Str | ||
| 328 | |||
| 329 | The name of the service mesh to create the virtual node in. | ||
| 330 | |||
| 331 | |||
| 332 | |||
| 333 | =head2 MeshOwner => Str | ||
| 334 | |||
| 335 | The AWS IAM account ID of the service mesh owner. If the account ID is | ||
| 336 | not your own, then the account that you specify must share the mesh | ||
| 337 | with your account before you can create the resource in the service | ||
| 338 | mesh. For more information about mesh sharing, see Working with shared | ||
| 339 | meshes | ||
| 340 | (https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html). | ||
| 341 | |||
| 342 | |||
| 343 | |||
| 344 | =head2 B<REQUIRED> Spec => L<Paws::AppMesh::VirtualNodeSpec> | ||
| 345 | |||
| 346 | The virtual node specification to apply. | ||
| 347 | |||
| 348 | |||
| 349 | |||
| 350 | =head2 Tags => ArrayRef[L<Paws::AppMesh::TagRef>] | ||
| 351 | |||
| 352 | Optional metadata that you can apply to the virtual node to assist with | ||
| 353 | categorization and organization. Each tag consists of a key and an | ||
| 354 | optional value, both of which you define. Tag keys can have a maximum | ||
| 355 | character length of 128 characters, and tag values can have a maximum | ||
| 356 | length of 256 characters. | ||
| 357 | |||
| 358 | |||
| 359 | |||
| 360 | =head2 B<REQUIRED> VirtualNodeName => Str | ||
| 361 | |||
| 362 | The name to use for the virtual node. | ||
| 363 | |||
| 364 | |||
| 365 | |||
| 366 | |||
| 367 | =head1 SEE ALSO | ||
| 368 | |||
| 369 | This class forms part of L<Paws>, documenting arguments for method CreateVirtualNode in L<Paws::AppMesh> | ||
| 370 | |||
| 371 | =head1 BUGS and CONTRIBUTIONS | ||
| 372 | |||
| 373 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 374 | |||
| 375 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 376 | |||
| 377 | =cut | ||
| 378 |