create_application
¶
create_application(
application_name: ApplicationName,
runtime_environment: RuntimeEnvironment,
service_execution_role: RoleARN,
*,
config_overrides: Optional[KinesisAnalyticsV2ClientConfig] = None,
application_description: Optional[ApplicationDescription] = None,
application_configuration: Optional[ApplicationConfiguration] = None,
cloud_watch_logging_options: Optional[CloudWatchLoggingOptions] = None,
tags: Optional[Tags] = None,
application_mode: Optional[ApplicationMode] = None,
) -> CreateApplicationResponse
Creates a Managed Service for Apache Flink application. For information about creating a Managed Service for Apache Flink application, see Creating an Application.
Parameters:
-
application_name(ApplicationName) –The name of your application (for example,
sample-app). -
application_description(Optional[ApplicationDescription], default:None) –A summary description of the application.
-
runtime_environment(RuntimeEnvironment) –The runtime environment for the application.
-
service_execution_role(RoleARN) –The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.
-
application_configuration(Optional[ApplicationConfiguration], default:None) –Use this parameter to configure the application.
-
cloud_watch_logging_options(Optional[CloudWatchLoggingOptions], default:None) –Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors.
-
tags(Optional[Tags], default:None) –A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging.
-
application_mode(Optional[ApplicationMode], default:None) –Use the
STREAMINGmode to create a Managed Service for Apache Flink application. To create a Managed Service for Apache Flink Studio notebook, use theINTERACTIVEmode.
Raises:
-
CodeValidationException–The user-provided application code (query) is not valid. This can be a simple syntax error.
-
ConcurrentModificationException–Exception thrown as a result of concurrent modifications to an application. This error can be the result of attempting to modify an application without using the current application ID.
-
InvalidArgumentException–The specified input parameter value is not valid.
-
InvalidRequestException–The request JSON is not valid for the operation.
-
LimitExceededException–The number of allowed resources has been exceeded.
-
ResourceInUseException–The application is not available for this operation.
-
TooManyTagsException–Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.
-
UnsupportedOperationException–The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis_analytics_v2/_services/kinesis_analytics_v2.py
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | |