disable_fast_launch

disable_fast_launch(**kwargs)

Discontinue faster launching for a Windows AMI, and clean up existing pre-provisioned snapshots. When you disable faster launching, the AMI uses the standard launch process for each instance. All pre-provisioned snapshots must be removed before you can enable faster launching again.

Note

To change these settings, you must own the AMI.

See also: AWS API Documentation

Request Syntax

response = client.disable_fast_launch(
    ImageId='string',
    Force=True|False,
    DryRun=True|False
)
Parameters
  • ImageId (string) --

    [REQUIRED]

    The ID of the image for which you’re turning off faster launching, and removing pre-provisioned snapshots.

  • Force (boolean) -- Forces the image settings to turn off faster launching for your Windows AMI. This parameter overrides any errors that are encountered while cleaning up resources in your account.
  • DryRun (boolean) -- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
Return type

dict

Returns

Response Syntax

{
    'ImageId': 'string',
    'ResourceType': 'snapshot',
    'SnapshotConfiguration': {
        'TargetResourceCount': 123
    },
    'LaunchTemplate': {
        'LaunchTemplateId': 'string',
        'LaunchTemplateName': 'string',
        'Version': 'string'
    },
    'MaxParallelLaunches': 123,
    'OwnerId': 'string',
    'State': 'enabling'|'enabling-failed'|'enabled'|'enabled-failed'|'disabling'|'disabling-failed',
    'StateTransitionReason': 'string',
    'StateTransitionTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • ImageId (string) --

      The ID of the image for which faster-launching has been turned off.

    • ResourceType (string) --

      The pre-provisioning resource type that must be cleaned after turning off faster launching for the Windows AMI. Supported values include: snapshot .

    • SnapshotConfiguration (dict) --

      Parameters that were used for faster launching for the Windows AMI before faster launching was turned off. This informs the clean-up process.

      • TargetResourceCount (integer) --

        The number of pre-provisioned snapshots requested to keep on hand for a fast-launch enabled Windows AMI.

    • LaunchTemplate (dict) --

      The launch template that was used to launch Windows instances from pre-provisioned snapshots.

      • LaunchTemplateId (string) --

        The ID of the launch template for faster launching of the associated Windows AMI.

      • LaunchTemplateName (string) --

        The name of the launch template for faster launching of the associated Windows AMI.

      • Version (string) --

        The version of the launch template for faster launching of the associated Windows AMI.

    • MaxParallelLaunches (integer) --

      The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows faster launching.

    • OwnerId (string) --

      The owner of the Windows AMI for which faster launching was turned off.

    • State (string) --

      The current state of faster launching for the specified Windows AMI.

    • StateTransitionReason (string) --

      The reason that the state changed for faster launching for the Windows AMI.

    • StateTransitionTime (datetime) --

      The time that the state changed for faster launching for the Windows AMI.