def rubyize_format(original_data)
      data = original_data.to_snake_keys.deep_symbolize_keys

      definitions = data[:container_definitions]
      definitions.each_with_index do |definition, i|
        next unless definition[:log_configuration]
        options = definition[:log_configuration][:options]
        next unless options

        # LogConfiguration options do not get transformed and keep their original
        # structure:
        #   https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Types/ContainerDefinition.html
        original_definition = original_data["containerDefinitions"][i]
        definition[:log_configuration][:options] = original_definition["logConfiguration"]["options"]
      end

      data
    end
def rubyize_format(original_data)
      data = original_data.to_snake_keys.deep_symbolize_keys

      definitions = data[:container_definitions]
      definitions.each_with_index do |definition, i|
        next unless definition[:log_configuration]
        options = definition[:log_configuration][:options]
        next unless options

        # LogConfiguration options do not get transformed and keep their original
        # structure:
        #   https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECS/Types/ContainerDefinition.html
        original_definition = original_data["containerDefinitions"][i]
        definition[:log_configuration][:options] = original_definition["logConfiguration"]["options"]
      end

      data
    end
The ruby aws-sdk expects symbols for keys and AWS docs for the task
 definition uses json camelCase for the keys.  This method transforms
 the keys to the expected ruby aws-sdk format.

 One quirk is that the logConfiguration options casing should not be
 transformed.