MainframeModernizationApplicationTesting / Client / create_test_configuration

create_test_configuration#

MainframeModernizationApplicationTesting.Client.create_test_configuration(**kwargs)#

Creates a test configuration.

See also: AWS API Documentation

Request Syntax

response = client.create_test_configuration(
    name='string',
    description='string',
    resources=[
        {
            'name': 'string',
            'type': {
                'cloudFormation': {
                    'templateLocation': 'string',
                    'parameters': {
                        'string': 'string'
                    }
                },
                'm2ManagedApplication': {
                    'applicationId': 'string',
                    'runtime': 'MicroFocus',
                    'vpcEndpointServiceName': 'string',
                    'listenerPort': 'string'
                },
                'm2NonManagedApplication': {
                    'vpcEndpointServiceName': 'string',
                    'listenerPort': 'string',
                    'runtime': 'BluAge',
                    'webAppName': 'string'
                }
            }
        },
    ],
    properties={
        'string': 'string'
    },
    clientToken='string',
    tags={
        'string': 'string'
    },
    serviceSettings={
        'kmsKeyId': 'string'
    }
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name of the test configuration.

  • description (string) – The description of the test configuration.

  • resources (list) –

    [REQUIRED]

    The defined resources of the test configuration.

    • (dict) –

      Specifies a resource.

      • name (string) – [REQUIRED]

        The name of the resource.

      • type (dict) – [REQUIRED]

        The type of the resource.

        Note

        This is a Tagged Union structure. Only one of the following top level keys can be set: cloudFormation, m2ManagedApplication, m2NonManagedApplication.

        • cloudFormation (dict) –

          The CloudFormation template of the resource type.

          • templateLocation (string) – [REQUIRED]

            The template location of the CloudFormation template.

          • parameters (dict) –

            The CloudFormation properties in the CloudFormation template.

            • (string) –

              • (string) –

        • m2ManagedApplication (dict) –

          The AWS Mainframe Modernization managed application of the resource type.

          • applicationId (string) – [REQUIRED]

            The application ID of the AWS Mainframe Modernization managed application.

          • runtime (string) – [REQUIRED]

            The runtime of the AWS Mainframe Modernization managed application.

          • vpcEndpointServiceName (string) –

            The VPC endpoint service name of the AWS Mainframe Modernization managed application.

          • listenerPort (string) –

            The listener port of the AWS Mainframe Modernization managed application.

        • m2NonManagedApplication (dict) –

          The AWS Mainframe Modernization non-managed application of the resource type.

          • vpcEndpointServiceName (string) – [REQUIRED]

            The VPC endpoint service name of the AWS Mainframe Modernization non-managed application.

          • listenerPort (string) – [REQUIRED]

            The listener port of the AWS Mainframe Modernization non-managed application.

          • runtime (string) – [REQUIRED]

            The runtime of the AWS Mainframe Modernization non-managed application.

          • webAppName (string) –

            The web application name of the AWS Mainframe Modernization non-managed application.

  • properties (dict) –

    The properties of the test configuration.

    • (string) –

      • (string) –

  • clientToken (string) –

    The client token of the test configuration.

    This field is autopopulated if not provided.

  • tags (dict) –

    The tags of the test configuration.

    • (string) –

      • (string) –

  • serviceSettings (dict) –

    The service settings of the test configuration.

    • kmsKeyId (string) –

      The KMS key ID of the service settings.

Return type:

dict

Returns:

Response Syntax

{
    'testConfigurationId': 'string',
    'testConfigurationVersion': 123
}

Response Structure

  • (dict) –

    • testConfigurationId (string) –

      The test configuration ID.

    • testConfigurationVersion (integer) –

      The test configuration version.

Exceptions