create_application
¶
create_application(
name: EntityName,
engine_type: EngineType,
definition: Definition,
*,
config_overrides: Optional[m2ClientConfig] = None,
description: Optional[EntityDescription] = None,
tags: Optional[TagMap] = None,
client_token: Optional[ClientToken] = None,
kms_key_id: Optional[str] = None,
role_arn: Optional[Arn] = None,
) -> CreateApplicationResponse
Creates a new application with given parameters. Requires an existing runtime environment and application definition file.
Parameters:
-
name(EntityName) –The unique identifier of the application.
-
description(Optional[EntityDescription], default:None) –The description of the application.
-
engine_type(EngineType) –The type of the target platform for this application.
-
definition(Definition) –The application definition for this application. You can specify either inline JSON or an S3 bucket location.
-
tags(Optional[TagMap], default:None) –A list of tags to apply to the application.
-
client_token(Optional[ClientToken], default:None) –A client token is a unique, case-sensitive string of up to 128 ASCII characters with ASCII values of 33-126 inclusive. It's generated by the client to ensure idempotent operations, allowing for safe retries without unintended side effects.
-
kms_key_id(Optional[str], default:None) –The identifier of a customer managed key.
-
role_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) that identifies a role that the application uses to access Amazon Web Services resources that are not part of the application or are in a different Amazon Web Services account.
Raises:
-
AccessDeniedException–The account or role doesn't have the right permissions to make the request.
-
ConflictException–The parameters provided in the request conflict with existing resources.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ServiceQuotaExceededException–One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit.
-
ThrottlingException–The number of requests made exceeds the limit.
-
ValidationException–One or more parameters provided in the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_m2/_services/m2.py
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 | |