old_contents: # snippet-end:[ec2.python.starting__and_stopping_instances.complete]
  # snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
  # snippet-sourcedescription:[starting_and_stopping_instances.py demonstrates how to start and stop an Amazon EC2 instance.]
  # snippet-service:[ec2]
  # snippet-keyword:[Amazon EC2]
  # snippet-keyword:[Python]
  # snippet-keyword:[Code Sample]
  # snippet-sourcetype:[full-example]
  # snippet-sourcedate:[2018-12-26]
  # snippet-sourceauthor:[jschwarzwalder (AWS)]
  
  # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  #
  # This file is licensed under the Apache License, Version 2.0 (the "License").
  # You may not use this file except in compliance with the License. A copy of the
  # License is located at
  #
  # http://aws.amazon.com/apache2.0/
  #
  # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
  # OF ANY KIND, either express or implied. See the License for the specific
  # language governing permissions and limitations under the License. 
  # snippet-start:[ec2.python.starting__and_stopping_instances.complete]
  
  import sys
  import boto3
  from botocore.exceptions import ClientError
  
  instance_id = sys.argv[2]
  action = sys.argv[1].upper()
  
  ec2 = boto3.client('ec2')
  
  if action == 'ON':
      # Do a dryrun first to verify permissions
      try:
          ec2.start_instances(InstanceIds=[instance_id], DryRun=True)
      except ClientError as e:
          if 'DryRunOperation' not in str(e):
              raise
  
      # Dry run succeeded, run start_instances without dryrun
      try:
          response = ec2.start_instances(InstanceIds=[instance_id], DryRun=False)
          print(response)
      except ClientError as e:
          print(e)
  else:
      # Do a dryrun first to verify permissions
      try:
          ec2.stop_instances(InstanceIds=[instance_id], DryRun=True)
      except ClientError as e:
          if 'DryRunOperation' not in str(e):
              raise
  
      # Dry run succeeded, call stop_instances without dryrun
      try:
          response = ec2.stop_instances(InstanceIds=[instance_id], DryRun=False)
          print(response)
      except ClientError as e:
          print(e)
  
new_contents: # snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
  # snippet-sourcedescription:[starting_and_stopping_instances.py demonstrates how to start and stop an Amazon EC2 instance.]
  # snippet-service:[ec2]
  # snippet-keyword:[Amazon EC2]
  # snippet-keyword:[Python]
  # snippet-keyword:[Code Sample]
  # snippet-sourcetype:[full-example]
  # snippet-sourcedate:[2018-12-26]
  # snippet-sourceauthor:[jschwarzwalder (AWS)]
  
  # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  #
  # This file is licensed under the Apache License, Version 2.0 (the "License").
  # You may not use this file except in compliance with the License. A copy of the
  # License is located at
  #
  # http://aws.amazon.com/apache2.0/
  #
  # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
  # OF ANY KIND, either express or implied. See the License for the specific
  # language governing permissions and limitations under the License. 
  # snippet-start:[ec2.python.starting_and_stopping_instances.complete]
  
  import sys
  import boto3
  from botocore.exceptions import ClientError
  
  instance_id = sys.argv[2]
  action = sys.argv[1].upper()
  
  ec2 = boto3.client('ec2')
  
  if action == 'ON':
      # Do a dryrun first to verify permissions
      try:
          ec2.start_instances(InstanceIds=[instance_id], DryRun=True)
      except ClientError as e:
          if 'DryRunOperation' not in str(e):
              raise
  
      # Dry run succeeded, run start_instances without dryrun
      try:
          response = ec2.start_instances(InstanceIds=[instance_id], DryRun=False)
          print(response)
      except ClientError as e:
          print(e)
  else:
      # Do a dryrun first to verify permissions
      try:
          ec2.stop_instances(InstanceIds=[instance_id], DryRun=True)
      except ClientError as e:
          if 'DryRunOperation' not in str(e):
              raise
  
      # Dry run succeeded, call stop_instances without dryrun
      try:
          response = ec2.stop_instances(InstanceIds=[instance_id], DryRun=False)
          print(response)
      except ClientError as e:
          print(e)
  # snippet-end:[ec2.python.starting_and_stopping_instances.complete]
  
subject: Fix snippet typo