| 1 | package Paws::MWAA; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'airflow' } | ||
| 4 | sub signing_name { 'airflow' } | ||
| 5 | sub version { '2020-07-01' } | ||
| 6 | sub flattened_arrays { 0 } | ||
| 7 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 8 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 9 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 10 | }); | ||
| 11 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 12 | ] }); | ||
| 13 | |||
| 14 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; | ||
| 15 | |||
| 16 | |||
| 17 | sub CreateCliToken { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::MWAA::CreateCliToken', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | sub CreateEnvironment { | ||
| 23 | my $self = shift; | ||
| 24 | my $call_object = $self->new_with_coercions('Paws::MWAA::CreateEnvironment', @_); | ||
| 25 | return $self->caller->do_call($self, $call_object); | ||
| 26 | } | ||
| 27 | sub CreateWebLoginToken { | ||
| 28 | my $self = shift; | ||
| 29 | my $call_object = $self->new_with_coercions('Paws::MWAA::CreateWebLoginToken', @_); | ||
| 30 | return $self->caller->do_call($self, $call_object); | ||
| 31 | } | ||
| 32 | sub DeleteEnvironment { | ||
| 33 | my $self = shift; | ||
| 34 | my $call_object = $self->new_with_coercions('Paws::MWAA::DeleteEnvironment', @_); | ||
| 35 | return $self->caller->do_call($self, $call_object); | ||
| 36 | } | ||
| 37 | sub GetEnvironment { | ||
| 38 | my $self = shift; | ||
| 39 | my $call_object = $self->new_with_coercions('Paws::MWAA::GetEnvironment', @_); | ||
| 40 | return $self->caller->do_call($self, $call_object); | ||
| 41 | } | ||
| 42 | sub ListEnvironments { | ||
| 43 | my $self = shift; | ||
| 44 | my $call_object = $self->new_with_coercions('Paws::MWAA::ListEnvironments', @_); | ||
| 45 | return $self->caller->do_call($self, $call_object); | ||
| 46 | } | ||
| 47 | sub ListTagsForResource { | ||
| 48 | my $self = shift; | ||
| 49 | my $call_object = $self->new_with_coercions('Paws::MWAA::ListTagsForResource', @_); | ||
| 50 | return $self->caller->do_call($self, $call_object); | ||
| 51 | } | ||
| 52 | sub PublishMetrics { | ||
| 53 | my $self = shift; | ||
| 54 | my $call_object = $self->new_with_coercions('Paws::MWAA::PublishMetrics', @_); | ||
| 55 | return $self->caller->do_call($self, $call_object); | ||
| 56 | } | ||
| 57 | sub TagResource { | ||
| 58 | my $self = shift; | ||
| 59 | my $call_object = $self->new_with_coercions('Paws::MWAA::TagResource', @_); | ||
| 60 | return $self->caller->do_call($self, $call_object); | ||
| 61 | } | ||
| 62 | sub UntagResource { | ||
| 63 | my $self = shift; | ||
| 64 | my $call_object = $self->new_with_coercions('Paws::MWAA::UntagResource', @_); | ||
| 65 | return $self->caller->do_call($self, $call_object); | ||
| 66 | } | ||
| 67 | sub UpdateEnvironment { | ||
| 68 | my $self = shift; | ||
| 69 | my $call_object = $self->new_with_coercions('Paws::MWAA::UpdateEnvironment', @_); | ||
| 70 | return $self->caller->do_call($self, $call_object); | ||
| 71 | } | ||
| 72 | |||
| 73 | sub ListAllEnvironments { | ||
| 74 | my $self = shift; | ||
| 75 | |||
| 76 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 77 | my $result = $self->ListEnvironments(@_); | ||
| 78 | my $next_result = $result; | ||
| 79 | |||
| 80 | if (not defined $callback) { | ||
| 81 | while ($next_result->NextToken) { | ||
| 82 | $next_result = $self->ListEnvironments(@_, NextToken => $next_result->NextToken); | ||
| 83 | push @{ $result->Environments }, @{ $next_result->Environments }; | ||
| 84 | } | ||
| 85 | return $result; | ||
| 86 | } else { | ||
| 87 | while ($result->NextToken) { | ||
| 88 | $callback->($_ => 'Environments') foreach (@{ $result->Environments }); | ||
| 89 | $result = $self->ListEnvironments(@_, NextToken => $result->NextToken); | ||
| 90 | } | ||
| 91 | $callback->($_ => 'Environments') foreach (@{ $result->Environments }); | ||
| 92 | } | ||
| 93 | |||
| 94 | return undef | ||
| 95 | } | ||
| 96 | |||
| 97 | |||
| 98 | sub operations { qw/CreateCliToken CreateEnvironment CreateWebLoginToken DeleteEnvironment GetEnvironment ListEnvironments ListTagsForResource PublishMetrics TagResource UntagResource UpdateEnvironment / } | ||
| 99 | |||
| 100 | 1; | ||
| 101 | |||
| 102 | ### main pod documentation begin ### | ||
| 103 | |||
| 104 | =head1 NAME | ||
| 105 | |||
| 106 | Paws::MWAA - Perl Interface to AWS AmazonMWAA | ||
| 107 | |||
| 108 | =head1 SYNOPSIS | ||
| 109 | |||
| 110 | use Paws; | ||
| 111 | |||
| 112 | my $obj = Paws->service('MWAA'); | ||
| 113 | my $res = $obj->Method( | ||
| 114 | Arg1 => $val1, | ||
| 115 | Arg2 => [ 'V1', 'V2' ], | ||
| 116 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 117 | # of the arguments type | ||
| 118 | Arg3 => { Att1 => 'Val1' }, | ||
| 119 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 120 | # the constructor of the arguments type | ||
| 121 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 122 | ); | ||
| 123 | |||
| 124 | =head1 DESCRIPTION | ||
| 125 | |||
| 126 | Amazon Managed Workflows for Apache Airflow | ||
| 127 | |||
| 128 | This section contains the Amazon Managed Workflows for Apache Airflow | ||
| 129 | (MWAA) API reference documentation. For more information, see What Is | ||
| 130 | Amazon MWAA? | ||
| 131 | (https://docs.aws.amazon.com/mwaa/latest/userguide/what-is-mwaa.html). | ||
| 132 | |||
| 133 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/airflow-2020-07-01> | ||
| 134 | |||
| 135 | |||
| 136 | =head1 METHODS | ||
| 137 | |||
| 138 | =head2 CreateCliToken | ||
| 139 | |||
| 140 | =over | ||
| 141 | |||
| 142 | =item Name => Str | ||
| 143 | |||
| 144 | |||
| 145 | =back | ||
| 146 | |||
| 147 | Each argument is described in detail in: L<Paws::MWAA::CreateCliToken> | ||
| 148 | |||
| 149 | Returns: a L<Paws::MWAA::CreateCliTokenResponse> instance | ||
| 150 | |||
| 151 | Create a CLI token to use Airflow CLI. | ||
| 152 | |||
| 153 | |||
| 154 | =head2 CreateEnvironment | ||
| 155 | |||
| 156 | =over | ||
| 157 | |||
| 158 | =item DagS3Path => Str | ||
| 159 | |||
| 160 | =item ExecutionRoleArn => Str | ||
| 161 | |||
| 162 | =item Name => Str | ||
| 163 | |||
| 164 | =item NetworkConfiguration => L<Paws::MWAA::NetworkConfiguration> | ||
| 165 | |||
| 166 | =item SourceBucketArn => Str | ||
| 167 | |||
| 168 | =item [AirflowConfigurationOptions => L<Paws::MWAA::SyntheticCreateEnvironmentInputAirflowConfigurationOptions>] | ||
| 169 | |||
| 170 | =item [AirflowVersion => Str] | ||
| 171 | |||
| 172 | =item [EnvironmentClass => Str] | ||
| 173 | |||
| 174 | =item [KmsKey => Str] | ||
| 175 | |||
| 176 | =item [LoggingConfiguration => L<Paws::MWAA::LoggingConfigurationInput>] | ||
| 177 | |||
| 178 | =item [MaxWorkers => Int] | ||
| 179 | |||
| 180 | =item [MinWorkers => Int] | ||
| 181 | |||
| 182 | =item [PluginsS3ObjectVersion => Str] | ||
| 183 | |||
| 184 | =item [PluginsS3Path => Str] | ||
| 185 | |||
| 186 | =item [RequirementsS3ObjectVersion => Str] | ||
| 187 | |||
| 188 | =item [RequirementsS3Path => Str] | ||
| 189 | |||
| 190 | =item [Schedulers => Int] | ||
| 191 | |||
| 192 | =item [Tags => L<Paws::MWAA::TagMap>] | ||
| 193 | |||
| 194 | =item [WebserverAccessMode => Str] | ||
| 195 | |||
| 196 | =item [WeeklyMaintenanceWindowStart => Str] | ||
| 197 | |||
| 198 | |||
| 199 | =back | ||
| 200 | |||
| 201 | Each argument is described in detail in: L<Paws::MWAA::CreateEnvironment> | ||
| 202 | |||
| 203 | Returns: a L<Paws::MWAA::CreateEnvironmentOutput> instance | ||
| 204 | |||
| 205 | Creates an Amazon Managed Workflows for Apache Airflow (MWAA) | ||
| 206 | environment. | ||
| 207 | |||
| 208 | |||
| 209 | =head2 CreateWebLoginToken | ||
| 210 | |||
| 211 | =over | ||
| 212 | |||
| 213 | =item Name => Str | ||
| 214 | |||
| 215 | |||
| 216 | =back | ||
| 217 | |||
| 218 | Each argument is described in detail in: L<Paws::MWAA::CreateWebLoginToken> | ||
| 219 | |||
| 220 | Returns: a L<Paws::MWAA::CreateWebLoginTokenResponse> instance | ||
| 221 | |||
| 222 | Create a JWT token to be used to login to Airflow Web UI with claims | ||
| 223 | based Authentication. | ||
| 224 | |||
| 225 | |||
| 226 | =head2 DeleteEnvironment | ||
| 227 | |||
| 228 | =over | ||
| 229 | |||
| 230 | =item Name => Str | ||
| 231 | |||
| 232 | |||
| 233 | =back | ||
| 234 | |||
| 235 | Each argument is described in detail in: L<Paws::MWAA::DeleteEnvironment> | ||
| 236 | |||
| 237 | Returns: a L<Paws::MWAA::DeleteEnvironmentOutput> instance | ||
| 238 | |||
| 239 | Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) | ||
| 240 | environment. | ||
| 241 | |||
| 242 | |||
| 243 | =head2 GetEnvironment | ||
| 244 | |||
| 245 | =over | ||
| 246 | |||
| 247 | =item Name => Str | ||
| 248 | |||
| 249 | |||
| 250 | =back | ||
| 251 | |||
| 252 | Each argument is described in detail in: L<Paws::MWAA::GetEnvironment> | ||
| 253 | |||
| 254 | Returns: a L<Paws::MWAA::GetEnvironmentOutput> instance | ||
| 255 | |||
| 256 | Retrieves the details of an Amazon Managed Workflows for Apache Airflow | ||
| 257 | (MWAA) environment. | ||
| 258 | |||
| 259 | |||
| 260 | =head2 ListEnvironments | ||
| 261 | |||
| 262 | =over | ||
| 263 | |||
| 264 | =item [MaxResults => Int] | ||
| 265 | |||
| 266 | =item [NextToken => Str] | ||
| 267 | |||
| 268 | |||
| 269 | =back | ||
| 270 | |||
| 271 | Each argument is described in detail in: L<Paws::MWAA::ListEnvironments> | ||
| 272 | |||
| 273 | Returns: a L<Paws::MWAA::ListEnvironmentsOutput> instance | ||
| 274 | |||
| 275 | Lists the Amazon Managed Workflows for Apache Airflow (MWAA) | ||
| 276 | environments. | ||
| 277 | |||
| 278 | |||
| 279 | =head2 ListTagsForResource | ||
| 280 | |||
| 281 | =over | ||
| 282 | |||
| 283 | =item ResourceArn => Str | ||
| 284 | |||
| 285 | |||
| 286 | =back | ||
| 287 | |||
| 288 | Each argument is described in detail in: L<Paws::MWAA::ListTagsForResource> | ||
| 289 | |||
| 290 | Returns: a L<Paws::MWAA::ListTagsForResourceOutput> instance | ||
| 291 | |||
| 292 | Lists the key-value tag pairs associated to the Amazon Managed | ||
| 293 | Workflows for Apache Airflow (MWAA) environment. For example, | ||
| 294 | C<"Environment": "Staging">. | ||
| 295 | |||
| 296 | |||
| 297 | =head2 PublishMetrics | ||
| 298 | |||
| 299 | =over | ||
| 300 | |||
| 301 | =item EnvironmentName => Str | ||
| 302 | |||
| 303 | =item MetricData => ArrayRef[L<Paws::MWAA::MetricDatum>] | ||
| 304 | |||
| 305 | |||
| 306 | =back | ||
| 307 | |||
| 308 | Each argument is described in detail in: L<Paws::MWAA::PublishMetrics> | ||
| 309 | |||
| 310 | Returns: a L<Paws::MWAA::PublishMetricsOutput> instance | ||
| 311 | |||
| 312 | An operation for publishing metrics from the customers to the Ops | ||
| 313 | plane. | ||
| 314 | |||
| 315 | |||
| 316 | =head2 TagResource | ||
| 317 | |||
| 318 | =over | ||
| 319 | |||
| 320 | =item ResourceArn => Str | ||
| 321 | |||
| 322 | =item Tags => L<Paws::MWAA::TagMap> | ||
| 323 | |||
| 324 | |||
| 325 | =back | ||
| 326 | |||
| 327 | Each argument is described in detail in: L<Paws::MWAA::TagResource> | ||
| 328 | |||
| 329 | Returns: a L<Paws::MWAA::TagResourceOutput> instance | ||
| 330 | |||
| 331 | Associates key-value tag pairs to your Amazon Managed Workflows for | ||
| 332 | Apache Airflow (MWAA) environment. | ||
| 333 | |||
| 334 | |||
| 335 | =head2 UntagResource | ||
| 336 | |||
| 337 | =over | ||
| 338 | |||
| 339 | =item ResourceArn => Str | ||
| 340 | |||
| 341 | =item TagKeys => ArrayRef[Str|Undef] | ||
| 342 | |||
| 343 | |||
| 344 | =back | ||
| 345 | |||
| 346 | Each argument is described in detail in: L<Paws::MWAA::UntagResource> | ||
| 347 | |||
| 348 | Returns: a L<Paws::MWAA::UntagResourceOutput> instance | ||
| 349 | |||
| 350 | Removes key-value tag pairs associated to your Amazon Managed Workflows | ||
| 351 | for Apache Airflow (MWAA) environment. For example, C<"Environment": | ||
| 352 | "Staging">. | ||
| 353 | |||
| 354 | |||
| 355 | =head2 UpdateEnvironment | ||
| 356 | |||
| 357 | =over | ||
| 358 | |||
| 359 | =item Name => Str | ||
| 360 | |||
| 361 | =item [AirflowConfigurationOptions => L<Paws::MWAA::SyntheticUpdateEnvironmentInputAirflowConfigurationOptions>] | ||
| 362 | |||
| 363 | =item [AirflowVersion => Str] | ||
| 364 | |||
| 365 | =item [DagS3Path => Str] | ||
| 366 | |||
| 367 | =item [EnvironmentClass => Str] | ||
| 368 | |||
| 369 | =item [ExecutionRoleArn => Str] | ||
| 370 | |||
| 371 | =item [LoggingConfiguration => L<Paws::MWAA::LoggingConfigurationInput>] | ||
| 372 | |||
| 373 | =item [MaxWorkers => Int] | ||
| 374 | |||
| 375 | =item [MinWorkers => Int] | ||
| 376 | |||
| 377 | =item [NetworkConfiguration => L<Paws::MWAA::UpdateNetworkConfigurationInput>] | ||
| 378 | |||
| 379 | =item [PluginsS3ObjectVersion => Str] | ||
| 380 | |||
| 381 | =item [PluginsS3Path => Str] | ||
| 382 | |||
| 383 | =item [RequirementsS3ObjectVersion => Str] | ||
| 384 | |||
| 385 | =item [RequirementsS3Path => Str] | ||
| 386 | |||
| 387 | =item [Schedulers => Int] | ||
| 388 | |||
| 389 | =item [SourceBucketArn => Str] | ||
| 390 | |||
| 391 | =item [WebserverAccessMode => Str] | ||
| 392 | |||
| 393 | =item [WeeklyMaintenanceWindowStart => Str] | ||
| 394 | |||
| 395 | |||
| 396 | =back | ||
| 397 | |||
| 398 | Each argument is described in detail in: L<Paws::MWAA::UpdateEnvironment> | ||
| 399 | |||
| 400 | Returns: a L<Paws::MWAA::UpdateEnvironmentOutput> instance | ||
| 401 | |||
| 402 | Updates an Amazon Managed Workflows for Apache Airflow (MWAA) | ||
| 403 | environment. | ||
| 404 | |||
| 405 | |||
| 406 | |||
| 407 | |||
| 408 | =head1 PAGINATORS | ||
| 409 | |||
| 410 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 411 | |||
| 412 | =head2 ListAllEnvironments(sub { },[MaxResults => Int, NextToken => Str]) | ||
| 413 | |||
| 414 | =head2 ListAllEnvironments([MaxResults => Int, NextToken => Str]) | ||
| 415 | |||
| 416 | |||
| 417 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 418 | |||
| 419 | - Environments, passing the object as the first parameter, and the string 'Environments' as the second parameter | ||
| 420 | |||
| 421 | If not, it will return a a L<Paws::MWAA::ListEnvironmentsOutput> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 422 | |||
| 423 | |||
| 424 | |||
| 425 | |||
| 426 | |||
| 427 | =head1 SEE ALSO | ||
| 428 | |||
| 429 | This service class forms part of L<Paws> | ||
| 430 | |||
| 431 | =head1 BUGS and CONTRIBUTIONS | ||
| 432 | |||
| 433 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 434 | |||
| 435 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 436 | |||
| 437 | =cut | ||
| 438 |