update_launch_configuration

update_launch_configuration(**kwargs)

Updates multiple LaunchConfigurations by Source Server ID.

See also: AWS API Documentation

Request Syntax

response = client.update_launch_configuration(
    bootMode='LEGACY_BIOS'|'UEFI',
    copyPrivateIp=True|False,
    copyTags=True|False,
    enableMapAutoTagging=True|False,
    launchDisposition='STOPPED'|'STARTED',
    licensing={
        'osByol': True|False
    },
    mapAutoTaggingMpeID='string',
    name='string',
    postLaunchActions={
        'cloudWatchLogGroupName': 'string',
        'deployment': 'TEST_AND_CUTOVER'|'CUTOVER_ONLY'|'TEST_ONLY',
        's3LogBucket': 'string',
        's3OutputKeyPrefix': 'string',
        'ssmDocuments': [
            {
                'actionName': 'string',
                'mustSucceedForCutover': True|False,
                'parameters': {
                    'string': [
                        {
                            'parameterName': 'string',
                            'parameterType': 'STRING'
                        },
                    ]
                },
                'ssmDocumentName': 'string',
                'timeoutSeconds': 123
            },
        ]
    },
    sourceServerID='string',
    targetInstanceTypeRightSizingMethod='NONE'|'BASIC'
)
Parameters
  • bootMode (string) -- Update Launch configuration boot mode request.
  • copyPrivateIp (boolean) -- Update Launch configuration copy Private IP request.
  • copyTags (boolean) -- Update Launch configuration copy Tags request.
  • enableMapAutoTagging (boolean) -- Enable map auto tagging.
  • launchDisposition (string) -- Update Launch configuration launch disposition request.
  • licensing (dict) --

    Update Launch configuration licensing request.

    • osByol (boolean) --

      Configure BYOL OS licensing.

  • mapAutoTaggingMpeID (string) -- Launch configuration map auto tagging MPE ID.
  • name (string) -- Update Launch configuration name request.
  • postLaunchActions (dict) --

    Post Launch Actions to executed on the Test or Cutover instance.

    • cloudWatchLogGroupName (string) --

      AWS Systems Manager Command's CloudWatch log group name.

    • deployment (string) --

      Deployment type in which AWS Systems Manager Documents will be executed.

    • s3LogBucket (string) --

      AWS Systems Manager Command's logs S3 log bucket.

    • s3OutputKeyPrefix (string) --

      AWS Systems Manager Command's logs S3 output key prefix.

    • ssmDocuments (list) --

      AWS Systems Manager Documents.

      • (dict) --

        AWS Systems Manager Document.

        • actionName (string) -- [REQUIRED]

          User-friendly name for the AWS Systems Manager Document.

        • mustSucceedForCutover (boolean) --

          If true, Cutover will not be enabled if the document has failed.

        • parameters (dict) --

          AWS Systems Manager Document parameters.

          • (string) --
            • (list) --
              • (dict) --

                AWS Systems Manager Parameter Store parameter.

                • parameterName (string) -- [REQUIRED]

                  AWS Systems Manager Parameter Store parameter name.

                • parameterType (string) -- [REQUIRED]

                  AWS Systems Manager Parameter Store parameter type.

        • ssmDocumentName (string) -- [REQUIRED]

          AWS Systems Manager Document name or full ARN.

        • timeoutSeconds (integer) --

          AWS Systems Manager Document timeout seconds.

  • sourceServerID (string) --

    [REQUIRED]

    Update Launch configuration by Source Server ID request.

  • targetInstanceTypeRightSizingMethod (string) -- Update Launch configuration Target instance right sizing request.
Return type

dict

Returns

Response Syntax

{
    'bootMode': 'LEGACY_BIOS'|'UEFI',
    'copyPrivateIp': True|False,
    'copyTags': True|False,
    'ec2LaunchTemplateID': 'string',
    'enableMapAutoTagging': True|False,
    'launchDisposition': 'STOPPED'|'STARTED',
    'licensing': {
        'osByol': True|False
    },
    'mapAutoTaggingMpeID': 'string',
    'name': 'string',
    'postLaunchActions': {
        'cloudWatchLogGroupName': 'string',
        'deployment': 'TEST_AND_CUTOVER'|'CUTOVER_ONLY'|'TEST_ONLY',
        's3LogBucket': 'string',
        's3OutputKeyPrefix': 'string',
        'ssmDocuments': [
            {
                'actionName': 'string',
                'mustSucceedForCutover': True|False,
                'parameters': {
                    'string': [
                        {
                            'parameterName': 'string',
                            'parameterType': 'STRING'
                        },
                    ]
                },
                'ssmDocumentName': 'string',
                'timeoutSeconds': 123
            },
        ]
    },
    'sourceServerID': 'string',
    'targetInstanceTypeRightSizingMethod': 'NONE'|'BASIC'
}

Response Structure

  • (dict) --

    • bootMode (string) --

      Launch configuration boot mode.

    • copyPrivateIp (boolean) --

      Copy Private IP during Launch Configuration.

    • copyTags (boolean) --

      Copy Tags during Launch Configuration.

    • ec2LaunchTemplateID (string) --

      Launch configuration EC2 Launch template ID.

    • enableMapAutoTagging (boolean) --

      Enable map auto tagging.

    • launchDisposition (string) --

      Launch disposition for launch configuration.

    • licensing (dict) --

      Launch configuration OS licensing.

      • osByol (boolean) --

        Configure BYOL OS licensing.

    • mapAutoTaggingMpeID (string) --

      Map auto tagging MPE ID.

    • name (string) --

      Launch configuration name.

    • postLaunchActions (dict) --

      Post Launch Actions to executed on the Test or Cutover instance.

      • cloudWatchLogGroupName (string) --

        AWS Systems Manager Command's CloudWatch log group name.

      • deployment (string) --

        Deployment type in which AWS Systems Manager Documents will be executed.

      • s3LogBucket (string) --

        AWS Systems Manager Command's logs S3 log bucket.

      • s3OutputKeyPrefix (string) --

        AWS Systems Manager Command's logs S3 output key prefix.

      • ssmDocuments (list) --

        AWS Systems Manager Documents.

        • (dict) --

          AWS Systems Manager Document.

          • actionName (string) --

            User-friendly name for the AWS Systems Manager Document.

          • mustSucceedForCutover (boolean) --

            If true, Cutover will not be enabled if the document has failed.

          • parameters (dict) --

            AWS Systems Manager Document parameters.

            • (string) --

              • (list) --

                • (dict) --

                  AWS Systems Manager Parameter Store parameter.

                  • parameterName (string) --

                    AWS Systems Manager Parameter Store parameter name.

                  • parameterType (string) --

                    AWS Systems Manager Parameter Store parameter type.

          • ssmDocumentName (string) --

            AWS Systems Manager Document name or full ARN.

          • timeoutSeconds (integer) --

            AWS Systems Manager Document timeout seconds.

    • sourceServerID (string) --

      Launch configuration Source Server ID.

    • targetInstanceTypeRightSizingMethod (string) --

      Launch configuration Target instance type right sizing method.

Exceptions

  • mgn.Client.exceptions.UninitializedAccountException
  • mgn.Client.exceptions.ResourceNotFoundException
  • mgn.Client.exceptions.ValidationException
  • mgn.Client.exceptions.ConflictException