drs / Client / create_launch_configuration_template

create_launch_configuration_template#

drs.Client.create_launch_configuration_template(**kwargs)#

Creates a new Launch Configuration Template.

See also: AWS API Documentation

Request Syntax

response = client.create_launch_configuration_template(
    copyPrivateIp=True|False,
    copyTags=True|False,
    exportBucketArn='string',
    launchDisposition='STOPPED'|'STARTED',
    launchIntoSourceInstance=True|False,
    licensing={
        'osByol': True|False
    },
    postLaunchEnabled=True|False,
    tags={
        'string': 'string'
    },
    targetInstanceTypeRightSizingMethod='NONE'|'BASIC'|'IN_AWS'
)
Parameters:
  • copyPrivateIp (boolean) – Copy private IP.

  • copyTags (boolean) – Copy tags.

  • exportBucketArn (string) – S3 bucket ARN to export Source Network templates.

  • launchDisposition (string) – Launch disposition.

  • launchIntoSourceInstance (boolean) – DRS will set the ‘launch into instance ID’ of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.

  • licensing (dict) –

    Licensing.

    • osByol (boolean) –

      Whether to enable “Bring your own license” or not.

  • postLaunchEnabled (boolean) – Whether we want to activate post-launch actions.

  • tags (dict) –

    Request to associate tags during creation of a Launch Configuration Template.

    • (string) –

      • (string) –

  • targetInstanceTypeRightSizingMethod (string) – Target instance type right-sizing method.

Return type:

dict

Returns:

Response Syntax

{
    'launchConfigurationTemplate': {
        'arn': 'string',
        'copyPrivateIp': True|False,
        'copyTags': True|False,
        'exportBucketArn': 'string',
        'launchConfigurationTemplateID': 'string',
        'launchDisposition': 'STOPPED'|'STARTED',
        'launchIntoSourceInstance': True|False,
        'licensing': {
            'osByol': True|False
        },
        'postLaunchEnabled': True|False,
        'tags': {
            'string': 'string'
        },
        'targetInstanceTypeRightSizingMethod': 'NONE'|'BASIC'|'IN_AWS'
    }
}

Response Structure

  • (dict) –

    • launchConfigurationTemplate (dict) –

      Created Launch Configuration Template.

      • arn (string) –

        ARN of the Launch Configuration Template.

      • copyPrivateIp (boolean) –

        Copy private IP.

      • copyTags (boolean) –

        Copy tags.

      • exportBucketArn (string) –

        S3 bucket ARN to export Source Network templates.

      • launchConfigurationTemplateID (string) –

        ID of the Launch Configuration Template.

      • launchDisposition (string) –

        Launch disposition.

      • launchIntoSourceInstance (boolean) –

        DRS will set the ‘launch into instance ID’ of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.

      • licensing (dict) –

        Licensing.

        • osByol (boolean) –

          Whether to enable “Bring your own license” or not.

      • postLaunchEnabled (boolean) –

        Post-launch actions activated.

      • tags (dict) –

        Tags of the Launch Configuration Template.

        • (string) –

          • (string) –

      • targetInstanceTypeRightSizingMethod (string) –

        Target instance type right-sizing method.

Exceptions

  • drs.Client.exceptions.InternalServerException

  • drs.Client.exceptions.ServiceQuotaExceededException

  • drs.Client.exceptions.ThrottlingException

  • drs.Client.exceptions.AccessDeniedException

  • drs.Client.exceptions.ValidationException

  • drs.Client.exceptions.UninitializedAccountException